@nebula.js/sn-table 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +16 -16
- package/dist/sn-table.js +17 -17
- package/dist/sn-table.systemjs.js +16 -16
- package/package.json +8 -8
- package/sn-table-ext/dist/sn-table.js +17 -17
- package/sn-table-ext/sn-table.qext +1 -1
package/core/esm/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v3.5.
|
|
2
|
+
* @nebula.js/sn-table v3.5.1
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import{useTheme as e,useMemo as t,onContextMenu as r,useOptions as n,useState as o,usePromise as i,useEffect as a,onTakeSnapshot as s,useImperativeHandle as l,useElement as u,useStaleLayout as c,useApp as d,useModel as p,useInteractionState as f,useTranslator as m,useSelections as h,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{useMemo as S,useState as E,useEffect as C,useContext as w,createElement as R,Children as A,isValidElement as I,cloneElement as D,useReducer as L,createContext as P,useRef as M,useCallback as _,forwardRef as T,memo as k,useLayoutEffect as O,PureComponent as q,useImperativeHandle as N}from"react";import*as F from"react-dom";import z from"react-dom";function j(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function $(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function B(){}var H=.7,W=1/H,G="\\s*([+-]?\\d+)\\s*",V="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",U="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Y=/^#([0-9a-f]{3,8})$/,K=new RegExp(`^rgb\\(${G},${G},${G}\\)$`),X=new RegExp(`^rgb\\(${U},${U},${U}\\)$`),J=new RegExp(`^rgba\\(${G},${G},${G},${V}\\)$`),Z=new RegExp(`^rgba\\(${U},${U},${U},${V}\\)$`),Q=new RegExp(`^hsl\\(${V},${U},${U}\\)$`),ee=new RegExp(`^hsla\\(${V},${U},${U},${V}\\)$`),te={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function re(){return this.rgb().formatHex()}function ne(){return this.rgb().formatRgb()}function oe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Y.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?ie(t):3===r?new ue(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ae(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ae(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=K.exec(e))?new ue(t[1],t[2],t[3],1):(t=X.exec(e))?new ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=J.exec(e))?ae(t[1],t[2],t[3],t[4]):(t=Z.exec(e))?ae(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Q.exec(e))?he(t[1],t[2]/100,t[3]/100,1):(t=ee.exec(e))?he(t[1],t[2]/100,t[3]/100,t[4]):te.hasOwnProperty(e)?ie(te[e]):"transparent"===e?new ue(NaN,NaN,NaN,0):null}function ie(e){return new ue(e>>16&255,e>>8&255,255&e,1)}function ae(e,t,r,n){return n<=0&&(e=t=r=NaN),new ue(e,t,r,n)}function se(e){return e instanceof B||(e=oe(e)),e?new ue((e=e.rgb()).r,e.g,e.b,e.opacity):new ue}function le(e,t,r,n){return 1===arguments.length?se(e):new ue(e,t,r,null==n?1:n)}function ue(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function ce(){return`#${me(this.r)}${me(this.g)}${me(this.b)}`}function de(){const e=pe(this.opacity);return`${1===e?"rgb(":"rgba("}${fe(this.r)}, ${fe(this.g)}, ${fe(this.b)}${1===e?")":`, ${e})`}`}function pe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function me(e){return((e=fe(e))<16?"0":"")+e.toString(16)}function he(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new be(e,t,r,n)}function ge(e){if(e instanceof be)return new be(e.h,e.s,e.l,e.opacity);if(e instanceof B||(e=oe(e)),!e)return new be;if(e instanceof be)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new be(a,s,l,e.opacity)}function be(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ve(e){return(e=(e||0)%360)<0?e+360:e}function ye(e){return Math.max(0,Math.min(1,e||0))}function xe(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}j(B,oe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:re,formatHex:re,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ge(this).formatHsl()},formatRgb:ne,toString:ne}),j(ue,le,$(B,{brighter(e){return e=null==e?W:Math.pow(W,e),new ue(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?H:Math.pow(H,e),new ue(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ue(fe(this.r),fe(this.g),fe(this.b),pe(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:ce,formatHex:ce,formatHex8:function(){return`#${me(this.r)}${me(this.g)}${me(this.b)}${me(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:de,toString:de})),j(be,(function(e,t,r,n){return 1===arguments.length?ge(e):new be(e,t,r,null==n?1:n)}),$(B,{brighter(e){return e=null==e?W:Math.pow(W,e),new be(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?H:Math.pow(H,e),new be(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 ue(xe(e>=240?e-240:e+120,o,n),xe(e,o,n),xe(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new be(ve(this.h),ye(this.s),ye(this.l),pe(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=pe(this.opacity);return`${1===e?"hsl(":"hsla("}${ve(this.h)}, ${100*ye(this.s)}%, ${100*ye(this.l)}%${1===e?")":`, ${e})`}`}}));const Se=Math.PI/180,Ee=180/Math.PI,Ce=.96422,we=1,Re=.82521,Ae=4/29,Ie=6/29,De=3*Ie*Ie,Le=Ie*Ie*Ie;function Pe(e){if(e instanceof Me)return new Me(e.l,e.a,e.b,e.opacity);if(e instanceof Ne)return Fe(e);e instanceof ue||(e=se(e));var t,r,n=Oe(e.r),o=Oe(e.g),i=Oe(e.b),a=_e((.2225045*n+.7168786*o+.0606169*i)/we);return n===o&&o===i?t=r=a:(t=_e((.4360747*n+.3850649*o+.1430804*i)/Ce),r=_e((.0139322*n+.0971045*o+.7141733*i)/Re)),new Me(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Me(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function _e(e){return e>Le?Math.pow(e,1/3):e/De+Ae}function Te(e){return e>Ie?e*e*e:De*(e-Ae)}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 qe(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Ne)return new Ne(e.h,e.c,e.l,e.opacity);if(e instanceof Me||(e=Pe(e)),0===e.a&&0===e.b)return new Ne(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ee;return new Ne(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ne(e,t,r,null==n?1:n)}function Ne(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Fe(e){if(isNaN(e.h))return new Me(e.l,0,0,e.opacity);var t=e.h*Se;return new Me(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}j(Me,(function(e,t,r,n){return 1===arguments.length?Pe(e):new Me(e,t,r,null==n?1:n)}),$(B,{brighter(e){return new Me(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Me(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 ue(ke(3.1338561*(t=Ce*Te(t))-1.6168667*(e=we*Te(e))-.4906146*(r=Re*Te(r))),ke(-.9787684*t+1.9161415*e+.033454*r),ke(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),j(Ne,qe,$(B,{brighter(e){return new Ne(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ne(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Fe(this).rgb()}}));const ze=e=>{if(e){const t=le(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},je=(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"),s=a&&window.getComputedStyle(a).backgroundColor,l=null==r?void 0:r(e),u=null==n?void 0:n(e),c=l||i||u,d=(e=>!!e&&0===le(e).opacity)(c);return{tableColorFromTheme:l||"inherit",color:c,isDark:ze(d?s:c),isTransparent:d}};var $e=Object.prototype.hasOwnProperty,Be=Object.prototype.toString,He=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ge=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Be.call(e)},Ve=function(e){if(!e||"[object Object]"!==Be.call(e))return!1;var t,r=$e.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&$e.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||$e.call(e,t)},Ue=function(e,t){He&&"__proto__"===t.name?He(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ye=function(e,t){if("__proto__"===t){if(!$e.call(e,t))return;if(We)return We(e,t).value}return e[t]};function Ke(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Xe(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Je(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(r in t)n=Ye(s,r),s!==(o=Ye(t,r))&&(c&&o&&(Ve(o)||(i=Ge(o)))?(i?(i=!1,a=n&&Ge(n)?n:[]):a=n&&Ve(n)?n:{},Ue(s,{name:r,newValue:e(c,a,o)})):void 0!==o&&Ue(s,{name:r,newValue:o}));return s}));var Ze=1/.7,Qe="\\s*([+-]?\\d+)\\s*",et="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rt=/^#([0-9a-f]{3,8})$/,nt=new RegExp(`^rgb\\(${Qe},${Qe},${Qe}\\)$`),ot=new RegExp(`^rgb\\(${tt},${tt},${tt}\\)$`),it=new RegExp(`^rgba\\(${Qe},${Qe},${Qe},${et}\\)$`),at=new RegExp(`^rgba\\(${tt},${tt},${tt},${et}\\)$`),st=new RegExp(`^hsl\\(${et},${tt},${tt}\\)$`),lt=new RegExp(`^hsla\\(${et},${tt},${tt},${et}\\)$`),ut={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 ct(){return this.rgb().formatHex()}function dt(){return this.rgb().formatRgb()}function pt(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=rt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?ft(t):3===r?new bt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?mt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?mt(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=nt.exec(e))?new bt(t[1],t[2],t[3],1):(t=ot.exec(e))?new bt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=it.exec(e))?mt(t[1],t[2],t[3],t[4]):(t=at.exec(e))?mt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=st.exec(e))?Ct(t[1],t[2]/100,t[3]/100,1):(t=lt.exec(e))?Ct(t[1],t[2]/100,t[3]/100,t[4]):ut.hasOwnProperty(e)?ft(ut[e]):"transparent"===e?new bt(NaN,NaN,NaN,0):null}function ft(e){return new bt(e>>16&255,e>>8&255,255&e,1)}function mt(e,t,r,n){return n<=0&&(e=t=r=NaN),new bt(e,t,r,n)}function ht(e){return e instanceof Je||(e=pt(e)),e?new bt((e=e.rgb()).r,e.g,e.b,e.opacity):new bt}function gt(e,t,r,n){return 1===arguments.length?ht(e):new bt(e,t,r,null==n?1:n)}function bt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function vt(){return`#${Et(this.r)}${Et(this.g)}${Et(this.b)}`}function yt(){const e=xt(this.opacity);return`${1===e?"rgb(":"rgba("}${St(this.r)}, ${St(this.g)}, ${St(this.b)}${1===e?")":`, ${e})`}`}function xt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function St(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Et(e){return((e=St(e))<16?"0":"")+e.toString(16)}function Ct(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Rt(e,t,r,n)}function wt(e){if(e instanceof Rt)return new Rt(e.h,e.s,e.l,e.opacity);if(e instanceof Je||(e=pt(e)),!e)return new Rt;if(e instanceof Rt)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Rt(a,s,l,e.opacity)}function Rt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function At(e){return(e=(e||0)%360)<0?e+360:e}function It(e){return Math.max(0,Math.min(1,e||0))}function Dt(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ke(Je,pt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ct,formatHex:ct,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return wt(this).formatHsl()},formatRgb:dt,toString:dt}),Ke(bt,gt,Xe(Je,{brighter(e){return e=null==e?Ze:Math.pow(Ze,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bt(St(this.r),St(this.g),St(this.b),xt(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:vt,formatHex:vt,formatHex8:function(){return`#${Et(this.r)}${Et(this.g)}${Et(this.b)}${Et(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:yt,toString:yt})),Ke(Rt,(function(e,t,r,n){return 1===arguments.length?wt(e):new Rt(e,t,r,null==n?1:n)}),Xe(Je,{brighter(e){return e=null==e?Ze:Math.pow(Ze,e),new Rt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Rt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new bt(Dt(e>=240?e-240:e+120,o,n),Dt(e,o,n),Dt(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Rt(At(this.h),It(this.s),It(this.l),xt(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=xt(this.opacity);return`${1===e?"hsl(":"hsla("}${At(this.h)}, ${100*It(this.s)}%, ${100*It(this.l)}%${1===e?")":`, ${e})`}`}}));const Lt=Math.PI/180,Pt=180/Math.PI,Mt=4/29,_t=6/29,Tt=3*_t*_t;function kt(e){if(e instanceof Ot)return new Ot(e.l,e.a,e.b,e.opacity);if(e instanceof jt)return $t(e);e instanceof bt||(e=ht(e));var t,r,n=zt(e.r),o=zt(e.g),i=zt(e.b),a=qt((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=qt((.4360747*n+.3850649*o+.1430804*i)/.96422),r=qt((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ot(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ot(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function qt(e){return e>.008856451679035631?Math.pow(e,1/3):e/Tt+Mt}function Nt(e){return e>_t?e*e*e:Tt*(e-Mt)}function Ft(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function zt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function jt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function $t(e){if(isNaN(e.h))return new Ot(e.l,0,0,e.opacity);var t=e.h*Lt;return new Ot(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ke(Ot,(function(e,t,r,n){return 1===arguments.length?kt(e):new Ot(e,t,r,null==n?1:n)}),Xe(Je,{brighter(e){return new Ot(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ot(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 bt(Ft(3.1338561*(t=.96422*Nt(t))-1.6168667*(e=1*Nt(e))-.4906146*(r=.82521*Nt(r))),Ft(-.9787684*t+1.9161415*e+.033454*r),Ft(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ke(jt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof jt)return new jt(e.h,e.c,e.l,e.opacity);if(e instanceof Ot||(e=kt(e)),0===e.a&&0===e.b)return new jt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Pt;return new jt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new jt(e,t,r,null==n?1:n)}),Xe(Je,{brighter(e){return new jt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new jt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return $t(this).rgb()}}));var Bt,Ht=e=>()=>e;function Wt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ht(isNaN(e)?t:e)}function Gt(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 Vt(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 Ut(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Kt)):void 0===t&&(t=Yt);for(var r,n,o,i,a,s=new Zt(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new Zt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Jt)}function Yt(e){return e.children}function Kt(e){return Array.isArray(e)?e[1]:null}function Xt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Jt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Zt(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var r=function(e){return 1==(e=+e)?Wt: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):Ht(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=gt(e)).r,(t=gt(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Wt(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),Zt.prototype=Ut.prototype={constructor:Zt,count:function(){return this.eachAfter(Vt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Ut(this).eachBefore(Xt)},[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)}},Bt=function(e){
|
|
7
|
+
import{useTheme as e,useMemo as t,onContextMenu as r,useOptions as n,useState as o,usePromise as i,useEffect as a,onTakeSnapshot as s,useImperativeHandle as l,useElement as u,useStaleLayout as c,useApp as d,useModel as p,useInteractionState as f,useTranslator as m,useSelections as h,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{useMemo as S,useState as E,useEffect as C,useContext as w,createElement as R,Children as A,isValidElement as I,cloneElement as D,useReducer as L,createContext as P,useRef as M,useCallback as _,forwardRef as T,memo as O,useLayoutEffect as k,PureComponent as q,useImperativeHandle as N}from"react";import*as F from"react-dom";import z from"react-dom";function j(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function $(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function B(){}var H=.7,W=1/H,G="\\s*([+-]?\\d+)\\s*",V="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",U="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Y=/^#([0-9a-f]{3,8})$/,K=new RegExp(`^rgb\\(${G},${G},${G}\\)$`),X=new RegExp(`^rgb\\(${U},${U},${U}\\)$`),J=new RegExp(`^rgba\\(${G},${G},${G},${V}\\)$`),Z=new RegExp(`^rgba\\(${U},${U},${U},${V}\\)$`),Q=new RegExp(`^hsl\\(${V},${U},${U}\\)$`),ee=new RegExp(`^hsla\\(${V},${U},${U},${V}\\)$`),te={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function re(){return this.rgb().formatHex()}function ne(){return this.rgb().formatRgb()}function oe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Y.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?ie(t):3===r?new ue(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ae(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ae(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=K.exec(e))?new ue(t[1],t[2],t[3],1):(t=X.exec(e))?new ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=J.exec(e))?ae(t[1],t[2],t[3],t[4]):(t=Z.exec(e))?ae(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Q.exec(e))?he(t[1],t[2]/100,t[3]/100,1):(t=ee.exec(e))?he(t[1],t[2]/100,t[3]/100,t[4]):te.hasOwnProperty(e)?ie(te[e]):"transparent"===e?new ue(NaN,NaN,NaN,0):null}function ie(e){return new ue(e>>16&255,e>>8&255,255&e,1)}function ae(e,t,r,n){return n<=0&&(e=t=r=NaN),new ue(e,t,r,n)}function se(e){return e instanceof B||(e=oe(e)),e?new ue((e=e.rgb()).r,e.g,e.b,e.opacity):new ue}function le(e,t,r,n){return 1===arguments.length?se(e):new ue(e,t,r,null==n?1:n)}function ue(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function ce(){return`#${me(this.r)}${me(this.g)}${me(this.b)}`}function de(){const e=pe(this.opacity);return`${1===e?"rgb(":"rgba("}${fe(this.r)}, ${fe(this.g)}, ${fe(this.b)}${1===e?")":`, ${e})`}`}function pe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function me(e){return((e=fe(e))<16?"0":"")+e.toString(16)}function he(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new be(e,t,r,n)}function ge(e){if(e instanceof be)return new be(e.h,e.s,e.l,e.opacity);if(e instanceof B||(e=oe(e)),!e)return new be;if(e instanceof be)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new be(a,s,l,e.opacity)}function be(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ve(e){return(e=(e||0)%360)<0?e+360:e}function ye(e){return Math.max(0,Math.min(1,e||0))}function xe(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}j(B,oe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:re,formatHex:re,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ge(this).formatHsl()},formatRgb:ne,toString:ne}),j(ue,le,$(B,{brighter(e){return e=null==e?W:Math.pow(W,e),new ue(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?H:Math.pow(H,e),new ue(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ue(fe(this.r),fe(this.g),fe(this.b),pe(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:ce,formatHex:ce,formatHex8:function(){return`#${me(this.r)}${me(this.g)}${me(this.b)}${me(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:de,toString:de})),j(be,(function(e,t,r,n){return 1===arguments.length?ge(e):new be(e,t,r,null==n?1:n)}),$(B,{brighter(e){return e=null==e?W:Math.pow(W,e),new be(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?H:Math.pow(H,e),new be(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 ue(xe(e>=240?e-240:e+120,o,n),xe(e,o,n),xe(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new be(ve(this.h),ye(this.s),ye(this.l),pe(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=pe(this.opacity);return`${1===e?"hsl(":"hsla("}${ve(this.h)}, ${100*ye(this.s)}%, ${100*ye(this.l)}%${1===e?")":`, ${e})`}`}}));const Se=Math.PI/180,Ee=180/Math.PI,Ce=.96422,we=1,Re=.82521,Ae=4/29,Ie=6/29,De=3*Ie*Ie,Le=Ie*Ie*Ie;function Pe(e){if(e instanceof Me)return new Me(e.l,e.a,e.b,e.opacity);if(e instanceof Ne)return Fe(e);e instanceof ue||(e=se(e));var t,r,n=ke(e.r),o=ke(e.g),i=ke(e.b),a=_e((.2225045*n+.7168786*o+.0606169*i)/we);return n===o&&o===i?t=r=a:(t=_e((.4360747*n+.3850649*o+.1430804*i)/Ce),r=_e((.0139322*n+.0971045*o+.7141733*i)/Re)),new Me(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Me(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function _e(e){return e>Le?Math.pow(e,1/3):e/De+Ae}function Te(e){return e>Ie?e*e*e:De*(e-Ae)}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 qe(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Ne)return new Ne(e.h,e.c,e.l,e.opacity);if(e instanceof Me||(e=Pe(e)),0===e.a&&0===e.b)return new Ne(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ee;return new Ne(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ne(e,t,r,null==n?1:n)}function Ne(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Fe(e){if(isNaN(e.h))return new Me(e.l,0,0,e.opacity);var t=e.h*Se;return new Me(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}j(Me,(function(e,t,r,n){return 1===arguments.length?Pe(e):new Me(e,t,r,null==n?1:n)}),$(B,{brighter(e){return new Me(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Me(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 ue(Oe(3.1338561*(t=Ce*Te(t))-1.6168667*(e=we*Te(e))-.4906146*(r=Re*Te(r))),Oe(-.9787684*t+1.9161415*e+.033454*r),Oe(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),j(Ne,qe,$(B,{brighter(e){return new Ne(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ne(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Fe(this).rgb()}}));const ze=e=>{if(e){const t=le(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},je=(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"),s=a&&window.getComputedStyle(a).backgroundColor,l=null==r?void 0:r(e),u=null==n?void 0:n(e),c=l||i||u,d=(e=>!!e&&0===le(e).opacity)(c);return{tableColorFromTheme:l||"inherit",color:c,isDark:ze(d?s:c),isTransparent:d}};var $e=Object.prototype.hasOwnProperty,Be=Object.prototype.toString,He=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ge=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Be.call(e)},Ve=function(e){if(!e||"[object Object]"!==Be.call(e))return!1;var t,r=$e.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&$e.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||$e.call(e,t)},Ue=function(e,t){He&&"__proto__"===t.name?He(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ye=function(e,t){if("__proto__"===t){if(!$e.call(e,t))return;if(We)return We(e,t).value}return e[t]};function Ke(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Xe(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Je(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(r in t)n=Ye(s,r),s!==(o=Ye(t,r))&&(c&&o&&(Ve(o)||(i=Ge(o)))?(i?(i=!1,a=n&&Ge(n)?n:[]):a=n&&Ve(n)?n:{},Ue(s,{name:r,newValue:e(c,a,o)})):void 0!==o&&Ue(s,{name:r,newValue:o}));return s}));var Ze=1/.7,Qe="\\s*([+-]?\\d+)\\s*",et="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rt=/^#([0-9a-f]{3,8})$/,nt=new RegExp(`^rgb\\(${Qe},${Qe},${Qe}\\)$`),ot=new RegExp(`^rgb\\(${tt},${tt},${tt}\\)$`),it=new RegExp(`^rgba\\(${Qe},${Qe},${Qe},${et}\\)$`),at=new RegExp(`^rgba\\(${tt},${tt},${tt},${et}\\)$`),st=new RegExp(`^hsl\\(${et},${tt},${tt}\\)$`),lt=new RegExp(`^hsla\\(${et},${tt},${tt},${et}\\)$`),ut={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 ct(){return this.rgb().formatHex()}function dt(){return this.rgb().formatRgb()}function pt(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=rt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?ft(t):3===r?new bt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?mt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?mt(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=nt.exec(e))?new bt(t[1],t[2],t[3],1):(t=ot.exec(e))?new bt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=it.exec(e))?mt(t[1],t[2],t[3],t[4]):(t=at.exec(e))?mt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=st.exec(e))?Ct(t[1],t[2]/100,t[3]/100,1):(t=lt.exec(e))?Ct(t[1],t[2]/100,t[3]/100,t[4]):ut.hasOwnProperty(e)?ft(ut[e]):"transparent"===e?new bt(NaN,NaN,NaN,0):null}function ft(e){return new bt(e>>16&255,e>>8&255,255&e,1)}function mt(e,t,r,n){return n<=0&&(e=t=r=NaN),new bt(e,t,r,n)}function ht(e){return e instanceof Je||(e=pt(e)),e?new bt((e=e.rgb()).r,e.g,e.b,e.opacity):new bt}function gt(e,t,r,n){return 1===arguments.length?ht(e):new bt(e,t,r,null==n?1:n)}function bt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function vt(){return`#${Et(this.r)}${Et(this.g)}${Et(this.b)}`}function yt(){const e=xt(this.opacity);return`${1===e?"rgb(":"rgba("}${St(this.r)}, ${St(this.g)}, ${St(this.b)}${1===e?")":`, ${e})`}`}function xt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function St(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Et(e){return((e=St(e))<16?"0":"")+e.toString(16)}function Ct(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Rt(e,t,r,n)}function wt(e){if(e instanceof Rt)return new Rt(e.h,e.s,e.l,e.opacity);if(e instanceof Je||(e=pt(e)),!e)return new Rt;if(e instanceof Rt)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Rt(a,s,l,e.opacity)}function Rt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function At(e){return(e=(e||0)%360)<0?e+360:e}function It(e){return Math.max(0,Math.min(1,e||0))}function Dt(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ke(Je,pt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ct,formatHex:ct,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return wt(this).formatHsl()},formatRgb:dt,toString:dt}),Ke(bt,gt,Xe(Je,{brighter(e){return e=null==e?Ze:Math.pow(Ze,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bt(St(this.r),St(this.g),St(this.b),xt(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:vt,formatHex:vt,formatHex8:function(){return`#${Et(this.r)}${Et(this.g)}${Et(this.b)}${Et(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:yt,toString:yt})),Ke(Rt,(function(e,t,r,n){return 1===arguments.length?wt(e):new Rt(e,t,r,null==n?1:n)}),Xe(Je,{brighter(e){return e=null==e?Ze:Math.pow(Ze,e),new Rt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Rt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new bt(Dt(e>=240?e-240:e+120,o,n),Dt(e,o,n),Dt(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Rt(At(this.h),It(this.s),It(this.l),xt(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=xt(this.opacity);return`${1===e?"hsl(":"hsla("}${At(this.h)}, ${100*It(this.s)}%, ${100*It(this.l)}%${1===e?")":`, ${e})`}`}}));const Lt=Math.PI/180,Pt=180/Math.PI,Mt=4/29,_t=6/29,Tt=3*_t*_t;function Ot(e){if(e instanceof kt)return new kt(e.l,e.a,e.b,e.opacity);if(e instanceof jt)return $t(e);e instanceof bt||(e=ht(e));var t,r,n=zt(e.r),o=zt(e.g),i=zt(e.b),a=qt((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=qt((.4360747*n+.3850649*o+.1430804*i)/.96422),r=qt((.0139322*n+.0971045*o+.7141733*i)/.82521)),new kt(116*a-16,500*(t-a),200*(a-r),e.opacity)}function kt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function qt(e){return e>.008856451679035631?Math.pow(e,1/3):e/Tt+Mt}function Nt(e){return e>_t?e*e*e:Tt*(e-Mt)}function Ft(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function zt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function jt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function $t(e){if(isNaN(e.h))return new kt(e.l,0,0,e.opacity);var t=e.h*Lt;return new kt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ke(kt,(function(e,t,r,n){return 1===arguments.length?Ot(e):new kt(e,t,r,null==n?1:n)}),Xe(Je,{brighter(e){return new kt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new kt(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 bt(Ft(3.1338561*(t=.96422*Nt(t))-1.6168667*(e=1*Nt(e))-.4906146*(r=.82521*Nt(r))),Ft(-.9787684*t+1.9161415*e+.033454*r),Ft(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ke(jt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof jt)return new jt(e.h,e.c,e.l,e.opacity);if(e instanceof kt||(e=Ot(e)),0===e.a&&0===e.b)return new jt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Pt;return new jt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new jt(e,t,r,null==n?1:n)}),Xe(Je,{brighter(e){return new jt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new jt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return $t(this).rgb()}}));var Bt,Ht=e=>()=>e;function Wt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ht(isNaN(e)?t:e)}function Gt(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 Vt(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 Ut(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Kt)):void 0===t&&(t=Yt);for(var r,n,o,i,a,s=new Zt(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new Zt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Jt)}function Yt(e){return e.children}function Kt(e){return Array.isArray(e)?e[1]:null}function Xt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Jt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Zt(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var r=function(e){return 1==(e=+e)?Wt: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):Ht(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=gt(e)).r,(t=gt(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Wt(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),Zt.prototype=Ut.prototype={constructor:Zt,count:function(){return this.eachAfter(Vt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Ut(this).eachBefore(Xt)},[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)}},Bt=function(e){
|
|
8
8
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
9
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},Bt({exports:{}});const Qt=3;function er(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function tr({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Qt}=null!=o?o:{},{estimateWidth:a,measureText:s,estimateLineCount:l}=S((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=Gt(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=Gt((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=er(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}function rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var or,ir=z;function ar(e,t){const[r,n]=E(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}or=ir.createRoot,ir.hydrateRoot;var sr={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 lr=({translator:e})=>(S((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(sr).forEach((t=>{e.add(sr[t])}))}}(e)),[e]),e),ur="12px",cr="nebula-table-utils-head-menu-button",dr="nebula-table-utils-head-menu-wrapper",pr="nebula-table-utils-head-menu-list-id",fr="sn-copy-cell";let mr=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 hr="nebula-table-utils-column-adjuster",gr=`${hr}-border`;let br=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),vr=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const yr=document.createElement("textarea");function xr(e){yr.value=e,document.body.appendChild(yr),yr.select(),yr.setSelectionRange(0,yr.value.length),document.execCommand("copy"),document.body.removeChild(yr)}yr.style.position="absolute",yr.style.left="-9999px",yr.setAttribute("readonly","");const Sr=e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>xr(r))):xr(r))};var Er=Object.prototype.hasOwnProperty,Cr=Object.prototype.toString,wr=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,Ar=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Cr.call(e)},Ir=function(e){if(!e||"[object Object]"!==Cr.call(e))return!1;var t,r=Er.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Er.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Er.call(e,t)},Dr=function(e,t){wr&&"__proto__"===t.name?wr(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Lr=function(e,t){if("__proto__"===t){if(!Er.call(e,t))return;if(Rr)return Rr(e,t).value}return e[t]};function Pr(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Mr(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function _r(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(r in t)n=Lr(s,r),s!==(o=Lr(t,r))&&(c&&o&&(Ir(o)||(i=Ar(o)))?(i?(i=!1,a=n&&Ar(n)?n:[]):a=n&&Ir(n)?n:{},Dr(s,{name:r,newValue:e(c,a,o)})):void 0!==o&&Dr(s,{name:r,newValue:o}));return s}));var Tr=1/.7,kr="\\s*([+-]?\\d+)\\s*",Or="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Nr=/^#([0-9a-f]{3,8})$/,Fr=new RegExp(`^rgb\\(${kr},${kr},${kr}\\)$`),zr=new RegExp(`^rgb\\(${qr},${qr},${qr}\\)$`),jr=new RegExp(`^rgba\\(${kr},${kr},${kr},${Or}\\)$`),$r=new RegExp(`^rgba\\(${qr},${qr},${qr},${Or}\\)$`),Br=new RegExp(`^hsl\\(${Or},${qr},${qr}\\)$`),Hr=new RegExp(`^hsla\\(${Or},${qr},${qr},${Or}\\)$`),Wr={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 Gr(){return this.rgb().formatHex()}function Vr(){return this.rgb().formatRgb()}function Ur(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Nr.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Yr(t):3===r?new Zr(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Kr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Kr(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=Fr.exec(e))?new Zr(t[1],t[2],t[3],1):(t=zr.exec(e))?new Zr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jr.exec(e))?Kr(t[1],t[2],t[3],t[4]):(t=$r.exec(e))?Kr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Br.exec(e))?on(t[1],t[2]/100,t[3]/100,1):(t=Hr.exec(e))?on(t[1],t[2]/100,t[3]/100,t[4]):Wr.hasOwnProperty(e)?Yr(Wr[e]):"transparent"===e?new Zr(NaN,NaN,NaN,0):null}function Yr(e){return new Zr(e>>16&255,e>>8&255,255&e,1)}function Kr(e,t,r,n){return n<=0&&(e=t=r=NaN),new Zr(e,t,r,n)}function Xr(e){return e instanceof _r||(e=Ur(e)),e?new Zr((e=e.rgb()).r,e.g,e.b,e.opacity):new Zr}function Jr(e,t,r,n){return 1===arguments.length?Xr(e):new Zr(e,t,r,null==n?1:n)}function Zr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Qr(){return`#${nn(this.r)}${nn(this.g)}${nn(this.b)}`}function en(){const e=tn(this.opacity);return`${1===e?"rgb(":"rgba("}${rn(this.r)}, ${rn(this.g)}, ${rn(this.b)}${1===e?")":`, ${e})`}`}function tn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nn(e){return((e=rn(e))<16?"0":"")+e.toString(16)}function on(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new sn(e,t,r,n)}function an(e){if(e instanceof sn)return new sn(e.h,e.s,e.l,e.opacity);if(e instanceof _r||(e=Ur(e)),!e)return new sn;if(e instanceof sn)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new sn(a,s,l,e.opacity)}function sn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ln(e){return(e=(e||0)%360)<0?e+360:e}function un(e){return Math.max(0,Math.min(1,e||0))}function cn(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Pr(_r,Ur,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gr,formatHex:Gr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return an(this).formatHsl()},formatRgb:Vr,toString:Vr}),Pr(Zr,Jr,Mr(_r,{brighter(e){return e=null==e?Tr:Math.pow(Tr,e),new Zr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Zr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zr(rn(this.r),rn(this.g),rn(this.b),tn(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:Qr,formatHex:Qr,formatHex8:function(){return`#${nn(this.r)}${nn(this.g)}${nn(this.b)}${nn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:en,toString:en})),Pr(sn,(function(e,t,r,n){return 1===arguments.length?an(e):new sn(e,t,r,null==n?1:n)}),Mr(_r,{brighter(e){return e=null==e?Tr:Math.pow(Tr,e),new sn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new sn(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 Zr(cn(e>=240?e-240:e+120,o,n),cn(e,o,n),cn(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new sn(ln(this.h),un(this.s),un(this.l),tn(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=tn(this.opacity);return`${1===e?"hsl(":"hsla("}${ln(this.h)}, ${100*un(this.s)}%, ${100*un(this.l)}%${1===e?")":`, ${e})`}`}}));const dn=Math.PI/180,pn=180/Math.PI,fn=4/29,mn=6/29,hn=3*mn*mn;function gn(e){if(e instanceof bn)return new bn(e.l,e.a,e.b,e.opacity);if(e instanceof En)return Cn(e);e instanceof Zr||(e=Xr(e));var t,r,n=Sn(e.r),o=Sn(e.g),i=Sn(e.b),a=vn((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=vn((.4360747*n+.3850649*o+.1430804*i)/.96422),r=vn((.0139322*n+.0971045*o+.7141733*i)/.82521)),new bn(116*a-16,500*(t-a),200*(a-r),e.opacity)}function bn(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function vn(e){return e>.008856451679035631?Math.pow(e,1/3):e/hn+fn}function yn(e){return e>mn?e*e*e:hn*(e-fn)}function xn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Sn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function En(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Cn(e){if(isNaN(e.h))return new bn(e.l,0,0,e.opacity);var t=e.h*dn;return new bn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Pr(bn,(function(e,t,r,n){return 1===arguments.length?gn(e):new bn(e,t,r,null==n?1:n)}),Mr(_r,{brighter(e){return new bn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new bn(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 Zr(xn(3.1338561*(t=.96422*yn(t))-1.6168667*(e=1*yn(e))-.4906146*(r=.82521*yn(r))),xn(-.9787684*t+1.9161415*e+.033454*r),xn(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Pr(En,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof En)return new En(e.h,e.c,e.l,e.opacity);if(e instanceof bn||(e=gn(e)),0===e.a&&0===e.b)return new En(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*pn;return new En(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new En(e,t,r,null==n?1:n)}),Mr(_r,{brighter(e){return new En(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new En(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Cn(this).rgb()}}));var wn=e=>()=>e;function Rn(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):wn(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Rn: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):wn(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Jr(e)).r,(t=Jr(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Rn(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 An="center",In="bottom";[{key:"NoDataExist",alignment:An,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:An,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:An,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:An},{key:"DataRangeIncludingZero",alignment:In},{key:"LimitedData",alignment:In},{key:"NegativeOrZeroValues",alignment:In}].reduce((function(e,t){return e[t.key]=t,e}),{});var Dn,Ln=["__proto__","constructor"];function Pn(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Ln.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function Mn(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 _n(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=kn)):void 0===t&&(t=Tn);for(var r,n,o,i,a,s=new Nn(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new Nn(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(qn)}function Tn(e){return e.children}function kn(e){return Array.isArray(e)?e[1]:null}function On(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function qn(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Nn(e){this.data=e,this.depth=this.height=0,this.parent=null}Nn.prototype=_n.prototype={constructor:Nn,count:function(){return this.eachAfter(Mn)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return _n(this).eachBefore(On)},[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)}},Dn=function(e){
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},Bt({exports:{}});const Qt=3;function er(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function tr({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Qt}=null!=o?o:{},{estimateWidth:a,measureText:s,estimateLineCount:l}=S((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=Gt(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=Gt((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=er(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}function rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var or,ir=z;function ar(e,t){const[r,n]=E(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}or=ir.createRoot,ir.hydrateRoot;var sr={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 lr=({translator:e})=>(S((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(sr).forEach((t=>{e.add(sr[t])}))}}(e)),[e]),e),ur="12px",cr="nebula-table-utils-head-menu-button",dr="nebula-table-utils-head-menu-wrapper",pr="nebula-table-utils-head-menu-list-id",fr="sn-copy-cell";let mr=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 hr="nebula-table-utils-column-adjuster",gr=`${hr}-border`;let br=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),vr=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const yr=document.createElement("textarea");function xr(e){yr.value=e,document.body.appendChild(yr),yr.select(),yr.setSelectionRange(0,yr.value.length),document.execCommand("copy"),document.body.removeChild(yr)}yr.style.position="absolute",yr.style.left="-9999px",yr.setAttribute("readonly","");const Sr=e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>xr(r))):xr(r))};var Er=Object.prototype.hasOwnProperty,Cr=Object.prototype.toString,wr=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,Ar=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Cr.call(e)},Ir=function(e){if(!e||"[object Object]"!==Cr.call(e))return!1;var t,r=Er.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Er.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Er.call(e,t)},Dr=function(e,t){wr&&"__proto__"===t.name?wr(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Lr=function(e,t){if("__proto__"===t){if(!Er.call(e,t))return;if(Rr)return Rr(e,t).value}return e[t]};function Pr(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Mr(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function _r(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(r in t)n=Lr(s,r),s!==(o=Lr(t,r))&&(c&&o&&(Ir(o)||(i=Ar(o)))?(i?(i=!1,a=n&&Ar(n)?n:[]):a=n&&Ir(n)?n:{},Dr(s,{name:r,newValue:e(c,a,o)})):void 0!==o&&Dr(s,{name:r,newValue:o}));return s}));var Tr=1/.7,Or="\\s*([+-]?\\d+)\\s*",kr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Nr=/^#([0-9a-f]{3,8})$/,Fr=new RegExp(`^rgb\\(${Or},${Or},${Or}\\)$`),zr=new RegExp(`^rgb\\(${qr},${qr},${qr}\\)$`),jr=new RegExp(`^rgba\\(${Or},${Or},${Or},${kr}\\)$`),$r=new RegExp(`^rgba\\(${qr},${qr},${qr},${kr}\\)$`),Br=new RegExp(`^hsl\\(${kr},${qr},${qr}\\)$`),Hr=new RegExp(`^hsla\\(${kr},${qr},${qr},${kr}\\)$`),Wr={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 Gr(){return this.rgb().formatHex()}function Vr(){return this.rgb().formatRgb()}function Ur(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Nr.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Yr(t):3===r?new Zr(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Kr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Kr(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=Fr.exec(e))?new Zr(t[1],t[2],t[3],1):(t=zr.exec(e))?new Zr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jr.exec(e))?Kr(t[1],t[2],t[3],t[4]):(t=$r.exec(e))?Kr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Br.exec(e))?on(t[1],t[2]/100,t[3]/100,1):(t=Hr.exec(e))?on(t[1],t[2]/100,t[3]/100,t[4]):Wr.hasOwnProperty(e)?Yr(Wr[e]):"transparent"===e?new Zr(NaN,NaN,NaN,0):null}function Yr(e){return new Zr(e>>16&255,e>>8&255,255&e,1)}function Kr(e,t,r,n){return n<=0&&(e=t=r=NaN),new Zr(e,t,r,n)}function Xr(e){return e instanceof _r||(e=Ur(e)),e?new Zr((e=e.rgb()).r,e.g,e.b,e.opacity):new Zr}function Jr(e,t,r,n){return 1===arguments.length?Xr(e):new Zr(e,t,r,null==n?1:n)}function Zr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Qr(){return`#${nn(this.r)}${nn(this.g)}${nn(this.b)}`}function en(){const e=tn(this.opacity);return`${1===e?"rgb(":"rgba("}${rn(this.r)}, ${rn(this.g)}, ${rn(this.b)}${1===e?")":`, ${e})`}`}function tn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nn(e){return((e=rn(e))<16?"0":"")+e.toString(16)}function on(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new sn(e,t,r,n)}function an(e){if(e instanceof sn)return new sn(e.h,e.s,e.l,e.opacity);if(e instanceof _r||(e=Ur(e)),!e)return new sn;if(e instanceof sn)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new sn(a,s,l,e.opacity)}function sn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ln(e){return(e=(e||0)%360)<0?e+360:e}function un(e){return Math.max(0,Math.min(1,e||0))}function cn(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Pr(_r,Ur,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gr,formatHex:Gr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return an(this).formatHsl()},formatRgb:Vr,toString:Vr}),Pr(Zr,Jr,Mr(_r,{brighter(e){return e=null==e?Tr:Math.pow(Tr,e),new Zr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Zr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zr(rn(this.r),rn(this.g),rn(this.b),tn(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:Qr,formatHex:Qr,formatHex8:function(){return`#${nn(this.r)}${nn(this.g)}${nn(this.b)}${nn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:en,toString:en})),Pr(sn,(function(e,t,r,n){return 1===arguments.length?an(e):new sn(e,t,r,null==n?1:n)}),Mr(_r,{brighter(e){return e=null==e?Tr:Math.pow(Tr,e),new sn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new sn(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 Zr(cn(e>=240?e-240:e+120,o,n),cn(e,o,n),cn(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new sn(ln(this.h),un(this.s),un(this.l),tn(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=tn(this.opacity);return`${1===e?"hsl(":"hsla("}${ln(this.h)}, ${100*un(this.s)}%, ${100*un(this.l)}%${1===e?")":`, ${e})`}`}}));const dn=Math.PI/180,pn=180/Math.PI,fn=4/29,mn=6/29,hn=3*mn*mn;function gn(e){if(e instanceof bn)return new bn(e.l,e.a,e.b,e.opacity);if(e instanceof En)return Cn(e);e instanceof Zr||(e=Xr(e));var t,r,n=Sn(e.r),o=Sn(e.g),i=Sn(e.b),a=vn((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=vn((.4360747*n+.3850649*o+.1430804*i)/.96422),r=vn((.0139322*n+.0971045*o+.7141733*i)/.82521)),new bn(116*a-16,500*(t-a),200*(a-r),e.opacity)}function bn(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function vn(e){return e>.008856451679035631?Math.pow(e,1/3):e/hn+fn}function yn(e){return e>mn?e*e*e:hn*(e-fn)}function xn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Sn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function En(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Cn(e){if(isNaN(e.h))return new bn(e.l,0,0,e.opacity);var t=e.h*dn;return new bn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Pr(bn,(function(e,t,r,n){return 1===arguments.length?gn(e):new bn(e,t,r,null==n?1:n)}),Mr(_r,{brighter(e){return new bn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new bn(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 Zr(xn(3.1338561*(t=.96422*yn(t))-1.6168667*(e=1*yn(e))-.4906146*(r=.82521*yn(r))),xn(-.9787684*t+1.9161415*e+.033454*r),xn(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Pr(En,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof En)return new En(e.h,e.c,e.l,e.opacity);if(e instanceof bn||(e=gn(e)),0===e.a&&0===e.b)return new En(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*pn;return new En(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new En(e,t,r,null==n?1:n)}),Mr(_r,{brighter(e){return new En(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new En(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Cn(this).rgb()}}));var wn=e=>()=>e;function Rn(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):wn(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Rn: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):wn(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Jr(e)).r,(t=Jr(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Rn(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 An="center",In="bottom";[{key:"NoDataExist",alignment:An,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:An,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:An,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:An},{key:"DataRangeIncludingZero",alignment:In},{key:"LimitedData",alignment:In},{key:"NegativeOrZeroValues",alignment:In}].reduce((function(e,t){return e[t.key]=t,e}),{});var Dn,Ln=["__proto__","constructor"];function Pn(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Ln.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function Mn(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 _n(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=On)):void 0===t&&(t=Tn);for(var r,n,o,i,a,s=new Nn(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new Nn(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(qn)}function Tn(e){return e.children}function On(e){return Array.isArray(e)?e[1]:null}function kn(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function qn(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Nn(e){this.data=e,this.depth=this.height=0,this.parent=null}Nn.prototype=_n.prototype={constructor:Nn,count:function(){return this.eachAfter(Mn)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return _n(this).eachBefore(kn)},[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)}},Dn=function(e){
|
|
10
10
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
11
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},Dn({exports:{}});var Fn={exports:{}};self,Fn.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>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 s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function L(e){return void 0===e}function P(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]=L(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(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){_(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!_(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);_(i,a)||P(t,o)||(L(a)?n.push({op:"add",path:s,value:i}):D(i)&&D(a)?n=n.concat(A.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&L(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(_(t,o))return n;if(!L(t[0])&&L(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!P(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return 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&&!P(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);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,k=function(e,r,n){if(!e)return Promise.resolve();var o=T.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===O)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===O)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var 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,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=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(O))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var j="movingAverage";function $(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 B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===j)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={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,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var G="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===G)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===G)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=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(G))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t,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:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.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){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const De=Ie;function Le(e){return Le="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},Le(e)}var Pe={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Pe,apply:Te,applyModifiers:ke,cleanUpMeasure:Oe,destroy:function(e){e&&_e[e.id]&&_e[e.id].masterItemSubscriber&&(_e[e.id].masterItemSubscriber&&_e[e.id].masterItemSubscriber.unsubscribe(),delete _e[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Pe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Pe[e]&&Pe[e].isApplicable({properties:r,layout:n})}))},measureBase: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=je(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var _e={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;_e[r.id]=_e[r.id]||{isFirstTime:!0};var u=_e[r.id].isFirstTime;if(_e[r.id].isFirstTime=!1,n&&"object"===Le(n))return ke({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[r.id].lastReloadTime;if(_e[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 Ue({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;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"===Le(e)&&!e.disabled){if(r++,"object"!==Le(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&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:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(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 Oe(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function ke(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Oe(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(r)||De.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(s++,"object"!==Le(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Pe[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Pe[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Pe[n.type].updateModifier&&Pe[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Pe[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),He(r)):Oe(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!Pe[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:r,layout:n})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Pe[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Pe[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(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 He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!Pe[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 Ge(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!Ge(t)&&Ue({modifiers:je(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!Pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=Pe[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):k(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&Pe[e.type]&&Pe[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=je(t);if(Ue({modifiers:n,properties:e})){var i=Ge(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var s=i.getValue(e,"qLayoutExclude.quarantine");s[r]||(s[r]={}),s[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function I(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 L=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},P=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},_=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=w(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=w(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},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},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return I(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 I(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)?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.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return 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=[],s.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},H=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 G={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:l}),h({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=l.defaultDimension,R=void 0===w?_():w,A=l.defaultMeasure,I=void 0===A?T():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),P("qMaxStackedCells",b,v),P("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),L(g,t,n),h.qProperty=g;var D=i.getValue(c||{},"support.modifiers");return H({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 U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!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],s=t.length;if(U(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||s,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 se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?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,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(s,r.properties.measureAxes[t[0].axis])):E()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",De="measures",Le="qDef.conditionalColoring";const Pe={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:De,itemPath:Le})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Le,arrayName:De,quarantineName:Ie})}};var Me="qHyperCubeDef.qMeasures",_e="measures",Te="qHyperCubeDef.qDimensions",ke="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Me,quarantineName:je,arrayName:_e,itemPath:ze}),we({properties:e,arrayPath:Te,quarantineName:je,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:je,arrayName:_e,itemPath:ze}),Re({properties:e,arrayPath:Te,quarantineName:je,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:G,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Pe,conditionalShow:$e}})(),n.default})();var zn=rr(Fn.exports);const jn="qHyperCubeDef.qDimensions",$n="dimensions",Bn="qDef.representation",Hn="tableRepresentation",Wn=(e,t,r)=>{const n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{var n;const o=t.length,i=e<o?t[e]:r[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(n=a.pixels)&&void 0!==n?n:br.PixelsDefault:-1})(r,e,t)));return o},Gn=({propertyTree:e,hyperCubePath:t})=>{const r=zn.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=Wn(o,i,n);return Pn(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),zn.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),zn.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),zn.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{zn.quarantineArrayProp({properties:e,arrayPath:jn,itemPath:Bn,arrayName:$n,quarantineName:Hn})})(r.properties),r};const Vn=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];i.qDef.columnWidth=-1===e?{type:vr.FitToContent}:{type:vr.Pixels,pixels:e}}return i},Un=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{const a=zn.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});zn.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{zn.unquarantineArrayProp({properties:e,arrayPath:jn,itemPath:Bn,arrayName:$n,quarantineName:Hn})})(a.qProperty);const{qHyperCubeDef:{qDimensions:s,qMeasures:l,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=(null==r?void 0:r.length)===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>Vn(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>Vn(t,e,n,o)))}})(s,l,u,c);return Array.isArray(c)&&c.length>0&&(Pn(a,"qProperty.qHyperCubeDef.qDimensions",d),Pn(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(Pn(a,"qProperty.totals.show",!1),Pn(a,"qProperty.usePagination",!0)),zn.conditionalShow.unquarantine(a.qProperty),a};var Yn={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function Kn(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function Xn(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function Jn(e){return e>0?0:1}function Zn(e){return e.translator.get("Visualizations.Descriptions.Column")}function Qn(e){return{measures:{min:Jn,max:1e3,description:()=>Zn(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;Kn(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;Xn(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:Jn,max:1e3,description:()=>Zn(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return Kn(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;Xn(o,n)}}}}var eo,to={};eo=to,(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{default:()=>Me});var e=r(229),t=r.n(e);const o=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function L(e){return void 0===e}function P(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]=L(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(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){_(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!_(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);_(i,a)||P(t,o)||(L(a)?n.push({op:"add",path:s,value:i}):D(i)&&D(a)?n=n.concat(A.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&L(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(_(t,o))return n;if(!L(t[0])&&L(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!P(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return 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&&!P(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);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,k=function(e,r,n){if(!e)return Promise.resolve();var o=T.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===O)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===O)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var 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,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=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(O))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var j="movingAverage";function $(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 B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===j)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={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,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var G="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===G)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===G)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=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(G))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t,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:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(o(e,ve,i(e,be)),o(e,xe,i(e,ye)),o(e,Ce,i(e,Se)),o(e,we,i(e,Ee)))},restoreBase:function(e){Ie.isValid(e)&&(o(e,be,i(e,ve)),o(e,ye,i(e,xe)),o(e,Se,i(e,Ce)),o(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&o(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const De=Ie;function Le(e){return Le="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},Le(e)}var Pe={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Pe,apply:Te,applyModifiers:ke,cleanUpMeasure:Oe,destroy:function(e){e&&_e[e.id]&&_e[e.id].masterItemSubscriber&&(_e[e.id].masterItemSubscriber&&_e[e.id].masterItemSubscriber.unsubscribe(),delete _e[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Pe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Pe[e]&&Pe[e].isApplicable({properties:r,layout:n})}))},measureBase: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=je(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var _e={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;_e[r.id]=_e[r.id]||{isFirstTime:!0};var u=_e[r.id].isFirstTime;if(_e[r.id].isFirstTime=!1,n&&"object"===Le(n))return ke({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[r.id].lastReloadTime;if(_e[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.model,o=e.lastReloadTime;return i(n,"app.layout.qLastReloadTime")!==o&&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 Ue({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;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"===Le(e)&&!e.disabled){if(r++,"object"!==Le(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&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:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(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 Oe(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function ke(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Oe(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(r)||De.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(s++,"object"!==Le(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Pe[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Pe[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Pe[n.type].updateModifier&&Pe[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Pe[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),He(r)):Oe(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!Pe[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:r,layout:n})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Pe[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Pe[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(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 He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!Pe[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 Ge(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!Ge(t)&&Ue({modifiers:je(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!Pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=Pe[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):k(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&Pe[e.type]&&Pe[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=je(t);if(Ue({modifiers:n,properties:e})){var i=Ge(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),eo.default=n.default,Object.defineProperty(eo,"__esModule",{value:!0})})();var ro=rr(to);const no=(e,t)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",options(){const r=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&r.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),r}}},oo=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},io=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},ao=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5715_LINKS"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=n&&null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:no(a,i),...oo(i),...io(a)}},so=e=>{var t,r;const{flags:n,anything:o}=e,i=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:i?{uses:"measureRepresentationItems.representationType",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0}},lo={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},uo=e=>{var t,r,n,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!ro.hasActiveModifiers({measures:[e],properties:t.properties})||ro.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(n=e.anything)&&void 0!==n&&null!==(n=n.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))}},co={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:vr.Auto,translation:"Common.Auto"},{value:vr.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:vr.Pixels,translation:"Object.Table.Column.Pixels"},{value:vr.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:vr.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===vr.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(br.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===vr.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(br.PercentageMax,e.qDef.columnWidth.percentage))}}},po={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellColoring:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]},...lo,...co},fo={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},mo=e=>({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},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:uo(e)}),ho=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:fo},presentation:{type:"items",translation:"properties.presentation",items:{...po,...ao(e)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:mo(e)},presentation:{type:"items",translation:"properties.presentation",items:{...po,...so(e)}}}}}}),go=e=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},rowHeightSection:{show:()=>e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),component:"panel-section",translation:"ThemeStyleEditor.style.rowHeight",items:{rowHeightItem:{component:"items",ref:"components",key:"theme",items:{rowHeightWrapper:{ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,change(e){""!==e.content.rowHeight&&null!==e.content.rowHeight&&void 0!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):e.content.rowHeight=void 0}}}}}},hoverEffectSection:{translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]}),bo=e=>{var t,r;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals"))}},vo={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},yo=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[go(e),bo(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...vo}}),xo={uses:"sorting"},So={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Eo=e=>({type:"items",component:"accordion",items:{data:ho(e),sorting:xo,addOns:So,settings:yo(e)}});function Co(e){return{definition:Eo(e),exploration:Yn,data:Qn(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0},importProperties(e,t,r,n){const o={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return Un({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o})},exportProperties:(e,t)=>Gn({propertyTree:e,hyperCubePath:t})}}const wo=(e,r)=>t((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{const i=n?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=e[n?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...r})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([l],!0)})(e,r)),[e,r]),Ro=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{});let Ao;const Io=new Uint8Array(16);function Do(){if(!Ao&&(Ao="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ao))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ao(Io)}const Lo=[];for(let e=0;e<256;++e)Lo.push((e+256).toString(16).slice(1));var Po={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Mo(e,t,r){if(Po.randomUUID&&!t&&!e)return Po.randomUUID();const n=(e=e||{}).random||(e.rng||Do)();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 Lo[e[t+0]]+Lo[e[t+1]]+Lo[e[t+2]]+Lo[e[t+3]]+"-"+Lo[e[t+4]]+Lo[e[t+5]]+"-"+Lo[e[t+6]]+Lo[e[t+7]]+"-"+Lo[e[t+8]]+Lo[e[t+9]]+"-"+Lo[e[t+10]]+Lo[e[t+11]]+Lo[e[t+12]]+Lo[e[t+13]]+Lo[e[t+14]]+Lo[e[t+15]]}(n)}const _o=()=>{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:Mo()},To=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:_o()};function ko(e){return ko="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},ko(e)}function Oo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function No(e,t,r){return t&&qo(e.prototype,t),r&&qo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jo(e,t)}function zo(e){return zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zo(e)}function jo(e,t){return jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jo(e,t)}function $o(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Bo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=zo(e);if(t){var o=zo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return $o(this,r)}}function Ho(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wo(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}var Go={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:Vo(e),value:Vo(t),useEqualSign:r}}(r,o,i))}})),t}};function Vo(e){try{return decodeURIComponent(e)}catch(t){return e}}function Uo(e){if(!(this instanceof Uo))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return Go.fromSearchString(t.search)}}})}function Yo(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}Uo.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},Uo.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=Yo((t=e[n]).key),t.value?r+="=".concat(Yo(t.value)):r+=t.useEqualSign?"=":"";return r};var Ko,Xo=function(){function e(t){Oo(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return No(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),Jo=function(){function e(){Oo(this,e)}return No(e,[{key:"decode",value:function(e){for(var t,r="",n=new Xo(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),Zo=function(e){return e>=0&&e<=1114111},Qo=function(e){return e.match(/[\s]/)},ei=function(e){Fo(r,Jo);var t=Bo(r);function r(){return Oo(this,r),t.apply(this,arguments)}return No(r,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!Qo(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return Zo(a)?String.fromCharCode(a):"�"}}]),r}(),ti=function(){function e(t,r){Oo(this,e),this._key=t,this._value=r}return No(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}]),e}(),ri=function(){function e(){Oo(this,e)}return No(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return ti.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return ti.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||ti.newInstanceIfNeeded(e,t,this._value)}}]),e}(),ni=function(){function e(){Oo(this,e),this.clear()}return No(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new ri);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),oi=function(){var e,t,r,n=[],o=[],i=new ni;for(e in n["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["¬in"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),ii=function(e){Fo(r,Jo);var t=Bo(r);function r(){return Oo(this,r),t.apply(this,arguments)}return No(r,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,oi.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=oi.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&Zo(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&Zo(n)?String.fromCharCode(n):null}}]),r}(),ai=function(e){Fo(r,Jo);var t=Bo(r);function r(){return Oo(this,r),t.apply(this,arguments)}return No(r,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),Zo(o))?String.fromCharCode(o):(e.reset(),null)}}]),r}(),si=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(Ko=document.createElement("div"));var li=Array.prototype.indexOf,ui=[",",".","_"," "],ci={default:[",",".","-","_"," "]},di={width:["%"],height:["%"]},pi={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},fi={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":pi.image,"background-color":pi.color,"border-color":pi.color,"border-image":pi.image,color:pi.color,icon:pi.image,"list-style-image":pi.image,"outline-color":pi.color},mi={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function hi(e,t,r){var n;if(t){if(li)return li.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function gi(e){if(null==e)return"";var t,r=document.createTextNode(e);return Ko.appendChild(r),t=Ko.innerHTML,Ko.removeChild(r),t}function bi(e,t,r){var n,o,i,a,s,l,u,c,d;if(e=yi(e).toLowerCase(),t=yi(t),hi(e,mi.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<mi.attr_val;i++)if(t.toLowerCase().match(mi.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=di[e])||(n=ci.default),o="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&hi(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function vi(e,t,r){var n,o,i,a,s,l,u,c,d,p;if(e=yi(e).toLowerCase(),t=yi(t),hi(e,mi.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<mi.css_val.length;n++)if(t.toLowerCase().indexOf(mi.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=fi[e])||(o=pi.default),i="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&hi(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function yi(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var s=[new ii,new ai,new ei];!a;){n=r;for(var l=0;l<s.length;l++)(i=s[l].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var xi=[],Si=0;Si<255;Si++)xi[Si]=Si>=48&&Si<=57||Si>=65&&Si<=90||Si>=97&&Si<=122?null:Si.toString(16);var Ei=function(e){return gi(e.unsafe)},Ci=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=vi(t,r[t],!0),i+=vi(t,r[t],!0),o[t]=n[t]);return e.map?o:i},wi=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=bi(i,t[i],!0),o+=bi(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function Ri(e,t){throw new Error(t)}var Ai={canonicalize:yi,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===ko(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?Ei(e):"css"===e.context?(null!=e.map&&"object"!==ko(e.map)&&Ri(this,"Invalid parameter type"),Ci(e)):"attr"===e.context?(null!=e.map&&"object"!==ko(e.map)&&Ri(this,"Invalid parameter type"),wi(e)):void Ri(this,"Invalid parameter type")},encodeForAttr:bi,encodeForAttr2:function(e){return bi("nonsens",e,!0)},encodeForCSS:vi,encodeForHref:function(e){yi(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new Uo(e),r=Uo.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+Uo.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,s;for(t||(t=ui),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),hi(o,t)>=0||null==xi[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),s+="\\u".concat(a).concat(n.toUpperCase())));return s},encodeForHTML:gi,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=yi(t).toLowerCase():Ri(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,s=function(e){var t,r=Ho(null!==(t=si.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),l=s.mimeType,u=s.encoding,c=s.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(l,u,c);return"image/svg+xml"===l?d<=o:d<=a}};const Ii=(e,t)=>{var r;const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==n||null===(r=n.qValues)||void 0===r?void 0:r[e]},Di=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}};let Li=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),Pi=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const Mi=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&Ai.isSafeDataURL(t)?{type:Li.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Di(n)}:{type:Li.Text,url:void 0,text:e},_i=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===Pi.Attribute||null==r?void 0:r.urlLabel},Ti=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:Li.Link,url:Ai.encodeForHref(t),text:e}}catch(t){return{type:Li.Text,url:void 0,text:e}}},ki=(e,t,r,n)=>{var o,i;const a=(e=>{switch(null==e?void 0:e.type){case"url":return Li.Link;case"image":return Li.Image;default:return Li.Text}})(t);return a!==Li.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=n.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===Li.Link&&n.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,r)=>{const{urlPosition:n}=null!=t?t:{};if(n===Pi.Attribute){var o;const n=_i(null!==(o=r.url)&&void 0!==o?o:-1,e,t),i=e.qText||n||"";return Ti({text:i,url:n})}if(n===Pi.Dimension){var i;const n=_i(null!==(i=r.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return Ti({text:n,url:e.qText})}return{type:Li.Text,url:void 0,text:e.qText}})(e,t,r):{type:Li.Text,url:void 0,text:e.qText}:((e,t,r)=>{const{imageSize:n,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var s,l;const t=e.qText,i=null===(s=Ii(null!==(l=r.imageUrl)&&void 0!==l?l:-1,e))||void 0===s?void 0:s.qText;return Mi({text:t,url:i,imageSize:n,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===r.imageLabel)return Mi({text:a||t||"",url:t,imageSize:n,imagePosition:o});const i=null!==(u=null===(c=Ii(null!==(d=r.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return Mi({text:i,url:t,imageSize:n,imagePosition:o})}return{type:Li.Text,url:void 0,text:e.qText}})(e,t,r)},Oi=e=>!Number.isNaN(+e),qi=e=>!(!e.qNum&&0!==e.qNum||!Oi(e.qNum)),Ni=1e4;function Fi(e,t){return[...t].reverse().find((t=>t*e<=Ni))||Math.floor(Ni/e)}function zi(e,t){var r,n;if(null!==(r=t.viewState)&&void 0!==r&&r.skipTotals)return{atTop:!1,atBottom:!1};const[o,i,a,s,l]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(n=e.totals)||void 0===n?void 0:n.show,e.totals.position];if(a&&(o&&i||!s&&!o)){if(s||"top"===l)return{atTop:!0,atBottom:!1};if(!s&&"bottom"===l)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function ji(e,t,r,n){var o,i,a;return t?0===r&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[n])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function $i(e,t){const r=e.qHyperCube.qGrandTotalRow[t];return Oi(null==r?void 0:r.qNum)}function Bi(e,t,r){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}}const Hi=(e,t)=>"auto"!==t?t:qi(e)?"right":"left";const Wi=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:r,qMeasureInfo:n}}=e,o=r.length+n.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:s}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const s=e<n,{qError:l}=s?t[e]:r[e-n],u=7005===(null==l?void 0:l.qErrorCode);return u?s?i++:a++:o[e]=s?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(i,r,n);return a.map(((t,r)=>function(e,t,r,n){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,s=o.length,l=t<s,u=l?o[t]:i[t-s],c=t===a[0];let d,p=0,f="",m=!1,h=-1;const{representation:g}=u;if(l){const e=u;p=e.qGroupPos,f=e.qGroupFieldDefs[p],m=e.qLocked,h=n,({qDimensionType:d}=e)}const{qFallbackTitle:b,textAlign:v,qAttrExprInfo:y,qSortIndicator:x,qReverseSort:S,qApprMaxGlyphCount:E,columnWidth:C,qLibraryId:w}=u;return{isDim:l,isLocked:m,fieldId:f,colIdx:t,qLibraryId:w,pageColIdx:r,qApprMaxGlyphCount:E,qReverseSort:S,columnWidth:C,selectionColIdx:h,isActivelySorted:c,id:To(u),label:b,qAttrExprInfoIDs:y.map((e=>e.id)),qAttrExprInfoIndex:Ro(u),sortDirection:x&&"N"!==x?x:"A",totalInfo:ji(e,l,r,n),...!l&&{isTotalNumeric:$i(e,n)},...Bi(v,d,l),representation:g}}(e,t,r,s[t])))};const Gi=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},Vi=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Gi(e,t)};var Ui={exports:{}},Yi={},Ki=x,Xi=Symbol.for("react.element"),Ji=Symbol.for("react.fragment"),Zi=Object.prototype.hasOwnProperty,Qi=Ki.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ea={key:!0,ref:!0,__self:!0,__source:!0};function ta(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)Zi.call(t,n)&&!ea.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:Xi,type:e,key:i,ref:a,props:o,_owner:Qi.current}}Yi.Fragment=Ji,Yi.jsx=ta,Yi.jsxs=ta,Ui.exports=Yi;var ra=Ui.exports;function na(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 oa=Object.freeze({__proto__:null,default:na}),ia="$$material";function aa(){return aa=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},aa.apply(this,arguments)}function sa(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var la=function(){return la=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},la.apply(this,arguments)};function ua(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 ca=rr((function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=r?r.call(n,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),da="-ms-",pa="-moz-",fa="-webkit-",ma="comm",ha="rule",ga="decl",ba="@import",va="@keyframes",ya="@layer",xa=Math.abs,Sa=String.fromCharCode,Ea=Object.assign;function Ca(e){return e.trim()}function wa(e,t){return(e=t.exec(e))?e[0]:e}function Ra(e,t,r){return e.replace(t,r)}function Aa(e,t,r){return e.indexOf(t,r)}function Ia(e,t){return 0|e.charCodeAt(t)}function Da(e,t,r){return e.slice(t,r)}function La(e){return e.length}function Pa(e){return e.length}function Ma(e,t){return t.push(e),e}function _a(e,t){return e.filter((function(e){return!wa(e,t)}))}var Ta=1,ka=1,Oa=0,qa=0,Na=0,Fa="";function za(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ta,column:ka,length:a,return:"",siblings:s}}function ja(e,t){return Ea(za("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function $a(e){for(;e.root;)e=ja(e.root,{children:[e]});Ma(e,e.siblings)}function Ba(){return Na=qa<Oa?Ia(Fa,qa++):0,ka++,10===Na&&(ka=1,Ta++),Na}function Ha(){return Ia(Fa,qa)}function Wa(){return qa}function Ga(e,t){return Da(Fa,e,t)}function Va(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 Ua(e){return Ca(Ga(qa-1,Xa(91===e?e+2:40===e?e+1:e)))}function Ya(e){for(;(Na=Ha())&&Na<33;)Ba();return Va(e)>2||Va(Na)>3?"":" "}function Ka(e,t){for(;--t&&Ba()&&!(Na<48||Na>102||Na>57&&Na<65||Na>70&&Na<97););return Ga(e,Wa()+(t<6&&32==Ha()&&32==Ba()))}function Xa(e){for(;Ba();)switch(Na){case e:return qa;case 34:case 39:34!==e&&39!==e&&Xa(Na);break;case 40:41===e&&Xa(e);break;case 92:Ba()}return qa}function Ja(e,t){for(;Ba()&&e+Na!==57&&(e+Na!==84||47!==Ha()););return"/*"+Ga(t,qa-1)+"*"+Sa(47===e?e:Ba())}function Za(e){for(;!Va(Ha());)Ba();return Ga(e,qa)}function Qa(e){return function(e){return Fa="",e}(es("",null,null,null,[""],e=function(e){return Ta=ka=1,Oa=La(Fa=e),qa=0,[]}(e),0,[0],e))}function es(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=Ba()){case 40:if(108!=m&&58==Ia(C,d-1)){-1!=Aa(C+=Ra(Ua(v),"&","&\f"),"&\f",xa(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Ua(v);break;case 9:case 10:case 13:case 32:C+=Ya(m);break;case 92:C+=Ka(Wa()-1,7);continue;case 47:switch(Ha()){case 42:case 47:Ma(rs(Ja(Ba(),Wa()),t,r,l),l);break;default:C+="/"}break;case 123*h:s[u++]=La(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Ra(C,/\f/g,"")),f>0&&La(C)-d&&Ma(f>32?ns(C+";",n,r,d-1,l):ns(Ra(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(Ma(E=ts(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)es(C,t,E,E,x,i,d,s,S);else switch(99===p&&110===Ia(C,3)?100:p){case 100:case 108:case 109:case 115:es(e,E,E,n&&Ma(ts(e,E,E,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:es(C,E,E,E,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+La(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(Na=qa>0?Ia(Fa,--qa):0,ka--,10===Na&&(ka=1,Ta--),Na))continue;switch(C+=Sa(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(La(C)-1)*b,b=1;break;case 64:45===Ha()&&(C+=Ua(Ba())),p=Ha(),c=d=La(y=C+=Za(Wa())),v++;break;case 45:45===m&&2==La(C)&&(h=0)}}return i}function ts(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Pa(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=Da(e,p+1,p=xa(g=a[h])),x=e;v<m;++v)(x=Ca(g>0?f[v]+" "+y:Ra(y,/&\f/g,f[v])))&&(l[b++]=x);return za(e,t,r,0===o?ha:s,l,u,c,d)}function rs(e,t,r,n){return za(e,t,r,ma,Sa(Na),Da(e,2,-2),0,n)}function ns(e,t,r,n,o){return za(e,t,r,ga,Da(e,0,n),Da(e,n+1,-1),n,o)}function os(e,t,r){switch(function(e,t){return 45^Ia(e,0)?(((t<<2^Ia(e,0))<<2^Ia(e,1))<<2^Ia(e,2))<<2^Ia(e,3):0}(e,t)){case 5103:return fa+"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 fa+e+e;case 4789:return pa+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fa+e+pa+e+da+e+e;case 5936:switch(Ia(e,t+11)){case 114:return fa+e+da+Ra(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fa+e+da+Ra(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fa+e+da+Ra(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return fa+e+da+e+e;case 6165:return fa+e+da+"flex-"+e+e;case 5187:return fa+e+Ra(e,/(\w+).+(:[^]+)/,fa+"box-$1$2"+da+"flex-$1$2")+e;case 5443:return fa+e+da+"flex-item-"+Ra(e,/flex-|-self/g,"")+(wa(e,/flex-|baseline/)?"":da+"grid-row-"+Ra(e,/flex-|-self/g,""))+e;case 4675:return fa+e+da+"flex-line-pack"+Ra(e,/align-content|flex-|-self/g,"")+e;case 5548:return fa+e+da+Ra(e,"shrink","negative")+e;case 5292:return fa+e+da+Ra(e,"basis","preferred-size")+e;case 6060:return fa+"box-"+Ra(e,"-grow","")+fa+e+da+Ra(e,"grow","positive")+e;case 4554:return fa+Ra(e,/([^-])(transform)/g,"$1"+fa+"$2")+e;case 6187:return Ra(Ra(Ra(e,/(zoom-|grab)/,fa+"$1"),/(image-set)/,fa+"$1"),e,"")+e;case 5495:case 3959:return Ra(e,/(image-set\([^]*)/,fa+"$1$`$1");case 4968:return Ra(Ra(e,/(.+:)(flex-)?(.*)/,fa+"box-pack:$3"+da+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fa+e+e;case 4200:if(!wa(e,/flex-|baseline/))return da+"grid-column-align"+Da(e,t)+e;break;case 2592:case 3360:return da+Ra(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,wa(e.props,/grid-\w+-end/)}))?~Aa(e+(r=r[t].value),"span",0)?e:da+Ra(e,"-start","")+e+da+"grid-row-span:"+(~Aa(r,"span",0)?wa(r,/\d+/):+wa(r,/\d+/)-+wa(e,/\d+/))+";":da+Ra(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return wa(e.props,/grid-\w+-start/)}))?e:da+Ra(Ra(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ra(e,/(.+)-inline(.+)/,fa+"$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(La(e)-1-t>6)switch(Ia(e,t+1)){case 109:if(45!==Ia(e,t+4))break;case 102:return Ra(e,/(.+:)(.+)-([^]+)/,"$1"+fa+"$2-$3$1"+pa+(108==Ia(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Aa(e,"stretch",0)?os(Ra(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ra(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return da+r+":"+n+s+(o?da+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===Ia(e,t+6))return Ra(e,":",":"+fa)+e;break;case 6444:switch(Ia(e,45===Ia(e,14)?18:11)){case 120:return Ra(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+fa+(45===Ia(e,14)?"inline-":"")+"box$3$1"+fa+"$2$3$1"+da+"$2box$3")+e;case 100:return Ra(e,":",":"+da)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ra(e,"scroll-","scroll-snap-")+e}return e}function is(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function as(e,t,r,n){switch(e.type){case ya:if(e.children.length)break;case ba:case ga:return e.return=e.return||e.value;case ma:return"";case va:return e.return=e.value+"{"+is(e.children,n)+"}";case ha:if(!La(e.value=e.props.join(",")))return""}return La(r=is(e.children,n))?e.return=e.value+"{"+r+"}":""}function ss(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ga:return void(e.return=os(e.value,e.length,r));case va:return is([ja(e,{value:Ra(e.value,"@","@"+fa)})],n);case ha:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(wa(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":$a(ja(e,{props:[Ra(t,/:(read-\w+)/,":"+pa+"$1")]})),$a(ja(e,{props:[t]})),Ea(e,{props:_a(r,n)});break;case"::placeholder":$a(ja(e,{props:[Ra(t,/:(plac\w+)/,":"+fa+"input-$1")]})),$a(ja(e,{props:[Ra(t,/:(plac\w+)/,":"+pa+"$1")]})),$a(ja(e,{props:[Ra(t,/:(plac\w+)/,da+"input-$1")]})),$a(ja(e,{props:[t]})),Ea(e,{props:_a(r,n)})}return""}))}}var ls={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},us="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",cs="active",ds="data-styled-version",ps="6.1.9",fs="/*!sc*/\n",ms="undefined"!=typeof window&&"HTMLElement"in window,hs=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)),gs={},bs=Object.freeze([]),vs=Object.freeze({});function ys(e,t,r){return void 0===r&&(r=vs),e.theme!==r.theme&&e.theme||t||r.theme}var xs=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"]),Ss=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Es=/(^-|-$)/g;function Cs(e){return e.replace(Ss,"-").replace(Es,"")}var ws=/(a)(d)/gi,Rs=52,As=function(e){return String.fromCharCode(e+(e>25?39:97))};function Is(e){var t,r="";for(t=Math.abs(e);t>Rs;t=t/Rs|0)r=As(t%Rs)+r;return(As(t%Rs)+r).replace(ws,"$1-$2")}var Ds,Ls=5381,Ps=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ms=function(e){return Ps(Ls,e)};function _s(e){return Is(Ms(e)>>>0)}function Ts(e){return"string"==typeof e&&!0}var ks="function"==typeof Symbol&&Symbol.for,Os=ks?Symbol.for("react.memo"):60115,qs=ks?Symbol.for("react.forward_ref"):60112,Ns={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Fs={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},zs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},js=((Ds={})[qs]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ds[Os]=zs,Ds);function $s(e){return("type"in(t=e)&&t.type.$$typeof)===Os?zs:"$$typeof"in e?js[e.$$typeof]:Ns;var t}var Bs=Object.defineProperty,Hs=Object.getOwnPropertyNames,Ws=Object.getOwnPropertySymbols,Gs=Object.getOwnPropertyDescriptor,Vs=Object.getPrototypeOf,Us=Object.prototype;function Ys(e,t,r){if("string"!=typeof t){if(Us){var n=Vs(t);n&&n!==Us&&Ys(e,n,r)}var o=Hs(t);Ws&&(o=o.concat(Ws(t)));for(var i=$s(e),a=$s(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Fs||r&&r[l]||a&&l in a||i&&l in i)){var u=Gs(t,l);try{Bs(e,l,u)}catch(e){}}}}return e}function Ks(e){return"function"==typeof e}function Xs(e){return"object"==typeof e&&"styledComponentId"in e}function Js(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Zs(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 Qs(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function el(e,t,r){if(void 0===r&&(r=!1),!r&&!Qs(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=el(e[n],t[n]);else if(Qs(t))for(var n in t)e[n]=el(e[n],t[n]);return e}function tl(e,t){Object.defineProperty(e,"toString",{value:t})}function rl(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 nl=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 rl(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(fs);return t},e}(),ol=new Map,il=new Map,al=1,sl=function(e){if(ol.has(e))return ol.get(e);for(;il.has(al);)al++;var t=al++;return ol.set(e,t),il.set(t,e),t},ll=function(e,t){al=t+1,ol.set(e,t),il.set(t,e)},ul="style[".concat(us,"][").concat(ds,'="').concat(ps,'"]'),cl=new RegExp("^".concat(us,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),dl=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)},pl=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(fs),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(cl);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(ll(c,u),dl(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}};var fl=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(us,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(us,cs),n.setAttribute(ds,ps);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},ml=function(){function e(e){this.element=fl(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 rl(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}(),hl=function(){function e(e){this.element=fl(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}(),gl=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}(),bl=ms,vl={isServer:!ms,useCSSOMInjection:!hs},yl=function(){function e(e,t,r){void 0===e&&(e=vs),void 0===t&&(t={});var n=this;this.options=la(la({},vl),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&ms&&bl&&(bl=!1,function(e){for(var t=document.querySelectorAll(ul),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(us)!==cs&&(pl(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),tl(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return il.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 s="".concat(us,".g").concat(r,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),n+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(fs)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return sl(e)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(la(la({},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 gl(r):t?new ml(r):new hl(r)}(this.options),new nl(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(sl(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(sl(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(sl(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),xl=/&/g,Sl=/^\s*\/\/.*$/gm;function El(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=El(e.children,t)),e}))}function Cl(e){var t,r,n,o=void 0===e?vs:e,i=o.options,a=void 0===i?vs:i,s=o.plugins,l=void 0===s?bs:s,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=l.slice();c.push((function(e){e.type===ha&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(xl,r).replace(n,u))})),a.prefix&&c.push(ss),c.push(as);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var l=e.replace(Sl,""),u=Qa(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=El(u,a.namespace));var d,p=[];return is(u,function(e){var t=Pa(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||rl(15),Ps(e,t.name)}),Ls).toString():"",d}var wl=new yl,Rl=Cl(),Al=x.createContext({shouldForwardProp:void 0,styleSheet:wl,stylis:Rl});Al.Consumer;var Il=x.createContext(void 0);function Dl(){return w(Al)}function Ll(e){var t=E(e.stylisPlugins),r=t[0],n=t[1],o=Dl().styleSheet,i=S((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=S((function(){return Cl({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);C((function(){ca(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var s=S((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(Al.Provider,{value:s},x.createElement(Il.Provider,{value:a},e.children))}var Pl=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Rl);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,tl(this,(function(){throw rl(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Rl),this.name+e.hash},e}(),Ml=function(e){return e>="A"&&e<="Z"};function _l(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Ml(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Tl=function(e){return null==e||!1===e||""===e},kl=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Tl(i)&&(Array.isArray(i)&&i.isCss||Ks(i)?n.push("".concat(_l(o),":"),i,";"):Qs(i)?n.push.apply(n,ua(ua(["".concat(o," {")],kl(i),!1),["}"],!1)):n.push("".concat(_l(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in ls||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ol(e,t,r,n){return Tl(e)?[]:Xs(e)?[".".concat(e.styledComponentId)]:Ks(e)?!Ks(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Ol(e(t),t,r,n):e instanceof Pl?r?(e.inject(r,n),[e.getName(n)]):[e]:Qs(e)?kl(e):Array.isArray(e)?Array.prototype.concat.apply(bs,e.map((function(e){return Ol(e,t,r,n)}))):[e.toString()];var o}function ql(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ks(r)&&!Xs(r))return!1}return!0}var Nl=Ms(ps),Fl=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&ql(e),this.componentId=t,this.baseHash=Ps(Nl,t),this.baseStyle=r,yl.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=Js(n,this.staticRulesId);else{var o=Zs(Ol(this.rules,e,t,r)),i=Is(Ps(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=Js(n,i),this.staticRulesId=i}else{for(var s=Ps(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=Zs(Ol(c,e,t,r));s=Ps(s,d+u),l+=d}}if(l){var p=Is(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=Js(n,p)}}return n},e}(),zl=x.createContext(void 0);zl.Consumer;var jl={};new Set;function $l(e,t,r){var n=Xs(e),o=e,i=!Ts(e),a=t.attrs,s=void 0===a?bs:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":Cs(e);jl[r]=(jl[r]||0)+1;var n="".concat(r,"-").concat(_s(ps+r+jl[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return Ts(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Cs(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,m=t.shouldForwardProp;if(n&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new Fl(r,p,n?o.componentStyle:void 0);function v(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=x.useContext(zl),c=Dl(),d=e.shouldForwardProp||c.shouldForwardProp,p=ys(t,u,i)||vs,f=function(e,t,r){for(var n,o=la(la({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Ks(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?Js(o[s],a[s]):"style"===s?la(la({},o[s]),a[s]):a[s]}return t.className&&(o.className=Js(o.className,t.className)),o}(n,t,p),m=f.as||l,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var r=Dl();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=Js(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[Ts(m)&&!xs.has(m)?"class":"className"]=v,h.ref=r,R(m,h)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=n?Js(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)el(e,o[n],!0);return e}({},o.defaultProps,e):e}}),tl(y,(function(){return".".concat(y.styledComponentId)})),i&&Ys(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Bl(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 Hl=function(e){return Object.assign(e,{isCss:!0})};function Wl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ks(e)||Qs(e))return Hl(Ol(Bl(bs,ua([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ol(n):Hl(Ol(Bl(n,t)))}function Gl(e,t,r){if(void 0===r&&(r=vs),!t)throw rl(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Wl.apply(void 0,ua([n],o,!1)))};return n.attrs=function(n){return Gl(e,t,la(la({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Gl(e,t,la(la({},r),n))},n}var Vl=function(e){return Gl($l,e)},Ul=Vl;xs.forEach((function(e){Ul[e]=Vl(e)}));var Yl=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ql(e),yl.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Zs(Ol(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&&yl.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Kl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Wl.apply(void 0,ua([e],t,!1)),o="sc-global-".concat(_s(JSON.stringify(n))),i=new Yl(n,o),a=function(e){var t=Dl(),r=x.useContext(zl),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,gs,r,o);else{var s=la(la({},t),{theme:ys(t,n,a.defaultProps)});i.renderStyles(e,s,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};return x.memo(a)}function Xl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Zs(Wl.apply(void 0,ua([e],t,!1))),o=_s(n);return new Pl(o,n)}var Jl={exports:{}};function Zl(){}function Ql(){}Ql.resetWarningCache=Zl;Jl.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:Ql,resetWarningCache:Zl};return r.PropTypes=r,r}();var eu=rr(Jl.exports);function tu(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}tu.propTypes={children:eu.node,injectFirst:eu.bool};const ru=Kl((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 nu=ru;
|
|
11
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},Dn({exports:{}});var Fn={exports:{}};self,Fn.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>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 s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function L(e){return void 0===e}function P(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]=L(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(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){_(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!_(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);_(i,a)||P(t,o)||(L(a)?n.push({op:"add",path:s,value:i}):D(i)&&D(a)?n=n.concat(A.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&L(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(_(t,o))return n;if(!L(t[0])&&L(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!P(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return 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&&!P(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);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,O=function(e,r,n){if(!e)return Promise.resolve();var o=T.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var k="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===k)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===k)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,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=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(k))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var j="movingAverage";function $(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 B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===j)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={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,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var G="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===G)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===G)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=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(G))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t,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:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.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){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const De=Ie;function Le(e){return Le="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},Le(e)}var Pe={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Pe,apply:Te,applyModifiers:Oe,cleanUpMeasure:ke,destroy:function(e){e&&_e[e.id]&&_e[e.id].masterItemSubscriber&&(_e[e.id].masterItemSubscriber&&_e[e.id].masterItemSubscriber.unsubscribe(),delete _e[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Pe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Pe[e]&&Pe[e].isApplicable({properties:r,layout:n})}))},measureBase: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=je(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var _e={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;_e[r.id]=_e[r.id]||{isFirstTime:!0};var u=_e[r.id].isFirstTime;if(_e[r.id].isFirstTime=!1,n&&"object"===Le(n))return Oe({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[r.id].lastReloadTime;if(_e[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 Ue({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;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"===Le(e)&&!e.disabled){if(r++,"object"!==Le(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Oe({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(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 ke(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function Oe(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return ke(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(r)||De.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(s++,"object"!==Le(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Pe[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Pe[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Pe[n.type].updateModifier&&Pe[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Pe[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),He(r)):ke(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function ke(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!Pe[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:r,layout:n})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Pe[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Pe[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(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 He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!Pe[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 Ge(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!Ge(t)&&Ue({modifiers:je(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!Pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=Pe[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):O(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&Pe[e.type]&&Pe[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=je(t);if(Ue({modifiers:n,properties:e})){var i=Ge(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var s=i.getValue(e,"qLayoutExclude.quarantine");s[r]||(s[r]={}),s[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function I(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 L=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},P=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},_=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},O=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},k=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=w(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=w(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},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},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return I(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 I(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)?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.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return 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=[],s.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},H=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 G={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:l}),h({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=l.defaultDimension,R=void 0===w?_():w,A=l.defaultMeasure,I=void 0===A?T():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),O({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),k({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),P("qMaxStackedCells",b,v),P("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),L(g,t,n),h.qProperty=g;var D=i.getValue(c||{},"support.modifiers");return H({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 U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!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],s=t.length;if(U(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||s,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 se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?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,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(s,r.properties.measureAxes[t[0].axis])):E()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",De="measures",Le="qDef.conditionalColoring";const Pe={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:De,itemPath:Le})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Le,arrayName:De,quarantineName:Ie})}};var Me="qHyperCubeDef.qMeasures",_e="measures",Te="qHyperCubeDef.qDimensions",Oe="dimensions",ke="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Me,quarantineName:je,arrayName:_e,itemPath:ze}),we({properties:e,arrayPath:Te,quarantineName:je,arrayName:Oe,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:je,arrayName:_e,itemPath:ze}),Re({properties:e,arrayPath:Te,quarantineName:je,arrayName:Oe,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:ke,quarantineName:je,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:ke,quarantineName:je,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:G,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Pe,conditionalShow:$e}})(),n.default})();var zn=rr(Fn.exports);const jn="qHyperCubeDef.qDimensions",$n="dimensions",Bn="qDef.representation",Hn="tableRepresentation",Wn=(e,t,r)=>{const n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{var n;const o=t.length,i=e<o?t[e]:r[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(n=a.pixels)&&void 0!==n?n:br.PixelsDefault:-1})(r,e,t)));return o},Gn=({propertyTree:e,hyperCubePath:t})=>{const r=zn.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=Wn(o,i,n);return Pn(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),zn.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),zn.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),zn.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{zn.quarantineArrayProp({properties:e,arrayPath:jn,itemPath:Bn,arrayName:$n,quarantineName:Hn})})(r.properties),r};const Vn=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];i.qDef.columnWidth=-1===e?{type:vr.FitToContent}:{type:vr.Pixels,pixels:e}}return i},Un=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{const a=zn.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});zn.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{zn.unquarantineArrayProp({properties:e,arrayPath:jn,itemPath:Bn,arrayName:$n,quarantineName:Hn})})(a.qProperty);const{qHyperCubeDef:{qDimensions:s,qMeasures:l,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=(null==r?void 0:r.length)===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>Vn(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>Vn(t,e,n,o)))}})(s,l,u,c);return Array.isArray(c)&&c.length>0&&(Pn(a,"qProperty.qHyperCubeDef.qDimensions",d),Pn(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(Pn(a,"qProperty.totals.show",!1),Pn(a,"qProperty.usePagination",!0)),zn.conditionalShow.unquarantine(a.qProperty),a};var Yn={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function Kn(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function Xn(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function Jn(e){return e>0?0:1}function Zn(e){return e.translator.get("Visualizations.Descriptions.Column")}function Qn(e){return{measures:{min:Jn,max:1e3,description:()=>Zn(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;Kn(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;Xn(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:Jn,max:1e3,description:()=>Zn(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return Kn(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;Xn(o,n)}}}}var eo,to={};eo=to,(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{default:()=>Me});var e=r(229),t=r.n(e);const o=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function L(e){return void 0===e}function P(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]=L(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(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){_(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!_(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);_(i,a)||P(t,o)||(L(a)?n.push({op:"add",path:s,value:i}):D(i)&&D(a)?n=n.concat(A.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&L(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(_(t,o))return n;if(!L(t[0])&&L(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!P(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return 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&&!P(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);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,O=function(e,r,n){if(!e)return Promise.resolve();var o=T.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var k="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===k)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===k)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,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=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(k))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var j="movingAverage";function $(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 B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===j)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={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,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var G="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===G)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===G)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=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(G))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t,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:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(o(e,ve,i(e,be)),o(e,xe,i(e,ye)),o(e,Ce,i(e,Se)),o(e,we,i(e,Ee)))},restoreBase:function(e){Ie.isValid(e)&&(o(e,be,i(e,ve)),o(e,ye,i(e,xe)),o(e,Se,i(e,Ce)),o(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&o(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const De=Ie;function Le(e){return Le="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},Le(e)}var Pe={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Pe,apply:Te,applyModifiers:Oe,cleanUpMeasure:ke,destroy:function(e){e&&_e[e.id]&&_e[e.id].masterItemSubscriber&&(_e[e.id].masterItemSubscriber&&_e[e.id].masterItemSubscriber.unsubscribe(),delete _e[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Pe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Pe[e]&&Pe[e].isApplicable({properties:r,layout:n})}))},measureBase: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=je(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var _e={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;_e[r.id]=_e[r.id]||{isFirstTime:!0};var u=_e[r.id].isFirstTime;if(_e[r.id].isFirstTime=!1,n&&"object"===Le(n))return Oe({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[r.id].lastReloadTime;if(_e[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.model,o=e.lastReloadTime;return i(n,"app.layout.qLastReloadTime")!==o&&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 Ue({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;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"===Le(e)&&!e.disabled){if(r++,"object"!==Le(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Oe({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(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 ke(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function Oe(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return ke(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(r)||De.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(s++,"object"!==Le(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Pe[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Pe[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Pe[n.type].updateModifier&&Pe[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Pe[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),He(r)):ke(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function ke(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!Pe[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:r,layout:n})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Pe[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Pe[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(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 He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!Pe[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 Ge(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!Ge(t)&&Ue({modifiers:je(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!Pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=Pe[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):O(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&Pe[e.type]&&Pe[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=je(t);if(Ue({modifiers:n,properties:e})){var i=Ge(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),eo.default=n.default,Object.defineProperty(eo,"__esModule",{value:!0})})();var ro=rr(to);const no=(e,t)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",options(){const r=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&r.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),r}}},oo=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},io=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},ao=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5715_LINKS"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=n&&null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:no(a,i),...oo(i),...io(a)}},so=e=>{var t,r;const{flags:n,anything:o}=e,i=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:i?{uses:"measureRepresentationItems.representationType",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0}},lo={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},uo=e=>{var t,r,n,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!ro.hasActiveModifiers({measures:[e],properties:t.properties})||ro.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(n=e.anything)&&void 0!==n&&null!==(n=n.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))}},co={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:vr.Auto,translation:"Common.Auto"},{value:vr.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:vr.Pixels,translation:"Object.Table.Column.Pixels"},{value:vr.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:vr.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===vr.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(br.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===vr.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(br.PercentageMax,e.qDef.columnWidth.percentage))}}},po={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellColoring:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]},...lo,...co},fo={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},mo=e=>({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},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:uo(e)}),ho=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:fo},presentation:{type:"items",translation:"properties.presentation",items:{...po,...ao(e)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:mo(e)},presentation:{type:"items",translation:"properties.presentation",items:{...po,...so(e)}}}}}}),go=e=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},rowHeightSection:{show:()=>e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),component:"panel-section",translation:"ThemeStyleEditor.style.rowHeight",items:{rowHeightItem:{component:"items",ref:"components",key:"theme",items:{rowHeightWrapper:{ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,change(e){""!==e.content.rowHeight&&null!==e.content.rowHeight&&void 0!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):e.content.rowHeight=void 0}}}}}},hoverEffectSection:{translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]}),bo=e=>{var t,r;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals"))}},vo={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},yo=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[go(e),bo(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...vo}}),xo={uses:"sorting"},So={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Eo=e=>({type:"items",component:"accordion",items:{data:ho(e),sorting:xo,addOns:So,settings:yo(e)}});function Co(e){return{definition:Eo(e),exploration:Yn,data:Qn(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0},importProperties(e,t,r,n){const o={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return Un({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o})},exportProperties:(e,t)=>Gn({propertyTree:e,hyperCubePath:t})}}const wo=(e,r)=>t((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{const i=n?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=e[n?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...r})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([l],!0)})(e,r)),[e,r]),Ro=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{});let Ao;const Io=new Uint8Array(16);function Do(){if(!Ao&&(Ao="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ao))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ao(Io)}const Lo=[];for(let e=0;e<256;++e)Lo.push((e+256).toString(16).slice(1));var Po={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Mo(e,t,r){if(Po.randomUUID&&!t&&!e)return Po.randomUUID();const n=(e=e||{}).random||(e.rng||Do)();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 Lo[e[t+0]]+Lo[e[t+1]]+Lo[e[t+2]]+Lo[e[t+3]]+"-"+Lo[e[t+4]]+Lo[e[t+5]]+"-"+Lo[e[t+6]]+Lo[e[t+7]]+"-"+Lo[e[t+8]]+Lo[e[t+9]]+"-"+Lo[e[t+10]]+Lo[e[t+11]]+Lo[e[t+12]]+Lo[e[t+13]]+Lo[e[t+14]]+Lo[e[t+15]]}(n)}const _o=()=>{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:Mo()},To=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:_o()};function Oo(e){return Oo="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},Oo(e)}function ko(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function No(e,t,r){return t&&qo(e.prototype,t),r&&qo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jo(e,t)}function zo(e){return zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zo(e)}function jo(e,t){return jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jo(e,t)}function $o(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Bo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=zo(e);if(t){var o=zo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return $o(this,r)}}function Ho(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wo(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}var Go={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:Vo(e),value:Vo(t),useEqualSign:r}}(r,o,i))}})),t}};function Vo(e){try{return decodeURIComponent(e)}catch(t){return e}}function Uo(e){if(!(this instanceof Uo))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return Go.fromSearchString(t.search)}}})}function Yo(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}Uo.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},Uo.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=Yo((t=e[n]).key),t.value?r+="=".concat(Yo(t.value)):r+=t.useEqualSign?"=":"";return r};var Ko,Xo=function(){function e(t){ko(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return No(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),Jo=function(){function e(){ko(this,e)}return No(e,[{key:"decode",value:function(e){for(var t,r="",n=new Xo(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),Zo=function(e){return e>=0&&e<=1114111},Qo=function(e){return e.match(/[\s]/)},ei=function(e){Fo(r,Jo);var t=Bo(r);function r(){return ko(this,r),t.apply(this,arguments)}return No(r,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!Qo(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return Zo(a)?String.fromCharCode(a):"�"}}]),r}(),ti=function(){function e(t,r){ko(this,e),this._key=t,this._value=r}return No(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}]),e}(),ri=function(){function e(){ko(this,e)}return No(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return ti.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return ti.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||ti.newInstanceIfNeeded(e,t,this._value)}}]),e}(),ni=function(){function e(){ko(this,e),this.clear()}return No(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new ri);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),oi=function(){var e,t,r,n=[],o=[],i=new ni;for(e in n["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["¬in"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),ii=function(e){Fo(r,Jo);var t=Bo(r);function r(){return ko(this,r),t.apply(this,arguments)}return No(r,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,oi.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=oi.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&Zo(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&Zo(n)?String.fromCharCode(n):null}}]),r}(),ai=function(e){Fo(r,Jo);var t=Bo(r);function r(){return ko(this,r),t.apply(this,arguments)}return No(r,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),Zo(o))?String.fromCharCode(o):(e.reset(),null)}}]),r}(),si=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(Ko=document.createElement("div"));var li=Array.prototype.indexOf,ui=[",",".","_"," "],ci={default:[",",".","-","_"," "]},di={width:["%"],height:["%"]},pi={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},fi={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":pi.image,"background-color":pi.color,"border-color":pi.color,"border-image":pi.image,color:pi.color,icon:pi.image,"list-style-image":pi.image,"outline-color":pi.color},mi={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function hi(e,t,r){var n;if(t){if(li)return li.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function gi(e){if(null==e)return"";var t,r=document.createTextNode(e);return Ko.appendChild(r),t=Ko.innerHTML,Ko.removeChild(r),t}function bi(e,t,r){var n,o,i,a,s,l,u,c,d;if(e=yi(e).toLowerCase(),t=yi(t),hi(e,mi.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<mi.attr_val;i++)if(t.toLowerCase().match(mi.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=di[e])||(n=ci.default),o="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&hi(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function vi(e,t,r){var n,o,i,a,s,l,u,c,d,p;if(e=yi(e).toLowerCase(),t=yi(t),hi(e,mi.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<mi.css_val.length;n++)if(t.toLowerCase().indexOf(mi.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=fi[e])||(o=pi.default),i="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&hi(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function yi(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var s=[new ii,new ai,new ei];!a;){n=r;for(var l=0;l<s.length;l++)(i=s[l].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var xi=[],Si=0;Si<255;Si++)xi[Si]=Si>=48&&Si<=57||Si>=65&&Si<=90||Si>=97&&Si<=122?null:Si.toString(16);var Ei=function(e){return gi(e.unsafe)},Ci=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=vi(t,r[t],!0),i+=vi(t,r[t],!0),o[t]=n[t]);return e.map?o:i},wi=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=bi(i,t[i],!0),o+=bi(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function Ri(e,t){throw new Error(t)}var Ai={canonicalize:yi,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===Oo(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?Ei(e):"css"===e.context?(null!=e.map&&"object"!==Oo(e.map)&&Ri(this,"Invalid parameter type"),Ci(e)):"attr"===e.context?(null!=e.map&&"object"!==Oo(e.map)&&Ri(this,"Invalid parameter type"),wi(e)):void Ri(this,"Invalid parameter type")},encodeForAttr:bi,encodeForAttr2:function(e){return bi("nonsens",e,!0)},encodeForCSS:vi,encodeForHref:function(e){yi(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new Uo(e),r=Uo.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+Uo.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,s;for(t||(t=ui),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),hi(o,t)>=0||null==xi[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),s+="\\u".concat(a).concat(n.toUpperCase())));return s},encodeForHTML:gi,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=yi(t).toLowerCase():Ri(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,s=function(e){var t,r=Ho(null!==(t=si.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),l=s.mimeType,u=s.encoding,c=s.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(l,u,c);return"image/svg+xml"===l?d<=o:d<=a}};const Ii=(e,t)=>{var r;const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==n||null===(r=n.qValues)||void 0===r?void 0:r[e]},Di=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}};let Li=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),Pi=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const Mi=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&Ai.isSafeDataURL(t)?{type:Li.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Di(n)}:{type:Li.Text,url:void 0,text:e},_i=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===Pi.Attribute||null==r?void 0:r.urlLabel},Ti=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:Li.Link,url:Ai.encodeForHref(t),text:e}}catch(t){return{type:Li.Text,url:void 0,text:e}}},Oi=(e,t,r,n)=>{var o,i;const a=(e=>{switch(null==e?void 0:e.type){case"url":return Li.Link;case"image":return Li.Image;default:return Li.Text}})(t);return a!==Li.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=n.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===Li.Link&&n.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,r)=>{const{urlPosition:n}=null!=t?t:{};if(n===Pi.Attribute){var o;const n=_i(null!==(o=r.url)&&void 0!==o?o:-1,e,t),i=e.qText||n||"";return Ti({text:i,url:n})}if(n===Pi.Dimension){var i;const n=_i(null!==(i=r.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return Ti({text:n,url:e.qText})}return{type:Li.Text,url:void 0,text:e.qText}})(e,t,r):{type:Li.Text,url:void 0,text:e.qText}:((e,t,r)=>{const{imageSize:n,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var s,l;const t=e.qText,i=null===(s=Ii(null!==(l=r.imageUrl)&&void 0!==l?l:-1,e))||void 0===s?void 0:s.qText;return Mi({text:t,url:i,imageSize:n,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===r.imageLabel)return Mi({text:a||t||"",url:t,imageSize:n,imagePosition:o});const i=null!==(u=null===(c=Ii(null!==(d=r.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return Mi({text:i,url:t,imageSize:n,imagePosition:o})}return{type:Li.Text,url:void 0,text:e.qText}})(e,t,r)},ki=e=>!Number.isNaN(+e),qi=e=>!(!e.qNum&&0!==e.qNum||!ki(e.qNum)),Ni=1e4;function Fi(e,t){return[...t].reverse().find((t=>t*e<=Ni))||Math.floor(Ni/e)}function zi(e,t){var r,n;if(null!==(r=t.viewState)&&void 0!==r&&r.skipTotals)return{atTop:!1,atBottom:!1};const[o,i,a,s,l]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(n=e.totals)||void 0===n?void 0:n.show,e.totals.position];if(a&&(o&&i||!s&&!o)){if(s||"top"===l)return{atTop:!0,atBottom:!1};if(!s&&"bottom"===l)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function ji(e,t,r,n){var o,i,a;return t?0===r&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[n])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function $i(e,t){const r=e.qHyperCube.qGrandTotalRow[t];return ki(null==r?void 0:r.qNum)}function Bi(e,t,r){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}}const Hi=(e,t)=>"auto"!==t?t:qi(e)?"right":"left";const Wi=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:r,qMeasureInfo:n}}=e,o=r.length+n.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:s}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const s=e<n,{qError:l}=s?t[e]:r[e-n],u=7005===(null==l?void 0:l.qErrorCode);return u?s?i++:a++:o[e]=s?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(i,r,n);return a.map(((t,r)=>function(e,t,r,n){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,s=o.length,l=t<s,u=l?o[t]:i[t-s],c=t===a[0];let d,p=0,f="",m=!1,h=-1;const{representation:g}=u;if(l){const e=u;p=e.qGroupPos,f=e.qGroupFieldDefs[p],m=e.qLocked,h=n,({qDimensionType:d}=e)}const{qFallbackTitle:b,textAlign:v,qAttrExprInfo:y,qSortIndicator:x,qReverseSort:S,qApprMaxGlyphCount:E,columnWidth:C,qLibraryId:w}=u;return{isDim:l,isLocked:m,fieldId:f,colIdx:t,qLibraryId:w,pageColIdx:r,qApprMaxGlyphCount:E,qReverseSort:S,columnWidth:C,selectionColIdx:h,isActivelySorted:c,id:To(u),label:b,qAttrExprInfoIDs:y.map((e=>e.id)),qAttrExprInfoIndex:Ro(u),sortDirection:x&&"N"!==x?x:"A",totalInfo:ji(e,l,r,n),...!l&&{isTotalNumeric:$i(e,n)},...Bi(v,d,l),representation:g}}(e,t,r,s[t])))};const Gi=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},Vi=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Gi(e,t)};var Ui={exports:{}},Yi={},Ki=x,Xi=Symbol.for("react.element"),Ji=Symbol.for("react.fragment"),Zi=Object.prototype.hasOwnProperty,Qi=Ki.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ea={key:!0,ref:!0,__self:!0,__source:!0};function ta(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)Zi.call(t,n)&&!ea.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:Xi,type:e,key:i,ref:a,props:o,_owner:Qi.current}}Yi.Fragment=Ji,Yi.jsx=ta,Yi.jsxs=ta,Ui.exports=Yi;var ra=Ui.exports;function na(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 oa=Object.freeze({__proto__:null,default:na}),ia="$$material";function aa(){return aa=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},aa.apply(this,arguments)}function sa(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var la=function(){return la=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},la.apply(this,arguments)};function ua(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 ca=rr((function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=r?r.call(n,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),da="-ms-",pa="-moz-",fa="-webkit-",ma="comm",ha="rule",ga="decl",ba="@media",va="@import",ya="@supports",xa="@keyframes",Sa="@layer",Ea=Math.abs,Ca=String.fromCharCode,wa=Object.assign;function Ra(e){return e.trim()}function Aa(e,t){return(e=t.exec(e))?e[0]:e}function Ia(e,t,r){return e.replace(t,r)}function Da(e,t,r){return e.indexOf(t,r)}function La(e,t){return 0|e.charCodeAt(t)}function Pa(e,t,r){return e.slice(t,r)}function Ma(e){return e.length}function _a(e){return e.length}function Ta(e,t){return t.push(e),e}function Oa(e,t){return e.filter((function(e){return!Aa(e,t)}))}var ka=1,qa=1,Na=0,Fa=0,za=0,ja="";function $a(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ka,column:qa,length:a,return:"",siblings:s}}function Ba(e,t){return wa($a("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ha(e){for(;e.root;)e=Ba(e.root,{children:[e]});Ta(e,e.siblings)}function Wa(){return za=Fa>0?La(ja,--Fa):0,qa--,10===za&&(qa=1,ka--),za}function Ga(){return za=Fa<Na?La(ja,Fa++):0,qa++,10===za&&(qa=1,ka++),za}function Va(){return La(ja,Fa)}function Ua(){return Fa}function Ya(e,t){return Pa(ja,e,t)}function Ka(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 Xa(e){return Ra(Ya(Fa-1,Qa(91===e?e+2:40===e?e+1:e)))}function Ja(e){for(;(za=Va())&&za<33;)Ga();return Ka(e)>2||Ka(za)>3?"":" "}function Za(e,t){for(;--t&&Ga()&&!(za<48||za>102||za>57&&za<65||za>70&&za<97););return Ya(e,Ua()+(t<6&&32==Va()&&32==Ga()))}function Qa(e){for(;Ga();)switch(za){case e:return Fa;case 34:case 39:34!==e&&39!==e&&Qa(za);break;case 40:41===e&&Qa(e);break;case 92:Ga()}return Fa}function es(e,t){for(;Ga()&&e+za!==57&&(e+za!==84||47!==Va()););return"/*"+Ya(t,Fa-1)+"*"+Ca(47===e?e:Ga())}function ts(e){for(;!Ka(Va());)Ga();return Ya(e,Fa)}function rs(e){return function(e){return ja="",e}(ns("",null,null,null,[""],e=function(e){return ka=qa=1,Na=Ma(ja=e),Fa=0,[]}(e),0,[0],e))}function ns(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=Ga()){case 40:if(108!=m&&58==La(C,d-1)){-1!=Da(C+=Ia(Xa(v),"&","&\f"),"&\f",Ea(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Xa(v);break;case 9:case 10:case 13:case 32:C+=Ja(m);break;case 92:C+=Za(Ua()-1,7);continue;case 47:switch(Va()){case 42:case 47:Ta(is(es(Ga(),Ua()),t,r,l),l);break;default:C+="/"}break;case 123*h:s[u++]=Ma(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Ia(C,/\f/g,"")),f>0&&Ma(C)-d&&Ta(f>32?as(C+";",n,r,d-1,l):as(Ia(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(Ta(E=os(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)ns(C,t,E,E,x,i,d,s,S);else switch(99===p&&110===La(C,3)?100:p){case 100:case 108:case 109:case 115:ns(e,E,E,n&&Ta(os(e,E,E,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:ns(C,E,E,E,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+Ma(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Wa())continue;switch(C+=Ca(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Ma(C)-1)*b,b=1;break;case 64:45===Va()&&(C+=Xa(Ga())),p=Va(),c=d=Ma(y=C+=ts(Ua())),v++;break;case 45:45===m&&2==Ma(C)&&(h=0)}}return i}function os(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],m=_a(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=Pa(e,p+1,p=Ea(g=a[h])),x=e;v<m;++v)(x=Ra(g>0?f[v]+" "+y:Ia(y,/&\f/g,f[v])))&&(l[b++]=x);return $a(e,t,r,0===o?ha:s,l,u,c,d)}function is(e,t,r,n){return $a(e,t,r,ma,Ca(za),Pa(e,2,-2),0,n)}function as(e,t,r,n,o){return $a(e,t,r,ga,Pa(e,0,n),Pa(e,n+1,-1),n,o)}function ss(e,t,r){switch(function(e,t){return 45^La(e,0)?(((t<<2^La(e,0))<<2^La(e,1))<<2^La(e,2))<<2^La(e,3):0}(e,t)){case 5103:return fa+"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 fa+e+e;case 4789:return pa+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fa+e+pa+e+da+e+e;case 5936:switch(La(e,t+11)){case 114:return fa+e+da+Ia(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fa+e+da+Ia(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fa+e+da+Ia(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return fa+e+da+e+e;case 6165:return fa+e+da+"flex-"+e+e;case 5187:return fa+e+Ia(e,/(\w+).+(:[^]+)/,fa+"box-$1$2"+da+"flex-$1$2")+e;case 5443:return fa+e+da+"flex-item-"+Ia(e,/flex-|-self/g,"")+(Aa(e,/flex-|baseline/)?"":da+"grid-row-"+Ia(e,/flex-|-self/g,""))+e;case 4675:return fa+e+da+"flex-line-pack"+Ia(e,/align-content|flex-|-self/g,"")+e;case 5548:return fa+e+da+Ia(e,"shrink","negative")+e;case 5292:return fa+e+da+Ia(e,"basis","preferred-size")+e;case 6060:return fa+"box-"+Ia(e,"-grow","")+fa+e+da+Ia(e,"grow","positive")+e;case 4554:return fa+Ia(e,/([^-])(transform)/g,"$1"+fa+"$2")+e;case 6187:return Ia(Ia(Ia(e,/(zoom-|grab)/,fa+"$1"),/(image-set)/,fa+"$1"),e,"")+e;case 5495:case 3959:return Ia(e,/(image-set\([^]*)/,fa+"$1$`$1");case 4968:return Ia(Ia(e,/(.+:)(flex-)?(.*)/,fa+"box-pack:$3"+da+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fa+e+e;case 4200:if(!Aa(e,/flex-|baseline/))return da+"grid-column-align"+Pa(e,t)+e;break;case 2592:case 3360:return da+Ia(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Aa(e.props,/grid-\w+-end/)}))?~Da(e+(r=r[t].value),"span",0)?e:da+Ia(e,"-start","")+e+da+"grid-row-span:"+(~Da(r,"span",0)?Aa(r,/\d+/):+Aa(r,/\d+/)-+Aa(e,/\d+/))+";":da+Ia(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Aa(e.props,/grid-\w+-start/)}))?e:da+Ia(Ia(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ia(e,/(.+)-inline(.+)/,fa+"$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(Ma(e)-1-t>6)switch(La(e,t+1)){case 109:if(45!==La(e,t+4))break;case 102:return Ia(e,/(.+:)(.+)-([^]+)/,"$1"+fa+"$2-$3$1"+pa+(108==La(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Da(e,"stretch",0)?ss(Ia(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ia(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return da+r+":"+n+s+(o?da+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===La(e,t+6))return Ia(e,":",":"+fa)+e;break;case 6444:switch(La(e,45===La(e,14)?18:11)){case 120:return Ia(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+fa+(45===La(e,14)?"inline-":"")+"box$3$1"+fa+"$2$3$1"+da+"$2box$3")+e;case 100:return Ia(e,":",":"+da)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ia(e,"scroll-","scroll-snap-")+e}return e}function ls(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function us(e,t,r,n){switch(e.type){case Sa:if(e.children.length)break;case va:case ga:return e.return=e.return||e.value;case ma:return"";case xa:return e.return=e.value+"{"+ls(e.children,n)+"}";case ha:if(!Ma(e.value=e.props.join(",")))return""}return Ma(r=ls(e.children,n))?e.return=e.value+"{"+r+"}":""}function cs(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ga:return void(e.return=ss(e.value,e.length,r));case xa:return ls([Ba(e,{value:Ia(e.value,"@","@"+fa)})],n);case ha:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Aa(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ha(Ba(e,{props:[Ia(t,/:(read-\w+)/,":"+pa+"$1")]})),Ha(Ba(e,{props:[t]})),wa(e,{props:Oa(r,n)});break;case"::placeholder":Ha(Ba(e,{props:[Ia(t,/:(plac\w+)/,":"+fa+"input-$1")]})),Ha(Ba(e,{props:[Ia(t,/:(plac\w+)/,":"+pa+"$1")]})),Ha(Ba(e,{props:[Ia(t,/:(plac\w+)/,da+"input-$1")]})),Ha(Ba(e,{props:[t]})),wa(e,{props:Oa(r,n)})}return""}))}}var ds={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},ps="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",fs="active",ms="data-styled-version",hs="6.1.11",gs="/*!sc*/\n",bs="undefined"!=typeof window&&"HTMLElement"in window,vs=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)),ys={},xs=Object.freeze([]),Ss=Object.freeze({});function Es(e,t,r){return void 0===r&&(r=Ss),e.theme!==r.theme&&e.theme||t||r.theme}var Cs=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"]),ws=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Rs=/(^-|-$)/g;function As(e){return e.replace(ws,"-").replace(Rs,"")}var Is=/(a)(d)/gi,Ds=52,Ls=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ps(e){var t,r="";for(t=Math.abs(e);t>Ds;t=t/Ds|0)r=Ls(t%Ds)+r;return(Ls(t%Ds)+r).replace(Is,"$1-$2")}var Ms,_s=5381,Ts=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Os=function(e){return Ts(_s,e)};function ks(e){return Ps(Os(e)>>>0)}function qs(e){return"string"==typeof e&&!0}var Ns="function"==typeof Symbol&&Symbol.for,Fs=Ns?Symbol.for("react.memo"):60115,zs=Ns?Symbol.for("react.forward_ref"):60112,js={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Bs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Hs=((Ms={})[zs]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ms[Fs]=Bs,Ms);function Ws(e){return("type"in(t=e)&&t.type.$$typeof)===Fs?Bs:"$$typeof"in e?Hs[e.$$typeof]:js;var t}var Gs=Object.defineProperty,Vs=Object.getOwnPropertyNames,Us=Object.getOwnPropertySymbols,Ys=Object.getOwnPropertyDescriptor,Ks=Object.getPrototypeOf,Xs=Object.prototype;function Js(e,t,r){if("string"!=typeof t){if(Xs){var n=Ks(t);n&&n!==Xs&&Js(e,n,r)}var o=Vs(t);Us&&(o=o.concat(Us(t)));for(var i=Ws(e),a=Ws(t),s=0;s<o.length;++s){var l=o[s];if(!(l in $s||r&&r[l]||a&&l in a||i&&l in i)){var u=Ys(t,l);try{Gs(e,l,u)}catch(e){}}}}return e}function Zs(e){return"function"==typeof e}function Qs(e){return"object"==typeof e&&"styledComponentId"in e}function el(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function tl(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 rl(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function nl(e,t,r){if(void 0===r&&(r=!1),!r&&!rl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=nl(e[n],t[n]);else if(rl(t))for(var n in t)e[n]=nl(e[n],t[n]);return e}function ol(e,t){Object.defineProperty(e,"toString",{value:t})}function il(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 al=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 il(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(gs);return t},e}(),sl=new Map,ll=new Map,ul=1,cl=function(e){if(sl.has(e))return sl.get(e);for(;ll.has(ul);)ul++;var t=ul++;return sl.set(e,t),ll.set(t,e),t},dl=function(e,t){ul=t+1,sl.set(e,t),ll.set(t,e)},pl="style[".concat(ps,"][").concat(ms,'="').concat(hs,'"]'),fl=new RegExp("^".concat(ps,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ml=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)},hl=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(gs),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(fl);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(dl(c,u),ml(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}};var gl=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ps,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(ps,fs),n.setAttribute(ms,hs);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},bl=function(){function e(e){this.element=gl(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 il(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}(),vl=function(){function e(e){this.element=gl(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}(),yl=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}(),xl=bs,Sl={isServer:!bs,useCSSOMInjection:!vs},El=function(){function e(e,t,r){void 0===e&&(e=Ss),void 0===t&&(t={});var n=this;this.options=la(la({},Sl),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&bs&&xl&&(xl=!1,function(e){for(var t=document.querySelectorAll(pl),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(ps)!==fs&&(hl(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),ol(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return ll.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 s="".concat(ps,".g").concat(r,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),n+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(gs)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return cl(e)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(la(la({},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 yl(r):t?new bl(r):new vl(r)}(this.options),new al(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(cl(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(cl(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(cl(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Cl=/&/g,wl=/^\s*\/\/.*$/gm;function Rl(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=Rl(e.children,t)),e}))}function Al(e){var t,r,n,o=void 0===e?Ss:e,i=o.options,a=void 0===i?Ss:i,s=o.plugins,l=void 0===s?xs:s,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=l.slice();c.push((function(e){e.type===ha&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Cl,r).replace(n,u))})),a.prefix&&c.push(cs),c.push(us);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var l=e.replace(wl,""),u=rs(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=Rl(u,a.namespace));var d,p=[];return ls(u,function(e){var t=_a(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||il(15),Ts(e,t.name)}),_s).toString():"",d}var Il=new El,Dl=Al(),Ll=x.createContext({shouldForwardProp:void 0,styleSheet:Il,stylis:Dl});Ll.Consumer;var Pl=x.createContext(void 0);function Ml(){return w(Ll)}function _l(e){var t=E(e.stylisPlugins),r=t[0],n=t[1],o=Ml().styleSheet,i=S((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=S((function(){return Al({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);C((function(){ca(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var s=S((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(Ll.Provider,{value:s},x.createElement(Pl.Provider,{value:a},e.children))}var Tl=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Dl);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,ol(this,(function(){throw il(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Dl),this.name+e.hash},e}(),Ol=function(e){return e>="A"&&e<="Z"};function kl(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Ol(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var ql=function(e){return null==e||!1===e||""===e},Nl=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!ql(i)&&(Array.isArray(i)&&i.isCss||Zs(i)?n.push("".concat(kl(o),":"),i,";"):rl(i)?n.push.apply(n,ua(ua(["".concat(o," {")],Nl(i),!1),["}"],!1)):n.push("".concat(kl(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in ds||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Fl(e,t,r,n){return ql(e)?[]:Qs(e)?[".".concat(e.styledComponentId)]:Zs(e)?!Zs(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Fl(e(t),t,r,n):e instanceof Tl?r?(e.inject(r,n),[e.getName(n)]):[e]:rl(e)?Nl(e):Array.isArray(e)?Array.prototype.concat.apply(xs,e.map((function(e){return Fl(e,t,r,n)}))):[e.toString()];var o}function zl(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Zs(r)&&!Qs(r))return!1}return!0}var jl=Os(hs),$l=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&zl(e),this.componentId=t,this.baseHash=Ts(jl,t),this.baseStyle=r,El.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=el(n,this.staticRulesId);else{var o=tl(Fl(this.rules,e,t,r)),i=Ps(Ts(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=el(n,i),this.staticRulesId=i}else{for(var s=Ts(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=tl(Fl(c,e,t,r));s=Ts(s,d+u),l+=d}}if(l){var p=Ps(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=el(n,p)}}return n},e}(),Bl=x.createContext(void 0);Bl.Consumer;var Hl={};new Set;function Wl(e,t,r){var n=Qs(e),o=e,i=!qs(e),a=t.attrs,s=void 0===a?xs:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":As(e);Hl[r]=(Hl[r]||0)+1;var n="".concat(r,"-").concat(ks(hs+r+Hl[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return qs(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(As(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,m=t.shouldForwardProp;if(n&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new $l(r,p,n?o.componentStyle:void 0);function v(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=x.useContext(Bl),c=Ml(),d=e.shouldForwardProp||c.shouldForwardProp,p=Es(t,u,i)||Ss,f=function(e,t,r){for(var n,o=la(la({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Zs(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?el(o[s],a[s]):"style"===s?la(la({},o[s]),a[s]):a[s]}return t.className&&(o.className=el(o.className,t.className)),o}(n,t,p),m=f.as||l,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var r=Ml();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=el(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[qs(m)&&!Cs.has(m)?"class":"className"]=v,h.ref=r,R(m,h)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=n?el(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)nl(e,o[n],!0);return e}({},o.defaultProps,e):e}}),ol(y,(function(){return".".concat(y.styledComponentId)})),i&&Js(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Gl(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 Vl=function(e){return Object.assign(e,{isCss:!0})};function Ul(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Zs(e)||rl(e))return Vl(Fl(Gl(xs,ua([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Fl(n):Vl(Fl(Gl(n,t)))}function Yl(e,t,r){if(void 0===r&&(r=Ss),!t)throw il(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Ul.apply(void 0,ua([n],o,!1)))};return n.attrs=function(n){return Yl(e,t,la(la({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Yl(e,t,la(la({},r),n))},n}var Kl=function(e){return Yl(Wl,e)},Xl=Kl;Cs.forEach((function(e){Xl[e]=Kl(e)}));var Jl=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=zl(e),El.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(tl(Fl(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&&El.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Zl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Ul.apply(void 0,ua([e],t,!1)),o="sc-global-".concat(ks(JSON.stringify(n))),i=new Jl(n,o),a=function(e){var t=Ml(),r=x.useContext(Bl),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,ys,r,o);else{var s=la(la({},t),{theme:Es(t,n,a.defaultProps)});i.renderStyles(e,s,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};return x.memo(a)}function Ql(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=tl(Ul.apply(void 0,ua([e],t,!1))),o=ks(n);return new Tl(o,n)}var eu={exports:{}};function tu(){}function ru(){}ru.resetWarningCache=tu;eu.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:ru,resetWarningCache:tu};return r.PropTypes=r,r}();var nu=rr(eu.exports);function ou(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}ou.propTypes={children:nu.node,injectFirst:nu.bool};const iu=Zl((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 au=iu;
|
|
12
12
|
/**
|
|
13
13
|
* @mui/styled-engine-sc v6.0.0-alpha.18
|
|
14
14
|
*
|
|
@@ -16,7 +16,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.le
|
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
18
|
*/
|
|
19
|
-
function ou(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ul(e),r}ru.propTypes={defaultTheme:eu.object,styles:eu.oneOfType([eu.array,eu.string,eu.object,eu.func])};var iu=Object.freeze({__proto__:null,GlobalStyles:nu,StyledEngineProvider:tu,ThemeContext:zl,css:Wl,default:ou,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:Xl});function au(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 su(e){if(!au(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=su(e[r])})),t}function lu(e,t,r={clone:!0}){const n=r.clone?aa({},e):e;return au(e)&&au(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(au(t[o])&&o in e&&au(e[o])?n[o]=lu(e[o],t[o],r):r.clone?n[o]=au(t[o])?su(t[o]):t[o]:n[o]=t[o])})),n}var uu=Object.freeze({__proto__:null,default:lu,isPlainObject:au});const cu=["values","unit","step"],du=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)=>aa({},e,{[t.key]:t.val})),{})};function pu(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=sa(e,cu),i=du(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return aa({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var fu={borderRadius:4};function mu(e,t){return t?lu(e,t,{clone:!1}):e}const hu={xs:0,sm:600,md:900,lg:1200,xl:1536},gu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hu[e]}px)`};function bu(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||gu;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||gu;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||hu).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function vu(e){if("string"!=typeof e)throw new Error(na(7));return e.charAt(0).toUpperCase()+e.slice(1)}var yu=Object.freeze({__proto__:null,default:vu});function xu(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 Su(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:xu(e,r)||n,t&&(o=t(o,n,e)),o}function Eu(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=xu(e.theme,n)||{};return bu(e,i,(e=>{let n=Su(a,o,e);return e===n&&"string"==typeof e&&(n=Su(a,o,`${t}${"default"===e?"":vu(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Cu={m:"margin",p:"padding"},wu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ru={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Au=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Ru[e])return[e];e=Ru[e]}const[t,r]=e.split(""),n=Cu[t],o=wu[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Iu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Du=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Lu(e,t,r,n){var o;const i=null!=(o=xu(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 Pu(e){return Lu(e,"spacing",8)}function Mu(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 _u(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Mu(t,r),e)),{})}(Au(r),n);return bu(e,e[r],o)}function Tu(e,t){const r=Pu(e.theme);return Object.keys(e).map((n=>_u(e,t,n,r))).reduce(mu,{})}function ku(e){return Tu(e,Iu)}function Ou(e){return Tu(e,Du)}function qu(...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]?mu(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Nu(e){return"number"!=typeof e?e:`${e}px solid`}function Fu(e,t){return Eu({prop:e,themeKey:"borders",transform:t})}ku.propTypes={},ku.filterProps=Iu,Ou.propTypes={},Ou.filterProps=Du;const zu=Fu("border",Nu),ju=Fu("borderTop",Nu),$u=Fu("borderRight",Nu),Bu=Fu("borderBottom",Nu),Hu=Fu("borderLeft",Nu),Wu=Fu("borderColor"),Gu=Fu("borderTopColor"),Vu=Fu("borderRightColor"),Uu=Fu("borderBottomColor"),Yu=Fu("borderLeftColor"),Ku=Fu("outline",Nu),Xu=Fu("outlineColor"),Ju=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Lu(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Mu(t,e)});return bu(e,e.borderRadius,r)}return null};Ju.propTypes={},Ju.filterProps=["borderRadius"],qu(zu,ju,$u,Bu,Hu,Wu,Gu,Vu,Uu,Yu,Ju,Ku,Xu);const Zu=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Lu(e.theme,"spacing",8),r=e=>({gap:Mu(t,e)});return bu(e,e.gap,r)}return null};Zu.propTypes={},Zu.filterProps=["gap"];const Qu=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Lu(e.theme,"spacing",8),r=e=>({columnGap:Mu(t,e)});return bu(e,e.columnGap,r)}return null};Qu.propTypes={},Qu.filterProps=["columnGap"];const ec=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Lu(e.theme,"spacing",8),r=e=>({rowGap:Mu(t,e)});return bu(e,e.rowGap,r)}return null};ec.propTypes={},ec.filterProps=["rowGap"];function tc(e,t){return"grey"===t?t:e}qu(Zu,Qu,ec,Eu({prop:"gridColumn"}),Eu({prop:"gridRow"}),Eu({prop:"gridAutoFlow"}),Eu({prop:"gridAutoColumns"}),Eu({prop:"gridAutoRows"}),Eu({prop:"gridTemplateColumns"}),Eu({prop:"gridTemplateRows"}),Eu({prop:"gridTemplateAreas"}),Eu({prop:"gridArea"}));function rc(e){return e<=1&&0!==e?100*e+"%":e}qu(Eu({prop:"color",themeKey:"palette",transform:tc}),Eu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:tc}),Eu({prop:"backgroundColor",themeKey:"palette",transform:tc}));const nc=Eu({prop:"width",transform:rc}),oc=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])||hu[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:rc(t)}};return bu(e,e.maxWidth,t)}return null};oc.filterProps=["maxWidth"];const ic=Eu({prop:"minWidth",transform:rc}),ac=Eu({prop:"height",transform:rc}),sc=Eu({prop:"maxHeight",transform:rc}),lc=Eu({prop:"minHeight",transform:rc});Eu({prop:"size",cssProperty:"width",transform:rc}),Eu({prop:"size",cssProperty:"height",transform:rc});qu(nc,oc,ic,ac,sc,lc,Eu({prop:"boxSizing"}));var uc={border:{themeKey:"borders",transform:Nu},borderTop:{themeKey:"borders",transform:Nu},borderRight:{themeKey:"borders",transform:Nu},borderBottom:{themeKey:"borders",transform:Nu},borderLeft:{themeKey:"borders",transform:Nu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Nu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ju},color:{themeKey:"palette",transform:tc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:tc},backgroundColor:{themeKey:"palette",transform:tc},p:{style:Ou},pt:{style:Ou},pr:{style:Ou},pb:{style:Ou},pl:{style:Ou},px:{style:Ou},py:{style:Ou},padding:{style:Ou},paddingTop:{style:Ou},paddingRight:{style:Ou},paddingBottom:{style:Ou},paddingLeft:{style:Ou},paddingX:{style:Ou},paddingY:{style:Ou},paddingInline:{style:Ou},paddingInlineStart:{style:Ou},paddingInlineEnd:{style:Ou},paddingBlock:{style:Ou},paddingBlockStart:{style:Ou},paddingBlockEnd:{style:Ou},m:{style:ku},mt:{style:ku},mr:{style:ku},mb:{style:ku},ml:{style:ku},mx:{style:ku},my:{style:ku},margin:{style:ku},marginTop:{style:ku},marginRight:{style:ku},marginBottom:{style:ku},marginLeft:{style:ku},marginX:{style:ku},marginY:{style:ku},marginInline:{style:ku},marginInlineStart:{style:ku},marginInlineEnd:{style:ku},marginBlock:{style:ku},marginBlockStart:{style:ku},marginBlockEnd:{style:ku},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:Zu},rowGap:{style:ec},columnGap:{style:Qu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:rc},maxWidth:{style:oc},minWidth:{transform:rc},height:{transform:rc},maxHeight:{transform:rc},minHeight:{transform:rc},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function cc(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=xu(r,s)||{};if(u)return u(o);return bu(o,t,(t=>{let r=Su(c,l,t);return t===r&&"string"==typeof t&&(r=Su(c,l,`${e}${"default"===t?"":vu(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:uc;function s(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[r])l=mu(l,e(r,o,i,a));else{const e=bu({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=mu(l,e):l[r]=t({sx:o,theme:i})}else l=mu(l,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const dc=cc();dc.filterProps=["sx"];var pc=dc;function fc(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}const mc=["breakpoints","palette","spacing","shape"];function hc(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=sa(e,mc),s=pu(r),l=function(e=8){if(e.mui)return e;const t=Pu({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:s,direction:"ltr",components:{},palette:aa({mode:"light"},n),spacing:l,shape:aa({},fu,i)},a);return u.applyStyles=fc,u=t.reduce(((e,t)=>lu(e,t)),u),u.unstable_sxConfig=aa({},uc,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return pc({sx:e,theme:this})},u}var gc=Object.freeze({__proto__:null,default:hc,private_createBreakpoints:pu,unstable_applyStyles:fc});function bc(e=null){const t=y.useContext(zl);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const vc=hc();function yc(e=vc){return bc(e)}const xc=["sx"],Sc=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:uc;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function Ec(e){const{sx:t}=e,r=sa(e,xc),{systemProps:n,otherProps:o}=Sc(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return au(r)?aa({},n,r):n}:aa({},n,t),aa({},o,{sx:i})}var Cc=Object.freeze({__proto__:null,default:pc,extendSxProp:Ec,unstable_createStyleFunctionSx:cc,unstable_defaultSxConfig:uc});const wc=e=>e;var Rc=(()=>{let e=wc;return{configure(t){e=t},generate:t=>e(t),reset(){e=wc}}})();function Ac(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=Ac(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ic(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ac(e))&&(n&&(n+=" "),n+=t);return n}const Dc=["className","component"];const Lc={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 Pc(e,t,r="Mui"){const n=Lc[t];return n?`${r}-${n}`:`${Rc.generate(e)}-${t}`}function Mc(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Pc(e,t,r)})),n}var _c,Tc={exports:{}},kc={},Oc=Symbol.for("react.element"),qc=Symbol.for("react.portal"),Nc=Symbol.for("react.fragment"),Fc=Symbol.for("react.strict_mode"),zc=Symbol.for("react.profiler"),jc=Symbol.for("react.provider"),$c=Symbol.for("react.context"),Bc=Symbol.for("react.server_context"),Hc=Symbol.for("react.forward_ref"),Wc=Symbol.for("react.suspense"),Gc=Symbol.for("react.suspense_list"),Vc=Symbol.for("react.memo"),Uc=Symbol.for("react.lazy"),Yc=Symbol.for("react.offscreen");function Kc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Oc:switch(e=e.type){case Nc:case zc:case Fc:case Wc:case Gc:return e;default:switch(e=e&&e.$$typeof){case Bc:case $c:case Hc:case Uc:case Vc:case jc:return e;default:return t}}case qc:return t}}}_c=Symbol.for("react.module.reference"),kc.ContextConsumer=$c,kc.ContextProvider=jc,kc.Element=Oc,kc.ForwardRef=Hc,kc.Fragment=Nc,kc.Lazy=Uc,kc.Memo=Vc,kc.Portal=qc,kc.Profiler=zc,kc.StrictMode=Fc,kc.Suspense=Wc,kc.SuspenseList=Gc,kc.isAsyncMode=function(){return!1},kc.isConcurrentMode=function(){return!1},kc.isContextConsumer=function(e){return Kc(e)===$c},kc.isContextProvider=function(e){return Kc(e)===jc},kc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Oc},kc.isForwardRef=function(e){return Kc(e)===Hc},kc.isFragment=function(e){return Kc(e)===Nc},kc.isLazy=function(e){return Kc(e)===Uc},kc.isMemo=function(e){return Kc(e)===Vc},kc.isPortal=function(e){return Kc(e)===qc},kc.isProfiler=function(e){return Kc(e)===zc},kc.isStrictMode=function(e){return Kc(e)===Fc},kc.isSuspense=function(e){return Kc(e)===Wc},kc.isSuspenseList=function(e){return Kc(e)===Gc},kc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Nc||e===zc||e===Fc||e===Wc||e===Gc||e===Yc||"object"==typeof e&&null!==e&&(e.$$typeof===Uc||e.$$typeof===Vc||e.$$typeof===jc||e.$$typeof===$c||e.$$typeof===Hc||e.$$typeof===_c||void 0!==e.getModuleId)},kc.typeOf=Kc,Tc.exports=kc;var Xc=Tc.exports;const Jc=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Zc(e){const t=`${e}`.match(Jc);return t&&t[1]||""}function Qc(e,t=""){return e.displayName||e.name||Zc(e)||t}function ed(e,t,r){const n=Qc(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var td=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Qc(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Xc.ForwardRef:return ed(e,e.render,"ForwardRef");case Xc.Memo:return ed(e,e.type,"memo");default:return}}},getFunctionName:Zc});function rd(e,t){const r=aa({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=aa({},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]=aa({},i),Object.keys(o).forEach((e=>{r[n][e]=rd(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function nd({props:e,name:t,defaultTheme:r,themeId:n}){let o=yc(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?rd(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}var od="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function id(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var ad=Object.freeze({__proto__:null,default:id});function sd(e){if(e.type)return e;if("#"===e.charAt(0))return sd(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(na(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(na(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function ld(e,t){return e=sd(e),t=function(e,t=0,r=1){return id(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function ud(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function cd(e){return e&&e.ownerDocument||document}function dd(e){return cd(e).defaultView||window}function pd(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function fd(e){const t=y.useRef(e);return od((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function md(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{pd(e,t)}))}),e)}const hd={};const gd=[];let bd=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function vd(){const e=function(e,t){const r=y.useRef(hd);return r.current===hd&&(r.current=e(t)),r}(bd.create).current;var t;return t=e.disposeEffect,y.useEffect(t,gd),e}let yd=!0,xd=!1;const Sd=new bd,Ed={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 Cd(e){e.metaKey||e.altKey||e.ctrlKey||(yd=!0)}function wd(){yd=!1}function Rd(){"hidden"===this.visibilityState&&xd&&(yd=!0)}function Ad(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return yd||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Ed[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Id(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Cd,!0),t.addEventListener("mousedown",wd,!0),t.addEventListener("pointerdown",wd,!0),t.addEventListener("touchstart",wd,!0),t.addEventListener("visibilitychange",Rd,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ad(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(xd=!0,Sd.start(100,(()=>{xd=!1})),t.current=!1,!0)},ref:e}}function Dd(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}var Ld=y.createContext(null);function Pd(){return y.useContext(Ld)}var Md="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function _d(e){const{children:t,theme:r}=e,n=Pd(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return aa({},e,t)}(n,r);return null!=e&&(e[Md]=null!==n),e}),[r,n]);return ra.jsx(Ld.Provider,{value:o,children:t})}const Td=["value"],kd=y.createContext();function Od(e){let{value:t}=e,r=sa(e,Td);return ra.jsx(kd.Provider,aa({value:null==t||t},r))}const qd={};function Nd(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?aa({},t,{[e]:i}):i;return n?()=>a:a}return aa({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Fd(e){const{children:t,theme:r,themeId:n}=e,o=bc(qd),i=Pd()||qd,a=Nd(n,o,r),s=Nd(n,i,r,!0),l="rtl"===a.direction;return ra.jsx(_d,{theme:s,children:ra.jsx(zl.Provider,{value:a,children:ra.jsx(Od,{value:l,children:t})})})}var zd,jd={},$d={exports:{}};(zd=$d).exports=function(e){return e&&e.__esModule?e:{default:e}},zd.exports.__esModule=!0,zd.exports.default=zd.exports;var Bd=$d.exports,Hd=nr(oa),Wd=nr(ad),Gd=Bd;Object.defineProperty(jd,"__esModule",{value:!0});var Vd=jd.alpha=ip;jd.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=ep(e),a=ep(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return rp({type:"rgb",values:s})},jd.colorChannel=void 0;var Ud=jd.darken=ap;jd.decomposeColor=ep,jd.emphasize=lp;var Yd=jd.getContrastRatio=function(e,t){const r=op(e),n=op(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};jd.getLuminance=op,jd.hexToRgb=Qd,jd.hslToRgb=np;var Kd=jd.lighten=sp;jd.private_safeAlpha=function(e,t,r){try{return ip(e,t)}catch(t){return e}},jd.private_safeColorChannel=void 0,jd.private_safeDarken=function(e,t,r){try{return ap(e,t)}catch(t){return e}},jd.private_safeEmphasize=function(e,t,r){try{return lp(e,t)}catch(t){return e}},jd.private_safeLighten=function(e,t,r){try{return sp(e,t)}catch(t){return e}},jd.recomposeColor=rp,jd.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=ep(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Xd=Gd(Hd),Jd=Gd(Wd);function Zd(e,t=0,r=1){return(0,Jd.default)(e,t,r)}function Qd(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function ep(e){if(e.type)return e;if("#"===e.charAt(0))return ep(Qd(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Xd.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Xd.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const tp=e=>{const t=ep(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};jd.colorChannel=tp;function rp(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 np(e){e=ep(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),rp({type:s,values:l})}function op(e){let t="hsl"===(e=ep(e)).type||"hsla"===e.type?ep(np(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 ip(e,t){return e=ep(e),t=Zd(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,rp(e)}function ap(e,t){if(e=ep(e),t=Zd(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 rp(e)}function sp(e,t){if(e=ep(e),t=Zd(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 rp(e)}function lp(e,t=.15){return op(e)>.5?ap(e,t):sp(e,t)}jd.private_safeColorChannel=(e,t)=>{try{return tp(e)}catch(t){return e}};var up={black:"#000",white:"#fff"};var cp={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 dp={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 pp={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 fp={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 mp={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 hp={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 gp={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 bp=["mode","contrastThreshold","tonalOffset"],vp={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:up.white,default:up.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}},yp={text:{primary:up.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:up.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 xp(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=Kd(e.main,o):"dark"===t&&(e.dark=Ud(e.main,i)))}function Sp(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=sa(e,bp),i=e.primary||function(e="light"){return"dark"===e?{main:mp[200],light:mp[50],dark:mp[400]}:{main:mp[700],light:mp[400],dark:mp[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:dp[200],light:dp[50],dark:dp[400]}:{main:dp[500],light:dp[300],dark:dp[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:pp[500],light:pp[300],dark:pp[700]}:{main:pp[700],light:pp[400],dark:pp[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:hp[400],light:hp[300],dark:hp[700]}:{main:hp[700],light:hp[500],dark:hp[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:gp[400],light:gp[300],dark:gp[700]}:{main:gp[800],light:gp[500],dark:gp[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:fp[400],light:fp[300],dark:fp[700]}:{main:"#ed6c02",light:fp[500],dark:fp[900]}}(t);function d(e){return Yd(e,yp.text.primary)>=r?yp.text.primary:vp.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=aa({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(na(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(na(12,t?` (${t})`:"",JSON.stringify(e.main)));return xp(e,"light",o,n),xp(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:yp,light:vp};return lu(aa({common:aa({},up),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:cp,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Ep=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Cp={textTransform:"uppercase"},wp='"Roboto", "Helvetica", "Arial", sans-serif';function Rp(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=wp,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=sa(r,Ep),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return aa({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===wp?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Cp),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Cp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return lu(aa({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Ap(...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 Ip=["none",Ap(0,2,1,-1,0,1,1,0,0,1,3,0),Ap(0,3,1,-2,0,2,2,0,0,1,5,0),Ap(0,3,3,-2,0,3,4,0,0,1,8,0),Ap(0,2,4,-1,0,4,5,0,0,1,10,0),Ap(0,3,5,-1,0,5,8,0,0,1,14,0),Ap(0,3,5,-1,0,6,10,0,0,1,18,0),Ap(0,4,5,-2,0,7,10,1,0,2,16,1),Ap(0,5,5,-3,0,8,10,1,0,3,14,2),Ap(0,5,6,-3,0,9,12,1,0,3,16,2),Ap(0,6,6,-3,0,10,14,1,0,4,18,3),Ap(0,6,7,-4,0,11,15,1,0,4,20,3),Ap(0,7,8,-4,0,12,17,2,0,5,22,4),Ap(0,7,8,-4,0,13,19,2,0,5,24,4),Ap(0,7,9,-4,0,14,21,2,0,5,26,4),Ap(0,8,9,-5,0,15,22,2,0,6,28,5),Ap(0,8,10,-5,0,16,24,2,0,6,30,5),Ap(0,8,11,-5,0,17,26,2,0,6,32,5),Ap(0,9,11,-5,0,18,28,2,0,7,34,6),Ap(0,9,12,-6,0,19,29,2,0,7,36,6),Ap(0,10,13,-6,0,20,31,3,0,8,38,7),Ap(0,10,13,-6,0,21,33,3,0,8,40,7),Ap(0,10,14,-6,0,22,35,3,0,8,42,7),Ap(0,11,14,-7,0,23,36,3,0,9,44,8),Ap(0,11,15,-7,0,24,38,3,0,9,46,8)];const Dp=["duration","easing","delay"],Lp={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)"},Pp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Mp(e){return`${Math.round(e)}ms`}function _p(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Tp(e){const t=aa({},Lp,e.easing),r=aa({},Pp,e.duration);return aa({getAutoHeightDuration:_p,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return sa(n,Dp),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Mp(o)} ${i} ${"string"==typeof a?a:Mp(a)}`)).join(",")}},e,{easing:t,duration:r})}var kp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Op=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function qp(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=sa(e,Op);if(e.vars)throw new Error(na(18));const s=Sp(n),l=hc(e);let u=lu(l,{mixins:(c=l.breakpoints,d=r,aa({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Ip.slice(),typography:Rp(s,i),transitions:Tp(o),zIndex:aa({},kp)});var c,d;return u=lu(u,a),u=t.reduce(((e,t)=>lu(e,t)),u),u.unstable_sxConfig=aa({},uc,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return pc({sx:e,theme:this})},u}var Np=qp();function Fp({props:e,name:t}){return nd({props:e,name:t,defaultTheme:Np,themeId:ia})}var zp,jp={},$p={exports:{}};var Bp,Hp={exports:{}};var Wp=nr(iu),Gp=nr(uu),Vp=nr(yu),Up=nr(td),Yp=nr(gc),Kp=nr(Cc),Xp=Bd;Object.defineProperty(jp,"__esModule",{value:!0});var Jp=jp.default=function(e={}){const{themeId:t,defaultTheme:r=cf,rootShouldForwardProp:n=uf,slotShouldForwardProp:o=uf}=e,i=e=>(0,nf.default)((0,Zp.default)({},e,{theme:pf((0,Zp.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,ef.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=ff(df(l))}=a,p=(0,Qp.default)(a,sf),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let h=uf;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,ef.default)(e,(0,Zp.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,tf.isPlainObject)(e)?n=>mf(e,(0,Zp.default)({},n,{theme:pf({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push((e=>{const n=pf((0,Zp.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=mf(r,(0,Zp.default)({},e,{theme:n}))})),d(e,i)})),s&&!f&&l.push((e=>{var n;const o=pf((0,Zp.default)({},e,{defaultTheme:r,themeId:t}));return mf({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Zp.default)({},e,{theme:o}))})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};jp.shouldForwardProp=uf,jp.systemDefaultTheme=void 0;var Zp=Xp((zp||(zp=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}($p)),$p.exports)),Qp=Xp((Bp||(Bp=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Hp)),Hp.exports)),ef=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=lf(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(Wp),tf=Gp;Xp(Vp),Xp(Up);var rf=Xp(Yp),nf=Xp(Kp);const of=["ownerState"],af=["variants"],sf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function lf(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(lf=function(e){return e?r:t})(e)}function uf(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const cf=jp.systemDefaultTheme=(0,rf.default)(),df=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function pf({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function ff(e){return e?(t,r)=>r[e]:null}function mf(e,t){let{ownerState:r}=t,n=(0,Qp.default)(t,of);const o="function"==typeof e?e((0,Zp.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>mf(e,(0,Zp.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Qp.default)(o,af);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Zp.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Zp.default)({ownerState:r},n,r)):e.style))})),t}return o}var hf=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var gf=Jp({themeId:ia,defaultTheme:Np,rootShouldForwardProp:hf});const bf=["theme"];function vf(e){let{theme:t}=e,r=sa(e,bf);const n=t[ia];return ra.jsx(Fd,aa({},r,{themeId:n?ia:void 0,theme:n||t}))}var yf={exports:{}};
|
|
19
|
+
function su(e,t){let r;return r=t?Xl(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Xl(e),r}iu.propTypes={defaultTheme:nu.object,styles:nu.oneOfType([nu.array,nu.string,nu.object,nu.func])};var lu=Object.freeze({__proto__:null,GlobalStyles:au,StyledEngineProvider:ou,ThemeContext:Bl,css:Ul,default:su,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:Ql});function uu(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 cu(e){if(!uu(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=cu(e[r])})),t}function du(e,t,r={clone:!0}){const n=r.clone?aa({},e):e;return uu(e)&&uu(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(uu(t[o])&&o in e&&uu(e[o])?n[o]=du(e[o],t[o],r):r.clone?n[o]=uu(t[o])?cu(t[o]):t[o]:n[o]=t[o])})),n}var pu=Object.freeze({__proto__:null,default:du,isPlainObject:uu});const fu=["values","unit","step"],mu=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)=>aa({},e,{[t.key]:t.val})),{})};function hu(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=sa(e,fu),i=mu(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return aa({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var gu={borderRadius:4};function bu(e,t){return t?du(e,t,{clone:!1}):e}const vu={xs:0,sm:600,md:900,lg:1200,xl:1536},yu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${vu[e]}px)`};function xu(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||yu;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||yu;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||vu).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Su(e){if("string"!=typeof e)throw new Error(na(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Eu=Object.freeze({__proto__:null,default:Su});function Cu(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 wu(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Cu(e,r)||n,t&&(o=t(o,n,e)),o}function Ru(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=Cu(e.theme,n)||{};return xu(e,i,(e=>{let n=wu(a,o,e);return e===n&&"string"==typeof e&&(n=wu(a,o,`${t}${"default"===e?"":Su(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Au={m:"margin",p:"padding"},Iu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Du={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Lu=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Du[e])return[e];e=Du[e]}const[t,r]=e.split(""),n=Au[t],o=Iu[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Pu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Mu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function _u(e,t,r,n){var o;const i=null!=(o=Cu(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 Tu(e){return _u(e,"spacing",8)}function Ou(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 ku(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Ou(t,r),e)),{})}(Lu(r),n);return xu(e,e[r],o)}function qu(e,t){const r=Tu(e.theme);return Object.keys(e).map((n=>ku(e,t,n,r))).reduce(bu,{})}function Nu(e){return qu(e,Pu)}function Fu(e){return qu(e,Mu)}function zu(...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]?bu(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ju(e){return"number"!=typeof e?e:`${e}px solid`}function $u(e,t){return Ru({prop:e,themeKey:"borders",transform:t})}Nu.propTypes={},Nu.filterProps=Pu,Fu.propTypes={},Fu.filterProps=Mu;const Bu=$u("border",ju),Hu=$u("borderTop",ju),Wu=$u("borderRight",ju),Gu=$u("borderBottom",ju),Vu=$u("borderLeft",ju),Uu=$u("borderColor"),Yu=$u("borderTopColor"),Ku=$u("borderRightColor"),Xu=$u("borderBottomColor"),Ju=$u("borderLeftColor"),Zu=$u("outline",ju),Qu=$u("outlineColor"),ec=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=_u(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ou(t,e)});return xu(e,e.borderRadius,r)}return null};ec.propTypes={},ec.filterProps=["borderRadius"],zu(Bu,Hu,Wu,Gu,Vu,Uu,Yu,Ku,Xu,Ju,ec,Zu,Qu);const tc=e=>{if(void 0!==e.gap&&null!==e.gap){const t=_u(e.theme,"spacing",8),r=e=>({gap:Ou(t,e)});return xu(e,e.gap,r)}return null};tc.propTypes={},tc.filterProps=["gap"];const rc=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=_u(e.theme,"spacing",8),r=e=>({columnGap:Ou(t,e)});return xu(e,e.columnGap,r)}return null};rc.propTypes={},rc.filterProps=["columnGap"];const nc=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=_u(e.theme,"spacing",8),r=e=>({rowGap:Ou(t,e)});return xu(e,e.rowGap,r)}return null};nc.propTypes={},nc.filterProps=["rowGap"];function oc(e,t){return"grey"===t?t:e}zu(tc,rc,nc,Ru({prop:"gridColumn"}),Ru({prop:"gridRow"}),Ru({prop:"gridAutoFlow"}),Ru({prop:"gridAutoColumns"}),Ru({prop:"gridAutoRows"}),Ru({prop:"gridTemplateColumns"}),Ru({prop:"gridTemplateRows"}),Ru({prop:"gridTemplateAreas"}),Ru({prop:"gridArea"}));function ic(e){return e<=1&&0!==e?100*e+"%":e}zu(Ru({prop:"color",themeKey:"palette",transform:oc}),Ru({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:oc}),Ru({prop:"backgroundColor",themeKey:"palette",transform:oc}));const ac=Ru({prop:"width",transform:ic}),sc=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])||vu[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:ic(t)}};return xu(e,e.maxWidth,t)}return null};sc.filterProps=["maxWidth"];const lc=Ru({prop:"minWidth",transform:ic}),uc=Ru({prop:"height",transform:ic}),cc=Ru({prop:"maxHeight",transform:ic}),dc=Ru({prop:"minHeight",transform:ic});Ru({prop:"size",cssProperty:"width",transform:ic}),Ru({prop:"size",cssProperty:"height",transform:ic});zu(ac,sc,lc,uc,cc,dc,Ru({prop:"boxSizing"}));var pc={border:{themeKey:"borders",transform:ju},borderTop:{themeKey:"borders",transform:ju},borderRight:{themeKey:"borders",transform:ju},borderBottom:{themeKey:"borders",transform:ju},borderLeft:{themeKey:"borders",transform:ju},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ju},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ec},color:{themeKey:"palette",transform:oc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:oc},backgroundColor:{themeKey:"palette",transform:oc},p:{style:Fu},pt:{style:Fu},pr:{style:Fu},pb:{style:Fu},pl:{style:Fu},px:{style:Fu},py:{style:Fu},padding:{style:Fu},paddingTop:{style:Fu},paddingRight:{style:Fu},paddingBottom:{style:Fu},paddingLeft:{style:Fu},paddingX:{style:Fu},paddingY:{style:Fu},paddingInline:{style:Fu},paddingInlineStart:{style:Fu},paddingInlineEnd:{style:Fu},paddingBlock:{style:Fu},paddingBlockStart:{style:Fu},paddingBlockEnd:{style:Fu},m:{style:Nu},mt:{style:Nu},mr:{style:Nu},mb:{style:Nu},ml:{style:Nu},mx:{style:Nu},my:{style:Nu},margin:{style:Nu},marginTop:{style:Nu},marginRight:{style:Nu},marginBottom:{style:Nu},marginLeft:{style:Nu},marginX:{style:Nu},marginY:{style:Nu},marginInline:{style:Nu},marginInlineStart:{style:Nu},marginInlineEnd:{style:Nu},marginBlock:{style:Nu},marginBlockStart:{style:Nu},marginBlockEnd:{style:Nu},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:tc},rowGap:{style:nc},columnGap:{style:rc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ic},maxWidth:{style:sc},minWidth:{transform:ic},height:{transform:ic},maxHeight:{transform:ic},minHeight:{transform:ic},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fc(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Cu(r,s)||{};if(u)return u(o);return xu(o,t,(t=>{let r=wu(c,l,t);return t===r&&"string"==typeof t&&(r=wu(c,l,`${e}${"default"===t?"":Su(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:pc;function s(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[r])l=bu(l,e(r,o,i,a));else{const e=xu({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=bu(l,e):l[r]=t({sx:o,theme:i})}else l=bu(l,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const mc=fc();mc.filterProps=["sx"];var hc=mc;function gc(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}const bc=["breakpoints","palette","spacing","shape"];function vc(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=sa(e,bc),s=hu(r),l=function(e=8){if(e.mui)return e;const t=Tu({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=du({breakpoints:s,direction:"ltr",components:{},palette:aa({mode:"light"},n),spacing:l,shape:aa({},gu,i)},a);return u.applyStyles=gc,u=t.reduce(((e,t)=>du(e,t)),u),u.unstable_sxConfig=aa({},pc,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return hc({sx:e,theme:this})},u}var yc=Object.freeze({__proto__:null,default:vc,private_createBreakpoints:hu,unstable_applyStyles:gc});function xc(e=null){const t=y.useContext(Bl);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Sc=vc();function Ec(e=Sc){return xc(e)}const Cc=["sx"],wc=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:pc;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function Rc(e){const{sx:t}=e,r=sa(e,Cc),{systemProps:n,otherProps:o}=wc(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return uu(r)?aa({},n,r):n}:aa({},n,t),aa({},o,{sx:i})}var Ac=Object.freeze({__proto__:null,default:hc,extendSxProp:Rc,unstable_createStyleFunctionSx:fc,unstable_defaultSxConfig:pc});const Ic=e=>e;var Dc=(()=>{let e=Ic;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ic}}})();function Lc(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=Lc(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Pc(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Lc(e))&&(n&&(n+=" "),n+=t);return n}const Mc=["className","component"];const _c={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=_c[t];return n?`${r}-${n}`:`${Dc.generate(e)}-${t}`}function Oc(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Tc(e,t,r)})),n}var kc,qc={exports:{}},Nc={},Fc=Symbol.for("react.element"),zc=Symbol.for("react.portal"),jc=Symbol.for("react.fragment"),$c=Symbol.for("react.strict_mode"),Bc=Symbol.for("react.profiler"),Hc=Symbol.for("react.provider"),Wc=Symbol.for("react.context"),Gc=Symbol.for("react.server_context"),Vc=Symbol.for("react.forward_ref"),Uc=Symbol.for("react.suspense"),Yc=Symbol.for("react.suspense_list"),Kc=Symbol.for("react.memo"),Xc=Symbol.for("react.lazy"),Jc=Symbol.for("react.offscreen");function Zc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Fc:switch(e=e.type){case jc:case Bc:case $c:case Uc:case Yc:return e;default:switch(e=e&&e.$$typeof){case Gc:case Wc:case Vc:case Xc:case Kc:case Hc:return e;default:return t}}case zc:return t}}}kc=Symbol.for("react.module.reference"),Nc.ContextConsumer=Wc,Nc.ContextProvider=Hc,Nc.Element=Fc,Nc.ForwardRef=Vc,Nc.Fragment=jc,Nc.Lazy=Xc,Nc.Memo=Kc,Nc.Portal=zc,Nc.Profiler=Bc,Nc.StrictMode=$c,Nc.Suspense=Uc,Nc.SuspenseList=Yc,Nc.isAsyncMode=function(){return!1},Nc.isConcurrentMode=function(){return!1},Nc.isContextConsumer=function(e){return Zc(e)===Wc},Nc.isContextProvider=function(e){return Zc(e)===Hc},Nc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Fc},Nc.isForwardRef=function(e){return Zc(e)===Vc},Nc.isFragment=function(e){return Zc(e)===jc},Nc.isLazy=function(e){return Zc(e)===Xc},Nc.isMemo=function(e){return Zc(e)===Kc},Nc.isPortal=function(e){return Zc(e)===zc},Nc.isProfiler=function(e){return Zc(e)===Bc},Nc.isStrictMode=function(e){return Zc(e)===$c},Nc.isSuspense=function(e){return Zc(e)===Uc},Nc.isSuspenseList=function(e){return Zc(e)===Yc},Nc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===jc||e===Bc||e===$c||e===Uc||e===Yc||e===Jc||"object"==typeof e&&null!==e&&(e.$$typeof===Xc||e.$$typeof===Kc||e.$$typeof===Hc||e.$$typeof===Wc||e.$$typeof===Vc||e.$$typeof===kc||void 0!==e.getModuleId)},Nc.typeOf=Zc,qc.exports=Nc;var Qc=qc.exports;const ed=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function td(e){const t=`${e}`.match(ed);return t&&t[1]||""}function rd(e,t=""){return e.displayName||e.name||td(e)||t}function nd(e,t,r){const n=rd(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var od=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return rd(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Qc.ForwardRef:return nd(e,e.render,"ForwardRef");case Qc.Memo:return nd(e,e.type,"memo");default:return}}},getFunctionName:td});function id(e,t){const r=aa({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=aa({},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]=aa({},i),Object.keys(o).forEach((e=>{r[n][e]=id(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function ad({props:e,name:t,defaultTheme:r,themeId:n}){let o=Ec(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?id(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}var sd="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function ld(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var ud=Object.freeze({__proto__:null,default:ld});function cd(e){if(e.type)return e;if("#"===e.charAt(0))return cd(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(na(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(na(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function dd(e,t){return e=cd(e),t=function(e,t=0,r=1){return ld(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function pd(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function fd(e){return e&&e.ownerDocument||document}function md(e){return fd(e).defaultView||window}function hd(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function gd(e){const t=y.useRef(e);return sd((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function bd(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{hd(e,t)}))}),e)}const vd={};const yd=[];let xd=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function Sd(){const e=function(e,t){const r=y.useRef(vd);return r.current===vd&&(r.current=e(t)),r}(xd.create).current;var t;return t=e.disposeEffect,y.useEffect(t,yd),e}let Ed=!0,Cd=!1;const wd=new xd,Rd={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 Ad(e){e.metaKey||e.altKey||e.ctrlKey||(Ed=!0)}function Id(){Ed=!1}function Dd(){"hidden"===this.visibilityState&&Cd&&(Ed=!0)}function Ld(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ed||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Rd[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Pd(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ad,!0),t.addEventListener("mousedown",Id,!0),t.addEventListener("pointerdown",Id,!0),t.addEventListener("touchstart",Id,!0),t.addEventListener("visibilitychange",Dd,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ld(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Cd=!0,wd.start(100,(()=>{Cd=!1})),t.current=!1,!0)},ref:e}}function Md(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}var _d=y.createContext(null);function Td(){return y.useContext(_d)}var Od="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function kd(e){const{children:t,theme:r}=e,n=Td(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return aa({},e,t)}(n,r);return null!=e&&(e[Od]=null!==n),e}),[r,n]);return ra.jsx(_d.Provider,{value:o,children:t})}const qd=["value"],Nd=y.createContext();function Fd(e){let{value:t}=e,r=sa(e,qd);return ra.jsx(Nd.Provider,aa({value:null==t||t},r))}const zd={};function jd(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?aa({},t,{[e]:i}):i;return n?()=>a:a}return aa({},t,e?{[e]:r}:r)}),[e,t,r,n])}function $d(e){const{children:t,theme:r,themeId:n}=e,o=xc(zd),i=Td()||zd,a=jd(n,o,r),s=jd(n,i,r,!0),l="rtl"===a.direction;return ra.jsx(kd,{theme:s,children:ra.jsx(Bl.Provider,{value:a,children:ra.jsx(Fd,{value:l,children:t})})})}var Bd,Hd={},Wd={exports:{}};(Bd=Wd).exports=function(e){return e&&e.__esModule?e:{default:e}},Bd.exports.__esModule=!0,Bd.exports.default=Bd.exports;var Gd=Wd.exports,Vd=nr(oa),Ud=nr(ud),Yd=Gd;Object.defineProperty(Hd,"__esModule",{value:!0});var Kd=Hd.alpha=lp;Hd.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=np(e),a=np(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ip({type:"rgb",values:s})},Hd.colorChannel=void 0;var Xd=Hd.darken=up;Hd.decomposeColor=np,Hd.emphasize=dp;var Jd=Hd.getContrastRatio=function(e,t){const r=sp(e),n=sp(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Hd.getLuminance=sp,Hd.hexToRgb=rp,Hd.hslToRgb=ap;var Zd=Hd.lighten=cp;Hd.private_safeAlpha=function(e,t,r){try{return lp(e,t)}catch(t){return e}},Hd.private_safeColorChannel=void 0,Hd.private_safeDarken=function(e,t,r){try{return up(e,t)}catch(t){return e}},Hd.private_safeEmphasize=function(e,t,r){try{return dp(e,t)}catch(t){return e}},Hd.private_safeLighten=function(e,t,r){try{return cp(e,t)}catch(t){return e}},Hd.recomposeColor=ip,Hd.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=np(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Qd=Yd(Vd),ep=Yd(Ud);function tp(e,t=0,r=1){return(0,ep.default)(e,t,r)}function rp(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function np(e){if(e.type)return e;if("#"===e.charAt(0))return np(rp(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Qd.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Qd.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const op=e=>{const t=np(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Hd.colorChannel=op;function ip(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 ap(e){e=np(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),ip({type:s,values:l})}function sp(e){let t="hsl"===(e=np(e)).type||"hsla"===e.type?np(ap(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 lp(e,t){return e=np(e),t=tp(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ip(e)}function up(e,t){if(e=np(e),t=tp(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 ip(e)}function cp(e,t){if(e=np(e),t=tp(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 ip(e)}function dp(e,t=.15){return sp(e)>.5?up(e,t):cp(e,t)}Hd.private_safeColorChannel=(e,t)=>{try{return op(e)}catch(t){return e}};var pp={black:"#000",white:"#fff"};var fp={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 mp={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 hp={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 gp={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 bp={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 vp={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 yp={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 xp=["mode","contrastThreshold","tonalOffset"],Sp={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:pp.white,default:pp.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}},Ep={text:{primary:pp.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:pp.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 Cp(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=Zd(e.main,o):"dark"===t&&(e.dark=Xd(e.main,i)))}function wp(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=sa(e,xp),i=e.primary||function(e="light"){return"dark"===e?{main:bp[200],light:bp[50],dark:bp[400]}:{main:bp[700],light:bp[400],dark:bp[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:mp[200],light:mp[50],dark:mp[400]}:{main:mp[500],light:mp[300],dark:mp[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:hp[500],light:hp[300],dark:hp[700]}:{main:hp[700],light:hp[400],dark:hp[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:vp[400],light:vp[300],dark:vp[700]}:{main:vp[700],light:vp[500],dark:vp[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:yp[400],light:yp[300],dark:yp[700]}:{main:yp[800],light:yp[500],dark:yp[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:gp[400],light:gp[300],dark:gp[700]}:{main:"#ed6c02",light:gp[500],dark:gp[900]}}(t);function d(e){return Jd(e,Ep.text.primary)>=r?Ep.text.primary:Sp.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=aa({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(na(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(na(12,t?` (${t})`:"",JSON.stringify(e.main)));return Cp(e,"light",o,n),Cp(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ep,light:Sp};return du(aa({common:aa({},pp),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:fp,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Rp=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ap={textTransform:"uppercase"},Ip='"Roboto", "Helvetica", "Arial", sans-serif';function Dp(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Ip,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=sa(r,Rp),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return aa({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Ip?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Ap),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ap),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return du(aa({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Lp(...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 Pp=["none",Lp(0,2,1,-1,0,1,1,0,0,1,3,0),Lp(0,3,1,-2,0,2,2,0,0,1,5,0),Lp(0,3,3,-2,0,3,4,0,0,1,8,0),Lp(0,2,4,-1,0,4,5,0,0,1,10,0),Lp(0,3,5,-1,0,5,8,0,0,1,14,0),Lp(0,3,5,-1,0,6,10,0,0,1,18,0),Lp(0,4,5,-2,0,7,10,1,0,2,16,1),Lp(0,5,5,-3,0,8,10,1,0,3,14,2),Lp(0,5,6,-3,0,9,12,1,0,3,16,2),Lp(0,6,6,-3,0,10,14,1,0,4,18,3),Lp(0,6,7,-4,0,11,15,1,0,4,20,3),Lp(0,7,8,-4,0,12,17,2,0,5,22,4),Lp(0,7,8,-4,0,13,19,2,0,5,24,4),Lp(0,7,9,-4,0,14,21,2,0,5,26,4),Lp(0,8,9,-5,0,15,22,2,0,6,28,5),Lp(0,8,10,-5,0,16,24,2,0,6,30,5),Lp(0,8,11,-5,0,17,26,2,0,6,32,5),Lp(0,9,11,-5,0,18,28,2,0,7,34,6),Lp(0,9,12,-6,0,19,29,2,0,7,36,6),Lp(0,10,13,-6,0,20,31,3,0,8,38,7),Lp(0,10,13,-6,0,21,33,3,0,8,40,7),Lp(0,10,14,-6,0,22,35,3,0,8,42,7),Lp(0,11,14,-7,0,23,36,3,0,9,44,8),Lp(0,11,15,-7,0,24,38,3,0,9,46,8)];const Mp=["duration","easing","delay"],_p={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)"},Tp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Op(e){return`${Math.round(e)}ms`}function kp(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function qp(e){const t=aa({},_p,e.easing),r=aa({},Tp,e.duration);return aa({getAutoHeightDuration:kp,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return sa(n,Mp),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Op(o)} ${i} ${"string"==typeof a?a:Op(a)}`)).join(",")}},e,{easing:t,duration:r})}var Np={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Fp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function zp(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=sa(e,Fp);if(e.vars)throw new Error(na(18));const s=wp(n),l=vc(e);let u=du(l,{mixins:(c=l.breakpoints,d=r,aa({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Pp.slice(),typography:Dp(s,i),transitions:qp(o),zIndex:aa({},Np)});var c,d;return u=du(u,a),u=t.reduce(((e,t)=>du(e,t)),u),u.unstable_sxConfig=aa({},pc,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return hc({sx:e,theme:this})},u}var jp=zp();function $p({props:e,name:t}){return ad({props:e,name:t,defaultTheme:jp,themeId:ia})}var Bp,Hp={},Wp={exports:{}};var Gp,Vp={exports:{}};var Up=nr(lu),Yp=nr(pu),Kp=nr(Eu),Xp=nr(od),Jp=nr(yc),Zp=nr(Ac),Qp=Gd;Object.defineProperty(Hp,"__esModule",{value:!0});var ef=Hp.default=function(e={}){const{themeId:t,defaultTheme:r=ff,rootShouldForwardProp:n=pf,slotShouldForwardProp:o=pf}=e,i=e=>(0,sf.default)((0,tf.default)({},e,{theme:hf((0,tf.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,nf.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=gf(mf(l))}=a,p=(0,rf.default)(a,cf),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let h=pf;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,nf.default)(e,(0,tf.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,of.isPlainObject)(e)?n=>bf(e,(0,tf.default)({},n,{theme:hf({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push((e=>{const n=hf((0,tf.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=bf(r,(0,tf.default)({},e,{theme:n}))})),d(e,i)})),s&&!f&&l.push((e=>{var n;const o=hf((0,tf.default)({},e,{defaultTheme:r,themeId:t}));return bf({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,tf.default)({},e,{theme:o}))})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};Hp.shouldForwardProp=pf,Hp.systemDefaultTheme=void 0;var tf=Qp((Bp||(Bp=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Wp)),Wp.exports)),rf=Qp((Gp||(Gp=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Vp)),Vp.exports)),nf=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=df(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(Up),of=Yp;Qp(Kp),Qp(Xp);var af=Qp(Jp),sf=Qp(Zp);const lf=["ownerState"],uf=["variants"],cf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function df(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(df=function(e){return e?r:t})(e)}function pf(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ff=Hp.systemDefaultTheme=(0,af.default)(),mf=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function hf({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function gf(e){return e?(t,r)=>r[e]:null}function bf(e,t){let{ownerState:r}=t,n=(0,rf.default)(t,lf);const o="function"==typeof e?e((0,tf.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>bf(e,(0,tf.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,rf.default)(o,uf);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,tf.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,tf.default)({ownerState:r},n,r)):e.style))})),t}return o}var vf=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var yf=ef({themeId:ia,defaultTheme:jp,rootShouldForwardProp:vf});const xf=["theme"];function Sf(e){let{theme:t}=e,r=sa(e,xf);const n=t[ia];return ra.jsx($d,aa({},r,{themeId:n?ia:void 0,theme:n||t}))}var Ef={exports:{}};
|
|
20
20
|
/*!
|
|
21
21
|
* CSSJanus. https://github.com/cssjanus/cssjanus
|
|
22
22
|
*
|
|
@@ -35,7 +35,7 @@ function ou(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldFo
|
|
|
35
35
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
36
36
|
* See the License for the specific language governing permissions and
|
|
37
37
|
* limitations under the License.
|
|
38
|
-
*/!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+r+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),E=new RegExp("("+l+g+"[^;}]+;?)","gi"),C=new RegExp("("+l+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(s+"(left)"+h+b+g,"gi"),I=new RegExp(s+"(right)"+h+b+g,"gi"),D=new RegExp(s+"(left)"+v,"gi"),L=new RegExp(s+"(right)"+v,"gi"),P=new RegExp(s+"(ltr)"+v,"gi"),M=new RegExp(s+"(rtl)"+v,"gi"),_=new RegExp(s+"([ns]?)e-resize","gi"),T=new RegExp(s+"([ns]?)w-resize","gi"),k=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),O=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),F=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),z=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),j=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),B=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),H=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function G(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function V(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?V(n)+" / "+V(o):V(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(E,"`NOFLIP_SINGLE`"),a=new n(C,"`NOFLIP_CLASS`"),s=new n(S,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(P,"$1"+e).replace(M,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(D,"$1"+e).replace(L,"$1left").replace(x,"right")),r=r.replace(w,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(I,"$1left").replace(x,"right").replace(_,"$1$2"+e).replace(T,"$1$2e-resize").replace(x,"w-resize").replace(F,U).replace(z,K).replace(j,J).replace($,J).replace(B,K).replace(H,X).replace(W,X).replace(k,"$1$2$3$8$5$6$7$4$9").replace(O,"$1$2$3$8$5$6$7$4$9").replace(q,G).replace(N,G),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(yf,yf.exports);var xf=rr(yf.exports),Sf="comm",Ef="rule",Cf="decl",wf="@media",Rf="@import",Af="@supports",If="@keyframes",Df=Math.abs,Lf=String.fromCharCode;function Pf(e){return e.trim()}function Mf(e,t,r){return e.replace(t,r)}function _f(e,t,r){return e.indexOf(t,r)}function Tf(e,t){return 0|e.charCodeAt(t)}function kf(e,t,r){return e.slice(t,r)}function Of(e){return e.length}function qf(e,t){return t.push(e),e}var Nf,Ff,zf,jf,$f,Bf=1,Hf=1,Wf=0,Gf=0,Vf=0,Uf="";function Yf(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Bf,column:Hf,length:a,return:"",siblings:s}}function Kf(){return Vf=Gf>0?Tf(Uf,--Gf):0,Hf--,10===Vf&&(Hf=1,Bf--),Vf}function Xf(){return Vf=Gf<Wf?Tf(Uf,Gf++):0,Hf++,10===Vf&&(Hf=1,Bf++),Vf}function Jf(){return Tf(Uf,Gf)}function Zf(){return Gf}function Qf(e,t){return kf(Uf,e,t)}function em(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 tm(e){return Pf(Qf(Gf-1,om(91===e?e+2:40===e?e+1:e)))}function rm(e){for(;(Vf=Jf())&&Vf<33;)Xf();return em(e)>2||em(Vf)>3?"":" "}function nm(e,t){for(;--t&&Xf()&&!(Vf<48||Vf>102||Vf>57&&Vf<65||Vf>70&&Vf<97););return Qf(e,Zf()+(t<6&&32==Jf()&&32==Xf()))}function om(e){for(;Xf();)switch(Vf){case e:return Gf;case 34:case 39:34!==e&&39!==e&&om(Vf);break;case 40:41===e&&om(e);break;case 92:Xf()}return Gf}function im(e,t){for(;Xf()&&e+Vf!==57&&(e+Vf!==84||47!==Jf()););return"/*"+Qf(t,Gf-1)+"*"+Lf(47===e?e:Xf())}function am(e){for(;!em(Jf());)Xf();return Qf(e,Gf)}function sm(e){return function(e){return Uf="",e}(lm("",null,null,null,[""],e=function(e){return Bf=Hf=1,Wf=Of(Uf=e),Gf=0,[]}(e),0,[0],e))}function lm(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=Xf()){case 40:if(108!=m&&58==Tf(C,d-1)){-1!=_f(C+=Mf(tm(v),"&","&\f"),"&\f",Df(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=tm(v);break;case 9:case 10:case 13:case 32:C+=rm(m);break;case 92:C+=nm(Zf()-1,7);continue;case 47:switch(Jf()){case 42:case 47:qf(cm(im(Xf(),Zf()),t,r,l),l);break;default:C+="/"}break;case 123*h:s[u++]=Of(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Mf(C,/\f/g,"")),f>0&&Of(C)-d&&qf(f>32?dm(C+";",n,r,d-1,l):dm(Mf(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(qf(E=um(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)lm(C,t,E,E,x,i,d,s,S);else switch(99===p&&110===Tf(C,3)?100:p){case 100:case 108:case 109:case 115:lm(e,E,E,n&&qf(um(e,E,E,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:lm(C,E,E,E,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+Of(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Kf())continue;switch(C+=Lf(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Of(C)-1)*b,b=1;break;case 64:45===Jf()&&(C+=tm(Xf())),p=Jf(),c=d=Of(y=C+=am(Zf())),v++;break;case 45:45===m&&2==Of(C)&&(h=0)}}return i}function um(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],m=function(e){return e.length}(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=kf(e,p+1,p=Df(g=a[h])),x=e;v<m;++v)(x=Pf(g>0?f[v]+" "+y:Mf(y,/&\f/g,f[v])))&&(l[b++]=x);return Yf(e,t,r,0===o?Ef:s,l,u,c,d)}function cm(e,t,r,n){return Yf(e,t,r,Sf,Lf(Vf),kf(e,2,-2),0,n)}function dm(e,t,r,n,o){return Yf(e,t,r,Cf,kf(e,0,n),kf(e,n+1,-1),n,o)}function pm(e,t,r){switch(e.type){case Rf:case Cf:case Sf:return e.return=e.return||e.value;case Ef:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Sf&&(e.children=e.value)}))}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),pm);return Of(n)?e.return=e.value+"{"+n+"}":""}function fm(e,t,r,n){if(e.type===If||e.type===Af||e.type===Ef&&(!e.parent||e.parent.type===wf||e.parent.type===Ef)){var o=xf.transform(pm(e));e.children=o?sm(o)[0].children:[],e.return=""}}Object.defineProperty(fm,"name",{value:"stylisRTLPlugin"}),function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(Nf||(Nf={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_PAGE_ROWS="updatePageRows"}(Ff||(Ff={})),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"}(zf||(zf={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(jf||(jf={})),function(e){e.A="ascending",e.D="descending"}($f||($f={}));const mm=[0,0];function hm(e){if(e.type)return e;if("#"===e.charAt(0))return hm(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function gm(e,t){return e=hm(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function bm(e,t){return bm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bm(e,t)}function vm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bm(e,t)}const ym={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"},xm={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...ym,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:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Sm=12,Em=14,Cm=16,wm=24,Rm=3,Am=300,Im=400,Dm=600,Lm=700,Pm={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};gm(xm.GREYSCALE_0,.05),gm(xm.GREEN_PALE,.5),gm(xm.BLUE_PALE,.5),gm(xm.GREEN_PALE,.5),gm(xm.BLUE_PALE,.5),gm(xm.GREEN_PALE,.5),gm(xm.BLUE_PALE,.5);var Mm;function _m(){return _m=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},_m.apply(this,arguments)}gm(xm.GREEN_PALE,.5),gm(xm.BLUE_PALE,.5),gm(xm.GREEN_PALE,.5),gm(xm.BLUE_PALE,.5);var Tm,km=function(e){return y.createElement("svg",_m({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Mm||(Mm=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Om(){return Om=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},Om.apply(this,arguments)}var qm=function(e){return y.createElement("svg",Om({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Tm||(Tm=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function Nm({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.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 Fm=(e={})=>x.createElement(Nm,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.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"}))),zm=(e={})=>x.createElement(Nm,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),jm=(e={})=>x.createElement(Nm,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),$m=(e={})=>x.createElement(Nm,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),Bm=({className:e})=>x.createElement(Nm,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.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"}),x.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"})))))),Hm=!1,Wm=x.createContext(null),Gm="unmounted",Vm="exited",Um="entering",Ym="entered",Km="exiting",Xm=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=Vm,n.appearStatus=Um):o=Ym:o=t.unmountOnExit||t.mountOnEnter?Gm:Vm,n.state={status:o},n.nextCallback=null,n}vm(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Gm?{status:Vm}: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!==Um&&r!==Ym&&(t=Um):r!==Um&&r!==Ym||(t=Km)}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===Um){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Vm&&this.setState({status:Gm})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[z.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Hm?this.safeSetState({status:Ym},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Um},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ym},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:z.findDOMNode(this);t&&!Hm?(this.props.onExit(n),this.safeSetState({status:Km},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Vm},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Vm},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Gm)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=sa(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Wm.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Jm(){}Xm.contextType=Wm,Xm.propTypes={},Xm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Jm,onEntering:Jm,onEntered:Jm,onExit:Jm,onExiting:Jm,onExited:Jm},Xm.UNMOUNTED=Gm,Xm.EXITED=Vm,Xm.ENTERING=Um,Xm.ENTERED=Ym,Xm.EXITING=Km;var Zm=Xm;function Qm(e,t){var r=Object.create(null);return e&&A.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&I(e)?t(e):e}(e)})),r}function eh(e,t,r){return null!=r[t]?r[t]:e.props[t]}function th(e,t,r){var n=Qm(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(I(a)){var s=i in t,l=i in n,u=t[i],c=I(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&I(u)&&(o[i]=D(a,{onExited:r.bind(null,a),in:u.props.in,exit:eh(a,"exit",e),enter:eh(a,"enter",e)})):o[i]=D(a,{in:!1}):o[i]=D(a,{onExited:r.bind(null,a),in:!0,exit:eh(a,"exit",e),enter:eh(a,"enter",e)})}})),o}var rh=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},nh=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}vm(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,Qm(r.children,(function(e){return D(e,{onExited:n.bind(null,e),in:!0,appear:eh(e,"appear",r),enter:eh(e,"enter",r),exit:eh(e,"exit",r)})}))):th(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Qm(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=aa({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=sa(e,["component","childFactory"]),o=this.state.contextValue,i=rh(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(Wm.Provider,{value:o},i):x.createElement(Wm.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);nh.propTypes={},nh.defaultProps={component:"div",childFactory:function(e){return e}};var oh=nh;var ih=Mc("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const ah=["center","classes","className"];let sh,lh,uh,ch,dh=e=>e;const ph=Xl(sh||(sh=dh`
|
|
38
|
+
*/!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+r+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),E=new RegExp("("+l+g+"[^;}]+;?)","gi"),C=new RegExp("("+l+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(s+"(left)"+h+b+g,"gi"),I=new RegExp(s+"(right)"+h+b+g,"gi"),D=new RegExp(s+"(left)"+v,"gi"),L=new RegExp(s+"(right)"+v,"gi"),P=new RegExp(s+"(ltr)"+v,"gi"),M=new RegExp(s+"(rtl)"+v,"gi"),_=new RegExp(s+"([ns]?)e-resize","gi"),T=new RegExp(s+"([ns]?)w-resize","gi"),O=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),k=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),F=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),z=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),j=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),B=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),H=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function G(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function V(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?V(n)+" / "+V(o):V(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(E,"`NOFLIP_SINGLE`"),a=new n(C,"`NOFLIP_CLASS`"),s=new n(S,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(P,"$1"+e).replace(M,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(D,"$1"+e).replace(L,"$1left").replace(x,"right")),r=r.replace(w,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(I,"$1left").replace(x,"right").replace(_,"$1$2"+e).replace(T,"$1$2e-resize").replace(x,"w-resize").replace(F,U).replace(z,K).replace(j,J).replace($,J).replace(B,K).replace(H,X).replace(W,X).replace(O,"$1$2$3$8$5$6$7$4$9").replace(k,"$1$2$3$8$5$6$7$4$9").replace(q,G).replace(N,G),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(Ef,Ef.exports);var Cf,wf,Rf,Af,If,Df=rr(Ef.exports);function Lf(e,t,r){switch(e.type){case va:case ga:case ma:return e.return=e.return||e.value;case ha:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===ma&&(e.children=e.value)}))}var n=ls(Array.prototype.concat(e.children),Lf);return Ma(n)?e.return=e.value+"{"+n+"}":""}function Pf(e,t,r,n){if(e.type===xa||e.type===ya||e.type===ha&&(!e.parent||e.parent.type===ba||e.parent.type===ha)){var o=Df.transform(Lf(e));e.children=o?rs(o)[0].children:[],e.return=""}}Object.defineProperty(Pf,"name",{value:"stylisRTLPlugin"}),function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(Cf||(Cf={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_PAGE_ROWS="updatePageRows"}(wf||(wf={})),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"}(Rf||(Rf={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(Af||(Af={})),function(e){e.A="ascending",e.D="descending"}(If||(If={}));const Mf=[0,0];function _f(e){if(e.type)return e;if("#"===e.charAt(0))return _f(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function Tf(e,t){return e=_f(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function Of(e,t){return Of=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Of(e,t)}function kf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Of(e,t)}const qf={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"},Nf={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...qf,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:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Ff=12,zf=14,jf=16,$f=24,Bf=3,Hf=300,Wf=400,Gf=600,Vf=700,Uf={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Tf(Nf.GREYSCALE_0,.05),Tf(Nf.GREEN_PALE,.5),Tf(Nf.BLUE_PALE,.5),Tf(Nf.GREEN_PALE,.5),Tf(Nf.BLUE_PALE,.5),Tf(Nf.GREEN_PALE,.5),Tf(Nf.BLUE_PALE,.5);var Yf;function Kf(){return Kf=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},Kf.apply(this,arguments)}Tf(Nf.GREEN_PALE,.5),Tf(Nf.BLUE_PALE,.5),Tf(Nf.GREEN_PALE,.5),Tf(Nf.BLUE_PALE,.5);var Xf,Jf=function(e){return y.createElement("svg",Kf({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Yf||(Yf=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Zf(){return Zf=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},Zf.apply(this,arguments)}var Qf=function(e){return y.createElement("svg",Zf({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Xf||(Xf=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function em({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.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 tm=(e={})=>x.createElement(em,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.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"}))),rm=(e={})=>x.createElement(em,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),nm=(e={})=>x.createElement(em,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),om=(e={})=>x.createElement(em,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),im=({className:e})=>x.createElement(em,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.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"}),x.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"})))))),am=!1,sm=x.createContext(null),lm="unmounted",um="exited",cm="entering",dm="entered",pm="exiting",fm=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=um,n.appearStatus=cm):o=dm:o=t.unmountOnExit||t.mountOnEnter?lm:um,n.state={status:o},n.nextCallback=null,n}kf(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===lm?{status:um}: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!==cm&&r!==dm&&(t=cm):r!==cm&&r!==dm||(t=pm)}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===cm){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===um&&this.setState({status:lm})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[z.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||am?this.safeSetState({status:dm},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:cm},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:dm},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:z.findDOMNode(this);t&&!am?(this.props.onExit(n),this.safeSetState({status:pm},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:um},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:um},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===lm)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=sa(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(sm.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function mm(){}fm.contextType=sm,fm.propTypes={},fm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mm,onEntering:mm,onEntered:mm,onExit:mm,onExiting:mm,onExited:mm},fm.UNMOUNTED=lm,fm.EXITED=um,fm.ENTERING=cm,fm.ENTERED=dm,fm.EXITING=pm;var hm=fm;function gm(e,t){var r=Object.create(null);return e&&A.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&I(e)?t(e):e}(e)})),r}function bm(e,t,r){return null!=r[t]?r[t]:e.props[t]}function vm(e,t,r){var n=gm(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(I(a)){var s=i in t,l=i in n,u=t[i],c=I(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&I(u)&&(o[i]=D(a,{onExited:r.bind(null,a),in:u.props.in,exit:bm(a,"exit",e),enter:bm(a,"enter",e)})):o[i]=D(a,{in:!1}):o[i]=D(a,{onExited:r.bind(null,a),in:!0,exit:bm(a,"exit",e),enter:bm(a,"enter",e)})}})),o}var ym=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},xm=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}kf(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,gm(r.children,(function(e){return D(e,{onExited:n.bind(null,e),in:!0,appear:bm(e,"appear",r),enter:bm(e,"enter",r),exit:bm(e,"exit",r)})}))):vm(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=gm(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=aa({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=sa(e,["component","childFactory"]),o=this.state.contextValue,i=ym(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(sm.Provider,{value:o},i):x.createElement(sm.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);xm.propTypes={},xm.defaultProps={component:"div",childFactory:function(e){return e}};var Sm=xm;var Em=Oc("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Cm=["center","classes","className"];let wm,Rm,Am,Im,Dm=e=>e;const Lm=Ql(wm||(wm=Dm`
|
|
39
39
|
0% {
|
|
40
40
|
transform: scale(0);
|
|
41
41
|
opacity: 0.1;
|
|
@@ -45,7 +45,7 @@ function ou(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldFo
|
|
|
45
45
|
transform: scale(1);
|
|
46
46
|
opacity: 0.3;
|
|
47
47
|
}
|
|
48
|
-
`)),
|
|
48
|
+
`)),Pm=Ql(Rm||(Rm=Dm`
|
|
49
49
|
0% {
|
|
50
50
|
opacity: 1;
|
|
51
51
|
}
|
|
@@ -53,7 +53,7 @@ function ou(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldFo
|
|
|
53
53
|
100% {
|
|
54
54
|
opacity: 0;
|
|
55
55
|
}
|
|
56
|
-
`)),
|
|
56
|
+
`)),Mm=Ql(Am||(Am=Dm`
|
|
57
57
|
0% {
|
|
58
58
|
transform: scale(1);
|
|
59
59
|
}
|
|
@@ -65,7 +65,7 @@ function ou(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldFo
|
|
|
65
65
|
100% {
|
|
66
66
|
transform: scale(1);
|
|
67
67
|
}
|
|
68
|
-
`)),
|
|
68
|
+
`)),_m=yf("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Tm=yf((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=y.useState(!1),p=Pc(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Pc(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),y.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),ra.jsx("span",{className:p,style:f,children:ra.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Im||(Im=Dm`
|
|
69
69
|
opacity: 0;
|
|
70
70
|
position: absolute;
|
|
71
71
|
|
|
@@ -108,7 +108,7 @@ function ou(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldFo
|
|
|
108
108
|
animation-iteration-count: infinite;
|
|
109
109
|
animation-delay: 200ms;
|
|
110
110
|
}
|
|
111
|
-
`),ih.rippleVisible,ph,550,(({theme:e})=>e.transitions.easing.easeInOut),ih.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ih.child,ih.childLeaving,fh,550,(({theme:e})=>e.transitions.easing.easeInOut),ih.childPulsate,mh,(({theme:e})=>e.transitions.easing.easeInOut));var bh=y.forwardRef((function(e,t){const r=Fp({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=sa(r,ah),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=y.useRef(!1),p=vd(),f=y.useRef(null),m=y.useRef(null),h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,ra.jsx(gh,{classes:{ripple:Ic(o.ripple,ih.ripple),rippleVisible:Ic(o.rippleVisible,ih.rippleVisible),ripplePulsate:Ic(o.ripplePulsate,ih.ripplePulsate),child:Ic(o.child,ih.child),childLeaving:Ic(o.childLeaving,ih.childLeaving),childPulsate:Ic(o.childPulsate,ih.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),ra.jsx(hh,aa({className:Ic(ih.root,o.root,i),ref:m},a,{children:ra.jsx(oh,{component:null,exit:!0,children:s})}))}));function vh(e){return Pc("MuiButtonBase",e)}var yh=Mc("MuiButtonBase",["root","disabled","focusVisible"]);const xh=["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"],Sh=gf("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"},[`&.${yh.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Eh=y.forwardRef((function(e,t){const r=Fp({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:D=0,TouchRippleProps:L,touchRippleRef:P,type:M}=r,_=sa(r,xh),T=y.useRef(null),k=y.useRef(null),O=md(k,P),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Id(),[j,$]=y.useState(!1);l&&j&&$(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[B,H]=y.useState(!1);y.useEffect((()=>{H(!0)}),[]);const W=B&&!u&&!l;function G(e,t,r=c){return fd((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}y.useEffect((()=>{j&&d&&!u&&B&&k.current.pulsate()}),[u,d,j,B]);const V=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=G("start",I),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=fd((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=fd((e=>{d&&!ne.current&&j&&k.current&&" "===e.key&&(ne.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=fd((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(_.href||_.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===M?"button":M,se.disabled=l):(_.href||_.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=md(t,z,T),ue=aa({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Dd({root:["root",t&&"disabled",r&&"focusVisible"]},vh,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ra.jsxs(Sh,aa({as:ae,className:Ic(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:D,type:M},se,_,{children:[i,W?ra.jsx(bh,aa({ref:O,center:o},L)):null]}))}));var Ch=Eh;var wh=Mc("MuiBox",["root"]);const Rh=qp(),Ah=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=ou("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(pc);return y.forwardRef((function(e,a){const s=yc(r),l=Ec(e),{className:u,component:c="div"}=l,d=sa(l,Dc);return ra.jsx(i,aa({as:c,ref:a,className:Ic(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:ia,defaultTheme:Rh,defaultClassName:wh.root,generateClassName:Rc.generate});var Ih=Ah;function Dh(e){return Pc("MuiDivider",e)}var Lh=Mc("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Ph=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Mh=gf("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})=>aa({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)`:Vd(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})=>aa({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>aa({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>aa({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>aa({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),_h=gf("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>aa({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)`}))),Th=y.forwardRef((function(e,t){const r=Fp({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=sa(r,Ph),m=aa({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Dd({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Dh,n)})(m);return ra.jsx(Mh,aa({as:a,className:Ic(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?ra.jsx(_h,{className:h.wrapper,ownerState:m,children:o}):null}))}));Th.muiSkipListHighlight=!0;var kh=Th;var Oh=y.createContext({});function qh(e){return Pc("MuiListItemIcon",e)}var Nh=Mc("MuiListItemIcon",["root","alignItemsFlexStart"]);const Fh=["className"],zh=gf("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})=>aa({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var jh=y.forwardRef((function(e,t){const r=Fp({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=sa(r,Fh),i=aa({},r,{alignItems:y.useContext(Oh).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Dd({root:["root","flex-start"===t&&"alignItemsFlexStart"]},qh,r)})(i);return ra.jsx(zh,aa({className:Ic(a.root,n),ownerState:i,ref:t},o))}));var $h=Mc("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Bh(e){return Pc("MuiMenuItem",e)}var Hh=Mc("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Wh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Gh=gf(Ch,{shouldForwardProp:e=>hf(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})=>aa({},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"}},[`&.${Hh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vd(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Hh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vd(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Hh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vd(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})`:Vd(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Hh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Lh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Lh.inset}`]:{marginLeft:52},[`& .${$h.root}`]:{marginTop:0,marginBottom:0},[`& .${$h.inset}`]:{paddingLeft:36},[`& .${Nh.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&aa({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Nh.root} svg`]:{fontSize:"1.25rem"}}))));var Vh=y.forwardRef((function(e,t){const r=Fp({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=sa(r,Wh),f=y.useContext(Oh),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),h=y.useRef(null);od((()=>{n&&h.current&&h.current.focus()}),[n]);const g=aa({},r,{dense:m.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return aa({},a,Dd({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Bh,a))})(r),v=md(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),ra.jsx(Oh.Provider,{value:m,children:ra.jsx(Gh,aa({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Ic(b.focusVisible,l),className:Ic(b.root,d)},p,{ownerState:g,classes:b}))})}));var Uh=y.createContext();function Yh(e){return Pc("MuiTable",e)}Mc("MuiTable",["root","stickyHeader"]);const Kh=["className","component","padding","size","stickyHeader"],Xh=gf("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>aa({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":aa({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Jh="table",Zh=y.forwardRef((function(e,t){const r=Fp({props:e,name:"MuiTable"}),{className:n,component:o=Jh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=sa(r,Kh),u=aa({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Dd({root:["root",r&&"stickyHeader"]},Yh,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return ra.jsx(Uh.Provider,{value:d,children:ra.jsx(Xh,aa({as:o,role:o===Jh?null:"table",ref:t,className:Ic(c.root,n),ownerState:u},l))})}));var Qh=Zh;var eg=y.createContext();function tg(e){return Pc("MuiTableBody",e)}Mc("MuiTableBody",["root"]);const rg=["className","component"],ng=gf("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),og={variant:"body"},ig="tbody";var ag=y.forwardRef((function(e,t){const r=Fp({props:e,name:"MuiTableBody"}),{className:n,component:o=ig}=r,i=sa(r,rg),a=aa({},r,{component:o}),s=(e=>{const{classes:t}=e;return Dd({root:["root"]},tg,t)})(a);return ra.jsx(eg.Provider,{value:og,children:ra.jsx(ng,aa({className:Ic(s.root,n),as:o,ref:t,role:o===ig?null:"rowgroup",ownerState:a},i))})}));function sg(e){return Pc("MuiTableCell",e)}var lg=Mc("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const ug=["align","className","component","padding","scope","size","sortDirection","variant"],cg=gf("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${vu(r.size)}`],"normal"!==r.padding&&t[`padding${vu(r.padding)}`],"inherit"!==r.align&&t[`align${vu(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>aa({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Kd(Vd(e.palette.divider,1),.88):Ud(Vd(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${lg.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),dg=y.forwardRef((function(e,t){const r=Fp({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=sa(r,ug),p=y.useContext(Uh),f=y.useContext(eg),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=s;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=aa({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Dd({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${vu(n)}`,"normal"!==o&&`padding${vu(o)}`,`size${vu(i)}`]},sg,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),ra.jsx(cg,aa({as:h,ref:t,className:Ic(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var pg=dg;function fg(e){return Pc("MuiTableContainer",e)}Mc("MuiTableContainer",["root"]);const mg=["className","component"],hg=gf("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var gg=y.forwardRef((function(e,t){const r=Fp({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=sa(r,mg),a=aa({},r,{component:o}),s=(e=>{const{classes:t}=e;return Dd({root:["root"]},fg,t)})(a);return ra.jsx(hg,aa({ref:t,as:o,className:Ic(s.root,n),ownerState:a},i))}));function bg(e){return Pc("MuiTableHead",e)}Mc("MuiTableHead",["root"]);const vg=["className","component"],yg=gf("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),xg={variant:"head"},Sg="thead";var Eg=y.forwardRef((function(e,t){const r=Fp({props:e,name:"MuiTableHead"}),{className:n,component:o=Sg}=r,i=sa(r,vg),a=aa({},r,{component:o}),s=(e=>{const{classes:t}=e;return Dd({root:["root"]},bg,t)})(a);return ra.jsx(eg.Provider,{value:xg,children:ra.jsx(yg,aa({as:o,className:Ic(s.root,n),ref:t,role:o===Sg?null:"rowgroup",ownerState:a},i))})}));function Cg(e){return Pc("MuiTableRow",e)}var wg=Mc("MuiTableRow",["root","selected","hover","head","footer"]);const Rg=["className","component","hover","selected"],Ag=gf("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${wg.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${wg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vd(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vd(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Ig="tr",Dg=y.forwardRef((function(e,t){const r=Fp({props:e,name:"MuiTableRow"}),{className:n,component:o=Ig,hover:i=!1,selected:a=!1}=r,s=sa(r,Rg),l=y.useContext(eg),u=aa({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return Dd({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Cg,t)})(u);return ra.jsx(Ag,aa({as:o,ref:t,className:Ic(c.root,n),role:o===Ig?null:"row",ownerState:u},s))}));var Lg=Dg,Pg=(e={})=>x.createElement(Nm,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:xm.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Mg={MuiAccordion:{styleOverrides:{root:{backgroundColor:xm.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:xm.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(km,{"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 ${xm.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:xm.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${xm.MISC_FOCUS_BORDER}`,borderRadius:Rm,backgroundColor:xm.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 ${xm.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:xm.WHITE,color:xm.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:Rm},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${xm.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:xm.GREYSCALE_0_15,backgroundColor:xm.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:xm.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${xm.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:xm.GREEN_PALE},"&:active":{backgroundColor:xm.GREEN_DARK},"&.Mui-focusVisible":{borderColor:xm.GREEN_PALE,boxShadow:`0 0 0 3px ${ld(xm.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:xm.BLUE_PALE},"&:active":{backgroundColor:xm.BLUE_DARK},"&.Mui-focusVisible":{borderColor:xm.BLUE_PALE,boxShadow:`0 0 0 3px ${ld(xm.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:Rm,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:xm.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${xm.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:xm.GREYSCALE_0_15,backgroundColor:xm.GREYSCALE_100_60,"&:active":{backgroundColor:xm.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:xm.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${xm.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:xm.PURPLE,"&.Mui-focusVisible":{borderColor:xm.PURPLE,boxShadow:`0 0 0 3px ${ld(xm.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:xm.GREEN,"&.Mui-focusVisible":{borderColor:xm.GREEN,boxShadow:`0 0 0 3px ${ld(xm.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:xm.BLUE,"&.Mui-focusVisible":{borderColor:xm.BLUE,boxShadow:`0 0 0 3px ${ld(xm.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:xm.ORANGE,"&.Mui-focusVisible":{borderColor:xm.ORANGE,boxShadow:`0 0 0 3px ${ld(xm.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:xm.RED,"&.Mui-focusVisible":{borderColor:xm.RED,boxShadow:`0 0 0 3px ${ld(xm.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:xm.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:xm.PURPLE_PALE},"&:active":{backgroundColor:xm.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:xm.PURPLE_PALE,boxShadow:`0 0 0 3px ${ld(xm.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:xm.GREEN_PALE},"&:active":{backgroundColor:xm.GREEN_DARK},"&.Mui-focusVisible":{borderColor:xm.GREEN_PALE,boxShadow:`0 0 0 3px ${ld(xm.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:xm.BLUE_PALE},"&:active":{backgroundColor:xm.BLUE_DARK},"&.Mui-focusVisible":{borderColor:xm.BLUE_PALE,boxShadow:`0 0 0 3px ${ld(xm.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:xm.ORANGE_PALE},"&:active":{backgroundColor:xm.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:xm.ORANGE_PALE,boxShadow:`0 0 0 3px ${ld(xm.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:xm.RED_PALE},"&:active":{backgroundColor:xm.RED_DARK},"&.Mui-focusVisible":{borderColor:xm.RED_PALE,boxShadow:`0 0 0 3px ${ld(xm.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:xm.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:xm.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Rm,boxShadow:`inset 0 0 0 2px ${xm.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(qm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Sm,borderRadius:Rm,color:xm.TEXT_PRIMARY,backgroundColor:xm.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:xm.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${xm.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:xm.GREYSCALE_0_05,color:xm.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:xm.GREEN,borderColor:xm.GREEN},"&.MuiChip-outlinedInfo":{color:xm.BLUE,borderColor:xm.BLUE},"&.MuiChip-outlinedWarning":{color:xm.ORANGE,borderColor:xm.ORANGE},"&.MuiChip-outlinedError":{color:xm.RED,borderColor:xm.RED}},outlined:{border:`solid 1px ${xm.GREYSCALE_0_15}`,backgroundColor:xm.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Rm,boxShadow:"none",backgroundColor:xm.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:xm.GREEN,borderColor:xm.GREEN},outlinedSecondary:{color:xm.BLUE,borderColor:xm.BLUE},label:{fontFamily:Pm.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(qm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(km,{"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:Rm},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Rm,fontSize:Em,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:xm.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${xm.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:xm.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:xm.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:xm.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Rm,border:`solid 1px ${xm.GREYSCALE_0_15}`,color:xm.GREYSCALE_0_60,marginRight:0,width:wm,height:wm},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${xm.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Rm,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:xm.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Em}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Sm,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:xm.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:xm.GREYSCALE_25,fontSize:Sm,fontFamily:Pm.FONT_FAMILY,fontWeight:Dm,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:xm.TEXT_PRIMARY},"&.Mui-error":{color:xm.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:xm.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Im,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:xm.TEXT_SECONDARY,content:"'(required)'",fontWeight:Im,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Em,lineHeight:"16px",backgroundColor:xm.WHITE,borderRadius:Rm,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xm.GREYSCALE_0_05}`,borderColor:xm.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xm.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${xm.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${xm.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xm.RED}`,boxShadow:`0px 0px 0px 1px ${xm.RED}, inset 0 2px 0 0 ${xm.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xm.GREYSCALE_0_10}`,borderColor:xm.GREYSCALE_0_10,backgroundColor:xm.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:xm.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:xm.GREYSCALE_0_15,borderRadius:Rm,boxShadow:`inset 0 2px 0 0 ${xm.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(km,{...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:xm.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:xm.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:xm.GREYSCALE_0_03},"&:active":{backgroundColor:xm.GREYSCALE_0_10},"&:focus":{backgroundColor:xm.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${xm.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${xm.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:xm.GREYSCALE_0_30,"&:hover":{backgroundColor:xm.GREYSCALE_0_0,borderColor:xm.GREYSCALE_0_15},"& ~svg":{color:xm.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${xm.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Rm}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:xm.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${xm.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:xm.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Em,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Sm,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Sm,fontWeight:Dm,color:xm.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Dm}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${xm.GREYSCALE_0_15}, 0px 0px 0px 1px ${xm.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(jm,null),checkedIcon:x.createElement($m,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:xm.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${xm.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:xm.GREEN_PALE,boxShadow:`0 0 0 3px ${ld(xm.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:xm.BLUE_PALE,boxShadow:`0 0 0 3px ${ld(xm.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:xm.GREYSCALE_0_20}},"&.Mui-disabled":{fill:xm.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(Pg,null),checkedIcon:x.createElement(Fm,null),indeterminateIcon:x.createElement(zm,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Rm,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:xm.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:xm.GREYSCALE_0_55,color:xm.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:xm.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:xm.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:xm.GREYSCALE_0_55,"&:hover":{color:xm.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:xm.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:xm.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Em,color:xm.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Dm},secondary:{fontSize:Sm,color:xm.GREYSCALE_45,fontWeight:Im,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Em,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:xm.GREYSCALE_0_03},"&:active":{backgroundColor:xm.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Em,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:xm.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Sm,borderBottom:`solid 1px ${xm.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Em,color:xm.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:xm.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:xm.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:xm.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:xm.RED}}},"&.Mui-focusVisible":{backgroundColor:xm.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:xm.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:xm.GREEN,height:"24px","&.Mui-disabled":{color:xm.GREYSCALE_0_15}},rail:{backgroundColor:xm.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${xm.GREYSCALE_0_05}`,borderRadius:Rm,boxShadow:`inset 0px 0px 0px 1px ${xm.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${xm.GREYSCALE_0_05}`,borderRadius:Rm},thumb:{height:"16px",width:"16px",borderRadius:Rm,backgroundColor:xm.WHITE,boxShadow:`0px 1px 2px 0px ${xm.GREYSCALE_0_15}, 0px 0px 0px 1px ${xm.GREYSCALE_0_05}`,"&:hover":{borderRadius:Rm,boxShadow:`0 2px 4px 0 ${xm.GREYSCALE_0_30}, 0 0 0 1px ${xm.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${xm.GREYSCALE_0_15}, 0 0 0 1px ${xm.GREYSCALE_0_06}, 0 0 0 2px ${xm.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${xm.GREYSCALE_0_15}, 0 0 0 1px ${xm.GREYSCALE_0_06}, 0 0 0 2px ${xm.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:xm.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:xm.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:xm.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:xm.GREYSCALE_0_15},markLabel:{color:xm.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:xm.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:xm.WHITE,color:xm.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:xm.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:xm.GREEN_PALE,boxShadow:`0 0 0 3px ${ld(xm.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:xm.BLUE_PALE,boxShadow:`0 0 0 3px ${ld(xm.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:xm.GREYSCALE_0_15,borderRadius:Rm},thumb:{height:"16px",width:"16px",borderRadius:Rm,backgroundColor:xm.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:Em,fontWeight:Dm,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${xm.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${xm.MISC_FOCUS_BORDER}`,backgroundColor:xm.GREYSCALE_0_03,borderRadius:Rm},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:xm.GREYSCALE_25,"&.Mui-selected":{color:xm.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Em,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2,right:"unset",insetInlineEnd:0},vertical:{borderInlineEnd:`1px solid ${xm.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",borderInlineEnd:`2px solid ${xm.GREYSCALE_80}`,marginInlineEnd:"-2px"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${xm.GREYSCALE_85}`,borderRight:`1px solid ${xm.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Dm,backgroundColor:xm.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:xm.GREYSCALE_98,borderBottom:`1px solid ${xm.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${xm.GREYSCALE_85}`,borderTop:`1px solid ${xm.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:xm.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:xm.GREYSCALE_0_05,"&:hover":{backgroundColor:xm.GREYSCALE_0_03}},"&&:hover":{backgroundColor:xm.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(Bm,{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 ${xm.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Em,borderRadius:Rm,padding:"7px 16px",border:`1px solid ${xm.GREYSCALE_0_15}`,backgroundColor:xm.GREYSCALE_100_60,color:xm.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:xm.GREYSCALE_0_10,border:`1px solid ${xm.GREYSCALE_0_30}`},"&:hover":{backgroundColor:xm.GREYSCALE_0_03,border:`1px solid ${xm.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:xm.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${xm.MISC_FOCUS_BORDER}`,border:`1px solid ${xm.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:xm.GREYSCALE_25,backgroundColor:xm.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:xm.GREYSCALE_0_10,border:`1px solid ${xm.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Sm,height:24,width:24,padding:7},sizeLarge:{fontSize:Cm,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Em,borderRadius:Rm}}},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:xm.GREYSCALE_20},tooltip:{backgroundColor:xm.GREYSCALE_20,fontSize:Sm,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const _g={mode:"light",primary:{ultraLight:xm.GREEN_ULTRA_LIGHT,light:xm.GREEN_PALE,main:xm.GREEN,dark:xm.GREEN_DARK,extraDark:xm.GREEN_EXTRA_DARK,contrastText:xm.WHITE},secondary:{ultraLight:xm.BLUE_ULTRA_LIGHT,light:xm.BLUE_PALE,main:xm.BLUE,dark:xm.BLUE_DARK,extraDark:xm.BLUE_EXTRA_DARK,contrastText:xm.WHITE},error:{ultraLight:xm.RED_ULTRA_LIGHT,light:xm.RED_PALE,main:xm.RED,dark:xm.RED_DARK,extraDark:xm.RED_EXTRA_DARK,contrastText:xm.WHITE},warning:{ultraLight:xm.ORANGE_ULTRA_LIGHT,light:xm.ORANGE_PALE,main:xm.ORANGE,dark:xm.ORANGE_DARK,extraDark:xm.ORANGE_EXTRA_DARK,contrastText:xm.WHITE},success:{ultraLight:xm.GREEN_ULTRA_LIGHT,light:xm.GREEN_PALE,main:xm.GREEN,dark:xm.GREEN_DARK,extraDark:xm.GREEN_EXTRA_DARK,contrastText:xm.WHITE},info:{ultraLight:xm.BLUE_ULTRA_LIGHT,light:xm.BLUE_PALE,main:xm.BLUE,dark:xm.BLUE_DARK,extraDark:xm.BLUE_EXTRA_DARK,contrastText:xm.WHITE},text:{primary:xm.TEXT_PRIMARY,secondary:xm.TEXT_SECONDARY,disabled:xm.GREYSCALE_0_30},action:{hover:xm.GREYSCALE_0_03,hoverOpacity:.05,selected:xm.GREYSCALE_0_05,focus:xm.MISC_FOCUS_BORDER},amethyst:{ultraLight:xm.WHITE,main:xm.PURPLE,light:xm.PURPLE_PALE,dark:xm.PURPLE_DARK,extraDark:xm.GREYSCALE_0_0,contrastText:xm.WHITE},background:{paper:xm.WHITE,default:xm.GREYSCALE_95},divider:xm.GREYSCALE_0_15},Tg=e=>({components:Mg,palette:_g,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:Em,fontWeightLight:Am,fontWeightRegular:Im,fontWeightMedium:Dm,fontWeightBold:Lm,htmlFontSize:Em,fontFamily:Pm.FONT_FAMILY,button:{fontWeight:Dm,fontSize:Em,textTransform:"none"},body1:{fontSize:Cm,lineHeight:"24px"},body2:{fontSize:Em,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:wm,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Cm,fontWeight:Dm,lineHeight:"16px"},h6:{fontSize:Em,fontWeight:Dm,lineHeight:"16px"},caption:{color:xm.TEXT_SECONDARY},subtitle1:{fontSize:Em,color:xm.TEXT_SECONDARY},subtitle2:{fontSize:Sm,color:xm.TEXT_SECONDARY}},shape:{borderRadius:Rm}}),kg={...ym,MISC_FOCUS_BORDER:xm.MISC_FOCUS_BORDER},Og=(e="light")=>Tg(),qg=Og().palette,Ng={SELECTED:{color:kg.GREYSCALE_100,background:qg.primary.light,selectedCellClass:Nf.SELECTED},POSSIBLE:{color:qg.text.primary,background:kg.GREYSCALE_100},EXCLUDED_BACKGROUND:"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"},Fg=4/3,zg="12px",jg="600",$g={height:"auto",fontSize:zg,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},Bg=25e4,Hg=(e,t,r)=>{if(null==e||!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var s;if(e.columnWidth){const{columnWidth:{type:l,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(br.PixelsMax,Math.max(br.PixelsMin,m)),i-=n[a]};switch(l){case vr.Pixels:m=u||br.PixelsDefault,h();break;case vr.Percentage:m=(c||br.PercentageDefault)/100*t,h();break;case vr.FitToContent:(null===(s=e.representation)||void 0===s?void 0:s.type)===Li.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted),h());break;case vr.Auto:o.push(a);break;default:throw new Error(`${l} is not a valid column width type`)}}else o.push(a)})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(br.AutoMinTable,e)}))}return n},Wg={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"},Gg={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",...Wg,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)"},Vg=12,Ug=14,Yg=16,Kg=24,Xg=3,Jg=300,Zg=400,Qg=600,eb=700,tb={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};gm(Gg.GREYSCALE_0,.05),gm(Gg.GREEN_PALE,.5),gm(Gg.BLUE_PALE,.5),gm(Gg.GREEN_PALE,.5),gm(Gg.BLUE_PALE,.5),gm(Gg.GREEN_PALE,.5),gm(Gg.BLUE_PALE,.5);var rb;function nb(){return nb=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},nb.apply(this,arguments)}gm(Gg.GREEN_PALE,.5),gm(Gg.BLUE_PALE,.5),gm(Gg.GREEN_PALE,.5),gm(Gg.BLUE_PALE,.5);var ob,ib=function(e){return y.createElement("svg",nb({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),rb||(rb=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function ab(){return ab=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},ab.apply(this,arguments)}var sb=function(e){return y.createElement("svg",ab({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),ob||(ob=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function lb({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.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 ub=(e={})=>x.createElement(lb,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.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"}))),cb=(e={})=>x.createElement(lb,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),db=(e={})=>x.createElement(lb,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),pb=(e={})=>x.createElement(lb,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),fb=({className:e})=>x.createElement(lb,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.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"}),x.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"}))))));var mb={black:"#000",white:"#fff"};var hb={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 gb={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 bb={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 vb={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 yb={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"};var xb={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 Sb={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Eb(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 Cb="$$material";function wb(){return wb=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},wb.apply(this,arguments)}function Rb(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}const Ab=Kl((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 Ib=Ab;
|
|
111
|
+
`),Em.rippleVisible,Lm,550,(({theme:e})=>e.transitions.easing.easeInOut),Em.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Em.child,Em.childLeaving,Pm,550,(({theme:e})=>e.transitions.easing.easeInOut),Em.childPulsate,Mm,(({theme:e})=>e.transitions.easing.easeInOut));var Om=y.forwardRef((function(e,t){const r=$p({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=sa(r,Cm),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=y.useRef(!1),p=Sd(),f=y.useRef(null),m=y.useRef(null),h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,ra.jsx(Tm,{classes:{ripple:Pc(o.ripple,Em.ripple),rippleVisible:Pc(o.rippleVisible,Em.rippleVisible),ripplePulsate:Pc(o.ripplePulsate,Em.ripplePulsate),child:Pc(o.child,Em.child),childLeaving:Pc(o.childLeaving,Em.childLeaving),childPulsate:Pc(o.childPulsate,Em.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),ra.jsx(_m,aa({className:Pc(Em.root,o.root,i),ref:m},a,{children:ra.jsx(Sm,{component:null,exit:!0,children:s})}))}));function km(e){return Tc("MuiButtonBase",e)}var qm=Oc("MuiButtonBase",["root","disabled","focusVisible"]);const Nm=["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"],Fm=yf("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"},[`&.${qm.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),zm=y.forwardRef((function(e,t){const r=$p({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:D=0,TouchRippleProps:L,touchRippleRef:P,type:M}=r,_=sa(r,Nm),T=y.useRef(null),O=y.useRef(null),k=bd(O,P),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Pd(),[j,$]=y.useState(!1);l&&j&&$(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[B,H]=y.useState(!1);y.useEffect((()=>{H(!0)}),[]);const W=B&&!u&&!l;function G(e,t,r=c){return gd((n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0}))}y.useEffect((()=>{j&&d&&!u&&B&&O.current.pulsate()}),[u,d,j,B]);const V=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=G("start",I),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=gd((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=gd((e=>{d&&!ne.current&&j&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=gd((e=>{d&&" "===e.key&&O.current&&j&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(_.href||_.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===M?"button":M,se.disabled=l):(_.href||_.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=bd(t,z,T),ue=aa({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Md({root:["root",t&&"disabled",r&&"focusVisible"]},km,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ra.jsxs(Fm,aa({as:ae,className:Pc(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:D,type:M},se,_,{children:[i,W?ra.jsx(Om,aa({ref:k,center:o},L)):null]}))}));var jm=zm;var $m=Oc("MuiBox",["root"]);const Bm=zp(),Hm=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=su("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(hc);return y.forwardRef((function(e,a){const s=Ec(r),l=Rc(e),{className:u,component:c="div"}=l,d=sa(l,Mc);return ra.jsx(i,aa({as:c,ref:a,className:Pc(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:ia,defaultTheme:Bm,defaultClassName:$m.root,generateClassName:Dc.generate});var Wm=Hm;function Gm(e){return Tc("MuiDivider",e)}var Vm=Oc("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Um=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ym=yf("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})=>aa({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)`:Kd(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})=>aa({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>aa({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>aa({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>aa({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Km=yf("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>aa({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)`}))),Xm=y.forwardRef((function(e,t){const r=$p({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=sa(r,Um),m=aa({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Md({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Gm,n)})(m);return ra.jsx(Ym,aa({as:a,className:Pc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?ra.jsx(Km,{className:h.wrapper,ownerState:m,children:o}):null}))}));Xm.muiSkipListHighlight=!0;var Jm=Xm;var Zm=y.createContext({});function Qm(e){return Tc("MuiListItemIcon",e)}var eh=Oc("MuiListItemIcon",["root","alignItemsFlexStart"]);const th=["className"],rh=yf("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})=>aa({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var nh=y.forwardRef((function(e,t){const r=$p({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=sa(r,th),i=aa({},r,{alignItems:y.useContext(Zm).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Md({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Qm,r)})(i);return ra.jsx(rh,aa({className:Pc(a.root,n),ownerState:i,ref:t},o))}));var oh=Oc("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function ih(e){return Tc("MuiMenuItem",e)}var ah=Oc("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const sh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],lh=yf(jm,{shouldForwardProp:e=>vf(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})=>aa({},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"}},[`&.${ah.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kd(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ah.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Kd(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ah.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kd(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})`:Kd(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ah.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ah.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Vm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Vm.inset}`]:{marginLeft:52},[`& .${oh.root}`]:{marginTop:0,marginBottom:0},[`& .${oh.inset}`]:{paddingLeft:36},[`& .${eh.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&aa({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${eh.root} svg`]:{fontSize:"1.25rem"}}))));var uh=y.forwardRef((function(e,t){const r=$p({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=sa(r,sh),f=y.useContext(Zm),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),h=y.useRef(null);sd((()=>{n&&h.current&&h.current.focus()}),[n]);const g=aa({},r,{dense:m.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return aa({},a,Md({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},ih,a))})(r),v=bd(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),ra.jsx(Zm.Provider,{value:m,children:ra.jsx(lh,aa({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Pc(b.focusVisible,l),className:Pc(b.root,d)},p,{ownerState:g,classes:b}))})}));var ch=y.createContext();function dh(e){return Tc("MuiTable",e)}Oc("MuiTable",["root","stickyHeader"]);const ph=["className","component","padding","size","stickyHeader"],fh=yf("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>aa({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":aa({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),mh="table",hh=y.forwardRef((function(e,t){const r=$p({props:e,name:"MuiTable"}),{className:n,component:o=mh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=sa(r,ph),u=aa({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Md({root:["root",r&&"stickyHeader"]},dh,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return ra.jsx(ch.Provider,{value:d,children:ra.jsx(fh,aa({as:o,role:o===mh?null:"table",ref:t,className:Pc(c.root,n),ownerState:u},l))})}));var gh=hh;var bh=y.createContext();function vh(e){return Tc("MuiTableBody",e)}Oc("MuiTableBody",["root"]);const yh=["className","component"],xh=yf("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Sh={variant:"body"},Eh="tbody";var Ch=y.forwardRef((function(e,t){const r=$p({props:e,name:"MuiTableBody"}),{className:n,component:o=Eh}=r,i=sa(r,yh),a=aa({},r,{component:o}),s=(e=>{const{classes:t}=e;return Md({root:["root"]},vh,t)})(a);return ra.jsx(bh.Provider,{value:Sh,children:ra.jsx(xh,aa({className:Pc(s.root,n),as:o,ref:t,role:o===Eh?null:"rowgroup",ownerState:a},i))})}));function wh(e){return Tc("MuiTableCell",e)}var Rh=Oc("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const Ah=["align","className","component","padding","scope","size","sortDirection","variant"],Ih=yf("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Su(r.size)}`],"normal"!==r.padding&&t[`padding${Su(r.padding)}`],"inherit"!==r.align&&t[`align${Su(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>aa({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Zd(Kd(e.palette.divider,1),.88):Xd(Kd(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Rh.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),Dh=y.forwardRef((function(e,t){const r=$p({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=sa(r,Ah),p=y.useContext(ch),f=y.useContext(bh),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=s;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=aa({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Md({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Su(n)}`,"normal"!==o&&`padding${Su(o)}`,`size${Su(i)}`]},wh,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),ra.jsx(Ih,aa({as:h,ref:t,className:Pc(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var Lh=Dh;function Ph(e){return Tc("MuiTableContainer",e)}Oc("MuiTableContainer",["root"]);const Mh=["className","component"],_h=yf("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var Th=y.forwardRef((function(e,t){const r=$p({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=sa(r,Mh),a=aa({},r,{component:o}),s=(e=>{const{classes:t}=e;return Md({root:["root"]},Ph,t)})(a);return ra.jsx(_h,aa({ref:t,as:o,className:Pc(s.root,n),ownerState:a},i))}));function Oh(e){return Tc("MuiTableHead",e)}Oc("MuiTableHead",["root"]);const kh=["className","component"],qh=yf("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Nh={variant:"head"},Fh="thead";var zh=y.forwardRef((function(e,t){const r=$p({props:e,name:"MuiTableHead"}),{className:n,component:o=Fh}=r,i=sa(r,kh),a=aa({},r,{component:o}),s=(e=>{const{classes:t}=e;return Md({root:["root"]},Oh,t)})(a);return ra.jsx(bh.Provider,{value:Nh,children:ra.jsx(qh,aa({as:o,className:Pc(s.root,n),ref:t,role:o===Fh?null:"rowgroup",ownerState:a},i))})}));function jh(e){return Tc("MuiTableRow",e)}var $h=Oc("MuiTableRow",["root","selected","hover","head","footer"]);const Bh=["className","component","hover","selected"],Hh=yf("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${$h.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${$h.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kd(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kd(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Wh="tr",Gh=y.forwardRef((function(e,t){const r=$p({props:e,name:"MuiTableRow"}),{className:n,component:o=Wh,hover:i=!1,selected:a=!1}=r,s=sa(r,Bh),l=y.useContext(bh),u=aa({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return Md({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},jh,t)})(u);return ra.jsx(Hh,aa({as:o,ref:t,className:Pc(c.root,n),role:o===Wh?null:"row",ownerState:u},s))}));var Vh=Gh,Uh=(e={})=>x.createElement(em,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:Nf.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Yh={MuiAccordion:{styleOverrides:{root:{backgroundColor:Nf.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Nf.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(Jf,{"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 ${Nf.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Nf.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Nf.MISC_FOCUS_BORDER}`,borderRadius:Bf,backgroundColor:Nf.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 ${Nf.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Nf.WHITE,color:Nf.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:Bf},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Nf.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Nf.GREYSCALE_0_15,backgroundColor:Nf.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Nf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Nf.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Nf.GREEN_PALE},"&:active":{backgroundColor:Nf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Nf.GREEN_PALE,boxShadow:`0 0 0 3px ${dd(Nf.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Nf.BLUE_PALE},"&:active":{backgroundColor:Nf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Nf.BLUE_PALE,boxShadow:`0 0 0 3px ${dd(Nf.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:Bf,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Nf.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Nf.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Nf.GREYSCALE_0_15,backgroundColor:Nf.GREYSCALE_100_60,"&:active":{backgroundColor:Nf.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Nf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Nf.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Nf.PURPLE,"&.Mui-focusVisible":{borderColor:Nf.PURPLE,boxShadow:`0 0 0 3px ${dd(Nf.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Nf.GREEN,"&.Mui-focusVisible":{borderColor:Nf.GREEN,boxShadow:`0 0 0 3px ${dd(Nf.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Nf.BLUE,"&.Mui-focusVisible":{borderColor:Nf.BLUE,boxShadow:`0 0 0 3px ${dd(Nf.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Nf.ORANGE,"&.Mui-focusVisible":{borderColor:Nf.ORANGE,boxShadow:`0 0 0 3px ${dd(Nf.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Nf.RED,"&.Mui-focusVisible":{borderColor:Nf.RED,boxShadow:`0 0 0 3px ${dd(Nf.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Nf.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Nf.PURPLE_PALE},"&:active":{backgroundColor:Nf.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Nf.PURPLE_PALE,boxShadow:`0 0 0 3px ${dd(Nf.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Nf.GREEN_PALE},"&:active":{backgroundColor:Nf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Nf.GREEN_PALE,boxShadow:`0 0 0 3px ${dd(Nf.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Nf.BLUE_PALE},"&:active":{backgroundColor:Nf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Nf.BLUE_PALE,boxShadow:`0 0 0 3px ${dd(Nf.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Nf.ORANGE_PALE},"&:active":{backgroundColor:Nf.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Nf.ORANGE_PALE,boxShadow:`0 0 0 3px ${dd(Nf.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Nf.RED_PALE},"&:active":{backgroundColor:Nf.RED_DARK},"&.Mui-focusVisible":{borderColor:Nf.RED_PALE,boxShadow:`0 0 0 3px ${dd(Nf.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:Nf.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Nf.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Bf,boxShadow:`inset 0 0 0 2px ${Nf.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(Qf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ff,borderRadius:Bf,color:Nf.TEXT_PRIMARY,backgroundColor:Nf.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Nf.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Nf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Nf.GREYSCALE_0_05,color:Nf.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Nf.GREEN,borderColor:Nf.GREEN},"&.MuiChip-outlinedInfo":{color:Nf.BLUE,borderColor:Nf.BLUE},"&.MuiChip-outlinedWarning":{color:Nf.ORANGE,borderColor:Nf.ORANGE},"&.MuiChip-outlinedError":{color:Nf.RED,borderColor:Nf.RED}},outlined:{border:`solid 1px ${Nf.GREYSCALE_0_15}`,backgroundColor:Nf.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Bf,boxShadow:"none",backgroundColor:Nf.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Nf.GREEN,borderColor:Nf.GREEN},outlinedSecondary:{color:Nf.BLUE,borderColor:Nf.BLUE},label:{fontFamily:Uf.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(Qf,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(Jf,{"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:Bf},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Bf,fontSize:zf,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Nf.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Nf.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Nf.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Nf.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Nf.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Bf,border:`solid 1px ${Nf.GREYSCALE_0_15}`,color:Nf.GREYSCALE_0_60,marginRight:0,width:$f,height:$f},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Nf.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Bf,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Nf.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:zf}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ff,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Nf.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Nf.GREYSCALE_25,fontSize:Ff,fontFamily:Uf.FONT_FAMILY,fontWeight:Gf,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Nf.TEXT_PRIMARY},"&.Mui-error":{color:Nf.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Nf.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Wf,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Nf.TEXT_SECONDARY,content:"'(required)'",fontWeight:Wf,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:zf,lineHeight:"16px",backgroundColor:Nf.WHITE,borderRadius:Bf,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nf.GREYSCALE_0_05}`,borderColor:Nf.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nf.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Nf.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Nf.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nf.RED}`,boxShadow:`0px 0px 0px 1px ${Nf.RED}, inset 0 2px 0 0 ${Nf.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nf.GREYSCALE_0_10}`,borderColor:Nf.GREYSCALE_0_10,backgroundColor:Nf.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Nf.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Nf.GREYSCALE_0_15,borderRadius:Bf,boxShadow:`inset 0 2px 0 0 ${Nf.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(Jf,{...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:Nf.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Nf.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Nf.GREYSCALE_0_03},"&:active":{backgroundColor:Nf.GREYSCALE_0_10},"&:focus":{backgroundColor:Nf.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Nf.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Nf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Nf.GREYSCALE_0_30,"&:hover":{backgroundColor:Nf.GREYSCALE_0_0,borderColor:Nf.GREYSCALE_0_15},"& ~svg":{color:Nf.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Nf.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Bf}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Nf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Nf.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Nf.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:zf,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ff,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ff,fontWeight:Gf,color:Nf.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Gf}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Nf.GREYSCALE_0_15}, 0px 0px 0px 1px ${Nf.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(nm,null),checkedIcon:x.createElement(om,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Nf.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Nf.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Nf.GREEN_PALE,boxShadow:`0 0 0 3px ${dd(Nf.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Nf.BLUE_PALE,boxShadow:`0 0 0 3px ${dd(Nf.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Nf.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Nf.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(Uh,null),checkedIcon:x.createElement(tm,null),indeterminateIcon:x.createElement(rm,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Bf,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Nf.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Nf.GREYSCALE_0_55,color:Nf.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:Nf.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Nf.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Nf.GREYSCALE_0_55,"&:hover":{color:Nf.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:Nf.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Nf.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:zf,color:Nf.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Gf},secondary:{fontSize:Ff,color:Nf.GREYSCALE_45,fontWeight:Wf,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:zf,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Nf.GREYSCALE_0_03},"&:active":{backgroundColor:Nf.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:zf,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Nf.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ff,borderBottom:`solid 1px ${Nf.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:zf,color:Nf.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Nf.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Nf.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Nf.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:Nf.RED}}},"&.Mui-focusVisible":{backgroundColor:Nf.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:Nf.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:Nf.GREEN,height:"24px","&.Mui-disabled":{color:Nf.GREYSCALE_0_15}},rail:{backgroundColor:Nf.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Nf.GREYSCALE_0_05}`,borderRadius:Bf,boxShadow:`inset 0px 0px 0px 1px ${Nf.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Nf.GREYSCALE_0_05}`,borderRadius:Bf},thumb:{height:"16px",width:"16px",borderRadius:Bf,backgroundColor:Nf.WHITE,boxShadow:`0px 1px 2px 0px ${Nf.GREYSCALE_0_15}, 0px 0px 0px 1px ${Nf.GREYSCALE_0_05}`,"&:hover":{borderRadius:Bf,boxShadow:`0 2px 4px 0 ${Nf.GREYSCALE_0_30}, 0 0 0 1px ${Nf.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Nf.GREYSCALE_0_15}, 0 0 0 1px ${Nf.GREYSCALE_0_06}, 0 0 0 2px ${Nf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Nf.GREYSCALE_0_15}, 0 0 0 1px ${Nf.GREYSCALE_0_06}, 0 0 0 2px ${Nf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Nf.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Nf.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Nf.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Nf.GREYSCALE_0_15},markLabel:{color:Nf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Nf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Nf.WHITE,color:Nf.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:Nf.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:Nf.GREEN_PALE,boxShadow:`0 0 0 3px ${dd(Nf.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Nf.BLUE_PALE,boxShadow:`0 0 0 3px ${dd(Nf.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Nf.GREYSCALE_0_15,borderRadius:Bf},thumb:{height:"16px",width:"16px",borderRadius:Bf,backgroundColor:Nf.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:zf,fontWeight:Gf,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Nf.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Nf.MISC_FOCUS_BORDER}`,backgroundColor:Nf.GREYSCALE_0_03,borderRadius:Bf},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Nf.GREYSCALE_25,"&.Mui-selected":{color:Nf.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:zf,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2,right:"unset",insetInlineEnd:0},vertical:{borderInlineEnd:`1px solid ${Nf.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",borderInlineEnd:`2px solid ${Nf.GREYSCALE_80}`,marginInlineEnd:"-2px"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Nf.GREYSCALE_85}`,borderRight:`1px solid ${Nf.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Gf,backgroundColor:Nf.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:Nf.GREYSCALE_98,borderBottom:`1px solid ${Nf.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Nf.GREYSCALE_85}`,borderTop:`1px solid ${Nf.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Nf.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Nf.GREYSCALE_0_05,"&:hover":{backgroundColor:Nf.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Nf.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(im,{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 ${Nf.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:zf,borderRadius:Bf,padding:"7px 16px",border:`1px solid ${Nf.GREYSCALE_0_15}`,backgroundColor:Nf.GREYSCALE_100_60,color:Nf.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Nf.GREYSCALE_0_10,border:`1px solid ${Nf.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Nf.GREYSCALE_0_03,border:`1px solid ${Nf.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Nf.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Nf.MISC_FOCUS_BORDER}`,border:`1px solid ${Nf.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Nf.GREYSCALE_25,backgroundColor:Nf.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Nf.GREYSCALE_0_10,border:`1px solid ${Nf.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ff,height:24,width:24,padding:7},sizeLarge:{fontSize:jf,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:zf,borderRadius:Bf}}},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:Nf.GREYSCALE_20},tooltip:{backgroundColor:Nf.GREYSCALE_20,fontSize:Ff,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Kh={mode:"light",primary:{ultraLight:Nf.GREEN_ULTRA_LIGHT,light:Nf.GREEN_PALE,main:Nf.GREEN,dark:Nf.GREEN_DARK,extraDark:Nf.GREEN_EXTRA_DARK,contrastText:Nf.WHITE},secondary:{ultraLight:Nf.BLUE_ULTRA_LIGHT,light:Nf.BLUE_PALE,main:Nf.BLUE,dark:Nf.BLUE_DARK,extraDark:Nf.BLUE_EXTRA_DARK,contrastText:Nf.WHITE},error:{ultraLight:Nf.RED_ULTRA_LIGHT,light:Nf.RED_PALE,main:Nf.RED,dark:Nf.RED_DARK,extraDark:Nf.RED_EXTRA_DARK,contrastText:Nf.WHITE},warning:{ultraLight:Nf.ORANGE_ULTRA_LIGHT,light:Nf.ORANGE_PALE,main:Nf.ORANGE,dark:Nf.ORANGE_DARK,extraDark:Nf.ORANGE_EXTRA_DARK,contrastText:Nf.WHITE},success:{ultraLight:Nf.GREEN_ULTRA_LIGHT,light:Nf.GREEN_PALE,main:Nf.GREEN,dark:Nf.GREEN_DARK,extraDark:Nf.GREEN_EXTRA_DARK,contrastText:Nf.WHITE},info:{ultraLight:Nf.BLUE_ULTRA_LIGHT,light:Nf.BLUE_PALE,main:Nf.BLUE,dark:Nf.BLUE_DARK,extraDark:Nf.BLUE_EXTRA_DARK,contrastText:Nf.WHITE},text:{primary:Nf.TEXT_PRIMARY,secondary:Nf.TEXT_SECONDARY,disabled:Nf.GREYSCALE_0_30},action:{hover:Nf.GREYSCALE_0_03,hoverOpacity:.05,selected:Nf.GREYSCALE_0_05,focus:Nf.MISC_FOCUS_BORDER},amethyst:{ultraLight:Nf.WHITE,main:Nf.PURPLE,light:Nf.PURPLE_PALE,dark:Nf.PURPLE_DARK,extraDark:Nf.GREYSCALE_0_0,contrastText:Nf.WHITE},background:{paper:Nf.WHITE,default:Nf.GREYSCALE_95},divider:Nf.GREYSCALE_0_15},Xh=e=>({components:Yh,palette:Kh,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:zf,fontWeightLight:Hf,fontWeightRegular:Wf,fontWeightMedium:Gf,fontWeightBold:Vf,htmlFontSize:zf,fontFamily:Uf.FONT_FAMILY,button:{fontWeight:Gf,fontSize:zf,textTransform:"none"},body1:{fontSize:jf,lineHeight:"24px"},body2:{fontSize:zf,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:$f,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:jf,fontWeight:Gf,lineHeight:"16px"},h6:{fontSize:zf,fontWeight:Gf,lineHeight:"16px"},caption:{color:Nf.TEXT_SECONDARY},subtitle1:{fontSize:zf,color:Nf.TEXT_SECONDARY},subtitle2:{fontSize:Ff,color:Nf.TEXT_SECONDARY}},shape:{borderRadius:Bf}}),Jh={...qf,MISC_FOCUS_BORDER:Nf.MISC_FOCUS_BORDER},Zh=(e="light")=>Xh(),Qh=Zh().palette,eg={SELECTED:{color:Jh.GREYSCALE_100,background:Qh.primary.light,selectedCellClass:Cf.SELECTED},POSSIBLE:{color:Qh.text.primary,background:Jh.GREYSCALE_100},EXCLUDED_BACKGROUND:"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"},tg=4/3,rg="12px",ng="600",og={height:"auto",fontSize:rg,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},ig=25e4,ag=(e,t,r)=>{if(null==e||!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var s;if(e.columnWidth){const{columnWidth:{type:l,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(br.PixelsMax,Math.max(br.PixelsMin,m)),i-=n[a]};switch(l){case vr.Pixels:m=u||br.PixelsDefault,h();break;case vr.Percentage:m=(c||br.PercentageDefault)/100*t,h();break;case vr.FitToContent:(null===(s=e.representation)||void 0===s?void 0:s.type)===Li.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted),h());break;case vr.Auto:o.push(a);break;default:throw new Error(`${l} is not a valid column width type`)}}else o.push(a)})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(br.AutoMinTable,e)}))}return n},sg={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"},lg={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",...sg,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)"},ug=12,cg=14,dg=16,pg=24,fg=3,mg=300,hg=400,gg=600,bg=700,vg={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Tf(lg.GREYSCALE_0,.05),Tf(lg.GREEN_PALE,.5),Tf(lg.BLUE_PALE,.5),Tf(lg.GREEN_PALE,.5),Tf(lg.BLUE_PALE,.5),Tf(lg.GREEN_PALE,.5),Tf(lg.BLUE_PALE,.5);var yg;function xg(){return xg=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},xg.apply(this,arguments)}Tf(lg.GREEN_PALE,.5),Tf(lg.BLUE_PALE,.5),Tf(lg.GREEN_PALE,.5),Tf(lg.BLUE_PALE,.5);var Sg,Eg=function(e){return y.createElement("svg",xg({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),yg||(yg=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Cg(){return Cg=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},Cg.apply(this,arguments)}var wg=function(e){return y.createElement("svg",Cg({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Sg||(Sg=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function Rg({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.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 Ag=(e={})=>x.createElement(Rg,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.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"}))),Ig=(e={})=>x.createElement(Rg,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Dg=(e={})=>x.createElement(Rg,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Lg=(e={})=>x.createElement(Rg,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),Pg=({className:e})=>x.createElement(Rg,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.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"}),x.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"}))))));var Mg={black:"#000",white:"#fff"};var _g={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 Tg={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 Og={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 kg={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 qg={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"};var Ng={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 Fg={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function zg(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 jg="$$material";function $g(){return $g=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},$g.apply(this,arguments)}function Bg(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}const Hg=Zl((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 Wg=Hg;
|
|
112
112
|
/**
|
|
113
113
|
* @mui/styled-engine-sc v6.0.0-alpha.17
|
|
114
114
|
*
|
|
@@ -116,7 +116,7 @@ function ou(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldFo
|
|
|
116
116
|
* This source code is licensed under the MIT license found in the
|
|
117
117
|
* LICENSE file in the root directory of this source tree.
|
|
118
118
|
*/
|
|
119
|
-
function Db(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ul(e),r}Ab.propTypes={defaultTheme:eu.object,styles:eu.oneOfType([eu.array,eu.string,eu.object,eu.func])};const Lb=["values","unit","step"],Pb=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)=>aa({},e,{[t.key]:t.val})),{})};var Mb={borderRadius:4};function _b(e,t){return t?lu(e,t,{clone:!1}):e}const Tb={xs:0,sm:600,md:900,lg:1200,xl:1536},kb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Tb[e]}px)`};function Ob(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||kb;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||kb;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Tb).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function qb(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 Nb(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:qb(e,r)||n,t&&(o=t(o,n,e)),o}function Fb(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=qb(e.theme,n)||{};return Ob(e,i,(e=>{let n=Nb(a,o,e);return e===n&&"string"==typeof e&&(n=Nb(a,o,`${t}${"default"===e?"":vu(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const zb={m:"margin",p:"padding"},jb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$b={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Bb=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!$b[e])return[e];e=$b[e]}const[t,r]=e.split(""),n=zb[t],o=jb[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Hb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Wb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Gb(e,t,r,n){var o;const i=null!=(o=qb(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 Vb(e){return Gb(e,"spacing",8)}function Ub(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 Yb(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Ub(t,r),e)),{})}(Bb(r),n);return Ob(e,e[r],o)}function Kb(e,t){const r=Vb(e.theme);return Object.keys(e).map((n=>Yb(e,t,n,r))).reduce(_b,{})}function Xb(e){return Kb(e,Hb)}function Jb(e){return Kb(e,Wb)}function Zb(...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]?_b(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Qb(e){return"number"!=typeof e?e:`${e}px solid`}function ev(e,t){return Fb({prop:e,themeKey:"borders",transform:t})}Xb.propTypes={},Xb.filterProps=Hb,Jb.propTypes={},Jb.filterProps=Wb;const tv=ev("border",Qb),rv=ev("borderTop",Qb),nv=ev("borderRight",Qb),ov=ev("borderBottom",Qb),iv=ev("borderLeft",Qb),av=ev("borderColor"),sv=ev("borderTopColor"),lv=ev("borderRightColor"),uv=ev("borderBottomColor"),cv=ev("borderLeftColor"),dv=ev("outline",Qb),pv=ev("outlineColor"),fv=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Gb(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ub(t,e)});return Ob(e,e.borderRadius,r)}return null};fv.propTypes={},fv.filterProps=["borderRadius"],Zb(tv,rv,nv,ov,iv,av,sv,lv,uv,cv,fv,dv,pv);const mv=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Gb(e.theme,"spacing",8),r=e=>({gap:Ub(t,e)});return Ob(e,e.gap,r)}return null};mv.propTypes={},mv.filterProps=["gap"];const hv=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Gb(e.theme,"spacing",8),r=e=>({columnGap:Ub(t,e)});return Ob(e,e.columnGap,r)}return null};hv.propTypes={},hv.filterProps=["columnGap"];const gv=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Gb(e.theme,"spacing",8),r=e=>({rowGap:Ub(t,e)});return Ob(e,e.rowGap,r)}return null};gv.propTypes={},gv.filterProps=["rowGap"];function bv(e,t){return"grey"===t?t:e}Zb(mv,hv,gv,Fb({prop:"gridColumn"}),Fb({prop:"gridRow"}),Fb({prop:"gridAutoFlow"}),Fb({prop:"gridAutoColumns"}),Fb({prop:"gridAutoRows"}),Fb({prop:"gridTemplateColumns"}),Fb({prop:"gridTemplateRows"}),Fb({prop:"gridTemplateAreas"}),Fb({prop:"gridArea"}));function vv(e){return e<=1&&0!==e?100*e+"%":e}Zb(Fb({prop:"color",themeKey:"palette",transform:bv}),Fb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bv}),Fb({prop:"backgroundColor",themeKey:"palette",transform:bv}));const yv=Fb({prop:"width",transform:vv}),xv=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])||Tb[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:vv(t)}};return Ob(e,e.maxWidth,t)}return null};xv.filterProps=["maxWidth"];const Sv=Fb({prop:"minWidth",transform:vv}),Ev=Fb({prop:"height",transform:vv}),Cv=Fb({prop:"maxHeight",transform:vv}),wv=Fb({prop:"minHeight",transform:vv});Fb({prop:"size",cssProperty:"width",transform:vv}),Fb({prop:"size",cssProperty:"height",transform:vv});Zb(yv,xv,Sv,Ev,Cv,wv,Fb({prop:"boxSizing"}));var Rv={border:{themeKey:"borders",transform:Qb},borderTop:{themeKey:"borders",transform:Qb},borderRight:{themeKey:"borders",transform:Qb},borderBottom:{themeKey:"borders",transform:Qb},borderLeft:{themeKey:"borders",transform:Qb},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qb},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:fv},color:{themeKey:"palette",transform:bv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bv},backgroundColor:{themeKey:"palette",transform:bv},p:{style:Jb},pt:{style:Jb},pr:{style:Jb},pb:{style:Jb},pl:{style:Jb},px:{style:Jb},py:{style:Jb},padding:{style:Jb},paddingTop:{style:Jb},paddingRight:{style:Jb},paddingBottom:{style:Jb},paddingLeft:{style:Jb},paddingX:{style:Jb},paddingY:{style:Jb},paddingInline:{style:Jb},paddingInlineStart:{style:Jb},paddingInlineEnd:{style:Jb},paddingBlock:{style:Jb},paddingBlockStart:{style:Jb},paddingBlockEnd:{style:Jb},m:{style:Xb},mt:{style:Xb},mr:{style:Xb},mb:{style:Xb},ml:{style:Xb},mx:{style:Xb},my:{style:Xb},margin:{style:Xb},marginTop:{style:Xb},marginRight:{style:Xb},marginBottom:{style:Xb},marginLeft:{style:Xb},marginX:{style:Xb},marginY:{style:Xb},marginInline:{style:Xb},marginInlineStart:{style:Xb},marginInlineEnd:{style:Xb},marginBlock:{style:Xb},marginBlockStart:{style:Xb},marginBlockEnd:{style:Xb},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:mv},rowGap:{style:gv},columnGap:{style:hv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vv},maxWidth:{style:xv},minWidth:{transform:vv},height:{transform:vv},maxHeight:{transform:vv},minHeight:{transform:vv},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Av=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:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=qb(r,s)||{};if(u)return u(o);return Ob(o,t,(t=>{let r=Nb(c,l,t);return t===r&&"string"==typeof t&&(r=Nb(c,l,`${e}${"default"===t?"":vu(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:Rv;function s(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[r])l=_b(l,e(r,o,i,a));else{const e=Ob({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=_b(l,e):l[r]=t({sx:o,theme:i})}else l=_b(l,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();Av.filterProps=["sx"];var Iv=Av;function Dv(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}const Lv=["breakpoints","palette","spacing","shape"];function Pv(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=sa(e,Lv),s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=sa(e,Lb),i=Pb(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return aa({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),l=function(e=8){if(e.mui)return e;const t=Vb({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:s,direction:"ltr",components:{},palette:aa({mode:"light"},n),spacing:l,shape:aa({},Mb,i)},a);return u.applyStyles=Dv,u=t.reduce(((e,t)=>lu(e,t)),u),u.unstable_sxConfig=aa({},Rv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Iv({sx:e,theme:this})},u}function Mv(e=null){const t=y.useContext(zl);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const _v=Pv();function Tv(e=_v){return Mv(e)}function kv({styles:e,themeId:t,defaultTheme:r={}}){const n=Tv(r),o="function"==typeof e?e(t&&n[t]||n):e;return ra.jsx(Ib,{styles:o})}const Ov=["sx"],qv=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Rv;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function Nv(e){const{sx:t}=e,r=sa(e,Ov),{systemProps:n,otherProps:o}=qv(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return au(r)?aa({},n,r):n}:aa({},n,t),aa({},o,{sx:i})}const Fv=["className","component"];const zv=["ownerState"],jv=["variants"],$v=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Bv(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Hv=Pv(),Wv=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Gv({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Vv(e){return e?(t,r)=>r[e]:null}function Uv(e,t){let{ownerState:r}=t,n=sa(t,zv);const o="function"==typeof e?e(aa({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Uv(e,aa({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=sa(o,jv);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(aa({ownerState:r},n)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(aa({ownerState:r},n)):e.style))})),t}return o}function Yv({props:e,name:t,defaultTheme:r,themeId:n}){let o=Tv(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?rd(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function Kv(e,t=0,r=1){return id(e,t,r)}function Xv(e){if(e.type)return e;if("#"===e.charAt(0))return Xv(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(na(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(na(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Jv(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 Zv(e){let t="hsl"===(e=Xv(e)).type||"hsla"===e.type?Xv(function(e){e=Xv(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Jv({type:s,values:l})}(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 Qv(e,t){return e=Xv(e),t=Kv(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Jv(e)}function ey(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 ty(e){if(!ey(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=ty(e[r])})),t}function ry(e,t,r={clone:!0}){const n=r.clone?aa({},e):e;return ey(e)&&ey(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(ey(t[o])&&o in e&&ey(e[o])?n[o]=ry(e[o],t[o],r):r.clone?n[o]=ey(t[o])?ty(t[o]):t[o]:n[o]=t[o])})),n}function ny(e){if("string"!=typeof e)throw new Error(Eb(7));return e.charAt(0).toUpperCase()+e.slice(1)}function oy(e){return e&&e.ownerDocument||document}function iy(e){return oy(e).defaultView||window}var ay="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;let sy=0;const ly=y["useId".toString()];function uy(e){if(void 0!==ly){const t=ly();return null!=e?e:t}return function(e){const[t,r]=y.useState(e),n=e||t;return y.useEffect((()=>{null==t&&(sy+=1,r(`mui-${sy}`))}),[t]),n}(e)}function cy({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function dy(e){const t=y.useRef(e);return ay((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function py(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class fy{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new fy}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let my=!0,hy=!1;const gy=new fy,by={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 vy(e){e.metaKey||e.altKey||e.ctrlKey||(my=!0)}function yy(){my=!1}function xy(){"hidden"===this.visibilityState&&hy&&(my=!0)}function Sy(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return my||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!by[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Ey(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",vy,!0),t.addEventListener("mousedown",yy,!0),t.addEventListener("pointerdown",yy,!0),t.addEventListener("touchstart",yy,!0),t.addEventListener("visibilitychange",xy,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Sy(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(hy=!0,gy.start(100,(()=>{hy=!1})),t.current=!1,!0)},ref:e}}function Cy(e,t){const r=aa({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=aa({},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]=aa({},i),Object.keys(o).forEach((e=>{r[n][e]=Cy(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const wy=e=>e;var Ry=(()=>{let e=wy;return{configure(t){e=t},generate:t=>e(t),reset(){e=wy}}})();const Ay={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 Iy(e,t,r="Mui"){const n=Ay[t];return n?`${r}-${n}`:`${Ry.generate(e)}-${t}`}function Dy(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Iy(e,t,r)})),n}const Ly=["mode","contrastThreshold","tonalOffset"],Py={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:mb.white,default:mb.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}},My={text:{primary:mb.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:mb.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 _y(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=Xv(e),t=Kv(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 Jv(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Xv(e),t=Kv(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 Jv(e)}(e.main,i)))}function Ty(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Rb(e,Ly),i=e.primary||function(e="light"){return"dark"===e?{main:bb[200],light:bb[50],dark:bb[400]}:{main:bb[700],light:bb[400],dark:bb[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:gb[200],light:gb[50],dark:gb[400]}:{main:gb[500],light:gb[300],dark:gb[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:hb[500],light:hb[300],dark:hb[700]}:{main:hb[700],light:hb[400],dark:hb[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:vb[400],light:vb[300],dark:vb[700]}:{main:vb[700],light:vb[500],dark:vb[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:yb[400],light:yb[300],dark:yb[700]}:{main:yb[800],light:yb[500],dark:yb[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:xb[400],light:xb[300],dark:xb[700]}:{main:"#ed6c02",light:xb[500],dark:xb[900]}}(t);function d(e){const t=function(e,t){const r=Zv(e),n=Zv(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,My.text.primary)>=r?My.text.primary:Py.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=wb({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Eb(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Eb(12,t?` (${t})`:"",JSON.stringify(e.main)));return _y(e,"light",o,n),_y(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:My,light:Py};return ry(wb({common:wb({},mb),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Sb,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const ky=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Oy={textTransform:"uppercase"},qy='"Roboto", "Helvetica", "Arial", sans-serif';function Ny(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=qy,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Rb(r,ky),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return wb({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===qy?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Oy),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Oy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ry(wb({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Fy(...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 zy=["none",Fy(0,2,1,-1,0,1,1,0,0,1,3,0),Fy(0,3,1,-2,0,2,2,0,0,1,5,0),Fy(0,3,3,-2,0,3,4,0,0,1,8,0),Fy(0,2,4,-1,0,4,5,0,0,1,10,0),Fy(0,3,5,-1,0,5,8,0,0,1,14,0),Fy(0,3,5,-1,0,6,10,0,0,1,18,0),Fy(0,4,5,-2,0,7,10,1,0,2,16,1),Fy(0,5,5,-3,0,8,10,1,0,3,14,2),Fy(0,5,6,-3,0,9,12,1,0,3,16,2),Fy(0,6,6,-3,0,10,14,1,0,4,18,3),Fy(0,6,7,-4,0,11,15,1,0,4,20,3),Fy(0,7,8,-4,0,12,17,2,0,5,22,4),Fy(0,7,8,-4,0,13,19,2,0,5,24,4),Fy(0,7,9,-4,0,14,21,2,0,5,26,4),Fy(0,8,9,-5,0,15,22,2,0,6,28,5),Fy(0,8,10,-5,0,16,24,2,0,6,30,5),Fy(0,8,11,-5,0,17,26,2,0,6,32,5),Fy(0,9,11,-5,0,18,28,2,0,7,34,6),Fy(0,9,12,-6,0,19,29,2,0,7,36,6),Fy(0,10,13,-6,0,20,31,3,0,8,38,7),Fy(0,10,13,-6,0,21,33,3,0,8,40,7),Fy(0,10,14,-6,0,22,35,3,0,8,42,7),Fy(0,11,14,-7,0,23,36,3,0,9,44,8),Fy(0,11,15,-7,0,24,38,3,0,9,46,8)];const jy=["duration","easing","delay"],$y={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)"},By={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Hy(e){return`${Math.round(e)}ms`}function Wy(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Gy(e){const t=wb({},$y,e.easing),r=wb({},By,e.duration);return wb({getAutoHeightDuration:Wy,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Rb(n,jy),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Hy(o)} ${i} ${"string"==typeof a?a:Hy(a)}`)).join(",")}},e,{easing:t,duration:r})}var Vy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Uy=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Yy(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Rb(e,Uy);if(e.vars)throw new Error(Eb(18));const s=Ty(n),l=Pv(e);let u=ry(l,{mixins:(c=l.breakpoints,d=r,wb({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:zy.slice(),typography:Ny(s,i),transitions:Gy(o),zIndex:wb({},Vy),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=ry(u,a),u=t.reduce(((e,t)=>ry(e,t)),u),u.unstable_sxConfig=wb({},Rv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Iv({sx:e,theme:this})},u}var Ky=Yy();function Xy(){const e=Tv(Ky);return e[Cb]||e}function Jy({props:e,name:t}){return Yv({props:e,name:t,defaultTheme:Ky,themeId:Cb})}const Zy=e=>Bv(e)&&"classes"!==e,Qy=Bv,ex=function(e={}){const{themeId:t,defaultTheme:r=Hv,rootShouldForwardProp:n=Bv,slotShouldForwardProp:o=Bv}=e,i=e=>Iv(aa({},e,{theme:Gv(aa({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Vv(Wv(l))}=a,p=sa(a,$v),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let h=Bv;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Db(e,aa({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||au(e)?n=>Uv(e,aa({},n,{theme:Gv({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push((e=>{const n=Gv(aa({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Uv(r,aa({},e,{theme:n}))})),d(e,i)})),s&&!f&&l.push((e=>{var n;const o=Gv(aa({},e,{defaultTheme:r,themeId:t}));return Uv({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},aa({},e,{theme:o}))})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Cb,defaultTheme:Ky,rootShouldForwardProp:Zy});var tx=ex;var rx=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function nx(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=nx(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ox(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=nx(e))&&(n&&(n+=" "),n+=t);return n}function ix(e){return Iy("MuiSvgIcon",e)}Dy("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ax=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],sx=tx("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${ny(r.color)}`],t[`fontSize${ny(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),lx=y.forwardRef((function(e,t){const r=Jy({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=Rb(r,ax),f=y.isValidElement(n)&&"svg"===n.type,m=wb({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Dd({root:["root","inherit"!==t&&`color${ny(t)}`,`fontSize${ny(r)}`]},ix,n)})(m);return ra.jsxs(sx,wb({as:a,className:ox(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&n.props,{ownerState:m,children:[f?n.props.children:n,c?ra.jsx("title",{children:c}):null]}))}));lx.muiName="SvgIcon";var ux=lx;var cx,dx={},px=Symbol.for("react.element"),fx=Symbol.for("react.portal"),mx=Symbol.for("react.fragment"),hx=Symbol.for("react.strict_mode"),gx=Symbol.for("react.profiler"),bx=Symbol.for("react.provider"),vx=Symbol.for("react.context"),yx=Symbol.for("react.server_context"),xx=Symbol.for("react.forward_ref"),Sx=Symbol.for("react.suspense"),Ex=Symbol.for("react.suspense_list"),Cx=Symbol.for("react.memo"),wx=Symbol.for("react.lazy"),Rx=Symbol.for("react.offscreen");
|
|
119
|
+
function Gg(e,t){let r;return r=t?Xl(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Xl(e),r}Hg.propTypes={defaultTheme:nu.object,styles:nu.oneOfType([nu.array,nu.string,nu.object,nu.func])};const Vg=["values","unit","step"],Ug=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)=>aa({},e,{[t.key]:t.val})),{})};var Yg={borderRadius:4};function Kg(e,t){return t?du(e,t,{clone:!1}):e}const Xg={xs:0,sm:600,md:900,lg:1200,xl:1536},Jg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Xg[e]}px)`};function Zg(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Jg;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Jg;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Xg).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Qg(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 eb(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Qg(e,r)||n,t&&(o=t(o,n,e)),o}function tb(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=Qg(e.theme,n)||{};return Zg(e,i,(e=>{let n=eb(a,o,e);return e===n&&"string"==typeof e&&(n=eb(a,o,`${t}${"default"===e?"":Su(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const rb={m:"margin",p:"padding"},nb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ob={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ib=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!ob[e])return[e];e=ob[e]}const[t,r]=e.split(""),n=rb[t],o=nb[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),ab=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],sb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function lb(e,t,r,n){var o;const i=null!=(o=Qg(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 ub(e){return lb(e,"spacing",8)}function cb(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 db(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=cb(t,r),e)),{})}(ib(r),n);return Zg(e,e[r],o)}function pb(e,t){const r=ub(e.theme);return Object.keys(e).map((n=>db(e,t,n,r))).reduce(Kg,{})}function fb(e){return pb(e,ab)}function mb(e){return pb(e,sb)}function hb(...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]?Kg(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function gb(e){return"number"!=typeof e?e:`${e}px solid`}function bb(e,t){return tb({prop:e,themeKey:"borders",transform:t})}fb.propTypes={},fb.filterProps=ab,mb.propTypes={},mb.filterProps=sb;const vb=bb("border",gb),yb=bb("borderTop",gb),xb=bb("borderRight",gb),Sb=bb("borderBottom",gb),Eb=bb("borderLeft",gb),Cb=bb("borderColor"),wb=bb("borderTopColor"),Rb=bb("borderRightColor"),Ab=bb("borderBottomColor"),Ib=bb("borderLeftColor"),Db=bb("outline",gb),Lb=bb("outlineColor"),Pb=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=lb(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:cb(t,e)});return Zg(e,e.borderRadius,r)}return null};Pb.propTypes={},Pb.filterProps=["borderRadius"],hb(vb,yb,xb,Sb,Eb,Cb,wb,Rb,Ab,Ib,Pb,Db,Lb);const Mb=e=>{if(void 0!==e.gap&&null!==e.gap){const t=lb(e.theme,"spacing",8),r=e=>({gap:cb(t,e)});return Zg(e,e.gap,r)}return null};Mb.propTypes={},Mb.filterProps=["gap"];const _b=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=lb(e.theme,"spacing",8),r=e=>({columnGap:cb(t,e)});return Zg(e,e.columnGap,r)}return null};_b.propTypes={},_b.filterProps=["columnGap"];const Tb=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=lb(e.theme,"spacing",8),r=e=>({rowGap:cb(t,e)});return Zg(e,e.rowGap,r)}return null};Tb.propTypes={},Tb.filterProps=["rowGap"];function Ob(e,t){return"grey"===t?t:e}hb(Mb,_b,Tb,tb({prop:"gridColumn"}),tb({prop:"gridRow"}),tb({prop:"gridAutoFlow"}),tb({prop:"gridAutoColumns"}),tb({prop:"gridAutoRows"}),tb({prop:"gridTemplateColumns"}),tb({prop:"gridTemplateRows"}),tb({prop:"gridTemplateAreas"}),tb({prop:"gridArea"}));function kb(e){return e<=1&&0!==e?100*e+"%":e}hb(tb({prop:"color",themeKey:"palette",transform:Ob}),tb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ob}),tb({prop:"backgroundColor",themeKey:"palette",transform:Ob}));const qb=tb({prop:"width",transform:kb}),Nb=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])||Xg[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:kb(t)}};return Zg(e,e.maxWidth,t)}return null};Nb.filterProps=["maxWidth"];const Fb=tb({prop:"minWidth",transform:kb}),zb=tb({prop:"height",transform:kb}),jb=tb({prop:"maxHeight",transform:kb}),$b=tb({prop:"minHeight",transform:kb});tb({prop:"size",cssProperty:"width",transform:kb}),tb({prop:"size",cssProperty:"height",transform:kb});hb(qb,Nb,Fb,zb,jb,$b,tb({prop:"boxSizing"}));var Bb={border:{themeKey:"borders",transform:gb},borderTop:{themeKey:"borders",transform:gb},borderRight:{themeKey:"borders",transform:gb},borderBottom:{themeKey:"borders",transform:gb},borderLeft:{themeKey:"borders",transform:gb},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:gb},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Pb},color:{themeKey:"palette",transform:Ob},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ob},backgroundColor:{themeKey:"palette",transform:Ob},p:{style:mb},pt:{style:mb},pr:{style:mb},pb:{style:mb},pl:{style:mb},px:{style:mb},py:{style:mb},padding:{style:mb},paddingTop:{style:mb},paddingRight:{style:mb},paddingBottom:{style:mb},paddingLeft:{style:mb},paddingX:{style:mb},paddingY:{style:mb},paddingInline:{style:mb},paddingInlineStart:{style:mb},paddingInlineEnd:{style:mb},paddingBlock:{style:mb},paddingBlockStart:{style:mb},paddingBlockEnd:{style:mb},m:{style:fb},mt:{style:fb},mr:{style:fb},mb:{style:fb},ml:{style:fb},mx:{style:fb},my:{style:fb},margin:{style:fb},marginTop:{style:fb},marginRight:{style:fb},marginBottom:{style:fb},marginLeft:{style:fb},marginX:{style:fb},marginY:{style:fb},marginInline:{style:fb},marginInlineStart:{style:fb},marginInlineEnd:{style:fb},marginBlock:{style:fb},marginBlockStart:{style:fb},marginBlockEnd:{style:fb},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:Mb},rowGap:{style:Tb},columnGap:{style:_b},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:kb},maxWidth:{style:Nb},minWidth:{transform:kb},height:{transform:kb},maxHeight:{transform:kb},minHeight:{transform:kb},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Hb=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:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Qg(r,s)||{};if(u)return u(o);return Zg(o,t,(t=>{let r=eb(c,l,t);return t===r&&"string"==typeof t&&(r=eb(c,l,`${e}${"default"===t?"":Su(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:Bb;function s(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[r])l=Kg(l,e(r,o,i,a));else{const e=Zg({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=Kg(l,e):l[r]=t({sx:o,theme:i})}else l=Kg(l,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();Hb.filterProps=["sx"];var Wb=Hb;function Gb(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}const Vb=["breakpoints","palette","spacing","shape"];function Ub(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=sa(e,Vb),s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=sa(e,Vg),i=Ug(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return aa({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),l=function(e=8){if(e.mui)return e;const t=ub({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=du({breakpoints:s,direction:"ltr",components:{},palette:aa({mode:"light"},n),spacing:l,shape:aa({},Yg,i)},a);return u.applyStyles=Gb,u=t.reduce(((e,t)=>du(e,t)),u),u.unstable_sxConfig=aa({},Bb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Wb({sx:e,theme:this})},u}function Yb(e=null){const t=y.useContext(Bl);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Kb=Ub();function Xb(e=Kb){return Yb(e)}function Jb({styles:e,themeId:t,defaultTheme:r={}}){const n=Xb(r),o="function"==typeof e?e(t&&n[t]||n):e;return ra.jsx(Wg,{styles:o})}const Zb=["sx"],Qb=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Bb;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function ev(e){const{sx:t}=e,r=sa(e,Zb),{systemProps:n,otherProps:o}=Qb(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return uu(r)?aa({},n,r):n}:aa({},n,t),aa({},o,{sx:i})}const tv=["className","component"];const rv=["ownerState"],nv=["variants"],ov=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iv(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const av=Ub(),sv=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function lv({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function uv(e){return e?(t,r)=>r[e]:null}function cv(e,t){let{ownerState:r}=t,n=sa(t,rv);const o="function"==typeof e?e(aa({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>cv(e,aa({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=sa(o,nv);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(aa({ownerState:r},n)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(aa({ownerState:r},n)):e.style))})),t}return o}function dv({props:e,name:t,defaultTheme:r,themeId:n}){let o=Xb(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?id(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function pv(e,t=0,r=1){return ld(e,t,r)}function fv(e){if(e.type)return e;if("#"===e.charAt(0))return fv(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(na(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(na(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function mv(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 hv(e){let t="hsl"===(e=fv(e)).type||"hsla"===e.type?fv(function(e){e=fv(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),mv({type:s,values:l})}(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 gv(e,t){return e=fv(e),t=pv(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,mv(e)}function bv(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 vv(e){if(!bv(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=vv(e[r])})),t}function yv(e,t,r={clone:!0}){const n=r.clone?aa({},e):e;return bv(e)&&bv(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(bv(t[o])&&o in e&&bv(e[o])?n[o]=yv(e[o],t[o],r):r.clone?n[o]=bv(t[o])?vv(t[o]):t[o]:n[o]=t[o])})),n}function xv(e){if("string"!=typeof e)throw new Error(zg(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Sv(e){return e&&e.ownerDocument||document}function Ev(e){return Sv(e).defaultView||window}var Cv="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;let wv=0;const Rv=y["useId".toString()];function Av(e){if(void 0!==Rv){const t=Rv();return null!=e?e:t}return function(e){const[t,r]=y.useState(e),n=e||t;return y.useEffect((()=>{null==t&&(wv+=1,r(`mui-${wv}`))}),[t]),n}(e)}function Iv({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function Dv(e){const t=y.useRef(e);return Cv((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Lv(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class Pv{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Pv}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Mv=!0,_v=!1;const Tv=new Pv,Ov={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 kv(e){e.metaKey||e.altKey||e.ctrlKey||(Mv=!0)}function qv(){Mv=!1}function Nv(){"hidden"===this.visibilityState&&_v&&(Mv=!0)}function Fv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Mv||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Ov[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function zv(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",kv,!0),t.addEventListener("mousedown",qv,!0),t.addEventListener("pointerdown",qv,!0),t.addEventListener("touchstart",qv,!0),t.addEventListener("visibilitychange",Nv,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Fv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(_v=!0,Tv.start(100,(()=>{_v=!1})),t.current=!1,!0)},ref:e}}function jv(e,t){const r=aa({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=aa({},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]=aa({},i),Object.keys(o).forEach((e=>{r[n][e]=jv(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const $v=e=>e;var Bv=(()=>{let e=$v;return{configure(t){e=t},generate:t=>e(t),reset(){e=$v}}})();const Hv={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 Wv(e,t,r="Mui"){const n=Hv[t];return n?`${r}-${n}`:`${Bv.generate(e)}-${t}`}function Gv(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Wv(e,t,r)})),n}const Vv=["mode","contrastThreshold","tonalOffset"],Uv={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:Mg.white,default:Mg.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}},Yv={text:{primary:Mg.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:Mg.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 Kv(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=fv(e),t=pv(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 mv(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=fv(e),t=pv(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 mv(e)}(e.main,i)))}function Xv(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Bg(e,Vv),i=e.primary||function(e="light"){return"dark"===e?{main:Og[200],light:Og[50],dark:Og[400]}:{main:Og[700],light:Og[400],dark:Og[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Tg[200],light:Tg[50],dark:Tg[400]}:{main:Tg[500],light:Tg[300],dark:Tg[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:_g[500],light:_g[300],dark:_g[700]}:{main:_g[700],light:_g[400],dark:_g[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:kg[400],light:kg[300],dark:kg[700]}:{main:kg[700],light:kg[500],dark:kg[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:qg[400],light:qg[300],dark:qg[700]}:{main:qg[800],light:qg[500],dark:qg[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ng[400],light:Ng[300],dark:Ng[700]}:{main:"#ed6c02",light:Ng[500],dark:Ng[900]}}(t);function d(e){const t=function(e,t){const r=hv(e),n=hv(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Yv.text.primary)>=r?Yv.text.primary:Uv.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=$g({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(zg(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(zg(12,t?` (${t})`:"",JSON.stringify(e.main)));return Kv(e,"light",o,n),Kv(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Yv,light:Uv};return yv($g({common:$g({},Mg),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Fg,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Jv=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Zv={textTransform:"uppercase"},Qv='"Roboto", "Helvetica", "Arial", sans-serif';function ey(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Qv,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Bg(r,Jv),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return $g({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Qv?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Zv),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Zv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yv($g({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function ty(...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 ry=["none",ty(0,2,1,-1,0,1,1,0,0,1,3,0),ty(0,3,1,-2,0,2,2,0,0,1,5,0),ty(0,3,3,-2,0,3,4,0,0,1,8,0),ty(0,2,4,-1,0,4,5,0,0,1,10,0),ty(0,3,5,-1,0,5,8,0,0,1,14,0),ty(0,3,5,-1,0,6,10,0,0,1,18,0),ty(0,4,5,-2,0,7,10,1,0,2,16,1),ty(0,5,5,-3,0,8,10,1,0,3,14,2),ty(0,5,6,-3,0,9,12,1,0,3,16,2),ty(0,6,6,-3,0,10,14,1,0,4,18,3),ty(0,6,7,-4,0,11,15,1,0,4,20,3),ty(0,7,8,-4,0,12,17,2,0,5,22,4),ty(0,7,8,-4,0,13,19,2,0,5,24,4),ty(0,7,9,-4,0,14,21,2,0,5,26,4),ty(0,8,9,-5,0,15,22,2,0,6,28,5),ty(0,8,10,-5,0,16,24,2,0,6,30,5),ty(0,8,11,-5,0,17,26,2,0,6,32,5),ty(0,9,11,-5,0,18,28,2,0,7,34,6),ty(0,9,12,-6,0,19,29,2,0,7,36,6),ty(0,10,13,-6,0,20,31,3,0,8,38,7),ty(0,10,13,-6,0,21,33,3,0,8,40,7),ty(0,10,14,-6,0,22,35,3,0,8,42,7),ty(0,11,14,-7,0,23,36,3,0,9,44,8),ty(0,11,15,-7,0,24,38,3,0,9,46,8)];const ny=["duration","easing","delay"],oy={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},iy={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ay(e){return`${Math.round(e)}ms`}function sy(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ly(e){const t=$g({},oy,e.easing),r=$g({},iy,e.duration);return $g({getAutoHeightDuration:sy,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Bg(n,ny),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ay(o)} ${i} ${"string"==typeof a?a:ay(a)}`)).join(",")}},e,{easing:t,duration:r})}var uy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const cy=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dy(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Bg(e,cy);if(e.vars)throw new Error(zg(18));const s=Xv(n),l=Ub(e);let u=yv(l,{mixins:(c=l.breakpoints,d=r,$g({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:ry.slice(),typography:ey(s,i),transitions:ly(o),zIndex:$g({},uy),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=yv(u,a),u=t.reduce(((e,t)=>yv(e,t)),u),u.unstable_sxConfig=$g({},Bb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Wb({sx:e,theme:this})},u}var py=dy();function fy(){const e=Xb(py);return e[jg]||e}function my({props:e,name:t}){return dv({props:e,name:t,defaultTheme:py,themeId:jg})}const hy=e=>iv(e)&&"classes"!==e,gy=iv,by=function(e={}){const{themeId:t,defaultTheme:r=av,rootShouldForwardProp:n=iv,slotShouldForwardProp:o=iv}=e,i=e=>Wb(aa({},e,{theme:lv(aa({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=uv(sv(l))}=a,p=sa(a,ov),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let h=iv;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Gg(e,aa({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||uu(e)?n=>cv(e,aa({},n,{theme:lv({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push((e=>{const n=lv(aa({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=cv(r,aa({},e,{theme:n}))})),d(e,i)})),s&&!f&&l.push((e=>{var n;const o=lv(aa({},e,{defaultTheme:r,themeId:t}));return cv({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},aa({},e,{theme:o}))})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:jg,defaultTheme:py,rootShouldForwardProp:hy});var vy=by;var yy=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function xy(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=xy(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Sy(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=xy(e))&&(n&&(n+=" "),n+=t);return n}function Ey(e){return Wv("MuiSvgIcon",e)}Gv("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Cy=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],wy=vy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${xv(r.color)}`],t[`fontSize${xv(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Ry=y.forwardRef((function(e,t){const r=my({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=Bg(r,Cy),f=y.isValidElement(n)&&"svg"===n.type,m=$g({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Md({root:["root","inherit"!==t&&`color${xv(t)}`,`fontSize${xv(r)}`]},Ey,n)})(m);return ra.jsxs(wy,$g({as:a,className:Sy(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&n.props,{ownerState:m,children:[f?n.props.children:n,c?ra.jsx("title",{children:c}):null]}))}));Ry.muiName="SvgIcon";var Ay=Ry;var Iy,Dy={},Ly=Symbol.for("react.element"),Py=Symbol.for("react.portal"),My=Symbol.for("react.fragment"),_y=Symbol.for("react.strict_mode"),Ty=Symbol.for("react.profiler"),Oy=Symbol.for("react.provider"),ky=Symbol.for("react.context"),qy=Symbol.for("react.server_context"),Ny=Symbol.for("react.forward_ref"),Fy=Symbol.for("react.suspense"),zy=Symbol.for("react.suspense_list"),jy=Symbol.for("react.memo"),$y=Symbol.for("react.lazy"),By=Symbol.for("react.offscreen");
|
|
120
120
|
/**
|
|
121
121
|
* @license React
|
|
122
122
|
* react-is.production.min.js
|
|
@@ -125,7 +125,7 @@ function Db(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldFo
|
|
|
125
125
|
*
|
|
126
126
|
* This source code is licensed under the MIT license found in the
|
|
127
127
|
* LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/function
|
|
128
|
+
*/function Hy(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ly:switch(e=e.type){case My:case Ty:case _y:case Fy:case zy:return e;default:switch(e=e&&e.$$typeof){case qy:case ky:case Ny:case $y:case jy:case Oy:return e;default:return t}}case Py:return t}}}Iy=Symbol.for("react.module.reference"),Dy.ContextConsumer=ky,Dy.ContextProvider=Oy,Dy.Element=Ly,Dy.ForwardRef=Ny,Dy.Fragment=My,Dy.Lazy=$y,Dy.Memo=jy,Dy.Portal=Py,Dy.Profiler=Ty,Dy.StrictMode=_y,Dy.Suspense=Fy,Dy.SuspenseList=zy,Dy.isAsyncMode=function(){return!1},Dy.isConcurrentMode=function(){return!1},Dy.isContextConsumer=function(e){return Hy(e)===ky},Dy.isContextProvider=function(e){return Hy(e)===Oy},Dy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ly},Dy.isForwardRef=function(e){return Hy(e)===Ny},Dy.isFragment=function(e){return Hy(e)===My},Dy.isLazy=function(e){return Hy(e)===$y},Dy.isMemo=function(e){return Hy(e)===jy},Dy.isPortal=function(e){return Hy(e)===Py},Dy.isProfiler=function(e){return Hy(e)===Ty},Dy.isStrictMode=function(e){return Hy(e)===_y},Dy.isSuspense=function(e){return Hy(e)===Fy},Dy.isSuspenseList=function(e){return Hy(e)===zy},Dy.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===My||e===Ty||e===_y||e===Fy||e===zy||e===By||"object"==typeof e&&null!==e&&(e.$$typeof===$y||e.$$typeof===jy||e.$$typeof===Oy||e.$$typeof===ky||e.$$typeof===Ny||e.$$typeof===Iy||void 0!==e.getModuleId)},Dy.typeOf=Hy;const Wy=e=>e.scrollTop;function Gy(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 Vy(e){return Wv("MuiPaper",e)}Gv("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 Uy=["className","component","elevation","square","variant"],Yy=vy("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 $g({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&&$g({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${gv("#fff",yy(t.elevation))}, ${gv("#fff",yy(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var Ky=y.forwardRef((function(e,t){const r=my({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Bg(r,Uy),u=$g({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Md({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Vy,o)})(u);return ra.jsx(Yy,$g({as:o,ownerState:u,className:Sy(c.root,n),ref:t},l))}));function Xy(e){return"string"==typeof e}function Jy(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 Zy(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 Qy=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ex(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=sa(e,Qy),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Pc(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=aa({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=aa({},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=Jy(aa({},o,n)),s=Zy(n),l=Zy(o),u=t(a),c=Pc(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=aa({},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=aa({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(aa({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||Xy(e)?t:aa({},t,{ownerState:aa({},t.ownerState,r)})}(r,aa({},l,{ref:bd(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var tx=Gv("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const rx=["center","classes","className"];let nx,ox,ix,ax,sx=e=>e;const lx=Ql(nx||(nx=sx`
|
|
129
129
|
0% {
|
|
130
130
|
transform: scale(0);
|
|
131
131
|
opacity: 0.1;
|
|
@@ -135,7 +135,7 @@ function Db(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldFo
|
|
|
135
135
|
transform: scale(1);
|
|
136
136
|
opacity: 0.3;
|
|
137
137
|
}
|
|
138
|
-
`)),
|
|
138
|
+
`)),ux=Ql(ox||(ox=sx`
|
|
139
139
|
0% {
|
|
140
140
|
opacity: 1;
|
|
141
141
|
}
|
|
@@ -143,7 +143,7 @@ function Db(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldFo
|
|
|
143
143
|
100% {
|
|
144
144
|
opacity: 0;
|
|
145
145
|
}
|
|
146
|
-
`)),
|
|
146
|
+
`)),cx=Ql(ix||(ix=sx`
|
|
147
147
|
0% {
|
|
148
148
|
transform: scale(1);
|
|
149
149
|
}
|
|
@@ -155,7 +155,7 @@ function Db(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldFo
|
|
|
155
155
|
100% {
|
|
156
156
|
transform: scale(1);
|
|
157
157
|
}
|
|
158
|
-
`)),
|
|
158
|
+
`)),dx=vy("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),px=vy((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=y.useState(!1),p=Sy(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Sy(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),y.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),ra.jsx("span",{className:p,style:f,children:ra.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(ax||(ax=sx`
|
|
159
159
|
opacity: 0;
|
|
160
160
|
position: absolute;
|
|
161
161
|
|
|
@@ -198,4 +198,4 @@ function Db(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldFo
|
|
|
198
198
|
animation-iteration-count: infinite;
|
|
199
199
|
animation-delay: 200ms;
|
|
200
200
|
}
|
|
201
|
-
`),Fx.rippleVisible,Gx,550,(({theme:e})=>e.transitions.easing.easeInOut),Fx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Fx.child,Fx.childLeaving,Vx,550,(({theme:e})=>e.transitions.easing.easeInOut),Fx.childPulsate,Ux,(({theme:e})=>e.transitions.easing.easeInOut));var Xx=y.forwardRef((function(e,t){const r=Jy({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Rb(r,zx),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=y.useRef(!1),p=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:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,ra.jsx(Kx,{classes:{ripple:ox(o.ripple,Fx.ripple),rippleVisible:ox(o.rippleVisible,Fx.rippleVisible),ripplePulsate:ox(o.ripplePulsate,Fx.ripplePulsate),child:ox(o.child,Fx.child),childLeaving:ox(o.childLeaving,Fx.childLeaving),childPulsate:ox(o.childPulsate,Fx.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=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((()=>{v(e,t)})));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),ra.jsx(Yx,wb({className:ox(Fx.root,o.root,i),ref:m},a,{children:ra.jsx(oh,{component:null,exit:!0,children:s})}))}));function Jx(e){return Iy("MuiButtonBase",e)}var Zx=Dy("MuiButtonBase",["root","disabled","focusVisible"]);const Qx=["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"],eS=tx("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"},[`&.${Zx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),tS=y.forwardRef((function(e,t){const r=Jy({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:D=0,TouchRippleProps:L,touchRippleRef:P,type:M}=r,_=Rb(r,Qx),T=y.useRef(null),k=y.useRef(null),O=py(k,P),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Ey(),[j,$]=y.useState(!1);l&&j&&$(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[B,H]=y.useState(!1);y.useEffect((()=>{H(!0)}),[]);const W=B&&!u&&!l;function G(e,t,r=c){return dy((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}y.useEffect((()=>{j&&d&&!u&&B&&k.current.pulsate()}),[u,d,j,B]);const V=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=G("start",I),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=dy((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=dy((e=>{d&&!ne.current&&j&&k.current&&" "===e.key&&(ne.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=dy((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(_.href||_.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===M?"button":M,se.disabled=l):(_.href||_.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=py(t,z,T),ue=wb({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Dd({root:["root",t&&"disabled",r&&"focusVisible"]},Jx,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ra.jsxs(eS,wb({as:ae,className:ox(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:D,type:M},se,_,{children:[i,W?ra.jsx(Xx,wb({ref:O,center:o},L)):null]}))}));var rS=tS;function nS(e){return Iy("MuiTypography",e)}Dy("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const oS=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],iS=tx("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${ny(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>wb({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}))),aS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},sS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},lS=y.forwardRef((function(e,t){const r=Jy({props:e,name:"MuiTypography"}),n=(e=>sS[e]||e)(r.color),o=Nv(wb({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=aS}=o,f=Rb(o,oS),m=wb({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=s||(c?"p":p[d]||aS[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Dd({root:["root",i,"inherit"!==e.align&&`align${ny(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},nS,a)})(m);return ra.jsx(iS,wb({as:h,ref:t,ownerState:m,className:ox(g.root,a)},f))}));var uS=lS;const cS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dS(e){const t=[],r=[];return Array.from(e.querySelectorAll(cS)).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 pS(){return!0}function fS(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=dS,isEnabled:a=pS,open:s}=e,l=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=md(t.ref,m),g=y.useRef(null);y.useEffect((()=>{s&&m.current&&(f.current=!r)}),[r,s]),y.useEffect((()=>{if(!s||!m.current)return;const e=cd(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),y.useEffect((()=>{if(!s||!m.current)return;const e=cd(m.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ra.jsxs(y.Fragment,{children:[ra.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),ra.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const mS=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=md(y.isValidElement(r)?r.ref:null,t);if(od((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),od((()=>{if(i&&!o)return pd(t,i),()=>{pd(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return ra.jsx(y.Fragment,{children:r})}return ra.jsx(y.Fragment,{children:i?F.createPortal(r,i):i})}));function hS(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gS(e){return parseInt(dd(e).getComputedStyle(e).paddingRight,10)||0}function bS(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&&hS(e,o)}))}function vS(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function yS(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=cd(e);return t.body===e?dd(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(cd(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${gS(n)+e}px`;const t=cd(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${gS(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=cd(n).body;else{const t=n.parentElement,r=dd(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 xS=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&&hS(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);bS(t,e.mount,e.modalRef,n,!0);const o=vS(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=vS(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=yS(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=vS(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&&hS(e.modalRef,t),bS(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&&hS(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function SS(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=xS,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=md(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=fd((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||cd(f.current).body;o.add(S(),e),m.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=fd((e=>{f.current=e,e&&(c&&w()?E():m.current&&hS(m.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const I=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=kx(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=aa({},r,t);return aa({role:"presentation"},n,{onKeyDown:I(n),ref:h})},getBackdropProps:(e={})=>aa({"aria-hidden":!0},e,{onClick:D(e),open:c}),getTransitionProps:()=>({onEnter:ud((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:ud((()=>{b(!0),s&&s(),i&&A()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const ES=["onChange","maxRows","minRows","style","value"];function CS(e){return parseInt(e,10)||0}const wS={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function RS(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const AS=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=sa(e,ES),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=md(t,u),d=y.useRef(null),p=y.useRef(0),[f,m]=y.useState({outerHeightStyle:0}),h=y.useCallback((()=>{const t=u.current,r=dd(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,s=CS(r.paddingBottom)+CS(r.paddingTop),l=CS(r.borderBottomWidth)+CS(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?s+l: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=y.useCallback((()=>{const e=h();RS(e)||m((t=>g(t,e)))}),[h]);od((()=>{const e=()=>{p.current=0,(()=>{const e=h();RS(e)||F.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=u.current,n=dd(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]),od((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return ra.jsxs(y.Fragment,{children:[ra.jsx("textarea",aa({value:a,onChange:e=>{p.current=0,l||b(),r&&r(e)},ref:c,rows:o,style:aa({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},s)),ra.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:aa({},wS,i,{paddingTop:0,paddingBottom:0})})]})}));function IS({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 DS=y.createContext(void 0);function LS(){return y.useContext(DS)}function PS(e){return ra.jsx(kv,wb({},e,{defaultTheme:Ky,themeId:Cb}))}function MS(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function _S(e,t=!1){return e&&(MS(e.value)&&""!==e.value||t&&MS(e.defaultValue)&&""!==e.defaultValue)}function TS(e){return Iy("MuiInputBase",e)}var kS=Dy("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const OS=["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"],qS=(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${ny(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},NS=(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]},FS=tx("div",{name:"MuiInputBase",slot:"Root",overridesResolver:qS})((({theme:e,ownerState:t})=>wb({},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",[`&.${kS.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&wb({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),zS=tx("input",{name:"MuiInputBase",slot:"Input",overridesResolver:NS})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=wb({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 wb({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] + .${kS.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},[`&.${kS.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"})})),jS=ra.jsx(PS,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),$S=y.forwardRef((function(e,t){var r;const n=Jy({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:I,onKeyDown:D,onKeyUp:L,placeholder:P,readOnly:M,renderSuffix:_,rows:T,slotProps:k={},slots:O={},startAdornment:q,type:N="text",value:F}=n,z=Rb(n,OS),j=null!=b.value?b.value:F,{current:$}=y.useRef(null!=j),B=y.useRef(),H=y.useCallback((e=>{}),[]),W=py(B,v,b.ref,H),[G,V]=y.useState(!1),U=LS(),Y=IS({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:G,y.useEffect((()=>{!U&&d&&G&&(V(!1),w&&w())}),[U,d,G,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=y.useCallback((e=>{_S(e)?K&&K():X&&X()}),[K,X]);ay((()=>{$&&J({value:j})}),[j,J,$]);y.useEffect((()=>{J(B.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=wb(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:x,minRows:S},Q),Z=AS);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=wb({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Dd({root:["root",`color${ny(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${ny(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"]},TS,t)})(ee),re=O.root||l.Root||FS,ne=k.root||u.root||{},oe=O.input||l.Input||zS;return Q=wb({},Q,null!=(r=k.input)?r:u.input),ra.jsxs(y.Fragment,{children:[!p&&jS,ra.jsxs(re,wb({},ne,!Tx(re)&&{ownerState:wb({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},z,{className:ox(te.root,ne.className,s,M&&"MuiInputBase-readOnly"),children:[q,ra.jsx(DS.Provider,{value:null,children:ra.jsx(oe,wb({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:C,placeholder:P,readOnly:M,required:Y.required,rows:T,value:j,onKeyDown:D,onKeyUp:L,type:N},Q,!Tx(oe)&&{as:Z,ownerState:wb({},ee,Q.ownerState)},{ref:W,className:ox(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(Eb(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):V(!0))}}))}),f,_?_(wb({},Y,{startAdornment:q})):null]}))]})}));var BS=$S;function HS(e){return Iy("MuiInput",e)}var WS=wb({},kS,Dy("MuiInput",["root","underline","input"]));function GS(e){return Iy("MuiOutlinedInput",e)}var VS=wb({},kS,Dy("MuiOutlinedInput",["root","notchedOutline","input"]));function US(e){return Iy("MuiFilledInput",e)}var YS=wb({},kS,Dy("MuiFilledInput",["root","underline","input"])),KS=function(e,t){function r(r,n){return ra.jsx(ux,wb({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=ux.muiName,y.memo(y.forwardRef(r))}(ra.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const XS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],JS={entering:{opacity:1},entered:{opacity:1}},ZS=y.forwardRef((function(e,t){const r=Xy(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:b=Zm}=e,v=Rb(e,XS),x=y.useRef(null),S=py(x,a.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{Ix(e);const n=Dx({style:h,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),A=E(m),I=E((e=>{const t=Dx({style:h,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),D=E(f);return ra.jsx(b,wb({appear:i,in:l,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:D,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,wb({style:wb({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},JS[e],h,a.props.style),ref:S},t))}))}));var QS=ZS;function eE(e){return Iy("MuiBackdrop",e)}Dy("MuiBackdrop",["root","invisible"]);const tE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],rE=tx("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>wb({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"}))),nE=y.forwardRef((function(e,t){var r,n,o;const i=Jy({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=QS,transitionDuration:g}=i,b=Rb(i,tE),v=wb({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Dd({root:["root",r&&"invisible"]},eE,t)})(v),x=null!=(r=f.root)?r:c.root;return ra.jsx(h,wb({in:p,timeout:g},b,{children:ra.jsx(rE,wb({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:l,className:ox(y.root,s,null==x?void 0:x.className),ownerState:wb({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var oE=nE;var iE=Dy("MuiBox",["root"]);const aE=Yy(),sE=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Db("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Iv);return y.forwardRef((function(e,a){const s=Tv(r),l=Nv(e),{className:u,component:c="div"}=l,d=sa(l,Fv);return ra.jsx(i,aa({as:c,ref:a,className:Ic(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Cb,defaultTheme:aE,defaultClassName:iE.root,generateClassName:Ry.generate});var lE=sE;function uE(e){return Iy("MuiButton",e)}var cE=Dy("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 dE=y.createContext({});var pE=y.createContext(void 0);const fE=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],mE=e=>wb({},"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}}),hE=tx(rS,{shouldForwardProp:e=>Zy(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ny(r.color)}`],t[`size${ny(r.size)}`],t[`${r.variant}Size${ny(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 wb({},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":wb({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qv(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})`:Qv(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})`:Qv(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":wb({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${cE.focusVisible}`]:wb({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${cE.disabled}`]:wb({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 ${Qv(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"},[`&.${cE.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${cE.disabled}`]:{boxShadow:"none"}})),gE=tx("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ny(r.size)}`]]}})((({ownerState:e})=>wb({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},mE(e)))),bE=tx("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ny(r.size)}`]]}})((({ownerState:e})=>wb({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},mE(e)))),vE=y.forwardRef((function(e,t){const r=y.useContext(dE),n=y.useContext(pE),o=Jy({props:Cy(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,x=Rb(o,fE),S=wb({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return wb({},a,Dd({root:["root",i,`${i}${ny(t)}`,`size${ny(o)}`,`${i}Size${ny(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ny(o)}`],endIcon:["endIcon",`iconSize${ny(o)}`]},uE,a))})(S),C=g&&ra.jsx(gE,{className:E.startIcon,ownerState:S,children:g}),w=p&&ra.jsx(bE,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return ra.jsxs(hE,wb({ownerState:S,className:ox(r.className,E.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:ox(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var yE=vE;function xE(e){return Iy("MuiModal",e)}Dy("MuiModal",["root","hidden","backdrop"]);const SE=["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"],EE=tx("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})=>wb({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),CE=tx(oE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),wE=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=Jy({name:"MuiModal",props:e}),{BackdropComponent:u=CE,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:I,open:D,slotProps:L,slots:P}=l,M=Rb(l,SE),_=wb({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:T,getBackdropProps:k,getTransitionProps:O,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=SS(wb({},_,{rootRef:t})),j=wb({},_,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Dd({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},xE,n)})(j),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=O();B.onEnter=e,B.onExited=t}const H=null!=(r=null!=(n=null==P?void 0:P.root)?n:g.Root)?r:EE,W=null!=(o=null!=(i=null==P?void 0:P.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==L?void 0:L.root)?a:b.root,V=null!=(s=null==L?void 0:L.backdrop)?s:b.backdrop,U=Nx({elementType:H,externalSlotProps:G,externalForwardedProps:M,getSlotProps:T,additionalProps:{ref:t,as:h},ownerState:j,className:ox(d,null==G?void 0:G.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),Y=Nx({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(wb({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ox(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return A||D||z&&!F?ra.jsx(mS,{ref:q,container:m,disablePortal:E,children:ra.jsxs(H,wb({},U,{children:[!R&&u?ra.jsx(W,wb({},Y)):null,ra.jsx(fS,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:D,children:y.cloneElement(f,B)})]}))}):null}));var RE=wE;function AE(e){return Iy("MuiDivider",e)}var IE=Dy("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const DE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],LE=tx("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})=>wb({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)`:Qv(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})=>wb({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>wb({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>wb({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>wb({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),PE=tx("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>wb({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)`}))),ME=y.forwardRef((function(e,t){const r=Jy({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Rb(r,DE),m=wb({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Dd({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},AE,n)})(m);return ra.jsx(LE,wb({as:a,className:ox(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?ra.jsx(PE,{className:h.wrapper,ownerState:m,children:o}):null}))}));ME.muiSkipListHighlight=!0;var _E=ME;const TE=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],kE=tx(FS,{shouldForwardProp:e=>Zy(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...qS(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return wb({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}},[`&.${YS.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${YS.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${YS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${YS.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(.${YS.disabled}, .${YS.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${YS.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&wb({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}))})),OE=tx(zS,{name:"MuiFilledInput",slot:"Input",overridesResolver:NS})((({theme:e,ownerState:t})=>wb({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}))),qE=y.forwardRef((function(e,t){var r,n,o,i;const a=Jy({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Rb(a,TE),g=wb({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return wb({},t,Dd({root:["root",!r&&"underline"],input:["input"]},US,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?ry(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:kE,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:OE;return ra.jsx(BS,wb({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));qE.muiName="Input";var NE=qE;const FE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function zE(e){return`scale(${e}, ${e**2})`}const jE={entering:{opacity:1,transform:zE(1)},entered:{opacity:1,transform:"none"}},$E="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),BE=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Zm}=e,g=Rb(e,FE),b=y.useRef(),v=y.useRef(),x=Xy(),S=y.useRef(null),E=py(S,o.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{Ix(e);const{duration:r,delay:n,easing:o}=Dx({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:$E?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),A=C(l),I=C(p),D=C((e=>{const{duration:t,delay:r,easing:n}=Dx({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:$E?o:.666*o,delay:$E?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=zE(.75),c&&c(e)})),L=C(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),ra.jsx(h,wb({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:D,onExited:L,onExiting:I,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),r&&r(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,wb({style:wb({opacity:0,transform:zE(.75),visibility:"exited"!==e||a?void 0:"hidden"},jE[e],f,o.props.style),ref:E},t))}))}));BE.muiSupportAuto=!0;var HE=BE;const WE=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],GE=tx(FS,{shouldForwardProp:e=>Zy(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...qS(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})`),wb({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"},[`&.${WS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${WS.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(.${WS.disabled}, .${WS.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${WS.disabled}:before`]:{borderBottomStyle:"dotted"}})})),VE=tx(zS,{name:"MuiInput",slot:"Input",overridesResolver:NS})({}),UE=y.forwardRef((function(e,t){var r,n,o,i;const a=Jy({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Rb(a,WE),b=(e=>{const{classes:t,disableUnderline:r}=e;return wb({},t,Dd({root:["root",!r&&"underline"],input:["input"]},HS,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?ry(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:l.Root)?r:GE,S=null!=(o=null!=(i=m.input)?i:l.Input)?o:VE;return ra.jsx(BS,wb({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));UE.muiName="Input";var YE=UE;function KE(e){return Iy("MuiLink",e)}var XE=Dy("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const JE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var ZE=({theme:e,ownerState:t})=>{const r=(e=>JE[e]||e)(t.color),n=qb(e,`palette.${r}`,!1)||t.color,o=qb(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Qv(n,.4)};const QE=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],eC=tx(uS,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ny(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>wb({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&wb({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:ZE({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${XE.focusVisible}`]:{outline:"auto"}}))),tC=y.forwardRef((function(e,t){const r=Jy({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=Rb(r,QE),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=Ey(),[b,v]=y.useState(!1),x=py(t,g),S=wb({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Dd({root:["root",`underline${ny(o)}`,"button"===r&&"button",n&&"focusVisible"]},KE,t)})(S);return ra.jsx(eC,wb({color:o,className:ox(E.root,n),classes:l,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),s&&s(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(JE).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var rC=tC;var nC=y.createContext({});function oC(e){return Iy("MuiList",e)}Dy("MuiList",["root","padding","dense","subheader"]);const iC=["children","className","component","dense","disablePadding","subheader"],aC=tx("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})=>wb({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var sC=y.forwardRef((function(e,t){const r=Jy({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Rb(r,iC),c=y.useMemo((()=>({dense:a})),[a]),d=wb({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Dd({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},oC,t)})(d);return ra.jsx(nC.Provider,{value:c,children:ra.jsxs(aC,wb({as:i,className:ox(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function lC(e){return Iy("MuiListItemIcon",e)}var uC=Dy("MuiListItemIcon",["root","alignItemsFlexStart"]);const cC=["className"],dC=tx("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})=>wb({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var pC=y.forwardRef((function(e,t){const r=Jy({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Rb(r,cC),i=wb({},r,{alignItems:y.useContext(nC).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Dd({root:["root","flex-start"===t&&"alignItemsFlexStart"]},lC,r)})(i);return ra.jsx(dC,wb({className:ox(a.root,n),ownerState:i,ref:t},o))}));var fC=Dy("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const mC=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function hC(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function gC(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function bC(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 vC(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&bC(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}var yC=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Rb(e,mC),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ay((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(oy(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=py(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 ra.jsx(sC,wb({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=oy(t).activeElement;if("ArrowDown"===r)e.preventDefault(),vC(t,n,l,s,hC);else if("ArrowUp"===r)e.preventDefault(),vC(t,n,l,s,gC);else if("Home"===r)e.preventDefault(),vC(t,null,l,s,hC);else if("End"===r)e.preventDefault(),vC(t,null,l,s,gC);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&bC(n,o);o.previousKeyMatched&&(l||vC(t,n,!1,s,hC,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function xC(e){return Iy("MuiPopover",e)}Dy("MuiPopover",["root","paper"]);const SC=["onEntering"],EC=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],CC=["slotProps"];function wC(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function RC(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function AC(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function IC(e){return"function"==typeof e?e():e}const DC=tx(RE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),LC=tx(_x,{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 PC=y.forwardRef((function(e,t){var r,n,o;const i=Jy({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=HE,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=Rb(i.TransitionProps,SC),I=Rb(i,EC),D=null!=(r=null==x?void 0:x.paper)?r:b,L=y.useRef(),P=py(L,D.ref),M=wb({},i,{anchorOrigin:l,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:D,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),_=(e=>{const{classes:t}=e;return Dd({root:["root"],paper:["paper"]},xC,t)})(M),T=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=IC(s),t=(e&&1===e.nodeType?e:oy(L.current).body).getBoundingClientRect();return{top:t.top+wC(t,l.vertical),left:t.left+RC(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),k=y.useCallback((e=>({vertical:wC(e,S.vertical),horizontal:RC(e,S.horizontal)})),[S.horizontal,S.vertical]),O=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=k(t);if("none"===c)return{top:null,left:null,transformOrigin:AC(r)};const n=T();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=iy(IC(s)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:AC(r)}}),[s,c,T,k,h]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=L.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[O]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=iy(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(s?oy(IC(s)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:DC,B=null!=(o=null==v?void 0:v.paper)?o:LC,H=Nx({elementType:B,externalSlotProps:wb({},D,{style:q?D.style:wb({},D.style,{opacity:0})}),additionalProps:{elevation:m,ref:P},ownerState:M,className:ox(_.paper,null==D?void 0:D.className)}),W=Nx({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:M,className:ox(_.root,p)}),{slotProps:G}=W,V=Rb(W,CC);return ra.jsx($,wb({},V,!Tx($)&&{slotProps:G,disableScrollLock:R},{children:ra.jsx(E,wb({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},A,{children:ra.jsx(B,wb({},H,{children:d}))}))}))}));function MC(e){return Iy("MuiMenu",e)}Dy("MuiMenu",["root","paper","list"]);const _C=["onEntering"],TC=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],kC={vertical:"top",horizontal:"right"},OC={vertical:"top",horizontal:"left"},qC=tx(PC,{shouldForwardProp:e=>Zy(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),NC=tx(LC,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),FC=tx(yC,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var zC=y.forwardRef((function(e,t){var r,n;const o=Jy({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=Rb(o.TransitionProps,_C),S=Rb(o,TC),E=Xy(),C="rtl"===E.direction,w=wb({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return Dd({root:["root"],paper:["paper"],list:["list"]},MC,t)})(w),A=i&&!l&&d,I=y.useRef(null);let D=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===D)&&(D=t))}));const L=null!=(r=b.paper)?r:NC,P=null!=(n=v.paper)?n:p,M=Nx({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,s]}),_=Nx({elementType:L,externalSlotProps:P,ownerState:w,className:R.paper});return ra.jsx(qC,wb({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?kC:OC,slots:{paper:L,root:b.root},slotProps:{root:M,paper:_},open:d,ref:t,transitionDuration:m,TransitionProps:wb({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:w},S,{classes:f,children:ra.jsx(FC,wb({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:I,autoFocus:i&&(-1===D||l),autoFocusItem:A,variant:g},u,{className:ox(R.list,u.className),children:a}))}))}));function jC(e){return Iy("MuiMenuItem",e)}var $C=Dy("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const BC=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],HC=tx(rS,{shouldForwardProp:e=>Zy(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})=>wb({},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"}},[`&.${$C.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$C.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$C.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qv(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})`:Qv(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${$C.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$C.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${IE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${IE.inset}`]:{marginLeft:52},[`& .${fC.root}`]:{marginTop:0,marginBottom:0},[`& .${fC.inset}`]:{paddingLeft:36},[`& .${uC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&wb({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${uC.root} svg`]:{fontSize:"1.25rem"}}))));var WC=y.forwardRef((function(e,t){const r=Jy({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=Rb(r,BC),f=y.useContext(nC),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),h=y.useRef(null);ay((()=>{n&&h.current&&h.current.focus()}),[n]);const g=wb({},r,{dense:m.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return wb({},a,Dd({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},jC,a))})(r),v=py(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),ra.jsx(nC.Provider,{value:m,children:ra.jsx(HC,wb({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:ox(b.focusVisible,l),className:ox(b.root,d)},p,{ownerState:g,classes:b}))})}));function GC(e){return Iy("MuiNativeSelect",e)}var VC=Dy("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const UC=["className","disabled","error","IconComponent","inputRef","variant"],YC=({ownerState:e,theme:t})=>wb({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":wb({},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"},[`&.${VC.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}}),KC=tx("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Zy,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${VC.multiple}`]:t.multiple}]}})(YC),XC=({ownerState:e,theme:t})=>wb({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${VC.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),JC=tx("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ny(r.variant)}`],r.open&&t.iconOpen]}})(XC),ZC=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Rb(e,UC),u=wb({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Dd({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ny(r)}`,i&&"iconOpen",n&&"disabled"]},GC,t)})(u);return ra.jsxs(y.Fragment,{children:[ra.jsx(KC,wb({ownerState:u,className:ox(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:ra.jsx(JC,{as:i,ownerState:u,className:c.icon})]})}));var QC,ew=ZC;const tw=["children","classes","className","label","notched"],rw=tx("fieldset",{shouldForwardProp:Zy})({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%"}),nw=tx("legend",{shouldForwardProp:Zy})((({ownerState:e,theme:t})=>wb({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&&wb({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 ow=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],iw=tx(FS,{shouldForwardProp:e=>Zy(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:qS})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return wb({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${VS.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${VS.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${VS.focused} .${VS.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${VS.error} .${VS.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${VS.disabled} .${VS.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&wb({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),aw=tx((function(e){const{className:t,label:r,notched:n}=e,o=Rb(e,tw),i=null!=r&&""!==r,a=wb({},e,{notched:n,withLabel:i});return ra.jsx(rw,wb({"aria-hidden":!0,className:t,ownerState:a},o,{children:ra.jsx(nw,{ownerState:a,children:i?ra.jsx("span",{children:r}):QC||(QC=ra.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}})),sw=tx(zS,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:NS})((({theme:e,ownerState:t})=>wb({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}))),lw=y.forwardRef((function(e,t){var r,n,o,i,a;const s=Jy({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=s,g=Rb(s,ow),b=(e=>{const{classes:t}=e;return wb({},t,Dd({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},GS,t))})(s),v=LS(),x=IS({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=wb({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),E=null!=(r=null!=(n=m.root)?n:l.Root)?r:iw,C=null!=(o=null!=(i=m.input)?i:l.Input)?o:sw;return ra.jsx(BS,wb({slots:{root:E,input:C},renderSuffix:e=>ra.jsx(aw,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=ra.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:wb({},b,{notchedOutline:null})}))}));lw.muiName="Input";var uw=lw;function cw(e){return Iy("MuiSelect",e)}var dw,pw=Dy("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const fw=["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"],mw=tx("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${pw.select}`]:t.select},{[`&.${pw.select}`]:t[r.variant]},{[`&.${pw.error}`]:t.error},{[`&.${pw.multiple}`]:t.multiple}]}})(YC,{[`&.${pw.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),hw=tx("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ny(r.variant)}`],r.open&&t.iconOpen]}})(XC),gw=tx("input",{shouldForwardProp:e=>Qy(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 bw(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function vw(e){return null==e||"string"==typeof e&&!e.trim()}const yw=y.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:A,readOnly:I,renderValue:D,SelectDisplayProps:L={},tabIndex:P,value:M,variant:_="standard"}=e,T=Rb(e,fw),[k,O]=cy({controlled:M,default:c,name:"Select"}),[q,N]=cy({controlled:A,default:u,name:"Select"}),F=y.useRef(null),z=y.useRef(null),[j,$]=y.useState(null),{current:B}=y.useRef(null!=A),[H,W]=y.useState(),G=py(t,h),V=y.useCallback((e=>{z.current=e,e&&$(e)}),[]),U=null==j?void 0:j.parentNode;y.useImperativeHandle(G,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),y.useEffect((()=>{u&&q&&j&&!B&&(W(a?null:U.clientWidth),z.current.focus())}),[j,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=oy(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),B||(W(a?null:U.clientWidth),N(e))},K=y.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(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&&(O(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),E(o,e)}v||Y(!1,t)}},J=null!==j&&q;let Z,Q;delete T["aria-invalid"];const ee=[];let te=!1;(_S({value:k})||p)&&(D?Z=D(k):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(Eb(2));t=k.some((t=>bw(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=bw(k,e.props.value),t&&te&&(Q=e.props.children);return y.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=H;!a&&B&&j&&(oe=U.clientWidth),ne=void 0!==P?P:d?null:0;const ie=L.id||(x?`mui-component-select-${x}`:void 0),ae=wb({},e,{variant:_,value:k,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Dd({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ny(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},cw,t)})(ae),le=wb({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=uy();return ra.jsxs(y.Fragment,{children:[ra.jsx(mw,wb({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:x}}),S(e))},onFocus:w},L,{ownerState:ae,className:ox(L.className,se.select,l),id:ie,children:vw(Z)?dw||(dw=ra.jsx("span",{className:"notranslate",children:""})):Z})),ra.jsx(gw,wb({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(O(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},T)),ra.jsx(hw,{as:m,className:se.icon,ownerState:ae}),ra.jsx(zC,wb({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:wb({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:wb({},b.slotProps,{paper:wb({},le,{style:wb({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}));var xw=yw;const Sw=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ew=["root"],Cw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Zy(e)&&"variant"!==e,slot:"Root"},ww=tx(YE,Cw)(""),Rw=tx(uw,Cw)(""),Aw=tx(NE,Cw)(""),Iw=y.forwardRef((function(e,t){const r=Jy({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=KS,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=r,R=Rb(r,Sw),A=b?ew:xw,I=IS({props:r,muiFormControl:LS(),states:["variant","error"]}),D=I.variant||w,L=wb({},r,{variant:D,classes:i}),P=(e=>{const{classes:t}=e;return t})(L),M=Rb(P,Ew),_=d||{standard:ra.jsx(ww,{ownerState:L}),outlined:ra.jsx(Rw,{label:f,ownerState:L}),filled:ra.jsx(Aw,{ownerState:L})}[D],T=py(t,_.ref);return ra.jsx(y.Fragment,{children:y.cloneElement(_,wb({inputComponent:A,inputProps:wb({children:o,error:I.error,IconComponent:u,variant:D,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:h,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:wb({id:c},C)},p,{classes:p?ry(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===D?{notched:!0}:{},{ref:T,className:ox(_.props.className,a,P.root)},!d&&{variant:D},R))})}));Iw.muiName="Select";var Dw=Iw,Lw=(e={})=>x.createElement(lb,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:Gg.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Pw={MuiAccordion:{styleOverrides:{root:{backgroundColor:Gg.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Gg.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(ib,{"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 ${Gg.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Gg.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Gg.MISC_FOCUS_BORDER}`,borderRadius:Xg,backgroundColor:Gg.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 ${Gg.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Gg.WHITE,color:Gg.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:Xg},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Gg.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Gg.GREYSCALE_0_15,backgroundColor:Gg.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Gg.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Gg.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Gg.GREEN_PALE},"&:active":{backgroundColor:Gg.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Gg.GREEN_PALE,boxShadow:`0 0 0 3px ${Qv(Gg.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Gg.BLUE_PALE},"&:active":{backgroundColor:Gg.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Gg.BLUE_PALE,boxShadow:`0 0 0 3px ${Qv(Gg.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:Xg,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Gg.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Gg.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Gg.GREYSCALE_0_15,backgroundColor:Gg.GREYSCALE_100_60,"&:active":{backgroundColor:Gg.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Gg.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Gg.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Gg.PURPLE,"&.Mui-focusVisible":{borderColor:Gg.PURPLE,boxShadow:`0 0 0 3px ${Qv(Gg.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Gg.GREEN,"&.Mui-focusVisible":{borderColor:Gg.GREEN,boxShadow:`0 0 0 3px ${Qv(Gg.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Gg.BLUE,"&.Mui-focusVisible":{borderColor:Gg.BLUE,boxShadow:`0 0 0 3px ${Qv(Gg.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Gg.ORANGE,"&.Mui-focusVisible":{borderColor:Gg.ORANGE,boxShadow:`0 0 0 3px ${Qv(Gg.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Gg.RED,"&.Mui-focusVisible":{borderColor:Gg.RED,boxShadow:`0 0 0 3px ${Qv(Gg.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Gg.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Gg.PURPLE_PALE},"&:active":{backgroundColor:Gg.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Gg.PURPLE_PALE,boxShadow:`0 0 0 3px ${Qv(Gg.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Gg.GREEN_PALE},"&:active":{backgroundColor:Gg.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Gg.GREEN_PALE,boxShadow:`0 0 0 3px ${Qv(Gg.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Gg.BLUE_PALE},"&:active":{backgroundColor:Gg.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Gg.BLUE_PALE,boxShadow:`0 0 0 3px ${Qv(Gg.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Gg.ORANGE_PALE},"&:active":{backgroundColor:Gg.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Gg.ORANGE_PALE,boxShadow:`0 0 0 3px ${Qv(Gg.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Gg.RED_PALE},"&:active":{backgroundColor:Gg.RED_DARK},"&.Mui-focusVisible":{borderColor:Gg.RED_PALE,boxShadow:`0 0 0 3px ${Qv(Gg.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:Gg.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Gg.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Xg,boxShadow:`inset 0 0 0 2px ${Gg.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(sb,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Vg,borderRadius:Xg,color:Gg.TEXT_PRIMARY,backgroundColor:Gg.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Gg.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Gg.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Gg.GREYSCALE_0_05,color:Gg.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Gg.GREEN,borderColor:Gg.GREEN},"&.MuiChip-outlinedInfo":{color:Gg.BLUE,borderColor:Gg.BLUE},"&.MuiChip-outlinedWarning":{color:Gg.ORANGE,borderColor:Gg.ORANGE},"&.MuiChip-outlinedError":{color:Gg.RED,borderColor:Gg.RED}},outlined:{border:`solid 1px ${Gg.GREYSCALE_0_15}`,backgroundColor:Gg.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Xg,boxShadow:"none",backgroundColor:Gg.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Gg.GREEN,borderColor:Gg.GREEN},outlinedSecondary:{color:Gg.BLUE,borderColor:Gg.BLUE},label:{fontFamily:tb.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(sb,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(ib,{"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:Xg},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Xg,fontSize:Ug,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Gg.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Gg.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Gg.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Gg.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Gg.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Xg,border:`solid 1px ${Gg.GREYSCALE_0_15}`,color:Gg.GREYSCALE_0_60,marginRight:0,width:Kg,height:Kg},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Gg.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Xg,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Gg.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Ug}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Vg,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Gg.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Gg.GREYSCALE_25,fontSize:Vg,fontFamily:tb.FONT_FAMILY,fontWeight:Qg,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Gg.TEXT_PRIMARY},"&.Mui-error":{color:Gg.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Gg.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Zg,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Gg.TEXT_SECONDARY,content:"'(required)'",fontWeight:Zg,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Ug,lineHeight:"16px",backgroundColor:Gg.WHITE,borderRadius:Xg,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Gg.GREYSCALE_0_05}`,borderColor:Gg.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Gg.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Gg.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Gg.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Gg.RED}`,boxShadow:`0px 0px 0px 1px ${Gg.RED}, inset 0 2px 0 0 ${Gg.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Gg.GREYSCALE_0_10}`,borderColor:Gg.GREYSCALE_0_10,backgroundColor:Gg.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Gg.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Gg.GREYSCALE_0_15,borderRadius:Xg,boxShadow:`inset 0 2px 0 0 ${Gg.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(ib,{...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:Gg.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Gg.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Gg.GREYSCALE_0_03},"&:active":{backgroundColor:Gg.GREYSCALE_0_10},"&:focus":{backgroundColor:Gg.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Gg.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Gg.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Gg.GREYSCALE_0_30,"&:hover":{backgroundColor:Gg.GREYSCALE_0_0,borderColor:Gg.GREYSCALE_0_15},"& ~svg":{color:Gg.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Gg.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Xg}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Gg.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Gg.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Gg.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Ug,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Vg,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Vg,fontWeight:Qg,color:Gg.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Qg}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Gg.GREYSCALE_0_15}, 0px 0px 0px 1px ${Gg.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(db,null),checkedIcon:x.createElement(pb,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Gg.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Gg.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Gg.GREEN_PALE,boxShadow:`0 0 0 3px ${Qv(Gg.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Gg.BLUE_PALE,boxShadow:`0 0 0 3px ${Qv(Gg.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Gg.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Gg.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(Lw,null),checkedIcon:x.createElement(ub,null),indeterminateIcon:x.createElement(cb,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Xg,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Gg.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Gg.GREYSCALE_0_55,color:Gg.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:Gg.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Gg.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Gg.GREYSCALE_0_55,"&:hover":{color:Gg.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:Gg.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Gg.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Ug,color:Gg.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Qg},secondary:{fontSize:Vg,color:Gg.GREYSCALE_45,fontWeight:Zg,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Ug,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Gg.GREYSCALE_0_03},"&:active":{backgroundColor:Gg.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Ug,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Gg.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Vg,borderBottom:`solid 1px ${Gg.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Ug,color:Gg.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Gg.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Gg.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Gg.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:Gg.RED}}},"&.Mui-focusVisible":{backgroundColor:Gg.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:Gg.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:Gg.GREEN,height:"24px","&.Mui-disabled":{color:Gg.GREYSCALE_0_15}},rail:{backgroundColor:Gg.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Gg.GREYSCALE_0_05}`,borderRadius:Xg,boxShadow:`inset 0px 0px 0px 1px ${Gg.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Gg.GREYSCALE_0_05}`,borderRadius:Xg},thumb:{height:"16px",width:"16px",borderRadius:Xg,backgroundColor:Gg.WHITE,boxShadow:`0px 1px 2px 0px ${Gg.GREYSCALE_0_15}, 0px 0px 0px 1px ${Gg.GREYSCALE_0_05}`,"&:hover":{borderRadius:Xg,boxShadow:`0 2px 4px 0 ${Gg.GREYSCALE_0_30}, 0 0 0 1px ${Gg.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Gg.GREYSCALE_0_15}, 0 0 0 1px ${Gg.GREYSCALE_0_06}, 0 0 0 2px ${Gg.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Gg.GREYSCALE_0_15}, 0 0 0 1px ${Gg.GREYSCALE_0_06}, 0 0 0 2px ${Gg.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Gg.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Gg.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Gg.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Gg.GREYSCALE_0_15},markLabel:{color:Gg.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Gg.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Gg.WHITE,color:Gg.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:Gg.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:Gg.GREEN_PALE,boxShadow:`0 0 0 3px ${Qv(Gg.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Gg.BLUE_PALE,boxShadow:`0 0 0 3px ${Qv(Gg.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Gg.GREYSCALE_0_15,borderRadius:Xg},thumb:{height:"16px",width:"16px",borderRadius:Xg,backgroundColor:Gg.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:Ug,fontWeight:Qg,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Gg.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Gg.MISC_FOCUS_BORDER}`,backgroundColor:Gg.GREYSCALE_0_03,borderRadius:Xg},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Gg.GREYSCALE_25,"&.Mui-selected":{color:Gg.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Ug,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Gg.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Gg.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Gg.GREYSCALE_85}`,borderRight:`1px solid ${Gg.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Qg,backgroundColor:Gg.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:Gg.GREYSCALE_98,borderBottom:`1px solid ${Gg.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Gg.GREYSCALE_85}`,borderTop:`1px solid ${Gg.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Gg.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Gg.GREYSCALE_0_05,"&:hover":{backgroundColor:Gg.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Gg.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(fb,{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 ${Gg.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Ug,borderRadius:Xg,padding:"7px 16px",border:`1px solid ${Gg.GREYSCALE_0_15}`,backgroundColor:Gg.GREYSCALE_100_60,color:Gg.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Gg.GREYSCALE_0_10,border:`1px solid ${Gg.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Gg.GREYSCALE_0_03,border:`1px solid ${Gg.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Gg.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Gg.MISC_FOCUS_BORDER}`,border:`1px solid ${Gg.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Gg.GREYSCALE_25,backgroundColor:Gg.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Gg.GREYSCALE_0_10,border:`1px solid ${Gg.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Vg,height:24,width:24,padding:7},sizeLarge:{fontSize:Yg,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Ug,borderRadius:Xg}}},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:Gg.GREYSCALE_20},tooltip:{backgroundColor:Gg.GREYSCALE_20,fontSize:Vg,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var Mw=e=>Pw;const _w={mode:"light",primary:{light:Gg.GREEN_PALE,main:Gg.GREEN,dark:Gg.GREEN_DARK,contrastText:Gg.WHITE},secondary:{light:Gg.BLUE_PALE,main:Gg.BLUE,dark:Gg.BLUE_DARK,contrastText:Gg.WHITE},error:{light:Gg.RED_PALE,main:Gg.RED,dark:Gg.RED_DARK,contrastText:Gg.WHITE},warning:{light:Gg.ORANGE_PALE,main:Gg.ORANGE,dark:Gg.ORANGE_DARK,contrastText:Gg.WHITE},success:{light:Gg.GREEN_PALE,main:Gg.GREEN,dark:Gg.GREEN_DARK,contrastText:Gg.WHITE},info:{light:Gg.BLUE_PALE,main:Gg.BLUE,dark:Gg.BLUE_DARK,contrastText:Gg.WHITE},text:{primary:Gg.TEXT_PRIMARY,secondary:Gg.TEXT_SECONDARY,disabled:Gg.GREYSCALE_0_30},action:{hover:Gg.GREYSCALE_0_03,hoverOpacity:.05,selected:Gg.GREYSCALE_0_05,focus:Gg.MISC_FOCUS_BORDER},amethyst:{main:Gg.PURPLE,light:Gg.PURPLE_PALE,dark:Gg.PURPLE_DARK,contrastText:Gg.WHITE},background:{paper:Gg.WHITE,default:Gg.GREYSCALE_95},divider:Gg.GREYSCALE_0_15},Tw=e=>({components:Mw(),palette:_w,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:Ug,fontWeightLight:Jg,fontWeightRegular:Zg,fontWeightMedium:Qg,fontWeightBold:eb,htmlFontSize:Ug,fontFamily:tb.FONT_FAMILY,button:{fontWeight:Qg,fontSize:Ug,textTransform:"none"},body1:{fontSize:Yg,lineHeight:"24px"},body2:{fontSize:Ug,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Kg,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Yg,fontWeight:Qg,lineHeight:"16px"},h6:{fontSize:Ug,fontWeight:Qg,lineHeight:"16px"},caption:{color:Gg.TEXT_SECONDARY},subtitle1:{fontSize:Ug,color:Gg.TEXT_SECONDARY},subtitle2:{fontSize:Vg,color:Gg.TEXT_SECONDARY}},shape:{borderRadius:Xg}}),kw={...Wg,MISC_FOCUS_BORDER:Gg.MISC_FOCUS_BORDER},Ow=Tw().palette,qw={TEXT:Ow.text.primary,DISABLED:Ow.text.disabled,HOVER:Ow.action.hover,WHITE:kw.GREYSCALE_100,BORDER_LIGHT:kw.GREYSCALE_90,BORDER_MEDIUM:kw.GREYSCALE_85,BORDER_HEAVY:kw.GREYSCALE_50,DARK_MODE_TEXT:kw.GREYSCALE_95,DARK_MODE_BORDER:kw.GREYSCALE_95,DARK_MODE_DISABLED:kw.GREYSCALE_70,DARK_MODE_BACKGROUND:kw.GREYSCALE_20},Nw=(e,t)=>{const r=qe(e),n=r.l<70;return 0===r.opacity?(r.opacity=t.opacity,r.toString()):n?r.brighter(t.brighter).toString():r.darker(t.darker).toString()},Fw=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,zw=e=>{const t=Fw.exec(e);if(t){const[,e,r,n,o]=t;return le(+r,+n,+o,+e/255)}return le(e)},jw=e=>{const t=zw(e);return Number.isNaN(t.r)?null:t.toString()},$w=e=>{if(void 0===e)return;const t=zw(e);return t.opacity=1,t.toString()},Bw=(e,t,r)=>{var n,o,i,a;const s=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;s?s.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)},Hw=e=>{e.stopPropagation(),e.preventDefault()},Ww=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},Gw=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),Vw=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?Vw(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},Uw=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?Uw(t):t},Yw=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${hr}`);null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},Kw=({focusType:e,cell:t})=>{if(t)switch(e){case jf.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case jf.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case jf.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case jf.ADD_TAB:t.setAttribute("tabIndex","0");break;case jf.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},Xw=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o})=>{const i=((e,t,r,n={top:0,bottom:0})=>{const o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length;let[a,s]=r;switch(e.key){case zf.DOWN:a<o-1-n.bottom&&a++;break;case zf.UP:a>n.top&&a--;break;case zf.RIGHT:if(n.top>0)break;s<i-1?s++:a<o-1&&(a++,s=0);break;case zf.LEFT:if(n.top>0)break;s>0?s--:a>0&&(a--,s=i-1)}return[a,s]})(e,t,r,o),a=Ww(t,i);return Kw({focusType:jf.FOCUS,cell:a}),n(i),a},Jw=(e,t,r,n)=>{var o;(Kw({focusType:jf.REMOVE_TAB,cell:Gw(t)}),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):Kw({focusType:jf.ADD_TAB,cell:Ww(t,e)})},Zw=e=>e.ctrlKey||e.metaKey,Qw=e=>e.shiftKey&&Zw(e),eR=e=>[zf.LEFT,zf.RIGHT,zf.UP,zf.DOWN].includes(e),tR=e=>e.shiftKey&&eR(e.key),rR=(e,t=!1)=>e.key===zf.ESC&&!t||(e.key===zf.LEFT||e.key===zf.RIGHT)&&Qw(e),nR=({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:s,isSelectionMode:l})=>{const u=s.atTop?2:1,c=[r.pageRowIdx+u,r.pageColIdx],d={top:l?u:0,bottom:l&&s.atBottom?1:0};Kw({focusType:jf.REMOVE_TAB,cell:e.currentTarget});const p=Xw({evt:e,rootElement:t,cellCoord:c,setFocusedCellCoord:i,allowedRows:d});e.key!==zf.UP&&e.key!==zf.DOWN||(e.key===zf.UP&&((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[n])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-a.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})([r.pageRowIdx,r.pageColIdx],t),((e,t,r)=>t.shiftKey&&(t.key===zf.UP&&0!==r.pageRowIdx||t.key===zf.DOWN&&!r.isLastRow)&&e&&r.isSelectable)(o,e,r)?n({type:Ff.SELECT_MULTI_ADD,payload:{cell:r,evt:e,announce:a}}):((e,t,r=!1)=>{r&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,p,l))},oR=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=Nf.INACTIVE;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?Nf.EXCLUDED:void 0!==n[e.qElemNumber]?Nf.SELECTED:Nf.POSSIBLE),i},iR=(e,t,r)=>{const n=Object.keys(r).length,o=n>=Object.keys(t).length;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},aR=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l={};if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l={...n}}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?{[n]:o}:(void 0!==e[n]?delete e[n]:e[n]=o,{...e})})(l,i,s),iR(a,n,l),Object.keys(l).length?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(l),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:l,colIdx:-1})},sR=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:s}=e,{cell:l,announce:u,evt:c}=t;let d={};return s||"key"in c&&tR(c)?(-1===i?null==n||n.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,r,n,o)=>{const i={...t};if("key"in n&&tR(n)){i[r.qElemNumber]=r.rowIdx;const t=n.key===zf.DOWN?1:-1;return i[e[r.pageRowIdx+t][r.pageColIdx].qElemNumber]=r.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i[r.qElemNumber]=r.rowIdx}return i})(a,d,l,c,s),iR(u,o,d),{...e,rows:d,colIdx:null!==(r=null==s?void 0:s.selectionColIdx)&&void 0!==r?r:l.selectionColIdx,isSelectMultiValues:!0}):e},lR=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(r),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},uR=(e,t)=>{var r;switch(t.type){case Ff.SELECT:return aR(e,t.payload);case Ff.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case Ff.SELECT_MOUSE_UP:return((e,t)=>lR(e.isSelectMultiValues||e.firstCell!==t.cell?e:aR(e,t)))(e,t.payload);case Ff.SELECT_MULTI_ADD:return sR(e,t.payload);case Ff.SELECT_MULTI_END:return lR(e);case Ff.RESET:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:{},colIdx:-1};case Ff.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case Ff.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},cR=4/3,dR={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},pR=e=>parseInt(e,10)*cR+8+1,fR=e=>!!e&&(null!==e.color||e.index>-1);function mR(e,t,r={}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const hR=e=>ze(e)?qw.WHITE:qw.TEXT,gR=(e,t)=>e?{borderBottomColor:qw.DARK_MODE_BORDER,borderRightColor:qw.DARK_MODE_BORDER,borderLeftColor:qw.DARK_MODE_BORDER,borderTopColor:qw.DARK_MODE_BORDER}:{borderLeftColor:qw.BORDER_MEDIUM,borderRightColor:qw.BORDER_MEDIUM,borderTopColor:qw.BORDER_HEAVY,borderBottomColor:t?qw.BORDER_HEAVY:qw.BORDER_LIGHT},bR=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},vR=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:fR(null==r?void 0:r.fontColor)?mR(qw.TEXT,t,null==r?void 0:r.fontColor):i||qw.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?null==r?void 0:r.padding:void 0,...gR(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function yR(e,t,r){var n,o,i;const a=null===(n=bR(e))||void 0===n?void 0:n.header,s=vR("header",t,a,r);return s.background=t.background.isTransparent?qw.WHITE:$w(t.background.color),s.hoverBackground=Nw(null!==(o=s.background)&&void 0!==o?o:qw.WHITE,dR.hover),s.activeBackground=Nw(null!==(i=s.background)&&void 0!==i?i:qw.WHITE,dR.active),s}function xR(e,t,r,n){var o;const i=null===(o=bR(e))||void 0===o?void 0:o.content,a=vR("content",t,i);a.background=t.background.color;const s=((e,t,r)=>{if(e&&t&&r)return pR(e)*(t+2)<r.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,r,n),l=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=fR(u)||!!d,f=fR(l)||!!c,m=p||f;let h;h=fR(l)?mR(qw.HOVER,t,l):c||(p?"":qw.HOVER);const g=m?mR(hR(h),t,fR(u)?u:d):"";return{...a,lastRowBottomBorder:s,hoverColors:{background:h,color:g}}}function SR(e,t,r){var n;const o={};return null==t||null===(n=t.qValues)||void 0===n||n.forEach(((e,t)=>{const n=e.qText&&jw(e.qText);n&&"none"!==n&&(o[r[t]]=n)})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=hR(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background}}const ER=(e,t,r,n)=>{const o=S((()=>{const o=r.totalsPosition.atTop,i=xR(e,t,r.rows.length,n),a=yR(e,t,!o),s=function(e,t,r){var n;const o=null===(n=bR(e))||void 0===n?void 0:n.content,i=vR("content",t,o),{borderBottomColor:a,borderTopColor:s,background:l}=yR(e,t,r);return{...i,borderBottomColor:a,background:l,borderTopColor:s}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t.name(),r,n]);return o},CR=new Map;const wR=P({}),RR=function(e){const t=P([()=>{},new Set]);return CR.set(e,t),({children:r,value:n})=>{const o=M(n),i=M(new Set);C((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=_((()=>o.current),[o]),s=S((()=>[a,i.current]),[a]);return ra.jsx(e.Provider,{value:n,children:ra.jsx(t.Provider,{value:s,children:r})})}}(wR),AR={rows:[],columns:[],totalsPosition:{}},IR=({app:e,children:t,tableData:r=AR,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,env:x})=>{const[C,w]=E(0),[R,A]=E(o||mm),[I,D]=((e,t)=>{const[r,n]=L(uR,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[P,M]=E(-1),_=ER(i,u,r,d),[T,k,O,q]=((e,t,r,{head:n,body:o})=>{const i=t.atBottom||t.atTop,a=tr({...n,fontWeight:jg},{maxNbrLinesOfText:3}).measureText,s=tr({...o,fontWeight:jg},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=tr(n,{maxNbrLinesOfText:3}),u=S((()=>(e,t,r,n,o)=>{let u=25;return u+=28,n&&(u+=24),o&&(u+=20),Math.max(a(e)+u,i?s(t)+24+1:0,l(r))}),[l,a,s,i]),[c,d]=E(0),[p,f]=E((()=>Hg(e,r,u)));ar((()=>{f(Hg(e,r-c,u))}),[e,r,c,u]);const m=S((()=>((e,t,r)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,v.width,_),N=S((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,styling:_,rect:v,viewService:y})),[e,n,i,a,s,l,u.name(),c.active,d,p,f,m,_,v,y]);return ra.jsx(RR,{value:{headRowHeight:C,setHeadRowHeight:w,focusedCellCoord:R,setFocusedCellCoord:A,selectionState:I,selectionDispatch:D,hoverIndex:P,setHoverIndex:M,columnWidths:T,setColumnWidths:k,baseProps:N,tableData:r,setYScrollbarWidth:O,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:q,env:x},children:t})};function DR(e,t){const r=function(e){return CR.get(e)}(e),[n,o]=w(r),[,i]=L((e=>e+1),0),a=M(t),s=M(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=S((()=>t(l)),[l,t]);return C((()=>{a.current=t,s.current=u}),[l,u,t]),C((()=>{const e=e=>{(a.current&&a.current(e))!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function LR(e){var t;const r=Og();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),qp({...r,direction:e})}const PR=tx(lE,{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)":{[`& .${gr}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${gr}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),MR=tx(lE)({position:"absolute",height:"100%",width:"3px"}),_R=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u})=>{const c=M({initWidth:e,columnWidth:e,initX:0}),d=r?0:1,p=n&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};ar((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,br.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:vr.Pixels,pixels:c.current.columnWidth};a(e)}else null==l||l(!1)},b=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},v=e=>{Hw(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},S=e=>{Hw(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",S),g()},E=!n&&s?e=>{if(e.key===mr.LEFT||e.key===mr.RIGHT){Hw(e);const t=5,r=e.key===mr.LEFT?-t:t;h(c.current.columnWidth+r)}else e.key===mr.SPACE||e.key===mr.ENTER?(Hw(e),s(e),g()):e.key===mr.ESC&&(Hw(e),s(e),h(c.current.initWidth))}:void 0;return x.createElement(PR,{className:hr,isLastColumn:r,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==l||l(!0),m(e.clientX)},onDoubleClick:()=>a({type:vr.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),null==l||l(!0),m(e.touches[0].clientX))},onKeyDown:E,onBlur:s,onFocus:()=>m(),"data-testid":hr},x.createElement(MR,{className:gr}))};function TR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kR=T(((e,t)=>x.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){TR(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),x.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"}))));function OR(){return OR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},OR.apply(this,arguments)}const qR=tx(lE,{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"}))),NR=tx(kR,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),FR=tx(zC)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),zR=tx(_E)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),jR=tx(WC)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),$R=tx(WC,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(r?"rgba(0, 0, 0, 0.05)":"transparent")}))),BR=tx("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"}))),HR=tx("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),WR=tx(uS)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),GR=tx(pC)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function VR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const UR=T(((e,t)=>x.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){VR(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),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let YR={};const KR=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,handleHeadCellMenuKeyDown:u})=>{const[c,d]=E(!1),p=M(null),f=_((e=>{e.stopPropagation(),d(!1)}),[d]);return x.createElement(x.Fragment,null,x.createElement($R,{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),YR={}),null!=a&&a.length&&(d(!0),YR[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:u},l&&x.createElement(BR,null),x.createElement(HR,null,x.createElement(GR,null,x.createElement(o,null)),x.createElement(WR,{variant:"body2"},n)),null!=a&&a.length?x.createElement(UR,null):null),(null==a?void 0:a.length)&&x.createElement(JR,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=YR,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},XR=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&x.createElement(jR,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>x.createElement(KR,OR({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),JR=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:s})=>n.length?x.createElement(FR,OR({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,MenuListProps:{id:pr}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[XR({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?x.createElement(zR,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:n,isSubMenu:a,handleHeadCellMenuKeyDown:s})):null,ZR={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},QR=(e,t)=>e.some((e=>t[e]>0));function eA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tA=T(((e,t)=>x.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){eA(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),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"}))));function rA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nA=T(((e,t)=>x.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){rA(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),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"}))));function oA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const iA=T(((e,t)=>x.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){oA(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),x.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.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"}))));function aA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sA=T(((e,t)=>x.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){aA(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),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function lA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uA=T(((e,t)=>x.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){lA(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),x.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"}))));function cA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dA=T(((e,t)=>x.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){cA(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),x.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"}))));function pA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fA=T(((e,t)=>x.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){pA(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),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function mA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hA=T(((e,t)=>x.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){mA(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),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function gA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bA=T(((e,t)=>x.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){gA(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),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function vA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yA=T(((e,t)=>x.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){vA(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),x.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"}))));let xA=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const SA=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:s,fieldInstance:l,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(r[xA.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:tA,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:sA,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[xA.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),s()},icon:uA,enabled:!0}]}]),r[xA.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:yA,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectAll())},icon:dA,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectPossible())},icon:bA,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectAlternative())},icon:fA,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectExcluded())},icon:hA,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clear())},icon:nA,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[xA.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:iA,enabled:!0}]}]),p},EA=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:s,shouldShowMenuIcon:l=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=lr({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=n,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:S,updateSelectionActionsEnabledStatus:w}=(({headerData:e,app:t})=>{const[r,n]=E(null),[o,i]=E(ZR);return C((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(n).catch(console.error)}),[t,e]),{fieldInstance:r,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:_((()=>i(ZR)),[]),updateSelectionActionsEnabledStatus:_((t=>{const r=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));r&&i({canSelectAll:QR(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:QR(["qSelected"],r.qStateCounts),canSelectPossible:QR(["qOption"],r.qStateCounts),canSelectAlternative:QR(["qAlternative"],r.qStateCounts),canSelectExcluded:QR(["qAlternative","qExcluded"],r.qStateCounts)})}),[e.label,i])}})({headerData:n,app:null==d?void 0:d.app}),R=_((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;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,b,g]);C((()=>{e||(S(),null!=d&&d.model&&d.model.getLayout().then((e=>{w(e)})).catch((e=>console.error(e))))}),[e,S,w,null==d?void 0:d.model]);const A=_((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(qR,{rightAligned:"right"===h,shouldShowMenuIcon:l,className:dr},l&&x.createElement(NR,{height:ur,className:cr,"data-testid":cr,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},x.createElement(kR,null)),x.createElement(JR,{open:e,anchorEl:r.current,onClose:A,menuGroups:SA({headerData:n,translator:m,menuAvailabilityFlags:s,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},CA=e=>e.isDark?{background:e.color,borderColor:qw.DARK_MODE_BORDER,color:qw.DARK_MODE_TEXT,disabledColor:qw.DARK_MODE_DISABLED,iconColor:qw.DARK_MODE_TEXT}:{background:e.color,borderColor:qw.BORDER_MEDIUM,color:qw.TEXT,disabledColor:qw.DISABLED},wA=tx(lE,{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}`}))),RA=tx(Dw,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),AA=tx(yE,{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)}))),IA=tx(uS)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),DA=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=S((()=>CA(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(wA,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},LA=P({}),PA=()=>w(LA),MA=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=S((()=>CA(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=lr({translator:d}),E=S((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,s,l,u,c,y,p,f,m,h,b,g,v]);return x.createElement(LA.Provider,{value:E},e)};let _A=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),TA=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}({});function kA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const OA=T(((e,t)=>x.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){kA(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),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function qA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NA=T(((e,t)=>x.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){qA(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),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"}))));function FA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zA=T(((e,t)=>x.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){FA(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),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})))),jA={FirstPage:NA,PreviousPage:OA,NextPage:UR,LastPage:zA,FirstPageRTL:zA,PreviousPageRTL:UR,NextPageRTL:OA,LastPageRTL:NA},$A=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=PA(),u=jA[`${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:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?null:()=>i(t)},IconComponent:u}},BA=()=>{const{pageInfo:e,width:t}=PA(),r=0===e.page,{IconComponent:n,styledProps:o}=$A({type:_A.FirstPage,disabledCondition:r,pageNumber:0});return t<=TA.FirstPage?null:x.createElement(AA,o,x.createElement(n,{height:ur}))},HA=(e,t,r=!1)=>{r&&e.key===mr.TAB&&!e.shiftKey&&(Hw(e),Bw(e.target,t,!1))},WA=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=PA(),i=e.page>=r-1,{IconComponent:a,styledProps:s}=$A({type:_A.LastPage,disabledCondition:i,pageNumber:r-1}),l=t.enabled?e=>HA(e,t,n):null;return o<=TA.LastPage?null:x.createElement(AA,OR({},s,{onKeyDown:l}),x.createElement(a,{height:ur}))},GA=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=PA(),i=e.page>=r-1,{IconComponent:a,styledProps:s}=$A({type:_A.NextPage,disabledCondition:i,pageNumber:e.page+1}),l=!(o>TA.FirstPage&&o>TA.LastPage)&&t.enabled?e=>HA(e,t,n):null;return x.createElement(AA,OR({},s,{onKeyDown:l}),x.createElement(a,{height:ur}))},VA=()=>{const{pageInfo:e}=PA(),t=0===e.page,{IconComponent:r,styledProps:n}=$A({type:_A.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(AA,n,x.createElement(r,{height:ur}))},UA=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=PA(),{page:o,rowsPerPage:i}=r;if(t<=TA.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(IA,{variant:"caption"},a)},YA=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s}=PA(),l=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${l}`,p={tabIndex:s,id:`${c}-${l}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(IA,{variant:"caption",id:d},u,":"),x.createElement(RA,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},KA=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=PA();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>TA.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(YA,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},XA=1e3,JA="…",ZA=({totalPages:e,page:t})=>{const r=Math.min(e,XA),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-XA):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:JA,disabled:!0},JA)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:JA,disabled:!0},JA)),x.createElement(x.Fragment,null,a)},QA=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=PA(),{page:o}=e;if(t<=TA.SelectPage)return null;const i=x.createElement(ZA,{totalPages:r,page:o});return x.createElement(YA,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var eI=k((e=>x.createElement(MA,e,x.createElement(KA,null),x.createElement(QA,null),x.createElement(UA,null),x.createElement(BA,null),x.createElement(VA,null),x.createElement(GA,null),x.createElement(WA,null))));const tI=e=>x.createElement(DA,e,x.createElement(eI,e)),rI=gf(Ih,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.tableColorFromTheme}))),nI=gf(Ih,{shouldForwardProp:e=>"lines"!==e&&"allIconsDisabled"!==e&&"headCell"!==e&&"isPagination"!==e&&"wordBreak"!==e&&"virtualizedCell"!==e})((({lines:e,wordBreak:t,allIconsDisabled:r=!1,headCell:n=!1,isPagination:o=!1,virtualizedCell:i=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(n||t||1===e)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:n&&o?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",...n&&{whiteSpace:r||i?"normal":"nowrap"}}}))),oI=gf(Ih)({overflow:"hidden",textOverflow:"ellipsis"});function iI(e,t){const r=M(!1);C((()=>{r.current?e():r.current=!0}),t)}const aI=(e,t,r)=>{C((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n),i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},sI=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===zf.DOWN||r===zf.UP){const t=e=>r===zf.DOWN?Vw(e):Uw(e);Hw(e);let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}},lI=({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:s,paginationNeeded:l,totalsPosition:u,selectionsAPI:c})=>{if(e.currentTarget.classList.contains("excluded"))return void Hw(e);const d=null==c?void 0:c.isModal();if(!rR(e,d))switch(e.key){case zf.UP:case zf.DOWN:case zf.LEFT:case zf.RIGHT:Hw(e),nR({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:d});break;case zf.SPACE:Hw(e),r.isSelectable&&o&&n({type:Ff.SELECT,payload:{cell:r,evt:e,announce:a}});break;case zf.ENTER:Hw(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case zf.ESC:Hw(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case zf.TAB:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{(null==t?void 0:t.enabled)&&r&&(e.shiftKey||!e.shiftKey&&!n)&&(Hw(e),Bw(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:s,isSelectionMode:d,paginationNeeded:l});break;case zf.C:Hw(e),Zw(e)&&Sr(e.currentTarget)}},uI=e=>{const{layout:t,rect:r,theme:n}=DR(wR,(e=>e.baseProps)),o=n.name(),[i,a]=E(0),[s,l]=E(0);return O((()=>{if(e.current){var t;const{offsetWidth:r=0,offsetHeight:n=0,clientWidth:o=0,clientHeight:i=0}=null!==(t=e.current)&&void 0!==t?t:{},s=n-i;l(r-o),a(s)}}),[e,t,r,o]),{xScrollbarWidth:i,yScrollbarWidth:s}},cI=gf("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),dI=gf(gg,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),pI=gf(Qh,{shouldForwardProp:e=>"showRightBorder"!==e&&"styling"!==e})((({showRightBorder:e,styling:t})=>({tableLayout:"fixed",width:"min-content",borderRight:e?`1px solid ${t.body.borderRightColor}`:void 0}))),fI=()=>ra.jsxs(ra.Fragment,{children:[ra.jsx(cI,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),ra.jsx(cI,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),mI=e=>e.stopPropagation(),hI=({href:e,text:t,interactions:r,color:n})=>x.createElement(rC,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:mI,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t),gI=({layout:e,viewService:t,isImagesEnabled:r})=>{var n,o;let i=null===(n=t.viewState)||void 0===n?void 0:n.maxLineCount;var a,s;r&&(i=null!==(a=i)&&void 0!==a?a:null===(s=bR(e))||void 0===s||null===(s=s.content)||void 0===s?void 0:s.rowHeight);return{maxNbrLines:null!==(o=i)&&void 0!==o?o:3,isStaticNbrOfLines:void 0!==i}},bI=({children:e,fontSize:t="",wordBreak:r=!1,isPagination:n=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:s=!1})=>{if(a)return ra.jsx(nI,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:n,headCell:!0,allIconsDisabled:s,children:e});const l=parseInt(t||zg,10),u=ra.jsx(nI,{component:"span",className:"sn-table-cell-text",wordBreak:r,lines:i,virtualizedCell:o,children:e});return r?u:ra.jsx(oI,{minHeight:l*Fg,maxHeight:l*Fg*i,children:u})},vI=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},yI=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},xI=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:s}=e,l="fitHeight"===a,u=ra.jsx("img",{src:o,alt:i,style:{width:l?"auto":"100%",height:"100%",maxHeight:r,objectFit:yI(a),objectPosition:vI(s),...t,overflow:"hidden"}});var c;return n?ra.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:l?r:"100%",overflow:"hidden",display:"flex",justifyContent:l?null==e||null===(c=e.resolvedImagePosition)||void 0===c?void 0:c.horizontal:void 0},children:u}):u},SI=({cell:e,style:t,maxImageHeight:r,virtualizedCell:n})=>{const{flags:o}=DR(wR,(e=>e.env)),{interactions:i,viewService:a,layout:s}=DR(wR,(e=>e.baseProps)),l=DR(wR,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()})),{maxNbrLines:u}=gI({viewService:a,layout:s,isImagesEnabled:o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")});let c=e.representation.text;return e.representation.type!==Li.Link||l||(c=ra.jsx(hI,{href:e.representation.url,text:e.representation.text,interactions:i,color:t.cellForegroundColor})),e.representation.type===Li.Image?ra.jsx(xI,{representation:e.representation,textStyle:t,maxImageHeight:r,wrapInContainer:!n}):ra.jsx(bI,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:u,virtualizedCell:n,children:c})},EI=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{C((()=>{const i=()=>{t({type:Ff.RESET})},a=()=>{t({type:Ff.CLEAR})},s=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",s),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",s),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},CI=e=>parseInt(null!=e?e:$g.fontSize,10)*Fg,wI=({maxNbrLines:e,isStaticNbrOfLines:t,lineHeight:r})=>t?r*e+8+1:void 0,RI=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>r({type:Ff.SELECT_MULTI_END});r({type:Ff.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:Ff.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:Ff.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:n}})}}),AI=gf(ag,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),II=gf(Lg,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),DI=gf(pg,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...$g,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),LI=gf(pg,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...$g,...e,fontWeight:jg,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&r,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function PI(e){return t=>{const{cell:r,styling:n,announce:o,onMouseDown:i}=t,a=DR(wR,(e=>oR(r,e.selectionState))),s=DR(wR,(e=>e.selectionDispatch)),{handleMouseDown:l,handleMouseOver:u,handleMouseUp:c}=RI(i,r,s,o),d=function(e,t){let r={};switch(t){case Nf.SELECTED:r=Ng.SELECTED;break;case Nf.POSSIBLE:r=Ng.POSSIBLE;break;case Nf.EXCLUDED:r={background:`${Ng.EXCLUDED_BACKGROUND}, ${e.background}`,selectedCellClass:Nf.EXCLUDED}}return{...e,...r}}(n,a);return ra.jsx(e,{...t,styling:d,onMouseUp:c,onMouseDown:l,onMouseOver:u})}}function MI(e,t){let r=(n=DI,e=>{const{styling:{selectedCellClass:t,...r},component:o,align:i,children:a,scope:s,tabIndex:l,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m}=e;return ra.jsx(n,{cellStyle:r,component:o,scope:s,align:i,tabIndex:l,className:`sn-table-cell ${t||""} ${fr}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var n;return t&&(r=PI(r)),e&&(r=function(e){return t=>{const{cell:r,column:n,styling:o}=t,i=S((()=>SR(o,r.qAttrExps,n.qAttrExprInfoIDs)),[o,r.qAttrExps,n.qAttrExprInfoIDs]);return ra.jsx(e,{...t,styling:i})}}(r)),r}const _I=()=>{const{columns:e,totalsPosition:{atTop:t},rows:r}=DR(wR,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styling:a,interactions:s}=DR(wR,(e=>e.baseProps)),l=DR(wR,(e=>e.headRowHeight)),u=DR(wR,(e=>e.setFocusedCellCoord));return ra.jsx(Lg,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t?1:r.length+1,c];return ra.jsx(LI,{totalsStyle:a.totals,headRowHeight:l,atTop:t,align:e.totalsTextAlign,className:`sn-table-cell ${fr}`,tabIndex:-1,title:s.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,r,n,o=!1)=>{if(o)Hw(e);else if(!rR(e))switch(e.key){case zf.LEFT:case zf.RIGHT:case zf.UP:case zf.DOWN:Hw(e),Kw({focusType:jf.REMOVE_TAB,cell:e.currentTarget}),Xw({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n});break;case zf.C:Hw(e),Zw(e)&&Sr(e.currentTarget);break;case zf.SPACE:e.preventDefault()}})(e,n,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{Jw(d,n,u,i)},children:ra.jsx(bI,{wordBreak:!e.isTotalNumeric,fontSize:a.totals.fontSize,children:e.totalInfo})},e.id)}))})};var TI=k(_I);const kI=({setShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:s}=DR(wR,(e=>e.tableData)),{selectionsAPI:l,rootElement:u,keyboard:c,layout:d,interactions:p,styling:{body:{hoverColors:f,lastRowBottomBorder:m,...h}},viewService:g}=DR(wR,(e=>e.baseProps)),b=DR(wR,(e=>e.setFocusedCellCoord)),v=DR(wR,(e=>e.selectionDispatch)),{flags:y}=DR(wR,(e=>e.env)),x=!!p.active&&!!p.select,E=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),C=S((()=>JSON.parse(E).map((e=>MI(e.some((e=>"cellBackgroundColor"===e||"cellForegroundColor"===e)),x)))),[E,x]),w=!(null===(n=bR(d))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect),{maxNbrLines:R,isStaticNbrOfLines:A}=gI({viewService:g,layout:d,isImagesEnabled:y.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),I=CI(h.fontSize),D=wI({maxNbrLines:R,isStaticNbrOfLines:A,lineHeight:I});return EI({keyboard:c,selectionDispatch:v,selectionsAPI:l,setShouldRefocus:e,tableWrapperRef:t}),ra.jsxs(AI,{lastRowBottomBorder:m,children:[s.atTop?ra.jsx(TI,{}):void 0,o.map(((e,t)=>ra.jsx(II,{hoverColors:f,hover:w,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,height:D,children:i.map(((t,n)=>{const{id:o}=t,i=e[n],d=C[n],f=SR({},i.qAttrExps,t.qAttrExprInfoIDs);return d&&ra.jsx(d,{scope:0===n?"row":void 0,component:0===n?"th":void 0,cell:i,column:t,align:i.align,styling:h,tabIndex:-1,announce:r,title:p.passive?i.representation.text:void 0,onKeyDown:e=>{lI({evt:e,rootElement:u,selectionsAPI:l,cell:i,selectionDispatch:v,isSelectionsEnabled:x,setFocusedCellCoord:b,announce:r,keyboard:c,paginationNeeded:a,totalsPosition:s})},onKeyUp:e=>((e,t)=>{e.key===zf.SHIFT&&t({type:Ff.SELECT_MULTI_END})})(e,v),onMouseDown:()=>((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;Jw([s,a],t,r,n)})(i,u,b,c,s),children:ra.jsx(SI,{cell:i,style:f,maxImageHeight:A?I*R:I})},o)}))},`row-${t}`))),s.atBottom?ra.jsx(TI,{}):void 0]})};var OI=k(kI);const qI=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o}=e,{applyColumnWidths:i,interactions:a}=DR(wR,(e=>e.baseProps)),s=DR(wR,(e=>e.columnWidths)),l=DR(wR,(e=>e.setColumnWidths));if(!a.active)return null;return ra.jsx(_R,{columnWidth:s[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...s];t[o]=e,l(t)},confirmWidthCallback:t=>{i(t,e)},handleBlur:e=>(e=>{e.setAttribute("tabIndex","-1");const t=e.closest(".sn-table-cell");Kw({focusType:jf.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:n})};function NI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const FI=T(((e,t)=>x.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){NI(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),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"}))));function zI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jI=T(((e,t)=>x.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){zI(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),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function $I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const BI=T(((e,t)=>x.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){$I(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),x.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),x.createElement("use",{fillRule:"evenodd"})))),HI=gf("div")({position:"absolute",left:0,bottom:0}),WI=gf(Ih,{shouldForwardProp:e=>!["textAlign"].includes(e)})((({textAlign:e,theme:t})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center"})));gf("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const GI=gf(Ih,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${dr}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:2},[`& .${dr}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),VI=gf(Ih,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));gf(Ih,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),gf(kh)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),gf(Vh)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),gf("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),gf(jh)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),gf("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const UI=gf(pg,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...$g,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));gf("div")({display:"flex",alignItems:"center"});const YI=gf("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:zg,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),KI=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i})=>{const{translator:a,changeSortOrder:s,interactions:l,embed:u,app:c,model:d,styling:p}=DR(wR,(e=>e.baseProps)),f=DR(wR,(t=>t.columnWidths[e.pageColIdx])),m=M(null),h=M(null),{getHeadCellsIconsVisibilityStatus:g,allIconsDisabled:b}=(({styling:e,column:t,columnWidth:r})=>{const{measureText:n}=tr({fontSize:e.head.fontSize,fontFamily:e.head.fontFamily,fontWeight:jg}),o=_((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,s=t.isActivelySorted,l=r-25,u=a?20:0,c=s?20:0;let d=n(t.label);return a&&d+u<=l&&(i=!0,d+=u,s&&d+c<=l&&(o=!0,d+=c)),!a&&s&&d+c<=l&&(o=!0,d+=c),d+24<=l&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n]);return{getHeadCellsIconsVisibilityStatus:o,allIconsDisabled:Object.values(o()).every((e=>!1===e))}})({styling:p,column:e,columnWidth:f}),v=g(),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n})=>{const o="A"===e?ra.jsx(FI,{height:zg,"data-testid":"head-cell-sort-ascending-icon"}):ra.jsx(jI,{height:zg,"data-testid":"head-cell-sort-descending-icon"}),i=r?ra.jsx(YI,{align:t,children:o}):void 0,a=n?ra.jsx(VI,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:ra.jsx(BI,{height:zg,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:i,LockIcon:a}:{EndIcon:i,LockIcon:a}})(e,v);o&&(o.current[e.pageColIdx]=v);return ra.jsxs(GI,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:e.headTextAlign,children:[S,ra.jsxs(WI,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[y,ra.jsx(bI,{allIconsDisabled:b,isPagination:i,virtualizedCell:!i,headCell:!0,children:e.label}),x]}),t&&ra.jsxs(ra.Fragment,{children:[ra.jsx(EA,{headerData:e,translator:a,anchorRef:m,handleHeadCellMenuKeyDown:sI,menuAvailabilityFlags:{[xA.SORTING]:!0,[xA.SEARCHING]:!0,[xA.SELECTIONS]:!0,[xA.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:n,interactions:l,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:u,listboxRef:h},selectionRelatedArgs:{app:c,model:d},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:Yw},shouldShowMenuIcon:v.shouldShowMenuIcon}),ra.jsx(HI,{ref:h}),ra.jsx(HI,{ref:m})]})]})},XI=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=E(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=E(!1);return ar((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(hr)})(t)&&!o&&n(!0),setIsAdjustingWidth:i}},JI=({column:e,columnIndex:t,columnsLength:r})=>{const{styling:n,interactions:o,rootElement:i,keyboard:a,styling:{head:{activeBackground:s,background:l,hoverBackground:u}}}=DR(wR,(e=>e.baseProps)),{columns:c}=DR(wR,(e=>e.tableData)),d=DR(wR,(e=>e.columnWidths[t])),p=DR(wR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=DR(wR,(e=>e.setFocusedCellCoord)),m=DR(wR,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),h=!!o.active&&!p,{open:g,setOpen:b,handleOpenMenu:v,setIsAdjustingWidth:y}=XI({isInteractionEnabled:h,columnsData:c}),x=e.isActivelySorted?$f[e.sortDirection]:void 0,S=g?pr:void 0,E=g?"true":void 0,C=t===r-1,w=[0,e.pageColIdx],R={width:d-(C?8:9),zIndex:c.length-t},A=m&&0===t&&!a.enabled&&h?0:-1;return ra.jsxs(UI,{headerStyle:n.head,background:g?s:l,hoverBackground:u,interactions:o,style:R,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${fr}`,tabIndex:A,title:o.passive?e.label:void 0,onKeyDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,isInteractionEnabled:o,handleOpenMenu:i})=>{if(o){if(!rR(e))switch(e.key){case zf.LEFT:case zf.RIGHT:Hw(e),Kw({focusType:jf.REMOVE_TAB,cell:e.currentTarget}),Xw({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n});break;case zf.DOWN:Hw(e),Kw({focusType:jf.REMOVE_TAB,cell:Gw(t)}),Xw({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n});break;case zf.C:Hw(e),Zw(e)&&Sr(e.currentTarget);break;case zf.ENTER:case zf.SPACE:i&&i(e)}}else Hw(e)})({evt:e,rootElement:i,cellCoord:w,setFocusedCellCoord:f,isInteractionEnabled:h,handleOpenMenu:v}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(n(r),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):Kw({focusType:jf.FOCUS,cell:Ww(t,r)}))})({evt:e,rootElement:i,cellCoord:w,setFocusedCellCoord:f,keyboard:a,isInteractionEnabled:h}),onClick:v,"aria-sort":x,"aria-controls":S,"aria-expanded":E,"aria-haspopup":"true",children:[ra.jsx(KI,{column:e,isInteractionEnabled:h,open:g,setOpen:b,isPagination:!0}),ra.jsx(qI,{column:e,isLastColumn:C,setIsAdjustingWidth:y})]},e.id)},ZI=()=>{var e;const{columns:t}=DR(wR,(e=>e.tableData)),{styling:r,viewService:n}=DR(wR,(e=>e.baseProps)),o=DR(wR,(e=>e.setHeadRowHeight)),i=DR(wR,(e=>e.columnWidths)),a=M(null);return C((()=>{a.current&&o(a.current.clientHeight)}),[r.head.fontSize,i,o]),null!==(e=n.viewState)&&void 0!==e&&e.skipHeader?null:ra.jsx(Eg,{children:ra.jsx(Lg,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,r)=>ra.jsx(JI,{column:e,columnIndex:r,columnsLength:t.length},e.id)))})})};var QI=k(ZI);const eD=e=>{var t,r;const{pageInfo:n,setPageInfo:o,direction:i,footerContainer:a,announce:s}=e,{page:l,rowsPerPage:u}=n,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=DR(wR,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styling:E,viewService:w,layout:R,rect:A}=DR(wR,(e=>e.baseProps)),I=DR(wR,(e=>e.focusedCellCoord)),D=DR(wR,(e=>e.setFocusedCellCoord)),L=DR(wR,(e=>e.setYScrollbarWidth)),P=DR(wR,(e=>e.showRightBorder)),T=DR(wR,(e=>e.selectionDispatch)),k=DR(wR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),O=M(!1),q=M(null),N=M(null),{yScrollbarWidth:F}=uI(q),z=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length+1),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,j=Gi(R,w),$=j&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,B=j&&null!==(r=w.rowPartialHeight)&&void 0!==r?r:0,H=_((()=>{O.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),W=_((e=>{o({...n,page:e}),s({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[n,o,p,s]),G=_((e=>{o({...n,page:0,rowsPerPage:e}),s({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[s,n,o]);return((e,t,r)=>{C((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(".sn-table-head-menu");if(r.enabled&&!i&&!a&&!t.current&&n){var s;const e=n.querySelector(".sn-table-announcer-1"),t=n.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(s=r.blur)||void 0===s||s.call(r,!1)}})(e,t,r);return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(N,O,v),aI(q,i,w),(()=>{const{rootElement:e,keyboard:t}=DR(wR,(e=>e.baseProps)),r=DR(wR,(e=>e.focusedCellCoord));ar((()=>{const n=t.active?jf.FOCUS:jf.BLUR,o=t.active?Ww(e,r):Gw(e);Kw({focusType:n,cell:o})}),[t.active,e])})(),C((()=>{const e=q.current;e&&(e.scrollLeft=$,e.scrollTop=B)}),[n,d,$,B]),iI((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:s})=>{Kw({focusType:jf.REMOVE_TAB,cell:Gw(t)});const l=[s.atTop?2:1,e[1]],u=n?l:mm;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=r.current?jf.FOCUS:jf.ADD_TAB;r.current=!1;const d=Ww(t,u);if(Kw({focusType:c,cell:d}),n){var p;const e=null==d||null===(p=d.classList)||void 0===p?void 0:p.contains("selected");a({keys:[`${null==d?void 0:d.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}})({focusedCellCoord:I,rootElement:b,shouldRefocus:O,setFocusedCellCoord:D,isSelectionMode:k,keyboard:v,announce:s,totalsPosition:g})}),[m.length,d,c,l]),iI((()=>{L(F)}),[F]),iI((()=>{T({type:Ff.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),ra.jsxs(rI,{ref:N,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:r,rowsPerPage:n,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:s})=>{if(Qw(e)){Hw(e);const a=Math.ceil(t/n)-1;e.key===zf.RIGHT&&r<a?(i(),o(r+1)):e.key===zf.LEFT&&r>0&&(i(),o(r-1))}else if(e.key===zf.ESC&&a.enabled&&!s){var l;Hw(e),null===(l=a.blur)||void 0===l||l.call(a,!0)}else eR(e.key)&&Hw(e)})({evt:e,totalRowCount:d,page:l,rowsPerPage:u,handleChangePage:W,setShouldRefocus:H,keyboard:v,isSelectionMode:k})},"data-testid":"sn-table",children:[ra.jsx(fI,{}),ra.jsx(dI,{ref:q,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:ra.jsxs(pI,{styling:E,showRightBorder:P,stickyHeader:!0,"aria-label":z,children:[ra.jsx(QI,{}),ra.jsx(OI,{...e,setShouldRefocus:H,tableWrapperRef:N})]})}),ra.jsx(tI,{footerContainer:a,pageInfo:n,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:A,layout:R,handleChangePage:W,handleChangeRowsPerPage:G,isSelectionMode:k})]})};var tD=k(eD);function rD(){return rD=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},rD.apply(this,arguments)}function nD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oD(e,t){return oD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oD(e,t)}function iD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,oD(e,t)}var aD=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function sD(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||aD(n)&&aD(o)))return!1;var n,o;return!0}function lD(e,t){var r;void 0===t&&(t=sD);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function uD(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 cD="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function dD(e){cancelAnimationFrame(e.id)}function pD(e,t){var r=cD();var n={id:requestAnimationFrame((function o(){cD()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var fD=-1;function mD(e){if(void 0===e&&(e=!1),-1===fD||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),fD=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return fD}var hD=null;function gD(e){if(void 0===e&&(e=!1),null===hD||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?hD="positive-descending":(t.scrollLeft=1,hD=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),hD}return hD}var bD=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function vD(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,nD(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:nD(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=lD((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=lD((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&s,h&&l,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=lD((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(gD()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&dD(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=pD(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}iD(t,e),t.getDerivedStateFromProps=function(e,t){return yD(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=mD();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(gD()){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&&dD(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?bD:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),A=w[0],I=w[1],D=[];if(n>0&&g)for(var L=A;L<=I;L++)for(var P=E;P<=C;P++)D.push(R(t,{columnIndex:P,data:d,isScrolling:v?x:void 0,key:f({columnIndex:P,data:d,rowIndex:L}),rowIndex:L,style:this._getItemStyle(L,P)}));var M=a(this.props,this._instanceProps),_=s(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:rD({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:D,ref:l,style:{height:M,pointerEvents:x?"none":void 0,width:_}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var yD=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},xD=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},SD=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},ED=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},CD=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?wD(e,t,r,i,0,n):RD(e,t,r,Math.max(0,i),n)},wD=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=ED(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},RD=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&ED(e,t,n,r).offset<o;)n+=a,a*=2;return wD(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},AD=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=ED(e,t,r,i),u="column"===e?SD(t,i):xD(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},ID=vD({getColumnOffset:function(e,t,r){return ED("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return CD("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=ED("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ED("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:xD,getEstimatedTotalWidth:SD,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return AD("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return AD("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return ED("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return CD("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=ED("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ED("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}}),DD=function(e,t){return e};function LD(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,nD(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:nD(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=lD((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=lD((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=lD((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(gD()){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&&dD(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=pD(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}iD(t,e),t.getDerivedStateFromProps=function(e,t){return PD(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?mD():0:l.scrollHeight>l.clientHeight?mD():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(gD()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&dD(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?DD:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],A=[];if(u>0)for(var I=C;I<=w;I++)A.push(R(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var D=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:rD({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(s||l||"div",{children:A,ref:a,style:{height:x?"100%":D,pointerEvents:y?"none":void 0,width:x?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,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var PD=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},MD=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},_D=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=MD(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},TD=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&MD(e,r,t).offset<n;)r+=i,i*=2;return _D(e,t,Math.min(r,o-1),Math.floor(r/2),n)},kD=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},OD=LD({getItemOffset:function(e,t,r){return MD(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:kD,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=MD(e,t,o),p=kD(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?_D(e,t,o,0,r):TD(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=MD(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=MD(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 qD(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 ND=["style"],FD=["style"];function zD(e,t){var r=e.style,n=uD(e,ND),o=t.style,i=uD(t,FD);return!qD(r,o)&&!qD(n,i)}const jD=({style:e})=>ra.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var $D=x.memo(jD,zD);const BD=()=>{},HD=e=>e.preventDefault();const WD=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const{rowsInPage:i,columns:a,bodyStyle:s,isHoverEnabled:l,maxImageHeight:u}=n,c=DR(wR,(e=>e.hoverIndex===t)),d=DR(wR,(e=>e.setHoverIndex)),{interactions:p}=DR(wR,(e=>e.baseProps)),f=DR(wR,(e=>e.showRightBorder)),m=null===(o=i[t])||void 0===o?void 0:o[e],{handleMouseDown:h,handleMouseOver:g,handleMouseUp:b,cellSelectionState:v}=function(e){const{interactions:t}=DR(wR,(e=>e.baseProps)),r=DR(wR,(e=>e.selectionDispatch)),n="object"==typeof e,o=DR(wR,(t=>n?oR(e,t.selectionState):Nf.INACTIVE)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=RI(HD,e,r,BD);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(m);if("object"==typeof m){var y;const n=((e,t,r,n,o)=>{const{hoverColors:i,lastRowBottomBorder:a,...s}=o,l=t.qAttrExprInfoIDs.length?SR(s,e.qAttrExps,t.qAttrExprInfoIDs):s;return n===Nf.SELECTED?{...l,...Ng.SELECTED}:n===Nf.EXCLUDED?{...l,color:r?null==i?void 0:i.color:l.color,background:`${Ng.EXCLUDED_BACKGROUND}, ${r?null==i?void 0:i.background:l.background}`}:r?{...l,...i}:l})(m,a[e],l&&c,v,s),o={rowindex:t,columnindex:e};return ra.jsx("div",{className:`sn-table-cell ${v} ${fr}`,style:{...r,...n,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:m.isLastRow?"0px":"1px",borderRightWidth:m.isLastColumn&&!f?"0px":"1px",borderStyle:"solid",justifyContent:m.representation.type===Li.Image&&"fitHeight"===m.representation.imageSize?null===(y=m.representation)||void 0===y||null===(y=y.resolvedImagePosition)||void 0===y?void 0:y.horizontal:m.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:h,onMouseUp:b,onMouseOver:g,onMouseEnter:l?()=>d(t):void 0,onMouseLeave:l?()=>d(-1):void 0,title:p.passive?m.representation.text:void 0,...o,children:ra.jsx(SI,{cell:m,style:n,maxImageHeight:u,virtualizedCell:!0})})}return ra.jsx($D,{style:{...r,...s,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var GD=x.memo(WD,zD);const VD=e=>{const t=M(e);return t.current=e,t},UD=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,YD=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},KD=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},XD=(e,t,r,n,o,i,a)=>{e.forEach((e=>{e.qMatrix.forEach(((s,l)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:c,pageRowIdx:d}=((e,t,r,n,o,i,a,s,l)=>{var u;const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=null!==(u=e[p])&&void 0!==u?u:[];return t.forEach(((e,t)=>{var r,o;const a=t+n.qLeft,{colIdx:u,isDim:m,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y}=i[a],x=qi(e);f[a]=null!==(r=f[a])&&void 0!==r?r:{id:_o(),...e,align:Hi(e,g),rowIdx:d,colIdx:u,isSelectable:m&&!h,pageRowIdx:p,pageColIdx:a,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:a===c.qcx-1,isNumeric:x,representation:ki(e,y,v,l)},s(null!==(o=f[a].representation.text)&&void 0!==o?o:"",p,a,x)})),{row:f,pageRowIdx:p}})(r,s,l,e.qArea,u,n,o,i,a);r[d]=c}))}))},JD=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,setCellSize:u,gridState:c})=>{const d=DR(wR,(e=>e.env)),p=M([]),f=VD(u),m=_(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return XD(t,o,n,l,e,f.current,d),p.current=n,n}),[i,o,l,e,f,d]),[h,g]=E((()=>m(null!=n?n:[])));ar((()=>{g(m(null!=n?n:[]))}),[n]);const b=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=VD(e),a=VD(t),s=S((()=>({enqueue:e=>{const t=UD(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(UD(e))}))}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return s})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>g((t=>m(e,t))))),v=_(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(KD(p.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[p,b]),y=_(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(YD(p.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[p,b,o]),x=r.name();return C((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-n,p=Math.min(100,u,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,c,x]),{rowsInPage:h,loadRows:y,loadColumns:v}},ZD=({style:e,columnWidths:t,rowHeight:r,pageInfo:n,rowCount:o,gridRef:i,lineRef:a,columns:s,fontWeight:l,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,isStaticNbrOfLines:f,allColumnsIconVisibilityStatus:m})=>{const h=M({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:g,rect:b}=DR(wR,(e=>e.baseProps)),[v,y]=E(r||24),{measureText:x,estimateLineCount:S}=tr({...e,fontWeight:l},{maxNbrLinesOfText:p}),C=CI(e.fontSize),w=8e6/o-8-1,R=Math.max(0,Math.min(p,Math.round(w/C))),A=wI({maxNbrLines:R,isStaticNbrOfLines:f,lineHeight:C}),I=f?R*C:C,D=_(((e,r,n)=>{const o=s?(({width:e,columnIconsVisibilityStatus:t})=>{let r=0,n=0,o=0,i=0;if(t){const{shouldShowLockIcon:e,shouldShowSortIcon:r,shouldShowMenuIcon:a}=t;n=e?20:0,o=r?20:0,i=a?24:0}return r=e-25-n-o-i,Math.max(0,r)})({width:t[r],columnIconsVisibilityStatus:null==m?void 0:m[r]}):(e=>Math.max(0,e-24-1))(t[r]),i=Math.min(R,S({text:e.trim(),maxWidth:o,isNumeric:n}));return Math.max(1,i)*C+8+1}),[t,C,R,s,S,m]),L=_(((e,t,n,o=!1,i=!1)=>{const a=`${t}-${n}`;if(h.current.measuredCells.has(a))return;if(f)return h.current.measuredCells.set(a,[e,t,n,o]),void y(A);h.current.measuredCells.set(a,[e,t,n,o]);const l=r||24,d=((e,t,r)=>{var n;return(null==t||null===(n=t[e].representation)||void 0===n?void 0:n.type)===Li.Image&&r})(n,s,u)?l:D(e,n,o),p=h.current.heights[t],m=d-p;m>0?(h.current.totalHeight+=m,h.current.heights[t]=d):void 0===p&&(h.current.count+=1,h.current.totalHeight+=d,h.current.heights[t]=d),i||c||y(h.current.totalHeight/h.current.count)}),[D,c,f,A,s,r,u]),P=_((e=>{var t;return null!==(t=h.current.heights[e])&&void 0!==t?t:v}),[h,v]),T=_((()=>{h.current.lastScrollToRatio=0,h.current.resetAfterRowIndex=0,h.current.heights=[],h.current.totalHeight=0,h.current.count=0,h.current.measuredCells.clear()}),[h]),k=VD(L),O=_((()=>{if(f)return void T();const e=new Map(h.current.measuredCells);T(),e.forEach((([e,t,r,n])=>{k.current(e,t,r,n,!0)})),c||y(h.current.totalHeight/h.current.count)}),[T,c,k,f]);ar((()=>{T()}),[g,n]),ar((()=>{O()}),[x,b.width]);return null!=i&&i.current?i.current.resetAfterRowIndex(h.current.resetAfterRowIndex,!1):null!=a&&a.current&&a.current.resetAfterIndex(h.current.resetAfterRowIndex,!1),d.estimatedRowHeight=v,{setCellSize:L,getRowHeight:P,rowMeta:h,estimatedRowHeight:v,maxLineCount:R,resizeVisibleCells:e=>{if(!u||f)return;T();const{overscanRowStartIndex:t,overscanRowStopIndex:r}=u.current,n=Math.min(r,g.qHyperCube.qSize.qcy-1);for(let r=t;r<=n;r++){var o;const t=null!==(o=e[r])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&L(null!==(t=e.representation.text)&&void 0!==t?t:"",r,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:O,resetRowMeta:T,maxImageHeight:I}};var QD;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(QD||(QD={}));const eL={enabled:!1},tL=()=>{},rL={current:null};const nL=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=S((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},oL=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},iL={overflow:"hidden",willChange:"auto"};var aL=k(T(((e,t)=>{var r;const{rect:n,columns:o,innerForwardRef:i,pageInfo:a,bodyStyle:s,rowHeight:l,headerAndTotalsHeight:u,syncHeight:c}=e,{flags:d}=DR(wR,(e=>e.env)),{layout:p,model:f,theme:m,viewService:h}=DR(wR,(e=>e.baseProps)),g=DR(wR,(e=>e.columnWidths)),b=DR(wR,(e=>e.initialDataPages)),{maxNbrLines:v,isStaticNbrOfLines:y}=gI({viewService:h,layout:p,isImagesEnabled:d.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),x=M(null),E=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),w=!(null===(r=bR(p))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{scrollHandler:R,verticalScrollDirection:A,horizontalScrollDirection:I}=(()=>{const e=M(0),t=M(0),r=M(QD.None),n=M(QD.None);return{scrollHandler:_((({scrollTop:o,scrollLeft:i})=>{o>t.current?r.current=QD.Down:o<t.current?r.current=QD.Up:r.current=QD.None,i>e.current?n.current=QD.Right:i<e.current?n.current=QD.Left:n.current=QD.None,t.current=o,e.current=i}),[t,e,r,n]),verticalScrollDirection:r,horizontalScrollDirection:n}})(),{rowCount:D,visibleRowCount:L,visibleColumnCount:P}=nL(p,a,n,g,l),{setCellSize:T,getRowHeight:k,rowMeta:q,estimatedRowHeight:F,maxLineCount:z,resizeVisibleCells:j,maxImageHeight:$}=ZD({pageInfo:a,style:s,rowHeight:l,columnWidths:g,columns:o,gridRef:x,rowCount:D,gridState:E,isSnapshot:!!p.snapshotData,viewService:h,maxNbrLines:v,isStaticNbrOfLines:y}),{rowsInPage:B,loadRows:H,loadColumns:W}=JD({layout:p,model:f,theme:m,initialDataPages:b,pageInfo:a,rowCount:D,visibleRowCount:L,visibleColumnCount:P,columns:o,setCellSize:T,gridState:E}),G=(({layout:e,loadRows:t,loadColumns:r,verticalScrollDirection:n,horizontalScrollDirection:o,rowCount:i,pageInfo:a,gridState:s,viewService:l})=>_((({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p,visibleColumnStartIndex:f,visibleColumnStopIndex:m,visibleRowStartIndex:h,visibleRowStopIndex:g})=>{if(s.current.overscanColumnStartIndex=u,s.current.overscanColumnStopIndex=c,s.current.overscanRowStartIndex=d,s.current.overscanRowStopIndex=p,d>i)return;const b=u,v=d+a.page*a.rowsPerPage,y=c-u+1,x=p-d+1;if(l.visibleLeft=f,l.visibleWidth=m-f+1,l.visibleTop=h+a.page*a.rowsPerPage,l.visibleHeight=g-h+1,l.page=a.page,l.rowsPerPage=a.rowsPerPage,n.current===QD.Down){const e=x+25;t(b,v,y,d+e>i?i-d:e)}else if(n.current===QD.Up){const e=x+25,r=a.page*a.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(o.current===QD.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(o.current===QD.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[s,i,a.page,a.rowsPerPage,l,n,o,t,e.qHyperCube.qSize.qcx,r]))({layout:p,loadRows:H,loadColumns:W,verticalScrollDirection:A,horizontalScrollDirection:I,rowCount:D,pageInfo:a,gridState:E,viewService:h}),V=S((()=>({rowsInPage:B,columns:o,bodyStyle:s,isHoverEnabled:w,maxLineCount:z,maxImageHeight:$})),[B,o,s,w,z,$]),U=((e,t,r,n)=>{let{height:o}=e;return o-=t,r*n<o&&(o=Math.min(r*n,o)),o})(n,u,D,F);return O((()=>{var e,t;c(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[D,c,i]),O((()=>{var e,t,r;(c(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===q.current.lastScrollToRatio)&&(null===(r=x.current)||void 0===r||r.scrollToItem({rowIndex:D-1,align:"start"}))})),function(e){const{selectionsAPI:t}=DR(wR,(e=>e.baseProps)),r=DR(wR,(e=>e.selectionDispatch));C((()=>{r({type:Ff.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[r,e]),EI({selectionsAPI:t,selectionDispatch:r,setShouldRefocus:tL,keyboard:eL,tableWrapperRef:rL})}(B),ar((()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[p,a,m.name(),n.width,g]),N(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=i.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:U)-U,a=Math.round(o*e);var s,l,u;(q.current.lastScrollToRatio=e,1===q.current.lastScrollToRatio)?(null===(s=x.current)||void 0===s||s.scrollToItem({rowIndex:D-1,align:"start"}),null===(l=x.current)||void 0===l||l.scrollTo({scrollLeft:t})):null===(u=x.current)||void 0===u||u.scrollTo({scrollTop:a,scrollLeft:t})},resizeCells:()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),j(B)}})),[i,U,q,D,j,B]),ra.jsx(ID,{"data-key":"body",ref:x,innerRef:i,style:iL,columnCount:p.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:U,rowCount:D,rowHeight:k,estimatedRowHeight:F,width:n.width,itemData:V,onItemsRendered:G,onScroll:R,itemKey:oL,className:"sn-table-body",children:GD})})));const sL=({width:e,height:t,children:r})=>ra.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),lL=gf("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:r}}))),uL=({index:e,style:t,data:r})=>{const{columns:n,headerStyle:{...o},columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=r,{interactions:s,styling:{head:{activeBackground:l,background:u,hoverBackground:c}}}=DR(wR,(e=>e.baseProps)),d=DR(wR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),p=DR(wR,(e=>e.showRightBorder)),f=!!s.active&&!d,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=XI({isInteractionEnabled:f,columnsData:n}),v=n[e],y=n.length-1===e,x="right"===v.headTextAlign?"row-reverse":"row";return ra.jsxs(lL,{className:`sn-table-cell ${fr}`,title:s.passive?v.label:void 0,onClick:g,applicableStyle:o,style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:y&&!p?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:x,userSelect:"none",fontWeight:jg},interactions:s,hoverBackground:c,background:m?l:u,children:[ra.jsx(KI,{column:v,isInteractionEnabled:f,open:m,setOpen:h,allColumnsIconVisibilityStatusRef:a}),ra.jsx(qI,{column:v,isLastColumn:y,onColumnResize:i,setIsAdjustingWidth:b})]})},cL=(e,t,r,n,o)=>{O((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,r,e,n,o])},dL={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},pL=e=>{const{rect:t,forwardRef:r,columns:n,pageInfo:o,headerStyle:i,rowHeight:a,columResizeHandler:s,allColumnsIconVisibilityStatusRef:l}=e,{layout:u,theme:c}=DR(wR,(e=>e.baseProps)),d=DR(wR,(e=>e.columnWidths));return cL(r,u,o,d,c.name()),ra.jsx(OD,{ref:r,layout:"horizontal",style:dL,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:a,width:t.width,itemData:{columns:n,headerStyle:i,columResizeHandler:s,allColumnsIconVisibilityStatusRef:l},children:uL})};var fL=k(pL);const mL=x.forwardRef(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a}=DR(wR,(e=>e.baseProps));return ra.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:n,height:o},onScroll:i,children:r})})),hL=({children:e,rect:t})=>ra.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),gL=({index:e,style:t,data:r})=>{const{layout:n,interactions:o}=DR(wR,(e=>e.baseProps)),i=DR(wR,(e=>e.showRightBorder)),{totalsStyle:{hoverColors:a,...s},columns:l,totals:u}=r,c=l[e].totalInfo,{totalsTextAlign:d,isTotalNumeric:p}=l[e],f=n.qHyperCube.qSize.qcx-1===e;return ra.jsx("div",{className:`sn-table-cell ${fr}`,title:o.passive?c:void 0,style:{...t,...s,display:"flex",alignItems:u.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:f&&!i?"0px":"1px",borderTopWidth:u.atBottom?"1px":"0px",borderBottomWidth:u.atTop?"1px":"0px",padding:"4px 12px",justifyContent:d,boxSizing:"border-box",cursor:"default",fontWeight:jg},children:ra.jsx(bI,{wordBreak:!p,lines:3,virtualizedCell:!0,children:c})})},bL=e=>{const{rect:t,forwardRef:r,pageInfo:n,totals:o,rowHeight:i,columns:a}=e,{layout:s,styling:l,theme:u}=DR(wR,(e=>e.baseProps)),c=DR(wR,(e=>e.columnWidths));return cL(r,s,n,c,u.name()),ra.jsx(OD,{ref:r,layout:"horizontal",style:dL,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{totalsStyle:l.totals,columns:a,totals:o},children:gL})};var vL=k(bL);const yL=({columns:e,columnWidths:t,pageInfo:r,headerRef:n,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:s,allColumnsIconVisibilityStatus:l})=>{const{styling:u}=DR(wR,(e=>e.baseProps)),c=ZD({style:u.head,columnWidths:t,lineRef:n,rowCount:1,pageInfo:r,fontWeight:jg,columns:e,isSnapshot:a,viewService:s,allColumnsIconVisibilityStatus:l}),d=ZD({style:u.totals,columnWidths:t,lineRef:o,rowCount:1,pageInfo:r,fontWeight:jg,isSnapshot:a,viewService:s});e.forEach(((e,t)=>{c.setCellSize(e.label,0,t),d.setCellSize(e.totalInfo,0,t,Oi(e.totalInfo))}));const p=c.getRowHeight(0)+8,f=d.getRowHeight(0);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:a?s.estimatedRowHeight:(({fontSize:e=$g.fontSize})=>Math.max(24,pR(e)))(u.body),headerAndTotalsHeight:i.atTop||i.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},xL=e=>{var t;const{pageInfo:r}=e,{totalsPosition:n,columns:o,paginationNeeded:i}=DR(wR,(e=>e.tableData)),{layout:a,theme:s,styling:l,rect:u,viewService:c}=DR(wR,(e=>e.baseProps)),d=DR(wR,(e=>e.columnWidths)),p=DR(wR,(e=>e.setYScrollbarWidth)),f=M(null),m=M(null),h=M(null),g=M(null),b=M(),{xScrollbarWidth:v,yScrollbarWidth:y}=uI(f),x=S((()=>{var e;return{...l.body,background:null!==(e=s.background.color)&&void 0!==e?e:"transparent"}}),[s.background.color,l]),C=M([]),{headerRowHeight:w,totalsRowHeight:R,bodyRowHeight:A,headerAndTotalsHeight:I,resizeAllHeaderCells:D,resizeAllTotalCells:L}=yL({columns:o,columnWidths:d,pageInfo:r,totalsPosition:n,headerRef:m,totalsRef:h,isSnapshot:!!a.snapshotData,viewService:c,allColumnsIconVisibilityStatus:C.current}),P=S((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(u,i)),[u,i]),T=S((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(P,v,y)),[P,v,y]),{rowCount:k}=nL(a,r,T,d,A),[q,N]=E(k*A+I),F=d.reduce(((e,t)=>e+t),0),z=((e,t,r,n)=>_((o=>{var i,a,s;const{scrollHeight:l,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(l-u)));n.scrollTopRatio=p,n.scrollLeft=d,null===(i=r.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(s=t.current)||void 0===s||s.scrollTo(d)}),[n,r,e,t]))(m,h,g,c),j=_(((e,t=!1)=>{const r=e+I;(q<T.height&&r>T.height||t)&&N(r)}),[q,I,T.height]),$=_((()=>{var e;f.current&&(f.current.scrollTop=0),null===(e=g.current)||void 0===e||e.resizeCells(),D(),L()}),[f,D,L]);O((()=>{f.current&&(f.current.scrollLeft=0,f.current.scrollTop=0)}),[o.length]);const B=s.name();O((()=>{f.current&&(f.current.scrollTop=0)}),[r,k,B]),iI((()=>{p(y)}),[y]);const H=ra.jsx(vL,{rect:T,pageInfo:r,columns:o,forwardRef:h,totals:n,rowHeight:R});return ra.jsx(mL,{ref:f,width:P.width,height:P.height,onScroll:z,children:ra.jsx(sL,{width:F,height:q,children:ra.jsxs(hL,{rect:T,children:[null!==(t=c.viewState)&&void 0!==t&&t.skipHeader?null:ra.jsx(fL,{headerStyle:l.head,rect:T,pageInfo:r,columns:o,forwardRef:m,rowHeight:w,columResizeHandler:$,allColumnsIconVisibilityStatusRef:C}),n.atTop?H:null,ra.jsx(aL,{ref:g,innerForwardRef:b,bodyStyle:x,rect:T,pageInfo:r,columns:o,rowHeight:A,headerAndTotalsHeight:I,syncHeight:j}),n.atBottom?H:null]})})})};var SL=k(xL);const EL=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=DR(wR,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=DR(wR,(e=>e.tableData)),c=DR(wR,(e=>e.pageInfo)),d=DR(wR,(e=>e.setPage));return ra.jsxs(rI,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[ra.jsx(SL,{pageInfo:c}),ra.jsx(tI,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var CL=k(EL);var wL,RL={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。有关键盘导航的完整范围,请参阅文档。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。如需完整的鍵盤導覽,請參閱文件。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(wL||(wL={}));const AL=(e,r)=>t((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(RL).forEach((t=>{e.add(RL[t])}))}}(r),()=>((e,t,r)=>{let n=r||null;return({keys:r,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=r.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),s=e.querySelector(".sn-table-announcer-1"),l=e.querySelector(".sn-table-announcer-2");let u;n===wL.FIRST?(u=l,n=wL.SECOND):(u=s,n=wL.FIRST),u.innerHTML=u.innerHTML.endsWith(" ")?a:`${a} `,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(e,r))),[e,r.language()]),IL={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},DL=({app:e,model:t,rootElement:r,layout:s,interactions:l,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,embed:h,reactRoot:g,applyColumnWidths:b,isFontLoaded:v,viewService:y,env:x})=>{const{direction:S,footerContainer:E}=n(),C=Gi(s,y),w=Vi(s,y),R=AL(r,u),A=C?{page:y.page||IL.page,rowsPerPage:y.rowsPerPage||IL.rowsPerPage,rowsPerPageOptions:IL.rowsPerPageOptions}:IL,[I,D]=o(A),[L]=i((async()=>w?async function(e,t,r,n,o,i){var a,s;const{page:l,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),m=null!==(a=o.visibleTop)&&void 0!==a?a:l*u,h=null!==(s=o.visibleHeight)&&void 0!==s?s:Math.min(u,p-m);if(l>0&&m>=p)return n({...r,page:0}),null;if(h*d>Ni)return n({...r,rowsPerPage:Fi(d,c),page:0}),null;const g=p>10,b=zi(t,o),v=Wi(t),y=!!t.snapshotData,x=y?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:m,qLeft:0,qHeight:h,qWidth:d}]);o&&!y&&(o.qTop=m,o.qHeight=h,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=(null==x?void 0:x[0].qMatrix.map(((e,t)=>{const r=[];return v.forEach(((n,o)=>{r[o]={id:_o(),...e[o],align:Hi(e[o],n.bodyTextAlign),rowIdx:t+m,colIdx:n.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:n.selectionColIdx,isSelectable:n.isDim&&!n.isLocked,isLastRow:t===h-1,isNumeric:qi(e[o]),representation:ki(e[o],n.representation,n.qAttrExprInfoIndex,i)}})),r})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(t,s,I,D,y,x):null),[s,I,t,l,w]);a((()=>{!!(w&&g&&t&&(s.snapshotData||e)&&s&&L&&p&&d&&c&&v&&h)&&function(e,t){const{app:r,model:n,direction:o,selectionsAPI:i,layout:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,env:v,...y}=e,x=LR(o);null==t||t.render(ra.jsx(Ll,{stylisPlugins:"rtl"===o?[fm]:void 0,children:ra.jsx(vf,{theme:x,children:ra.jsx(IR,{app:r,model:n,tableData:h,selectionsAPI:i,layout:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,env:v,children:ra.jsx(tD,{...y,direction:o})})})}))}({app:e,model:t,rootElement:r,layout:s,tableData:L,direction:S,pageInfo:I,setPageInfo:D,interactions:l,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,footerContainer:E,announce:R,embed:h,applyColumnWidths:b,viewService:y,env:x},g)}),[e,t,g,L,l,S,d.name(),f.active,R,p,b,w,s,c,h,r,I,D,u,m,E,v,x])};const LL=({model:e,layout:t,shouldRender:r,page:n})=>{const[o]=i((async()=>{if(r&&e)return(async(e,t,r)=>{let{qDataPages:n}=t.qHyperCube;if(0!==r||void 0===n||0===n.length){const o=r*Math.min(Bg,t.qHyperCube.qSize.qcy);n=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:n,derivedFrom:{layout:t,page:r}}})(e,t,n)}),[e,t,n]),a=(null==o?void 0:o.derivedFrom.layout)!==t||(null==o?void 0:o.derivedFrom.page)!==n;return{initialDataPages:null==o?void 0:o.initialDataPages,isLoading:a}},PL=({app:e,layout:r,model:n,rect:i,theme:s,keyboard:l,translator:u,interactions:c,selectionsAPI:d,changeSortOrder:p,rootElement:f,embed:m,reactRoot:h,applyColumnWidths:g,isFontLoaded:b,viewService:v,env:y})=>{const S=!Vi(r,v),E=t((()=>function(e,t,r){const n=zi(e,r),o=Wi(e),i=e.qHyperCube.qSize.qcy,a=Math.min(Bg,i),s=i>Bg&&!!t.active;return{totalsPosition:n,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:s}}(r,c,v)),[r,c,v]),{pageInfo:C,setPage:w}=((e,r)=>{const[n,i]=o(0),a=Math.min(Bg,e.qHyperCube.qSize.qcy),s=t((()=>({page:n,rowsPerPage:a,rowsPerPageOptions:[]})),[a,n]);if(r){const t=Math.floor(e.qHyperCube.qSize.qcy/Bg);t<n&&i(t)}return{pageInfo:s,setPage:i}})(r,S),{initialDataPages:R,isLoading:A}=LL({model:n,layout:r,page:C.page,shouldRender:S});a((()=>{var e;S&&l.active&&(null===(e=l.blur)||void 0===e||e.call(l,!1))}),[l.active]),a((()=>{S&&n&&p&&R&&!A&&b&&function(e,t){const{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:s,theme:l,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:S}=e,E=LR("ltr");t.render(ra.jsx(x.StrictMode,{children:ra.jsx(vf,{theme:E,children:ra.jsx(IR,{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:s,theme:l,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:S,children:ra.jsx(CL,{})})})}))}({app:e,layout:r,model:n,rect:i,theme:s,keyboard:l,translator:u,interactions:c,selectionsAPI:d,rootElement:f,embed:m,changeSortOrder:p,tableData:E,applyColumnWidths:g,setPage:w,pageInfo:C,initialDataPages:R,viewService:v,env:y},h)}),[e,r,n,i,s.name(),l.active,u,c,d,p,S,f,m,h,E,g,w,C,A,R,b,y])},ML={version:JSON.stringify("3.5.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function _L(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=(null==r?void 0:r.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=(null==a?void 0:a.getBoundingClientRect())||{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const TL=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},kL=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const OL=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||IL.rowsPerPage,s=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},qL=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=zi(e,t);if(Vi(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=_L(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:OL(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=TL(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(kL(m,h,g)?d:d+1)+c;let v=p+c;const y=TL(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(kL(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:OL(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},NL=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),FL=e=>e.getStyle("object","straightTableV2","backgroundColor");function zL(o){return{qae:{properties:{initial:ML},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:Un,exportProperties:Gn,exploration:Yn},ext:Co(o),component(){var y;const x=u(),S=(e=>{const r=t((()=>or(e)),[e]);return a((()=>()=>r.unmount()),[r]),r})(x),E=c(),C=d(),w=p(),R=f(),A=m(),I=h(),D=g(),{freeResize:L}=n(),P=b(),M=null!=E&&null!==(y=E.snapshotData)&&void 0!==y&&y.content&&!L?{...P,...E.snapshotData.content.size}:P,_=(e=>{const{viewState:r}=n();return t((()=>((e,t)=>{var r,n,o,i,a,s,l,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(s=t.content)||void 0===s?void 0:s.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(l=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==l?l:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(r,e.snapshotData)),[r,e.snapshotData,e.usePagination])})(E),T=v(),k=((r,n,o)=>{const i=e();return t((()=>({...i,background:je(i,r,n,o)})),[i.name(),r,n,o])})(x,NL,FL),O=((e,r)=>t((()=>((e,t)=>{if(t)return async(r,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,d=[],p=n&&n!==s||!n&&l;l||(c.splice(c.indexOf(i),1),c.unshift(i),d.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${c.join(",")}]`})),p&&d.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(d,!0)}})(e.qDimensionInfo.length,r)),[e.qDimensionInfo.length,r]))(E.qHyperCube,w),q=wo(E.qHyperCube,w),N=((e,t)=>{const{fontSize:r,fontFamily:n}=yR(t,e,!1),{fontSize:o,fontFamily:a}=xR(t,e),[s,l]=i((async()=>(await document.fonts.load(`600 ${r} ${n}`),await document.fonts.load(`${o} ${a}`),!0)),[r,n,o,a]);return l?(console.warn("Failed to load font:",l),!0):!!s})(k,E);null==r||r(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${fr}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{Sr(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{s((async i=>{if(!i.snapshotData||!r||i.snapshotData.content)return i;if(r.getHyperCubeData){i.qHyperCube||(i.qHyperCube={});const{rowPartialHeight:a,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=qL(e,t,n);i.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:e.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),i.snapshotData.content={rowPartialHeight:a,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return i})),l((()=>({getViewState:()=>qL(e,t,n)})),[e,t,n])})({layout:E,viewService:_,model:w,rootElement:x,contentRect:P}),PL({app:C,layout:E,model:w,rect:M,theme:k,keyboard:D,translator:A,interactions:R,selectionsAPI:I,changeSortOrder:O,rootElement:x,embed:T,reactRoot:S,applyColumnWidths:q,isFontLoaded:N,viewService:_,env:o}),DL({app:C,model:w,rootElement:x,layout:E,interactions:R,translator:A,selectionsAPI:I,theme:k,changeSortOrder:O,keyboard:D,rect:M,embed:T,reactRoot:S,applyColumnWidths:q,isFontLoaded:N,viewService:_,env:o})}}}export{zL as default};
|
|
201
|
+
`),tx.rippleVisible,lx,550,(({theme:e})=>e.transitions.easing.easeInOut),tx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),tx.child,tx.childLeaving,ux,550,(({theme:e})=>e.transitions.easing.easeInOut),tx.childPulsate,cx,(({theme:e})=>e.transitions.easing.easeInOut));var fx=y.forwardRef((function(e,t){const r=my({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Bg(r,rx),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=y.useRef(!1),p=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:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,ra.jsx(px,{classes:{ripple:Sy(o.ripple,tx.ripple),rippleVisible:Sy(o.rippleVisible,tx.rippleVisible),ripplePulsate:Sy(o.ripplePulsate,tx.ripplePulsate),child:Sy(o.child,tx.child),childLeaving:Sy(o.childLeaving,tx.childLeaving),childPulsate:Sy(o.childPulsate,tx.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=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((()=>{v(e,t)})));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),ra.jsx(dx,$g({className:Sy(tx.root,o.root,i),ref:m},a,{children:ra.jsx(Sm,{component:null,exit:!0,children:s})}))}));function mx(e){return Wv("MuiButtonBase",e)}var hx=Gv("MuiButtonBase",["root","disabled","focusVisible"]);const gx=["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"],bx=vy("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"},[`&.${hx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vx=y.forwardRef((function(e,t){const r=my({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:D=0,TouchRippleProps:L,touchRippleRef:P,type:M}=r,_=Bg(r,gx),T=y.useRef(null),O=y.useRef(null),k=Lv(O,P),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=zv(),[j,$]=y.useState(!1);l&&j&&$(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[B,H]=y.useState(!1);y.useEffect((()=>{H(!0)}),[]);const W=B&&!u&&!l;function G(e,t,r=c){return Dv((n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0}))}y.useEffect((()=>{j&&d&&!u&&B&&O.current.pulsate()}),[u,d,j,B]);const V=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=G("start",I),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Dv((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=Dv((e=>{d&&!ne.current&&j&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=Dv((e=>{d&&" "===e.key&&O.current&&j&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(_.href||_.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===M?"button":M,se.disabled=l):(_.href||_.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Lv(t,z,T),ue=$g({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Md({root:["root",t&&"disabled",r&&"focusVisible"]},mx,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ra.jsxs(bx,$g({as:ae,className:Sy(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:D,type:M},se,_,{children:[i,W?ra.jsx(fx,$g({ref:k,center:o},L)):null]}))}));var yx=vx;function xx(e){return Wv("MuiTypography",e)}Gv("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Sx=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ex=vy("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${xv(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>$g({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}))),Cx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Rx=y.forwardRef((function(e,t){const r=my({props:e,name:"MuiTypography"}),n=(e=>wx[e]||e)(r.color),o=ev($g({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Cx}=o,f=Bg(o,Sx),m=$g({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=s||(c?"p":p[d]||Cx[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Md({root:["root",i,"inherit"!==e.align&&`align${xv(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},xx,a)})(m);return ra.jsx(Ex,$g({as:h,ref:t,ownerState:m,className:Sy(g.root,a)},f))}));var Ax=Rx;const Ix=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Dx(e){const t=[],r=[];return Array.from(e.querySelectorAll(Ix)).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 Lx(){return!0}function Px(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Dx,isEnabled:a=Lx,open:s}=e,l=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=bd(t.ref,m),g=y.useRef(null);y.useEffect((()=>{s&&m.current&&(f.current=!r)}),[r,s]),y.useEffect((()=>{if(!s||!m.current)return;const e=fd(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),y.useEffect((()=>{if(!s||!m.current)return;const e=fd(m.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ra.jsxs(y.Fragment,{children:[ra.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),ra.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Mx=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=bd(y.isValidElement(r)?r.ref:null,t);if(sd((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),sd((()=>{if(i&&!o)return hd(t,i),()=>{hd(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return ra.jsx(y.Fragment,{children:r})}return ra.jsx(y.Fragment,{children:i?F.createPortal(r,i):i})}));function _x(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Tx(e){return parseInt(md(e).getComputedStyle(e).paddingRight,10)||0}function Ox(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&&_x(e,o)}))}function kx(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function qx(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=fd(e);return t.body===e?md(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(fd(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Tx(n)+e}px`;const t=fd(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Tx(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=fd(n).body;else{const t=n.parentElement,r=md(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 Nx=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&&_x(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);Ox(t,e.mount,e.modalRef,n,!0);const o=kx(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=kx(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=qx(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=kx(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&&_x(e.modalRef,t),Ox(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&&_x(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Fx(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Nx,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=bd(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=gd((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||fd(f.current).body;o.add(S(),e),m.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=gd((e=>{f.current=e,e&&(c&&w()?E():m.current&&_x(m.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const I=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=Jy(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=aa({},r,t);return aa({role:"presentation"},n,{onKeyDown:I(n),ref:h})},getBackdropProps:(e={})=>aa({"aria-hidden":!0},e,{onClick:D(e),open:c}),getTransitionProps:()=>({onEnter:pd((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:pd((()=>{b(!0),s&&s(),i&&A()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const zx=["onChange","maxRows","minRows","style","value"];function jx(e){return parseInt(e,10)||0}const $x={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Bx(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Hx=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=sa(e,zx),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=bd(t,u),d=y.useRef(null),p=y.useRef(0),[f,m]=y.useState({outerHeightStyle:0}),h=y.useCallback((()=>{const t=u.current,r=md(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,s=jx(r.paddingBottom)+jx(r.paddingTop),l=jx(r.borderBottomWidth)+jx(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?s+l: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=y.useCallback((()=>{const e=h();Bx(e)||m((t=>g(t,e)))}),[h]);sd((()=>{const e=()=>{p.current=0,(()=>{const e=h();Bx(e)||F.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=u.current,n=md(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]),sd((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return ra.jsxs(y.Fragment,{children:[ra.jsx("textarea",aa({value:a,onChange:e=>{p.current=0,l||b(),r&&r(e)},ref:c,rows:o,style:aa({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},s)),ra.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:aa({},$x,i,{paddingTop:0,paddingBottom:0})})]})}));function Wx({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 Gx=y.createContext(void 0);function Vx(){return y.useContext(Gx)}function Ux(e){return ra.jsx(Jb,$g({},e,{defaultTheme:py,themeId:jg}))}function Yx(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Kx(e,t=!1){return e&&(Yx(e.value)&&""!==e.value||t&&Yx(e.defaultValue)&&""!==e.defaultValue)}function Xx(e){return Wv("MuiInputBase",e)}var Jx=Gv("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Zx=["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"],Qx=(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${xv(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},eS=(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]},tS=vy("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Qx})((({theme:e,ownerState:t})=>$g({},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",[`&.${Jx.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$g({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),rS=vy("input",{name:"MuiInputBase",slot:"Input",overridesResolver:eS})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=$g({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 $g({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] + .${Jx.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},[`&.${Jx.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"})})),nS=ra.jsx(Ux,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),oS=y.forwardRef((function(e,t){var r;const n=my({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:I,onKeyDown:D,onKeyUp:L,placeholder:P,readOnly:M,renderSuffix:_,rows:T,slotProps:O={},slots:k={},startAdornment:q,type:N="text",value:F}=n,z=Bg(n,Zx),j=null!=b.value?b.value:F,{current:$}=y.useRef(null!=j),B=y.useRef(),H=y.useCallback((e=>{}),[]),W=Lv(B,v,b.ref,H),[G,V]=y.useState(!1),U=Vx(),Y=Wx({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:G,y.useEffect((()=>{!U&&d&&G&&(V(!1),w&&w())}),[U,d,G,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=y.useCallback((e=>{Kx(e)?K&&K():X&&X()}),[K,X]);Cv((()=>{$&&J({value:j})}),[j,J,$]);y.useEffect((()=>{J(B.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=$g(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:x,minRows:S},Q),Z=Hx);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=$g({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Md({root:["root",`color${xv(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${xv(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"]},Xx,t)})(ee),re=k.root||l.Root||tS,ne=O.root||u.root||{},oe=k.input||l.Input||rS;return Q=$g({},Q,null!=(r=O.input)?r:u.input),ra.jsxs(y.Fragment,{children:[!p&&nS,ra.jsxs(re,$g({},ne,!Xy(re)&&{ownerState:$g({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},z,{className:Sy(te.root,ne.className,s,M&&"MuiInputBase-readOnly"),children:[q,ra.jsx(Gx.Provider,{value:null,children:ra.jsx(oe,$g({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:C,placeholder:P,readOnly:M,required:Y.required,rows:T,value:j,onKeyDown:D,onKeyUp:L,type:N},Q,!Xy(oe)&&{as:Z,ownerState:$g({},ee,Q.ownerState)},{ref:W,className:Sy(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(zg(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):V(!0))}}))}),f,_?_($g({},Y,{startAdornment:q})):null]}))]})}));var iS=oS;function aS(e){return Wv("MuiInput",e)}var sS=$g({},Jx,Gv("MuiInput",["root","underline","input"]));function lS(e){return Wv("MuiOutlinedInput",e)}var uS=$g({},Jx,Gv("MuiOutlinedInput",["root","notchedOutline","input"]));function cS(e){return Wv("MuiFilledInput",e)}var dS=$g({},Jx,Gv("MuiFilledInput",["root","underline","input"])),pS=function(e,t){function r(r,n){return ra.jsx(Ay,$g({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Ay.muiName,y.memo(y.forwardRef(r))}(ra.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const fS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],mS={entering:{opacity:1},entered:{opacity:1}},hS=y.forwardRef((function(e,t){const r=fy(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:b=hm}=e,v=Bg(e,fS),x=y.useRef(null),S=Lv(x,a.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{Wy(e);const n=Gy({style:h,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),A=E(m),I=E((e=>{const t=Gy({style:h,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),D=E(f);return ra.jsx(b,$g({appear:i,in:l,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:D,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,$g({style:$g({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},mS[e],h,a.props.style),ref:S},t))}))}));var gS=hS;function bS(e){return Wv("MuiBackdrop",e)}Gv("MuiBackdrop",["root","invisible"]);const vS=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],yS=vy("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>$g({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"}))),xS=y.forwardRef((function(e,t){var r,n,o;const i=my({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=gS,transitionDuration:g}=i,b=Bg(i,vS),v=$g({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Md({root:["root",r&&"invisible"]},bS,t)})(v),x=null!=(r=f.root)?r:c.root;return ra.jsx(h,$g({in:p,timeout:g},b,{children:ra.jsx(yS,$g({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:l,className:Sy(y.root,s,null==x?void 0:x.className),ownerState:$g({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var SS=xS;var ES=Gv("MuiBox",["root"]);const CS=dy(),wS=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Gg("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Wb);return y.forwardRef((function(e,a){const s=Xb(r),l=ev(e),{className:u,component:c="div"}=l,d=sa(l,tv);return ra.jsx(i,aa({as:c,ref:a,className:Pc(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:jg,defaultTheme:CS,defaultClassName:ES.root,generateClassName:Bv.generate});var RS=wS;function AS(e){return Wv("MuiButton",e)}var IS=Gv("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 DS=y.createContext({});var LS=y.createContext(void 0);const PS=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],MS=e=>$g({},"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}}),_S=vy(yx,{shouldForwardProp:e=>hy(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xv(r.color)}`],t[`size${xv(r.size)}`],t[`${r.variant}Size${xv(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 $g({},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":$g({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:gv(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})`:gv(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})`:gv(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":$g({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${IS.focusVisible}`]:$g({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${IS.disabled}`]:$g({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 ${gv(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"},[`&.${IS.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${IS.disabled}`]:{boxShadow:"none"}})),TS=vy("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${xv(r.size)}`]]}})((({ownerState:e})=>$g({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},MS(e)))),OS=vy("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${xv(r.size)}`]]}})((({ownerState:e})=>$g({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},MS(e)))),kS=y.forwardRef((function(e,t){const r=y.useContext(DS),n=y.useContext(LS),o=my({props:jv(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,x=Bg(o,PS),S=$g({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return $g({},a,Md({root:["root",i,`${i}${xv(t)}`,`size${xv(o)}`,`${i}Size${xv(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${xv(o)}`],endIcon:["endIcon",`iconSize${xv(o)}`]},AS,a))})(S),C=g&&ra.jsx(TS,{className:E.startIcon,ownerState:S,children:g}),w=p&&ra.jsx(OS,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return ra.jsxs(_S,$g({ownerState:S,className:Sy(r.className,E.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:Sy(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var qS=kS;function NS(e){return Wv("MuiModal",e)}Gv("MuiModal",["root","hidden","backdrop"]);const FS=["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"],zS=vy("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})=>$g({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),jS=vy(SS,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),$S=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=my({name:"MuiModal",props:e}),{BackdropComponent:u=jS,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:I,open:D,slotProps:L,slots:P}=l,M=Bg(l,FS),_=$g({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:T,getBackdropProps:O,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=Fx($g({},_,{rootRef:t})),j=$g({},_,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Md({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},NS,n)})(j),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();B.onEnter=e,B.onExited=t}const H=null!=(r=null!=(n=null==P?void 0:P.root)?n:g.Root)?r:zS,W=null!=(o=null!=(i=null==P?void 0:P.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==L?void 0:L.root)?a:b.root,V=null!=(s=null==L?void 0:L.backdrop)?s:b.backdrop,U=ex({elementType:H,externalSlotProps:G,externalForwardedProps:M,getSlotProps:T,additionalProps:{ref:t,as:h},ownerState:j,className:Sy(d,null==G?void 0:G.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),Y=ex({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>O($g({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Sy(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return A||D||z&&!F?ra.jsx(Mx,{ref:q,container:m,disablePortal:E,children:ra.jsxs(H,$g({},U,{children:[!R&&u?ra.jsx(W,$g({},Y)):null,ra.jsx(Px,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:D,children:y.cloneElement(f,B)})]}))}):null}));var BS=$S;function HS(e){return Wv("MuiDivider",e)}var WS=Gv("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const GS=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],VS=vy("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})=>$g({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)`:gv(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})=>$g({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>$g({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>$g({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>$g({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),US=vy("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>$g({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)`}))),YS=y.forwardRef((function(e,t){const r=my({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Bg(r,GS),m=$g({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Md({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},HS,n)})(m);return ra.jsx(VS,$g({as:a,className:Sy(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?ra.jsx(US,{className:h.wrapper,ownerState:m,children:o}):null}))}));YS.muiSkipListHighlight=!0;var KS=YS;const XS=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],JS=vy(tS,{shouldForwardProp:e=>hy(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Qx(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $g({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}},[`&.${dS.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${dS.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${dS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${dS.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(.${dS.disabled}, .${dS.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${dS.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$g({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}))})),ZS=vy(rS,{name:"MuiFilledInput",slot:"Input",overridesResolver:eS})((({theme:e,ownerState:t})=>$g({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}))),QS=y.forwardRef((function(e,t){var r,n,o,i;const a=my({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Bg(a,XS),g=$g({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return $g({},t,Md({root:["root",!r&&"underline"],input:["input"]},cS,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?yv(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:JS,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:ZS;return ra.jsx(iS,$g({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));QS.muiName="Input";var eE=QS;const tE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function rE(e){return`scale(${e}, ${e**2})`}const nE={entering:{opacity:1,transform:rE(1)},entered:{opacity:1,transform:"none"}},oE="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),iE=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=hm}=e,g=Bg(e,tE),b=y.useRef(),v=y.useRef(),x=fy(),S=y.useRef(null),E=Lv(S,o.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{Wy(e);const{duration:r,delay:n,easing:o}=Gy({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:oE?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),A=C(l),I=C(p),D=C((e=>{const{duration:t,delay:r,easing:n}=Gy({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:oE?o:.666*o,delay:oE?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=rE(.75),c&&c(e)})),L=C(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),ra.jsx(h,$g({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:D,onExited:L,onExiting:I,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),r&&r(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,$g({style:$g({opacity:0,transform:rE(.75),visibility:"exited"!==e||a?void 0:"hidden"},nE[e],f,o.props.style),ref:E},t))}))}));iE.muiSupportAuto=!0;var aE=iE;const sE=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],lE=vy(tS,{shouldForwardProp:e=>hy(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Qx(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})`),$g({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"},[`&.${sS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${sS.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(.${sS.disabled}, .${sS.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${sS.disabled}:before`]:{borderBottomStyle:"dotted"}})})),uE=vy(rS,{name:"MuiInput",slot:"Input",overridesResolver:eS})({}),cE=y.forwardRef((function(e,t){var r,n,o,i;const a=my({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Bg(a,sE),b=(e=>{const{classes:t,disableUnderline:r}=e;return $g({},t,Md({root:["root",!r&&"underline"],input:["input"]},aS,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?yv(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:l.Root)?r:lE,S=null!=(o=null!=(i=m.input)?i:l.Input)?o:uE;return ra.jsx(iS,$g({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));cE.muiName="Input";var dE=cE;function pE(e){return Wv("MuiLink",e)}var fE=Gv("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const mE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var hE=({theme:e,ownerState:t})=>{const r=(e=>mE[e]||e)(t.color),n=Qg(e,`palette.${r}`,!1)||t.color,o=Qg(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:gv(n,.4)};const gE=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],bE=vy(Ax,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${xv(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>$g({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&$g({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:hE({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${fE.focusVisible}`]:{outline:"auto"}}))),vE=y.forwardRef((function(e,t){const r=my({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=Bg(r,gE),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=zv(),[b,v]=y.useState(!1),x=Lv(t,g),S=$g({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Md({root:["root",`underline${xv(o)}`,"button"===r&&"button",n&&"focusVisible"]},pE,t)})(S);return ra.jsx(bE,$g({color:o,className:Sy(E.root,n),classes:l,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),s&&s(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(mE).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var yE=vE;var xE=y.createContext({});function SE(e){return Wv("MuiList",e)}Gv("MuiList",["root","padding","dense","subheader"]);const EE=["children","className","component","dense","disablePadding","subheader"],CE=vy("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})=>$g({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var wE=y.forwardRef((function(e,t){const r=my({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Bg(r,EE),c=y.useMemo((()=>({dense:a})),[a]),d=$g({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Md({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},SE,t)})(d);return ra.jsx(xE.Provider,{value:c,children:ra.jsxs(CE,$g({as:i,className:Sy(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function RE(e){return Wv("MuiListItemIcon",e)}var AE=Gv("MuiListItemIcon",["root","alignItemsFlexStart"]);const IE=["className"],DE=vy("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})=>$g({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var LE=y.forwardRef((function(e,t){const r=my({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Bg(r,IE),i=$g({},r,{alignItems:y.useContext(xE).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Md({root:["root","flex-start"===t&&"alignItemsFlexStart"]},RE,r)})(i);return ra.jsx(DE,$g({className:Sy(a.root,n),ownerState:i,ref:t},o))}));var PE=Gv("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const ME=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function _E(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function TE(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function OE(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 kE(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&OE(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}var qE=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Bg(e,ME),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Cv((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Sv(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=Lv(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 ra.jsx(wE,$g({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Sv(t).activeElement;if("ArrowDown"===r)e.preventDefault(),kE(t,n,l,s,_E);else if("ArrowUp"===r)e.preventDefault(),kE(t,n,l,s,TE);else if("Home"===r)e.preventDefault(),kE(t,null,l,s,_E);else if("End"===r)e.preventDefault(),kE(t,null,l,s,TE);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&OE(n,o);o.previousKeyMatched&&(l||kE(t,n,!1,s,_E,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function NE(e){return Wv("MuiPopover",e)}Gv("MuiPopover",["root","paper"]);const FE=["onEntering"],zE=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],jE=["slotProps"];function $E(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function BE(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function HE(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function WE(e){return"function"==typeof e?e():e}const GE=vy(BS,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),VE=vy(Ky,{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 UE=y.forwardRef((function(e,t){var r,n,o;const i=my({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=aE,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=Bg(i.TransitionProps,FE),I=Bg(i,zE),D=null!=(r=null==x?void 0:x.paper)?r:b,L=y.useRef(),P=Lv(L,D.ref),M=$g({},i,{anchorOrigin:l,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:D,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),_=(e=>{const{classes:t}=e;return Md({root:["root"],paper:["paper"]},NE,t)})(M),T=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=WE(s),t=(e&&1===e.nodeType?e:Sv(L.current).body).getBoundingClientRect();return{top:t.top+$E(t,l.vertical),left:t.left+BE(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),O=y.useCallback((e=>({vertical:$E(e,S.vertical),horizontal:BE(e,S.horizontal)})),[S.horizontal,S.vertical]),k=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=O(t);if("none"===c)return{top:null,left:null,transformOrigin:HE(r)};const n=T();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Ev(WE(s)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:HE(r)}}),[s,c,T,O,h]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=L.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Ev(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(s?Sv(WE(s)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:GE,B=null!=(o=null==v?void 0:v.paper)?o:VE,H=ex({elementType:B,externalSlotProps:$g({},D,{style:q?D.style:$g({},D.style,{opacity:0})}),additionalProps:{elevation:m,ref:P},ownerState:M,className:Sy(_.paper,null==D?void 0:D.className)}),W=ex({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:M,className:Sy(_.root,p)}),{slotProps:G}=W,V=Bg(W,jE);return ra.jsx($,$g({},V,!Xy($)&&{slotProps:G,disableScrollLock:R},{children:ra.jsx(E,$g({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},A,{children:ra.jsx(B,$g({},H,{children:d}))}))}))}));function YE(e){return Wv("MuiMenu",e)}Gv("MuiMenu",["root","paper","list"]);const KE=["onEntering"],XE=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],JE={vertical:"top",horizontal:"right"},ZE={vertical:"top",horizontal:"left"},QE=vy(UE,{shouldForwardProp:e=>hy(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eC=vy(VE,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),tC=vy(qE,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var rC=y.forwardRef((function(e,t){var r,n;const o=my({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=Bg(o.TransitionProps,KE),S=Bg(o,XE),E=fy(),C="rtl"===E.direction,w=$g({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return Md({root:["root"],paper:["paper"],list:["list"]},YE,t)})(w),A=i&&!l&&d,I=y.useRef(null);let D=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===D)&&(D=t))}));const L=null!=(r=b.paper)?r:eC,P=null!=(n=v.paper)?n:p,M=ex({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,s]}),_=ex({elementType:L,externalSlotProps:P,ownerState:w,className:R.paper});return ra.jsx(QE,$g({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?JE:ZE,slots:{paper:L,root:b.root},slotProps:{root:M,paper:_},open:d,ref:t,transitionDuration:m,TransitionProps:$g({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:w},S,{classes:f,children:ra.jsx(tC,$g({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:I,autoFocus:i&&(-1===D||l),autoFocusItem:A,variant:g},u,{className:Sy(R.list,u.className),children:a}))}))}));function nC(e){return Wv("MuiMenuItem",e)}var oC=Gv("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const iC=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],aC=vy(yx,{shouldForwardProp:e=>hy(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})=>$g({},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"}},[`&.${oC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${oC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${oC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gv(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})`:gv(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${oC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${oC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${WS.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${WS.inset}`]:{marginLeft:52},[`& .${PE.root}`]:{marginTop:0,marginBottom:0},[`& .${PE.inset}`]:{paddingLeft:36},[`& .${AE.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$g({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${AE.root} svg`]:{fontSize:"1.25rem"}}))));var sC=y.forwardRef((function(e,t){const r=my({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=Bg(r,iC),f=y.useContext(xE),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),h=y.useRef(null);Cv((()=>{n&&h.current&&h.current.focus()}),[n]);const g=$g({},r,{dense:m.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return $g({},a,Md({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},nC,a))})(r),v=Lv(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),ra.jsx(xE.Provider,{value:m,children:ra.jsx(aC,$g({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Sy(b.focusVisible,l),className:Sy(b.root,d)},p,{ownerState:g,classes:b}))})}));function lC(e){return Wv("MuiNativeSelect",e)}var uC=Gv("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const cC=["className","disabled","error","IconComponent","inputRef","variant"],dC=({ownerState:e,theme:t})=>$g({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$g({},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"},[`&.${uC.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}}),pC=vy("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:hy,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${uC.multiple}`]:t.multiple}]}})(dC),fC=({ownerState:e,theme:t})=>$g({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${uC.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),mC=vy("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xv(r.variant)}`],r.open&&t.iconOpen]}})(fC),hC=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Bg(e,cC),u=$g({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Md({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${xv(r)}`,i&&"iconOpen",n&&"disabled"]},lC,t)})(u);return ra.jsxs(y.Fragment,{children:[ra.jsx(pC,$g({ownerState:u,className:Sy(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:ra.jsx(mC,{as:i,ownerState:u,className:c.icon})]})}));var gC,bC=hC;const vC=["children","classes","className","label","notched"],yC=vy("fieldset",{shouldForwardProp:hy})({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%"}),xC=vy("legend",{shouldForwardProp:hy})((({ownerState:e,theme:t})=>$g({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&&$g({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 SC=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],EC=vy(tS,{shouldForwardProp:e=>hy(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Qx})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $g({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${uS.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${uS.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${uS.focused} .${uS.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${uS.error} .${uS.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${uS.disabled} .${uS.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$g({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),CC=vy((function(e){const{className:t,label:r,notched:n}=e,o=Bg(e,vC),i=null!=r&&""!==r,a=$g({},e,{notched:n,withLabel:i});return ra.jsx(yC,$g({"aria-hidden":!0,className:t,ownerState:a},o,{children:ra.jsx(xC,{ownerState:a,children:i?ra.jsx("span",{children:r}):gC||(gC=ra.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}})),wC=vy(rS,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:eS})((({theme:e,ownerState:t})=>$g({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}))),RC=y.forwardRef((function(e,t){var r,n,o,i,a;const s=my({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=s,g=Bg(s,SC),b=(e=>{const{classes:t}=e;return $g({},t,Md({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},lS,t))})(s),v=Vx(),x=Wx({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=$g({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),E=null!=(r=null!=(n=m.root)?n:l.Root)?r:EC,C=null!=(o=null!=(i=m.input)?i:l.Input)?o:wC;return ra.jsx(iS,$g({slots:{root:E,input:C},renderSuffix:e=>ra.jsx(CC,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=ra.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:$g({},b,{notchedOutline:null})}))}));RC.muiName="Input";var AC=RC;function IC(e){return Wv("MuiSelect",e)}var DC,LC=Gv("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const PC=["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"],MC=vy("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${LC.select}`]:t.select},{[`&.${LC.select}`]:t[r.variant]},{[`&.${LC.error}`]:t.error},{[`&.${LC.multiple}`]:t.multiple}]}})(dC,{[`&.${LC.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),_C=vy("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xv(r.variant)}`],r.open&&t.iconOpen]}})(fC),TC=vy("input",{shouldForwardProp:e=>gy(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 OC(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function kC(e){return null==e||"string"==typeof e&&!e.trim()}const qC=y.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:A,readOnly:I,renderValue:D,SelectDisplayProps:L={},tabIndex:P,value:M,variant:_="standard"}=e,T=Bg(e,PC),[O,k]=Iv({controlled:M,default:c,name:"Select"}),[q,N]=Iv({controlled:A,default:u,name:"Select"}),F=y.useRef(null),z=y.useRef(null),[j,$]=y.useState(null),{current:B}=y.useRef(null!=A),[H,W]=y.useState(),G=Lv(t,h),V=y.useCallback((e=>{z.current=e,e&&$(e)}),[]),U=null==j?void 0:j.parentNode;y.useImperativeHandle(G,(()=>({focus:()=>{z.current.focus()},node:F.current,value:O})),[O]),y.useEffect((()=>{u&&q&&j&&!B&&(W(a?null:U.clientWidth),z.current.focus())}),[j,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Sv(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),B||(W(a?null:U.clientWidth),N(e))},K=y.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(O)?O.slice():[];const t=O.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),O!==r&&(k(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),E(o,e)}v||Y(!1,t)}},J=null!==j&&q;let Z,Q;delete T["aria-invalid"];const ee=[];let te=!1;(Kx({value:O})||p)&&(D?Z=D(O):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(O))throw new Error(zg(2));t=O.some((t=>OC(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=OC(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&&(Z=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=H;!a&&B&&j&&(oe=U.clientWidth),ne=void 0!==P?P:d?null:0;const ie=L.id||(x?`mui-component-select-${x}`:void 0),ae=$g({},e,{variant:_,value:O,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Md({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${xv(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},IC,t)})(ae),le=$g({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Av();return ra.jsxs(y.Fragment,{children:[ra.jsx(MC,$g({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:x}}),S(e))},onFocus:w},L,{ownerState:ae,className:Sy(L.className,se.select,l),id:ie,children:kC(Z)?DC||(DC=ra.jsx("span",{className:"notranslate",children:""})):Z})),ra.jsx(TC,$g({"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&&(k(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},T)),ra.jsx(_C,{as:m,className:se.icon,ownerState:ae}),ra.jsx(rC,$g({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:$g({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:$g({},b.slotProps,{paper:$g({},le,{style:$g({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}));var NC=qC;const FC=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],zC=["root"],jC={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>hy(e)&&"variant"!==e,slot:"Root"},$C=vy(dE,jC)(""),BC=vy(AC,jC)(""),HC=vy(eE,jC)(""),WC=y.forwardRef((function(e,t){const r=my({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=pS,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=r,R=Bg(r,FC),A=b?bC:NC,I=Wx({props:r,muiFormControl:Vx(),states:["variant","error"]}),D=I.variant||w,L=$g({},r,{variant:D,classes:i}),P=(e=>{const{classes:t}=e;return t})(L),M=Bg(P,zC),_=d||{standard:ra.jsx($C,{ownerState:L}),outlined:ra.jsx(BC,{label:f,ownerState:L}),filled:ra.jsx(HC,{ownerState:L})}[D],T=Lv(t,_.ref);return ra.jsx(y.Fragment,{children:y.cloneElement(_,$g({inputComponent:A,inputProps:$g({children:o,error:I.error,IconComponent:u,variant:D,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:h,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:$g({id:c},C)},p,{classes:p?yv(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===D?{notched:!0}:{},{ref:T,className:Sy(_.props.className,a,P.root)},!d&&{variant:D},R))})}));WC.muiName="Select";var GC=WC,VC=(e={})=>x.createElement(Rg,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:lg.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const UC={MuiAccordion:{styleOverrides:{root:{backgroundColor:lg.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:lg.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(Eg,{"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 ${lg.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:lg.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${lg.MISC_FOCUS_BORDER}`,borderRadius:fg,backgroundColor:lg.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 ${lg.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:lg.WHITE,color:lg.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:fg},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${lg.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:lg.GREYSCALE_0_15,backgroundColor:lg.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:lg.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${lg.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:lg.GREEN_PALE},"&:active":{backgroundColor:lg.GREEN_DARK},"&.Mui-focusVisible":{borderColor:lg.GREEN_PALE,boxShadow:`0 0 0 3px ${gv(lg.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:lg.BLUE_PALE},"&:active":{backgroundColor:lg.BLUE_DARK},"&.Mui-focusVisible":{borderColor:lg.BLUE_PALE,boxShadow:`0 0 0 3px ${gv(lg.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:fg,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:lg.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${lg.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:lg.GREYSCALE_0_15,backgroundColor:lg.GREYSCALE_100_60,"&:active":{backgroundColor:lg.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:lg.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${lg.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:lg.PURPLE,"&.Mui-focusVisible":{borderColor:lg.PURPLE,boxShadow:`0 0 0 3px ${gv(lg.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:lg.GREEN,"&.Mui-focusVisible":{borderColor:lg.GREEN,boxShadow:`0 0 0 3px ${gv(lg.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:lg.BLUE,"&.Mui-focusVisible":{borderColor:lg.BLUE,boxShadow:`0 0 0 3px ${gv(lg.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:lg.ORANGE,"&.Mui-focusVisible":{borderColor:lg.ORANGE,boxShadow:`0 0 0 3px ${gv(lg.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:lg.RED,"&.Mui-focusVisible":{borderColor:lg.RED,boxShadow:`0 0 0 3px ${gv(lg.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:lg.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:lg.PURPLE_PALE},"&:active":{backgroundColor:lg.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:lg.PURPLE_PALE,boxShadow:`0 0 0 3px ${gv(lg.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:lg.GREEN_PALE},"&:active":{backgroundColor:lg.GREEN_DARK},"&.Mui-focusVisible":{borderColor:lg.GREEN_PALE,boxShadow:`0 0 0 3px ${gv(lg.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:lg.BLUE_PALE},"&:active":{backgroundColor:lg.BLUE_DARK},"&.Mui-focusVisible":{borderColor:lg.BLUE_PALE,boxShadow:`0 0 0 3px ${gv(lg.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:lg.ORANGE_PALE},"&:active":{backgroundColor:lg.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:lg.ORANGE_PALE,boxShadow:`0 0 0 3px ${gv(lg.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:lg.RED_PALE},"&:active":{backgroundColor:lg.RED_DARK},"&.Mui-focusVisible":{borderColor:lg.RED_PALE,boxShadow:`0 0 0 3px ${gv(lg.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:lg.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:lg.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:fg,boxShadow:`inset 0 0 0 2px ${lg.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(wg,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:ug,borderRadius:fg,color:lg.TEXT_PRIMARY,backgroundColor:lg.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:lg.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${lg.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:lg.GREYSCALE_0_05,color:lg.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:lg.GREEN,borderColor:lg.GREEN},"&.MuiChip-outlinedInfo":{color:lg.BLUE,borderColor:lg.BLUE},"&.MuiChip-outlinedWarning":{color:lg.ORANGE,borderColor:lg.ORANGE},"&.MuiChip-outlinedError":{color:lg.RED,borderColor:lg.RED}},outlined:{border:`solid 1px ${lg.GREYSCALE_0_15}`,backgroundColor:lg.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:fg,boxShadow:"none",backgroundColor:lg.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:lg.GREEN,borderColor:lg.GREEN},outlinedSecondary:{color:lg.BLUE,borderColor:lg.BLUE},label:{fontFamily:vg.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(wg,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(Eg,{"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:fg},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:fg,fontSize:cg,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:lg.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${lg.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:lg.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:lg.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:lg.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:fg,border:`solid 1px ${lg.GREYSCALE_0_15}`,color:lg.GREYSCALE_0_60,marginRight:0,width:pg,height:pg},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${lg.GREYSCALE_0_15}`},clearIndicator:{borderRadius:fg,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:lg.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:cg}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:ug,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:lg.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:lg.GREYSCALE_25,fontSize:ug,fontFamily:vg.FONT_FAMILY,fontWeight:gg,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:lg.TEXT_PRIMARY},"&.Mui-error":{color:lg.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:lg.TEXT_SECONDARY,content:"'(optional)'",fontWeight:hg,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:lg.TEXT_SECONDARY,content:"'(required)'",fontWeight:hg,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:cg,lineHeight:"16px",backgroundColor:lg.WHITE,borderRadius:fg,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lg.GREYSCALE_0_05}`,borderColor:lg.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lg.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${lg.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${lg.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lg.RED}`,boxShadow:`0px 0px 0px 1px ${lg.RED}, inset 0 2px 0 0 ${lg.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lg.GREYSCALE_0_10}`,borderColor:lg.GREYSCALE_0_10,backgroundColor:lg.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:lg.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:lg.GREYSCALE_0_15,borderRadius:fg,boxShadow:`inset 0 2px 0 0 ${lg.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(Eg,{...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:lg.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:lg.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:lg.GREYSCALE_0_03},"&:active":{backgroundColor:lg.GREYSCALE_0_10},"&:focus":{backgroundColor:lg.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${lg.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${lg.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:lg.GREYSCALE_0_30,"&:hover":{backgroundColor:lg.GREYSCALE_0_0,borderColor:lg.GREYSCALE_0_15},"& ~svg":{color:lg.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${lg.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:fg}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:lg.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${lg.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:lg.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:cg,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:ug,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:ug,fontWeight:gg,color:lg.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:gg}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${lg.GREYSCALE_0_15}, 0px 0px 0px 1px ${lg.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(Dg,null),checkedIcon:x.createElement(Lg,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:lg.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${lg.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:lg.GREEN_PALE,boxShadow:`0 0 0 3px ${gv(lg.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:lg.BLUE_PALE,boxShadow:`0 0 0 3px ${gv(lg.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:lg.GREYSCALE_0_20}},"&.Mui-disabled":{fill:lg.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(VC,null),checkedIcon:x.createElement(Ag,null),indeterminateIcon:x.createElement(Ig,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:fg,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:lg.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:lg.GREYSCALE_0_55,color:lg.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:lg.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:lg.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:lg.GREYSCALE_0_55,"&:hover":{color:lg.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:lg.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:lg.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:cg,color:lg.TEXT_PRIMARY,lineHeight:"16px",fontWeight:gg},secondary:{fontSize:ug,color:lg.GREYSCALE_45,fontWeight:hg,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:cg,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:lg.GREYSCALE_0_03},"&:active":{backgroundColor:lg.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:cg,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:lg.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:ug,borderBottom:`solid 1px ${lg.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:cg,color:lg.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:lg.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:lg.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:lg.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:lg.RED}}},"&.Mui-focusVisible":{backgroundColor:lg.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:lg.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:lg.GREEN,height:"24px","&.Mui-disabled":{color:lg.GREYSCALE_0_15}},rail:{backgroundColor:lg.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${lg.GREYSCALE_0_05}`,borderRadius:fg,boxShadow:`inset 0px 0px 0px 1px ${lg.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${lg.GREYSCALE_0_05}`,borderRadius:fg},thumb:{height:"16px",width:"16px",borderRadius:fg,backgroundColor:lg.WHITE,boxShadow:`0px 1px 2px 0px ${lg.GREYSCALE_0_15}, 0px 0px 0px 1px ${lg.GREYSCALE_0_05}`,"&:hover":{borderRadius:fg,boxShadow:`0 2px 4px 0 ${lg.GREYSCALE_0_30}, 0 0 0 1px ${lg.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${lg.GREYSCALE_0_15}, 0 0 0 1px ${lg.GREYSCALE_0_06}, 0 0 0 2px ${lg.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${lg.GREYSCALE_0_15}, 0 0 0 1px ${lg.GREYSCALE_0_06}, 0 0 0 2px ${lg.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:lg.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:lg.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:lg.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:lg.GREYSCALE_0_15},markLabel:{color:lg.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:lg.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:lg.WHITE,color:lg.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:lg.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:lg.GREEN_PALE,boxShadow:`0 0 0 3px ${gv(lg.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:lg.BLUE_PALE,boxShadow:`0 0 0 3px ${gv(lg.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:lg.GREYSCALE_0_15,borderRadius:fg},thumb:{height:"16px",width:"16px",borderRadius:fg,backgroundColor:lg.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:cg,fontWeight:gg,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${lg.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${lg.MISC_FOCUS_BORDER}`,backgroundColor:lg.GREYSCALE_0_03,borderRadius:fg},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:lg.GREYSCALE_25,"&.Mui-selected":{color:lg.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:cg,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${lg.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${lg.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${lg.GREYSCALE_85}`,borderRight:`1px solid ${lg.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:gg,backgroundColor:lg.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:lg.GREYSCALE_98,borderBottom:`1px solid ${lg.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${lg.GREYSCALE_85}`,borderTop:`1px solid ${lg.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:lg.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:lg.GREYSCALE_0_05,"&:hover":{backgroundColor:lg.GREYSCALE_0_03}},"&&:hover":{backgroundColor:lg.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(Pg,{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 ${lg.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:cg,borderRadius:fg,padding:"7px 16px",border:`1px solid ${lg.GREYSCALE_0_15}`,backgroundColor:lg.GREYSCALE_100_60,color:lg.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:lg.GREYSCALE_0_10,border:`1px solid ${lg.GREYSCALE_0_30}`},"&:hover":{backgroundColor:lg.GREYSCALE_0_03,border:`1px solid ${lg.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:lg.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${lg.MISC_FOCUS_BORDER}`,border:`1px solid ${lg.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:lg.GREYSCALE_25,backgroundColor:lg.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:lg.GREYSCALE_0_10,border:`1px solid ${lg.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:ug,height:24,width:24,padding:7},sizeLarge:{fontSize:dg,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:cg,borderRadius:fg}}},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:lg.GREYSCALE_20},tooltip:{backgroundColor:lg.GREYSCALE_20,fontSize:ug,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var YC=e=>UC;const KC={mode:"light",primary:{light:lg.GREEN_PALE,main:lg.GREEN,dark:lg.GREEN_DARK,contrastText:lg.WHITE},secondary:{light:lg.BLUE_PALE,main:lg.BLUE,dark:lg.BLUE_DARK,contrastText:lg.WHITE},error:{light:lg.RED_PALE,main:lg.RED,dark:lg.RED_DARK,contrastText:lg.WHITE},warning:{light:lg.ORANGE_PALE,main:lg.ORANGE,dark:lg.ORANGE_DARK,contrastText:lg.WHITE},success:{light:lg.GREEN_PALE,main:lg.GREEN,dark:lg.GREEN_DARK,contrastText:lg.WHITE},info:{light:lg.BLUE_PALE,main:lg.BLUE,dark:lg.BLUE_DARK,contrastText:lg.WHITE},text:{primary:lg.TEXT_PRIMARY,secondary:lg.TEXT_SECONDARY,disabled:lg.GREYSCALE_0_30},action:{hover:lg.GREYSCALE_0_03,hoverOpacity:.05,selected:lg.GREYSCALE_0_05,focus:lg.MISC_FOCUS_BORDER},amethyst:{main:lg.PURPLE,light:lg.PURPLE_PALE,dark:lg.PURPLE_DARK,contrastText:lg.WHITE},background:{paper:lg.WHITE,default:lg.GREYSCALE_95},divider:lg.GREYSCALE_0_15},XC=e=>({components:YC(),palette:KC,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:cg,fontWeightLight:mg,fontWeightRegular:hg,fontWeightMedium:gg,fontWeightBold:bg,htmlFontSize:cg,fontFamily:vg.FONT_FAMILY,button:{fontWeight:gg,fontSize:cg,textTransform:"none"},body1:{fontSize:dg,lineHeight:"24px"},body2:{fontSize:cg,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:pg,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:dg,fontWeight:gg,lineHeight:"16px"},h6:{fontSize:cg,fontWeight:gg,lineHeight:"16px"},caption:{color:lg.TEXT_SECONDARY},subtitle1:{fontSize:cg,color:lg.TEXT_SECONDARY},subtitle2:{fontSize:ug,color:lg.TEXT_SECONDARY}},shape:{borderRadius:fg}}),JC={...sg,MISC_FOCUS_BORDER:lg.MISC_FOCUS_BORDER},ZC=XC().palette,QC={TEXT:ZC.text.primary,DISABLED:ZC.text.disabled,HOVER:ZC.action.hover,WHITE:JC.GREYSCALE_100,BORDER_LIGHT:JC.GREYSCALE_90,BORDER_MEDIUM:JC.GREYSCALE_85,BORDER_HEAVY:JC.GREYSCALE_50,DARK_MODE_TEXT:JC.GREYSCALE_95,DARK_MODE_BORDER:JC.GREYSCALE_95,DARK_MODE_DISABLED:JC.GREYSCALE_70,DARK_MODE_BACKGROUND:JC.GREYSCALE_20},ew=(e,t)=>{const r=qe(e),n=r.l<70;return 0===r.opacity?(r.opacity=t.opacity,r.toString()):n?r.brighter(t.brighter).toString():r.darker(t.darker).toString()},tw=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,rw=e=>{const t=tw.exec(e);if(t){const[,e,r,n,o]=t;return le(+r,+n,+o,+e/255)}return le(e)},nw=e=>{const t=rw(e);return Number.isNaN(t.r)?null:t.toString()},ow=e=>{if(void 0===e)return;const t=rw(e);return t.opacity=1,t.toString()},iw=(e,t,r)=>{var n,o,i,a;const s=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;s?s.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)},aw=e=>{e.stopPropagation(),e.preventDefault()},sw=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},lw=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),uw=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?uw(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},cw=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?cw(t):t},dw=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${hr}`);null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},pw=({focusType:e,cell:t})=>{if(t)switch(e){case Af.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case Af.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case Af.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case Af.ADD_TAB:t.setAttribute("tabIndex","0");break;case Af.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},fw=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o})=>{const i=((e,t,r,n={top:0,bottom:0})=>{const o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length;let[a,s]=r;switch(e.key){case Rf.DOWN:a<o-1-n.bottom&&a++;break;case Rf.UP:a>n.top&&a--;break;case Rf.RIGHT:if(n.top>0)break;s<i-1?s++:a<o-1&&(a++,s=0);break;case Rf.LEFT:if(n.top>0)break;s>0?s--:a>0&&(a--,s=i-1)}return[a,s]})(e,t,r,o),a=sw(t,i);return pw({focusType:Af.FOCUS,cell:a}),n(i),a},mw=(e,t,r,n)=>{var o;(pw({focusType:Af.REMOVE_TAB,cell:lw(t)}),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):pw({focusType:Af.ADD_TAB,cell:sw(t,e)})},hw=e=>e.ctrlKey||e.metaKey,gw=e=>e.shiftKey&&hw(e),bw=e=>[Rf.LEFT,Rf.RIGHT,Rf.UP,Rf.DOWN].includes(e),vw=e=>e.shiftKey&&bw(e.key),yw=(e,t=!1)=>e.key===Rf.ESC&&!t||(e.key===Rf.LEFT||e.key===Rf.RIGHT)&&gw(e),xw=({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:s,isSelectionMode:l})=>{const u=s.atTop?2:1,c=[r.pageRowIdx+u,r.pageColIdx],d={top:l?u:0,bottom:l&&s.atBottom?1:0};pw({focusType:Af.REMOVE_TAB,cell:e.currentTarget});const p=fw({evt:e,rootElement:t,cellCoord:c,setFocusedCellCoord:i,allowedRows:d});e.key!==Rf.UP&&e.key!==Rf.DOWN||(e.key===Rf.UP&&((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[n])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-a.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})([r.pageRowIdx,r.pageColIdx],t),((e,t,r)=>t.shiftKey&&(t.key===Rf.UP&&0!==r.pageRowIdx||t.key===Rf.DOWN&&!r.isLastRow)&&e&&r.isSelectable)(o,e,r)?n({type:wf.SELECT_MULTI_ADD,payload:{cell:r,evt:e,announce:a}}):((e,t,r=!1)=>{r&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,p,l))},Sw=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=Cf.INACTIVE;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?Cf.EXCLUDED:void 0!==n[e.qElemNumber]?Cf.SELECTED:Cf.POSSIBLE),i},Ew=(e,t,r)=>{const n=Object.keys(r).length,o=n>=Object.keys(t).length;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},Cw=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l={};if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l={...n}}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?{[n]:o}:(void 0!==e[n]?delete e[n]:e[n]=o,{...e})})(l,i,s),Ew(a,n,l),Object.keys(l).length?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(l),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:l,colIdx:-1})},ww=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:s}=e,{cell:l,announce:u,evt:c}=t;let d={};return s||"key"in c&&vw(c)?(-1===i?null==n||n.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,r,n,o)=>{const i={...t};if("key"in n&&vw(n)){i[r.qElemNumber]=r.rowIdx;const t=n.key===Rf.DOWN?1:-1;return i[e[r.pageRowIdx+t][r.pageColIdx].qElemNumber]=r.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i[r.qElemNumber]=r.rowIdx}return i})(a,d,l,c,s),Ew(u,o,d),{...e,rows:d,colIdx:null!==(r=null==s?void 0:s.selectionColIdx)&&void 0!==r?r:l.selectionColIdx,isSelectMultiValues:!0}):e},Rw=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(r),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},Aw=(e,t)=>{var r;switch(t.type){case wf.SELECT:return Cw(e,t.payload);case wf.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case wf.SELECT_MOUSE_UP:return((e,t)=>Rw(e.isSelectMultiValues||e.firstCell!==t.cell?e:Cw(e,t)))(e,t.payload);case wf.SELECT_MULTI_ADD:return ww(e,t.payload);case wf.SELECT_MULTI_END:return Rw(e);case wf.RESET:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:{},colIdx:-1};case wf.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case wf.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},Iw=4/3,Dw={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},Lw=e=>parseInt(e,10)*Iw+8+1,Pw=e=>!!e&&(null!==e.color||e.index>-1);function Mw(e,t,r={}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const _w=e=>ze(e)?QC.WHITE:QC.TEXT,Tw=(e,t)=>e?{borderBottomColor:QC.DARK_MODE_BORDER,borderRightColor:QC.DARK_MODE_BORDER,borderLeftColor:QC.DARK_MODE_BORDER,borderTopColor:QC.DARK_MODE_BORDER}:{borderLeftColor:QC.BORDER_MEDIUM,borderRightColor:QC.BORDER_MEDIUM,borderTopColor:QC.BORDER_HEAVY,borderBottomColor:t?QC.BORDER_HEAVY:QC.BORDER_LIGHT},Ow=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},kw=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:Pw(null==r?void 0:r.fontColor)?Mw(QC.TEXT,t,null==r?void 0:r.fontColor):i||QC.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?null==r?void 0:r.padding:void 0,...Tw(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function qw(e,t,r){var n,o,i;const a=null===(n=Ow(e))||void 0===n?void 0:n.header,s=kw("header",t,a,r);return s.background=t.background.isTransparent?QC.WHITE:ow(t.background.color),s.hoverBackground=ew(null!==(o=s.background)&&void 0!==o?o:QC.WHITE,Dw.hover),s.activeBackground=ew(null!==(i=s.background)&&void 0!==i?i:QC.WHITE,Dw.active),s}function Nw(e,t,r,n){var o;const i=null===(o=Ow(e))||void 0===o?void 0:o.content,a=kw("content",t,i);a.background=t.background.color;const s=((e,t,r)=>{if(e&&t&&r)return Lw(e)*(t+2)<r.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,r,n),l=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=Pw(u)||!!d,f=Pw(l)||!!c,m=p||f;let h;h=Pw(l)?Mw(QC.HOVER,t,l):c||(p?"":QC.HOVER);const g=m?Mw(_w(h),t,Pw(u)?u:d):"";return{...a,lastRowBottomBorder:s,hoverColors:{background:h,color:g}}}function Fw(e,t,r){var n;const o={};return null==t||null===(n=t.qValues)||void 0===n||n.forEach(((e,t)=>{const n=e.qText&&nw(e.qText);n&&"none"!==n&&(o[r[t]]=n)})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=_w(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background}}const zw=(e,t,r,n)=>{const o=S((()=>{const o=r.totalsPosition.atTop,i=Nw(e,t,r.rows.length,n),a=qw(e,t,!o),s=function(e,t,r){var n;const o=null===(n=Ow(e))||void 0===n?void 0:n.content,i=kw("content",t,o),{borderBottomColor:a,borderTopColor:s,background:l}=qw(e,t,r);return{...i,borderBottomColor:a,background:l,borderTopColor:s}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t.name(),r,n]);return o},jw=new Map;const $w=P({}),Bw=function(e){const t=P([()=>{},new Set]);return jw.set(e,t),({children:r,value:n})=>{const o=M(n),i=M(new Set);C((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=_((()=>o.current),[o]),s=S((()=>[a,i.current]),[a]);return ra.jsx(e.Provider,{value:n,children:ra.jsx(t.Provider,{value:s,children:r})})}}($w),Hw={rows:[],columns:[],totalsPosition:{}},Ww=({app:e,children:t,tableData:r=Hw,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,env:x})=>{const[C,w]=E(0),[R,A]=E(o||Mf),[I,D]=((e,t)=>{const[r,n]=L(Aw,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[P,M]=E(-1),_=zw(i,u,r,d),[T,O,k,q]=((e,t,r,{head:n,body:o})=>{const i=t.atBottom||t.atTop,a=tr({...n,fontWeight:ng},{maxNbrLinesOfText:3}).measureText,s=tr({...o,fontWeight:ng},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=tr(n,{maxNbrLinesOfText:3}),u=S((()=>(e,t,r,n,o)=>{let u=25;return u+=28,n&&(u+=24),o&&(u+=20),Math.max(a(e)+u,i?s(t)+24+1:0,l(r))}),[l,a,s,i]),[c,d]=E(0),[p,f]=E((()=>ag(e,r,u)));ar((()=>{f(ag(e,r-c,u))}),[e,r,c,u]);const m=S((()=>((e,t,r)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,v.width,_),N=S((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,styling:_,rect:v,viewService:y})),[e,n,i,a,s,l,u.name(),c.active,d,p,f,m,_,v,y]);return ra.jsx(Bw,{value:{headRowHeight:C,setHeadRowHeight:w,focusedCellCoord:R,setFocusedCellCoord:A,selectionState:I,selectionDispatch:D,hoverIndex:P,setHoverIndex:M,columnWidths:T,setColumnWidths:O,baseProps:N,tableData:r,setYScrollbarWidth:k,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:q,env:x},children:t})};function Gw(e,t){const r=function(e){return jw.get(e)}(e),[n,o]=w(r),[,i]=L((e=>e+1),0),a=M(t),s=M(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=S((()=>t(l)),[l,t]);return C((()=>{a.current=t,s.current=u}),[l,u,t]),C((()=>{const e=e=>{(a.current&&a.current(e))!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function Vw(e){var t;const r=Zh();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),zp({...r,direction:e})}const Uw=vy(RS,{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)":{[`& .${gr}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${gr}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),Yw=vy(RS)({position:"absolute",height:"100%",width:"3px"}),Kw=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u})=>{const c=M({initWidth:e,columnWidth:e,initX:0}),d=r?0:1,p=n&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};ar((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,br.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:vr.Pixels,pixels:c.current.columnWidth};a(e)}else null==l||l(!1)},b=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},v=e=>{aw(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},S=e=>{aw(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",S),g()},E=!n&&s?e=>{if(e.key===mr.LEFT||e.key===mr.RIGHT){aw(e);const t=5,r=e.key===mr.LEFT?-t:t;h(c.current.columnWidth+r)}else e.key===mr.SPACE||e.key===mr.ENTER?(aw(e),s(e),g()):e.key===mr.ESC&&(aw(e),s(e),h(c.current.initWidth))}:void 0;return x.createElement(Uw,{className:hr,isLastColumn:r,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==l||l(!0),m(e.clientX)},onDoubleClick:()=>a({type:vr.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),null==l||l(!0),m(e.touches[0].clientX))},onKeyDown:E,onBlur:s,onFocus:()=>m(),"data-testid":hr},x.createElement(Yw,{className:gr}))};function Xw(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Jw=T(((e,t)=>x.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){Xw(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),x.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"}))));function Zw(){return Zw=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},Zw.apply(this,arguments)}const Qw=vy(RS,{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"}))),eR=vy(Jw,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),tR=vy(rC)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),rR=vy(KS)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),nR=vy(sC)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),oR=vy(sC,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(r?"rgba(0, 0, 0, 0.05)":"transparent")}))),iR=vy("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"}))),aR=vy("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),sR=vy(Ax)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),lR=vy(LE)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function uR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const cR=T(((e,t)=>x.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){uR(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),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let dR={};const pR=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,handleHeadCellMenuKeyDown:u})=>{const[c,d]=E(!1),p=M(null),f=_((e=>{e.stopPropagation(),d(!1)}),[d]);return x.createElement(x.Fragment,null,x.createElement(oR,{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),dR={}),null!=a&&a.length&&(d(!0),dR[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:u},l&&x.createElement(iR,null),x.createElement(aR,null,x.createElement(lR,null,x.createElement(o,null)),x.createElement(sR,{variant:"body2"},n)),null!=a&&a.length?x.createElement(cR,null):null),(null==a?void 0:a.length)&&x.createElement(hR,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=dR,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},fR=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&x.createElement(nR,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>x.createElement(pR,Zw({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),mR={appear:200,enter:200,exit:100},hR=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:s})=>n.length?x.createElement(tR,Zw({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,transitionDuration:mR,MenuListProps:{id:pr}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[fR({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?x.createElement(rR,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:n,isSubMenu:a,handleHeadCellMenuKeyDown:s})):null,gR={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},bR=(e,t)=>e.some((e=>t[e]>0));function vR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yR=T(((e,t)=>x.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){vR(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),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"}))));function xR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const SR=T(((e,t)=>x.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){xR(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),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"}))));function ER(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CR=T(((e,t)=>x.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){ER(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),x.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.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"}))));function wR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const RR=T(((e,t)=>x.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){wR(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),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function AR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const IR=T(((e,t)=>x.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){AR(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),x.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"}))));function DR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const LR=T(((e,t)=>x.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){DR(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),x.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"}))));function PR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const MR=T(((e,t)=>x.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){PR(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),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function _R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const TR=T(((e,t)=>x.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){_R(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),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function OR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kR=T(((e,t)=>x.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){OR(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),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function qR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NR=T(((e,t)=>x.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){qR(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),x.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"}))));let FR=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const zR=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:s,fieldInstance:l,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(r[FR.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:yR,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:RR,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[FR.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),s()},icon:IR,enabled:!0}]}]),r[FR.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:NR,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectAll())},icon:LR,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectPossible())},icon:kR,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectAlternative())},icon:MR,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectExcluded())},icon:TR,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clear())},icon:SR,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[FR.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:CR,enabled:!0}]}]),p},jR=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:s,shouldShowMenuIcon:l=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=lr({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=n,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:S,updateSelectionActionsEnabledStatus:w}=(({headerData:e,app:t})=>{const[r,n]=E(null),[o,i]=E(gR);return C((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(n).catch(console.error)}),[t,e]),{fieldInstance:r,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:_((()=>i(gR)),[]),updateSelectionActionsEnabledStatus:_((t=>{const r=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));r&&i({canSelectAll:bR(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:bR(["qSelected"],r.qStateCounts),canSelectPossible:bR(["qOption"],r.qStateCounts),canSelectAlternative:bR(["qAlternative"],r.qStateCounts),canSelectExcluded:bR(["qAlternative","qExcluded"],r.qStateCounts)})}),[e.label,i])}})({headerData:n,app:null==d?void 0:d.app}),R=_((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;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,b,g]);C((()=>{e||(S(),null!=d&&d.model&&d.model.getLayout().then((e=>{w(e)})).catch((e=>console.error(e))))}),[e,S,w,null==d?void 0:d.model]);const A=_((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(Qw,{rightAligned:"right"===h,shouldShowMenuIcon:l,className:dr},l&&x.createElement(eR,{height:ur,className:cr,"data-testid":cr,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},x.createElement(Jw,null)),x.createElement(hR,{open:e,anchorEl:r.current,onClose:A,menuGroups:zR({headerData:n,translator:m,menuAvailabilityFlags:s,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},$R=e=>e.isDark?{background:e.color,borderColor:QC.DARK_MODE_BORDER,color:QC.DARK_MODE_TEXT,disabledColor:QC.DARK_MODE_DISABLED,iconColor:QC.DARK_MODE_TEXT}:{background:e.color,borderColor:QC.BORDER_MEDIUM,color:QC.TEXT,disabledColor:QC.DISABLED},BR=vy(RS,{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}`}))),HR=vy(GC,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),WR=vy(qS,{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)}))),GR=vy(Ax)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),VR=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=S((()=>$R(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(BR,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},UR=P({}),YR=()=>w(UR),KR=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=S((()=>$R(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=lr({translator:d}),E=S((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,s,l,u,c,y,p,f,m,h,b,g,v]);return x.createElement(UR.Provider,{value:E},e)};let XR=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),JR=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}({});function ZR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const QR=T(((e,t)=>x.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){ZR(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),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function eA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tA=T(((e,t)=>x.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){eA(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),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"}))));function rA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nA=T(((e,t)=>x.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){rA(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),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})))),oA={FirstPage:tA,PreviousPage:QR,NextPage:cR,LastPage:nA,FirstPageRTL:nA,PreviousPageRTL:cR,NextPageRTL:QR,LastPageRTL:tA},iA=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=YR(),u=oA[`${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:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?null:()=>i(t)},IconComponent:u}},aA=()=>{const{pageInfo:e,width:t}=YR(),r=0===e.page,{IconComponent:n,styledProps:o}=iA({type:XR.FirstPage,disabledCondition:r,pageNumber:0});return t<=JR.FirstPage?null:x.createElement(WR,o,x.createElement(n,{height:ur}))},sA=(e,t,r=!1)=>{r&&e.key===mr.TAB&&!e.shiftKey&&(aw(e),iw(e.target,t,!1))},lA=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=YR(),i=e.page>=r-1,{IconComponent:a,styledProps:s}=iA({type:XR.LastPage,disabledCondition:i,pageNumber:r-1}),l=t.enabled?e=>sA(e,t,n):null;return o<=JR.LastPage?null:x.createElement(WR,Zw({},s,{onKeyDown:l}),x.createElement(a,{height:ur}))},uA=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=YR(),i=e.page>=r-1,{IconComponent:a,styledProps:s}=iA({type:XR.NextPage,disabledCondition:i,pageNumber:e.page+1}),l=!(o>JR.FirstPage&&o>JR.LastPage)&&t.enabled?e=>sA(e,t,n):null;return x.createElement(WR,Zw({},s,{onKeyDown:l}),x.createElement(a,{height:ur}))},cA=()=>{const{pageInfo:e}=YR(),t=0===e.page,{IconComponent:r,styledProps:n}=iA({type:XR.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(WR,n,x.createElement(r,{height:ur}))},dA=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=YR(),{page:o,rowsPerPage:i}=r;if(t<=JR.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(GR,{variant:"caption"},a)},pA=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s}=YR(),l=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${l}`,p={tabIndex:s,id:`${c}-${l}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(GR,{variant:"caption",id:d},u,":"),x.createElement(HR,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},fA=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=YR();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>JR.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(pA,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},mA=1e3,hA="…",gA=({totalPages:e,page:t})=>{const r=Math.min(e,mA),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-mA):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:hA,disabled:!0},hA)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:hA,disabled:!0},hA)),x.createElement(x.Fragment,null,a)},bA=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=YR(),{page:o}=e;if(t<=JR.SelectPage)return null;const i=x.createElement(gA,{totalPages:r,page:o});return x.createElement(pA,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var vA=O((e=>x.createElement(KR,e,x.createElement(fA,null),x.createElement(bA,null),x.createElement(dA,null),x.createElement(aA,null),x.createElement(cA,null),x.createElement(uA,null),x.createElement(lA,null))));const yA=e=>x.createElement(VR,e,x.createElement(vA,e)),xA=yf(Wm,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.tableColorFromTheme}))),SA=yf(Wm,{shouldForwardProp:e=>"lines"!==e&&"allIconsDisabled"!==e&&"headCell"!==e&&"isPagination"!==e&&"wordBreak"!==e&&"virtualizedCell"!==e})((({lines:e,wordBreak:t,allIconsDisabled:r=!1,headCell:n=!1,isPagination:o=!1,virtualizedCell:i=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(n||t||1===e)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:n&&o?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",...n&&{whiteSpace:r||i?"normal":"nowrap"}}}))),EA=yf(Wm)({overflow:"hidden",textOverflow:"ellipsis"});function CA(e,t){const r=M(!1);C((()=>{r.current?e():r.current=!0}),t)}const wA=(e,t,r)=>{C((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n),i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},RA=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===Rf.DOWN||r===Rf.UP){const t=e=>r===Rf.DOWN?uw(e):cw(e);aw(e);let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}},AA=({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:s,paginationNeeded:l,totalsPosition:u,selectionsAPI:c})=>{if(e.currentTarget.classList.contains("excluded"))return void aw(e);const d=null==c?void 0:c.isModal();if(!yw(e,d))switch(e.key){case Rf.UP:case Rf.DOWN:case Rf.LEFT:case Rf.RIGHT:aw(e),xw({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:d});break;case Rf.SPACE:aw(e),r.isSelectable&&o&&n({type:wf.SELECT,payload:{cell:r,evt:e,announce:a}});break;case Rf.ENTER:aw(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case Rf.ESC:aw(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case Rf.TAB:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{(null==t?void 0:t.enabled)&&r&&(e.shiftKey||!e.shiftKey&&!n)&&(aw(e),iw(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:s,isSelectionMode:d,paginationNeeded:l});break;case Rf.C:aw(e),hw(e)&&Sr(e.currentTarget)}},IA=e=>{const{layout:t,rect:r,theme:n}=Gw($w,(e=>e.baseProps)),o=n.name(),[i,a]=E(0),[s,l]=E(0);return k((()=>{if(e.current){var t;const{offsetWidth:r=0,offsetHeight:n=0,clientWidth:o=0,clientHeight:i=0}=null!==(t=e.current)&&void 0!==t?t:{},s=n-i;l(r-o),a(s)}}),[e,t,r,o]),{xScrollbarWidth:i,yScrollbarWidth:s}},DA=yf("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),LA=yf(Th,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),PA=yf(gh,{shouldForwardProp:e=>"showRightBorder"!==e&&"styling"!==e})((({showRightBorder:e,styling:t})=>({tableLayout:"fixed",width:"min-content",borderRight:e?`1px solid ${t.body.borderRightColor}`:void 0}))),MA=()=>ra.jsxs(ra.Fragment,{children:[ra.jsx(DA,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),ra.jsx(DA,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),_A=e=>e.stopPropagation(),TA=({href:e,text:t,interactions:r,color:n})=>x.createElement(yE,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:_A,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t),OA=({layout:e,viewService:t,isImagesEnabled:r})=>{var n,o;let i=null===(n=t.viewState)||void 0===n?void 0:n.maxLineCount;var a,s;r&&(i=null!==(a=i)&&void 0!==a?a:null===(s=Ow(e))||void 0===s||null===(s=s.content)||void 0===s?void 0:s.rowHeight);return{maxNbrLines:null!==(o=i)&&void 0!==o?o:3,isStaticNbrOfLines:void 0!==i}},kA=({children:e,fontSize:t="",wordBreak:r=!1,isPagination:n=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:s=!1})=>{if(a)return ra.jsx(SA,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:n,headCell:!0,allIconsDisabled:s,children:e});const l=parseInt(t||rg,10),u=ra.jsx(SA,{component:"span",className:"sn-table-cell-text",wordBreak:r,lines:i,virtualizedCell:o,children:e});return r?u:ra.jsx(EA,{minHeight:l*tg,maxHeight:l*tg*i,children:u})},qA=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},NA=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},FA=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:s}=e,l="fitHeight"===a,u=ra.jsx("img",{src:o,alt:i,style:{width:l?"auto":"100%",height:"100%",maxHeight:r,objectFit:NA(a),objectPosition:qA(s),...t,overflow:"hidden"}});var c;return n?ra.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:l?r:"100%",overflow:"hidden",display:"flex",justifyContent:l?null==e||null===(c=e.resolvedImagePosition)||void 0===c?void 0:c.horizontal:void 0},children:u}):u},zA=({cell:e,style:t,maxImageHeight:r,virtualizedCell:n})=>{const{flags:o}=Gw($w,(e=>e.env)),{interactions:i,viewService:a,layout:s}=Gw($w,(e=>e.baseProps)),l=Gw($w,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()})),{maxNbrLines:u}=OA({viewService:a,layout:s,isImagesEnabled:o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")});let c=e.representation.text;return e.representation.type!==Li.Link||l||(c=ra.jsx(TA,{href:e.representation.url,text:e.representation.text,interactions:i,color:t.cellForegroundColor})),e.representation.type===Li.Image?ra.jsx(FA,{representation:e.representation,textStyle:t,maxImageHeight:r,wrapInContainer:!n}):ra.jsx(kA,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:u,virtualizedCell:n,children:c})},jA=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{C((()=>{const i=()=>{t({type:wf.RESET})},a=()=>{t({type:wf.CLEAR})},s=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",s),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",s),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},$A=e=>parseInt(null!=e?e:og.fontSize,10)*tg,BA=({maxNbrLines:e,isStaticNbrOfLines:t,lineHeight:r})=>t?r*e+8+1:void 0,HA=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>r({type:wf.SELECT_MULTI_END});r({type:wf.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:wf.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:wf.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:n}})}}),WA=yf(Ch,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),GA=yf(Vh,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),VA=yf(Lh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...og,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),UA=yf(Lh,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...og,...e,fontWeight:ng,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&r,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function YA(e){return t=>{const{cell:r,styling:n,announce:o,onMouseDown:i}=t,a=Gw($w,(e=>Sw(r,e.selectionState))),s=Gw($w,(e=>e.selectionDispatch)),{handleMouseDown:l,handleMouseOver:u,handleMouseUp:c}=HA(i,r,s,o),d=function(e,t){let r={};switch(t){case Cf.SELECTED:r=eg.SELECTED;break;case Cf.POSSIBLE:r=eg.POSSIBLE;break;case Cf.EXCLUDED:r={background:`${eg.EXCLUDED_BACKGROUND}, ${e.background}`,selectedCellClass:Cf.EXCLUDED}}return{...e,...r}}(n,a);return ra.jsx(e,{...t,styling:d,onMouseUp:c,onMouseDown:l,onMouseOver:u})}}function KA(e,t){let r=(n=VA,e=>{const{styling:{selectedCellClass:t,...r},component:o,align:i,children:a,scope:s,tabIndex:l,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m}=e;return ra.jsx(n,{cellStyle:r,component:o,scope:s,align:i,tabIndex:l,className:`sn-table-cell ${t||""} ${fr}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var n;return t&&(r=YA(r)),e&&(r=function(e){return t=>{const{cell:r,column:n,styling:o}=t,i=S((()=>Fw(o,r.qAttrExps,n.qAttrExprInfoIDs)),[o,r.qAttrExps,n.qAttrExprInfoIDs]);return ra.jsx(e,{...t,styling:i})}}(r)),r}const XA=()=>{const{columns:e,totalsPosition:{atTop:t},rows:r}=Gw($w,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styling:a,interactions:s}=Gw($w,(e=>e.baseProps)),l=Gw($w,(e=>e.headRowHeight)),u=Gw($w,(e=>e.setFocusedCellCoord));return ra.jsx(Vh,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t?1:r.length+1,c];return ra.jsx(UA,{totalsStyle:a.totals,headRowHeight:l,atTop:t,align:e.totalsTextAlign,className:`sn-table-cell ${fr}`,tabIndex:-1,title:s.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,r,n,o=!1)=>{if(o)aw(e);else if(!yw(e))switch(e.key){case Rf.LEFT:case Rf.RIGHT:case Rf.UP:case Rf.DOWN:aw(e),pw({focusType:Af.REMOVE_TAB,cell:e.currentTarget}),fw({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n});break;case Rf.C:aw(e),hw(e)&&Sr(e.currentTarget);break;case Rf.SPACE:e.preventDefault()}})(e,n,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{mw(d,n,u,i)},children:ra.jsx(kA,{wordBreak:!e.isTotalNumeric,fontSize:a.totals.fontSize,children:e.totalInfo})},e.id)}))})};var JA=O(XA);const ZA=({setShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:s}=Gw($w,(e=>e.tableData)),{selectionsAPI:l,rootElement:u,keyboard:c,layout:d,interactions:p,styling:{body:{hoverColors:f,lastRowBottomBorder:m,...h}},viewService:g}=Gw($w,(e=>e.baseProps)),b=Gw($w,(e=>e.setFocusedCellCoord)),v=Gw($w,(e=>e.selectionDispatch)),{flags:y}=Gw($w,(e=>e.env)),x=!!p.active&&!!p.select,E=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),C=S((()=>JSON.parse(E).map((e=>KA(e.some((e=>"cellBackgroundColor"===e||"cellForegroundColor"===e)),x)))),[E,x]),w=!(null===(n=Ow(d))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect),{maxNbrLines:R,isStaticNbrOfLines:A}=OA({viewService:g,layout:d,isImagesEnabled:y.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),I=$A(h.fontSize),D=BA({maxNbrLines:R,isStaticNbrOfLines:A,lineHeight:I});return jA({keyboard:c,selectionDispatch:v,selectionsAPI:l,setShouldRefocus:e,tableWrapperRef:t}),ra.jsxs(WA,{lastRowBottomBorder:m,children:[s.atTop?ra.jsx(JA,{}):void 0,o.map(((e,t)=>ra.jsx(GA,{hoverColors:f,hover:w,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,height:D,children:i.map(((t,n)=>{const{id:o}=t,i=e[n],d=C[n],f=Fw({},i.qAttrExps,t.qAttrExprInfoIDs);return d&&ra.jsx(d,{scope:0===n?"row":void 0,component:0===n?"th":void 0,cell:i,column:t,align:i.align,styling:h,tabIndex:-1,announce:r,title:p.passive?i.representation.text:void 0,onKeyDown:e=>{AA({evt:e,rootElement:u,selectionsAPI:l,cell:i,selectionDispatch:v,isSelectionsEnabled:x,setFocusedCellCoord:b,announce:r,keyboard:c,paginationNeeded:a,totalsPosition:s})},onKeyUp:e=>((e,t)=>{e.key===Rf.SHIFT&&t({type:wf.SELECT_MULTI_END})})(e,v),onMouseDown:()=>((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;mw([s,a],t,r,n)})(i,u,b,c,s),children:ra.jsx(zA,{cell:i,style:f,maxImageHeight:A?I*R:I})},o)}))},`row-${t}`))),s.atBottom?ra.jsx(JA,{}):void 0]})};var QA=O(ZA);const eI=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o}=e,{applyColumnWidths:i,interactions:a}=Gw($w,(e=>e.baseProps)),s=Gw($w,(e=>e.columnWidths)),l=Gw($w,(e=>e.setColumnWidths));if(!a.active)return null;return ra.jsx(Kw,{columnWidth:s[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...s];t[o]=e,l(t)},confirmWidthCallback:t=>{i(t,e)},handleBlur:e=>(e=>{e.setAttribute("tabIndex","-1");const t=e.closest(".sn-table-cell");pw({focusType:Af.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:n})};function tI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rI=T(((e,t)=>x.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){tI(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),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"}))));function nI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oI=T(((e,t)=>x.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){nI(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),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function iI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const aI=T(((e,t)=>x.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){iI(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),x.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),x.createElement("use",{fillRule:"evenodd"})))),sI=yf("div")({position:"absolute",left:0,bottom:0}),lI=yf(Wm,{shouldForwardProp:e=>!["textAlign"].includes(e)})((({textAlign:e,theme:t})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center"})));yf("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const uI=yf(Wm,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${dr}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:2},[`& .${dr}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),cI=yf(Wm,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));yf(Wm,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),yf(Jm)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),yf(uh)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),yf("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),yf(nh)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),yf("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const dI=yf(Lh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...og,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));yf("div")({display:"flex",alignItems:"center"});const pI=yf("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:rg,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),fI=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i})=>{const{translator:a,changeSortOrder:s,interactions:l,embed:u,app:c,model:d,styling:p}=Gw($w,(e=>e.baseProps)),f=Gw($w,(t=>t.columnWidths[e.pageColIdx])),m=M(null),h=M(null),{getHeadCellsIconsVisibilityStatus:g,allIconsDisabled:b}=(({styling:e,column:t,columnWidth:r})=>{const{measureText:n}=tr({fontSize:e.head.fontSize,fontFamily:e.head.fontFamily,fontWeight:ng}),o=_((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,s=t.isActivelySorted,l=r-25,u=a?20:0,c=s?20:0;let d=n(t.label);return a&&d+u<=l&&(i=!0,d+=u,s&&d+c<=l&&(o=!0,d+=c)),!a&&s&&d+c<=l&&(o=!0,d+=c),d+24<=l&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n]);return{getHeadCellsIconsVisibilityStatus:o,allIconsDisabled:Object.values(o()).every((e=>!1===e))}})({styling:p,column:e,columnWidth:f}),v=g(),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n})=>{const o="A"===e?ra.jsx(rI,{height:rg,"data-testid":"head-cell-sort-ascending-icon"}):ra.jsx(oI,{height:rg,"data-testid":"head-cell-sort-descending-icon"}),i=r?ra.jsx(pI,{align:t,children:o}):void 0,a=n?ra.jsx(cI,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:ra.jsx(aI,{height:rg,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:i,LockIcon:a}:{EndIcon:i,LockIcon:a}})(e,v);o&&(o.current[e.pageColIdx]=v);return ra.jsxs(uI,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:e.headTextAlign,children:[S,ra.jsxs(lI,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[y,ra.jsx(kA,{allIconsDisabled:b,isPagination:i,virtualizedCell:!i,headCell:!0,children:e.label}),x]}),t&&ra.jsxs(ra.Fragment,{children:[ra.jsx(jR,{headerData:e,translator:a,anchorRef:m,handleHeadCellMenuKeyDown:RA,menuAvailabilityFlags:{[FR.SORTING]:!0,[FR.SEARCHING]:!0,[FR.SELECTIONS]:!0,[FR.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:n,interactions:l,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:u,listboxRef:h},selectionRelatedArgs:{app:c,model:d},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:dw},shouldShowMenuIcon:v.shouldShowMenuIcon}),ra.jsx(sI,{ref:h}),ra.jsx(sI,{ref:m})]})]})},mI=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=E(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=E(!1);return ar((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(hr)})(t)&&!o&&n(!0),setIsAdjustingWidth:i}},hI=({column:e,columnIndex:t,columnsLength:r})=>{const{styling:n,interactions:o,rootElement:i,keyboard:a,styling:{head:{activeBackground:s,background:l,hoverBackground:u}}}=Gw($w,(e=>e.baseProps)),{columns:c}=Gw($w,(e=>e.tableData)),d=Gw($w,(e=>e.columnWidths[t])),p=Gw($w,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=Gw($w,(e=>e.setFocusedCellCoord)),m=Gw($w,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),h=!!o.active&&!p,{open:g,setOpen:b,handleOpenMenu:v,setIsAdjustingWidth:y}=mI({isInteractionEnabled:h,columnsData:c}),x=e.isActivelySorted?If[e.sortDirection]:void 0,S=g?pr:void 0,E=g?"true":void 0,C=t===r-1,w=[0,e.pageColIdx],R={width:d-(C?8:9),zIndex:c.length-t},A=m&&0===t&&!a.enabled&&h?0:-1;return ra.jsxs(dI,{headerStyle:n.head,background:g?s:l,hoverBackground:u,interactions:o,style:R,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${fr}`,tabIndex:A,title:o.passive?e.label:void 0,onKeyDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,isInteractionEnabled:o,handleOpenMenu:i})=>{if(o){if(!yw(e))switch(e.key){case Rf.LEFT:case Rf.RIGHT:aw(e),pw({focusType:Af.REMOVE_TAB,cell:e.currentTarget}),fw({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n});break;case Rf.DOWN:aw(e),pw({focusType:Af.REMOVE_TAB,cell:lw(t)}),fw({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n});break;case Rf.C:aw(e),hw(e)&&Sr(e.currentTarget);break;case Rf.ENTER:case Rf.SPACE:i&&i(e)}}else aw(e)})({evt:e,rootElement:i,cellCoord:w,setFocusedCellCoord:f,isInteractionEnabled:h,handleOpenMenu:v}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(n(r),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):pw({focusType:Af.FOCUS,cell:sw(t,r)}))})({evt:e,rootElement:i,cellCoord:w,setFocusedCellCoord:f,keyboard:a,isInteractionEnabled:h}),onClick:v,"aria-sort":x,"aria-controls":S,"aria-expanded":E,"aria-haspopup":"true",children:[ra.jsx(fI,{column:e,isInteractionEnabled:h,open:g,setOpen:b,isPagination:!0}),ra.jsx(eI,{column:e,isLastColumn:C,setIsAdjustingWidth:y})]},e.id)},gI=()=>{var e;const{columns:t}=Gw($w,(e=>e.tableData)),{styling:r,viewService:n}=Gw($w,(e=>e.baseProps)),o=Gw($w,(e=>e.setHeadRowHeight)),i=Gw($w,(e=>e.columnWidths)),a=M(null);return C((()=>{a.current&&o(a.current.clientHeight)}),[r.head.fontSize,i,o]),null!==(e=n.viewState)&&void 0!==e&&e.skipHeader?null:ra.jsx(zh,{children:ra.jsx(Vh,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,r)=>ra.jsx(hI,{column:e,columnIndex:r,columnsLength:t.length},e.id)))})})};var bI=O(gI);const vI=e=>{var t,r;const{pageInfo:n,setPageInfo:o,direction:i,footerContainer:a,announce:s}=e,{page:l,rowsPerPage:u}=n,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=Gw($w,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styling:E,viewService:w,layout:R,rect:A}=Gw($w,(e=>e.baseProps)),I=Gw($w,(e=>e.focusedCellCoord)),D=Gw($w,(e=>e.setFocusedCellCoord)),L=Gw($w,(e=>e.setYScrollbarWidth)),P=Gw($w,(e=>e.showRightBorder)),T=Gw($w,(e=>e.selectionDispatch)),O=Gw($w,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),k=M(!1),q=M(null),N=M(null),{yScrollbarWidth:F}=IA(q),z=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length+1),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,j=Gi(R,w),$=j&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,B=j&&null!==(r=w.rowPartialHeight)&&void 0!==r?r:0,H=_((()=>{k.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),W=_((e=>{o({...n,page:e}),s({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[n,o,p,s]),G=_((e=>{o({...n,page:0,rowsPerPage:e}),s({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[s,n,o]);return((e,t,r)=>{C((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(".sn-table-head-menu");if(r.enabled&&!i&&!a&&!t.current&&n){var s;const e=n.querySelector(".sn-table-announcer-1"),t=n.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(s=r.blur)||void 0===s||s.call(r,!1)}})(e,t,r);return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(N,k,v),wA(q,i,w),(()=>{const{rootElement:e,keyboard:t}=Gw($w,(e=>e.baseProps)),r=Gw($w,(e=>e.focusedCellCoord));ar((()=>{const n=t.active?Af.FOCUS:Af.BLUR,o=t.active?sw(e,r):lw(e);pw({focusType:n,cell:o})}),[t.active,e])})(),C((()=>{const e=q.current;e&&(e.scrollLeft=$,e.scrollTop=B)}),[n,d,$,B]),CA((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:s})=>{pw({focusType:Af.REMOVE_TAB,cell:lw(t)});const l=[s.atTop?2:1,e[1]],u=n?l:Mf;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=r.current?Af.FOCUS:Af.ADD_TAB;r.current=!1;const d=sw(t,u);if(pw({focusType:c,cell:d}),n){var p;const e=null==d||null===(p=d.classList)||void 0===p?void 0:p.contains("selected");a({keys:[`${null==d?void 0:d.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}})({focusedCellCoord:I,rootElement:b,shouldRefocus:k,setFocusedCellCoord:D,isSelectionMode:O,keyboard:v,announce:s,totalsPosition:g})}),[m.length,d,c,l]),CA((()=>{L(F)}),[F]),CA((()=>{T({type:wf.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),ra.jsxs(xA,{ref:N,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:r,rowsPerPage:n,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:s})=>{if(gw(e)){aw(e);const a=Math.ceil(t/n)-1;e.key===Rf.RIGHT&&r<a?(i(),o(r+1)):e.key===Rf.LEFT&&r>0&&(i(),o(r-1))}else if(e.key===Rf.ESC&&a.enabled&&!s){var l;aw(e),null===(l=a.blur)||void 0===l||l.call(a,!0)}else bw(e.key)&&aw(e)})({evt:e,totalRowCount:d,page:l,rowsPerPage:u,handleChangePage:W,setShouldRefocus:H,keyboard:v,isSelectionMode:O})},"data-testid":"sn-table",children:[ra.jsx(MA,{}),ra.jsx(LA,{ref:q,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:ra.jsxs(PA,{styling:E,showRightBorder:P,stickyHeader:!0,"aria-label":z,children:[ra.jsx(bI,{}),ra.jsx(QA,{...e,setShouldRefocus:H,tableWrapperRef:N})]})}),ra.jsx(yA,{footerContainer:a,pageInfo:n,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:A,layout:R,handleChangePage:W,handleChangeRowsPerPage:G,isSelectionMode:O})]})};var yI=O(vI);function xI(){return xI=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},xI.apply(this,arguments)}function SI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EI(e,t){return EI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},EI(e,t)}function CI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,EI(e,t)}var wI=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function RI(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||wI(n)&&wI(o)))return!1;var n,o;return!0}function AI(e,t){var r;void 0===t&&(t=RI);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function II(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 DI="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function LI(e){cancelAnimationFrame(e.id)}function PI(e,t){var r=DI();var n={id:requestAnimationFrame((function o(){DI()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var MI=-1;function _I(e){if(void 0===e&&(e=!1),-1===MI||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),MI=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return MI}var TI=null;function OI(e){if(void 0===e&&(e=!1),null===TI||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?TI="positive-descending":(t.scrollLeft=1,TI=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),TI}return TI}var kI=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function qI(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,SI(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:SI(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=AI((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=AI((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&s,h&&l,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=AI((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(OI()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&LI(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=PI(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}CI(t,e),t.getDerivedStateFromProps=function(e,t){return NI(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=_I();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(OI()){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&&LI(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?kI:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),A=w[0],I=w[1],D=[];if(n>0&&g)for(var L=A;L<=I;L++)for(var P=E;P<=C;P++)D.push(R(t,{columnIndex:P,data:d,isScrolling:v?x:void 0,key:f({columnIndex:P,data:d,rowIndex:L}),rowIndex:L,style:this._getItemStyle(L,P)}));var M=a(this.props,this._instanceProps),_=s(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:xI({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:D,ref:l,style:{height:M,pointerEvents:x?"none":void 0,width:_}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var NI=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},FI=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},zI=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},jI=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},$I=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?BI(e,t,r,i,0,n):HI(e,t,r,Math.max(0,i),n)},BI=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=jI(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},HI=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&jI(e,t,n,r).offset<o;)n+=a,a*=2;return BI(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},WI=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=jI(e,t,r,i),u="column"===e?zI(t,i):FI(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},GI=qI({getColumnOffset:function(e,t,r){return jI("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return $I("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=jI("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=jI("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:FI,getEstimatedTotalWidth:zI,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return WI("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return WI("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return jI("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return $I("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=jI("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=jI("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}}),VI=function(e,t){return e};function UI(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,SI(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:SI(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=AI((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=AI((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=AI((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(OI()){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&&LI(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=PI(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}CI(t,e),t.getDerivedStateFromProps=function(e,t){return YI(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?_I():0:l.scrollHeight>l.clientHeight?_I():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(OI()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&LI(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?VI:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],A=[];if(u>0)for(var I=C;I<=w;I++)A.push(R(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var D=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:xI({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(s||l||"div",{children:A,ref:a,style:{height:x?"100%":D,pointerEvents:y?"none":void 0,width:x?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,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var YI=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},KI=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},XI=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=KI(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},JI=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&KI(e,r,t).offset<n;)r+=i,i*=2;return XI(e,t,Math.min(r,o-1),Math.floor(r/2),n)},ZI=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},QI=UI({getItemOffset:function(e,t,r){return KI(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:ZI,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=KI(e,t,o),p=ZI(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?XI(e,t,o,0,r):JI(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=KI(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=KI(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 eD(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 tD=["style"],rD=["style"];function nD(e,t){var r=e.style,n=II(e,tD),o=t.style,i=II(t,rD);return!eD(r,o)&&!eD(n,i)}const oD=({style:e})=>ra.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var iD=x.memo(oD,nD);const aD=()=>{},sD=e=>e.preventDefault();const lD=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const{rowsInPage:i,columns:a,bodyStyle:s,isHoverEnabled:l,maxImageHeight:u}=n,c=Gw($w,(e=>e.hoverIndex===t)),d=Gw($w,(e=>e.setHoverIndex)),{interactions:p}=Gw($w,(e=>e.baseProps)),f=Gw($w,(e=>e.showRightBorder)),m=null===(o=i[t])||void 0===o?void 0:o[e],{handleMouseDown:h,handleMouseOver:g,handleMouseUp:b,cellSelectionState:v}=function(e){const{interactions:t}=Gw($w,(e=>e.baseProps)),r=Gw($w,(e=>e.selectionDispatch)),n="object"==typeof e,o=Gw($w,(t=>n?Sw(e,t.selectionState):Cf.INACTIVE)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=HA(sD,e,r,aD);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(m);if("object"==typeof m){var y;const n=((e,t,r,n,o)=>{const{hoverColors:i,lastRowBottomBorder:a,...s}=o,l=t.qAttrExprInfoIDs.length?Fw(s,e.qAttrExps,t.qAttrExprInfoIDs):s;return n===Cf.SELECTED?{...l,...eg.SELECTED}:n===Cf.EXCLUDED?{...l,color:r?null==i?void 0:i.color:l.color,background:`${eg.EXCLUDED_BACKGROUND}, ${r?null==i?void 0:i.background:l.background}`}:r?{...l,...i}:l})(m,a[e],l&&c,v,s),o={rowindex:t,columnindex:e};return ra.jsx("div",{className:`sn-table-cell ${v} ${fr}`,style:{...r,...n,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:m.isLastRow?"0px":"1px",borderRightWidth:m.isLastColumn&&!f?"0px":"1px",borderStyle:"solid",justifyContent:m.representation.type===Li.Image&&"fitHeight"===m.representation.imageSize?null===(y=m.representation)||void 0===y||null===(y=y.resolvedImagePosition)||void 0===y?void 0:y.horizontal:m.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:h,onMouseUp:b,onMouseOver:g,onMouseEnter:l?()=>d(t):void 0,onMouseLeave:l?()=>d(-1):void 0,title:p.passive?m.representation.text:void 0,...o,children:ra.jsx(zA,{cell:m,style:n,maxImageHeight:u,virtualizedCell:!0})})}return ra.jsx(iD,{style:{...r,...s,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var uD=x.memo(lD,nD);const cD=e=>{const t=M(e);return t.current=e,t},dD=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,pD=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},fD=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},mD=(e,t,r,n,o,i,a)=>{e.forEach((e=>{e.qMatrix.forEach(((s,l)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:c,pageRowIdx:d}=((e,t,r,n,o,i,a,s,l)=>{var u;const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=null!==(u=e[p])&&void 0!==u?u:[];return t.forEach(((e,t)=>{var r,o;const a=t+n.qLeft,{colIdx:u,isDim:m,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y}=i[a],x=qi(e);f[a]=null!==(r=f[a])&&void 0!==r?r:{id:_o(),...e,align:Hi(e,g),rowIdx:d,colIdx:u,isSelectable:m&&!h,pageRowIdx:p,pageColIdx:a,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:a===c.qcx-1,isNumeric:x,representation:Oi(e,y,v,l)},s(null!==(o=f[a].representation.text)&&void 0!==o?o:"",p,a,x)})),{row:f,pageRowIdx:p}})(r,s,l,e.qArea,u,n,o,i,a);r[d]=c}))}))},hD=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,setCellSize:u,gridState:c})=>{const d=Gw($w,(e=>e.env)),p=M([]),f=cD(u),m=_(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return mD(t,o,n,l,e,f.current,d),p.current=n,n}),[i,o,l,e,f,d]),[h,g]=E((()=>m(null!=n?n:[])));ar((()=>{g(m(null!=n?n:[]))}),[n]);const b=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=cD(e),a=cD(t),s=S((()=>({enqueue:e=>{const t=dD(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(dD(e))}))}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return s})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>g((t=>m(e,t))))),v=_(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(fD(p.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[p,b]),y=_(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(pD(p.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[p,b,o]),x=r.name();return C((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-n,p=Math.min(100,u,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,c,x]),{rowsInPage:h,loadRows:y,loadColumns:v}},gD=({style:e,columnWidths:t,rowHeight:r,pageInfo:n,rowCount:o,gridRef:i,lineRef:a,columns:s,fontWeight:l,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,isStaticNbrOfLines:f,allColumnsIconVisibilityStatus:m})=>{const h=M({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:g,rect:b}=Gw($w,(e=>e.baseProps)),[v,y]=E(r||24),{measureText:x,estimateLineCount:S}=tr({...e,fontWeight:l},{maxNbrLinesOfText:p}),C=$A(e.fontSize),w=8e6/o-8-1,R=Math.max(0,Math.min(p,Math.round(w/C))),A=BA({maxNbrLines:R,isStaticNbrOfLines:f,lineHeight:C}),I=f?R*C:C,D=_(((e,r,n)=>{const o=s?(({width:e,columnIconsVisibilityStatus:t})=>{let r=0,n=0,o=0,i=0;if(t){const{shouldShowLockIcon:e,shouldShowSortIcon:r,shouldShowMenuIcon:a}=t;n=e?20:0,o=r?20:0,i=a?24:0}return r=e-25-n-o-i,Math.max(0,r)})({width:t[r],columnIconsVisibilityStatus:null==m?void 0:m[r]}):(e=>Math.max(0,e-24-1))(t[r]),i=Math.min(R,S({text:e.trim(),maxWidth:o,isNumeric:n}));return Math.max(1,i)*C+8+1}),[t,C,R,s,S,m]),L=_(((e,t,n,o=!1,i=!1)=>{const a=`${t}-${n}`;if(h.current.measuredCells.has(a))return;if(f)return h.current.measuredCells.set(a,[e,t,n,o]),void y(A);h.current.measuredCells.set(a,[e,t,n,o]);const l=r||24,d=((e,t,r)=>{var n;return(null==t||null===(n=t[e].representation)||void 0===n?void 0:n.type)===Li.Image&&r})(n,s,u)?l:D(e,n,o),p=h.current.heights[t],m=d-p;m>0?(h.current.totalHeight+=m,h.current.heights[t]=d):void 0===p&&(h.current.count+=1,h.current.totalHeight+=d,h.current.heights[t]=d),i||c||y(h.current.totalHeight/h.current.count)}),[D,c,f,A,s,r,u]),P=_((e=>{var t;return null!==(t=h.current.heights[e])&&void 0!==t?t:v}),[h,v]),T=_((()=>{h.current.lastScrollToRatio=0,h.current.resetAfterRowIndex=0,h.current.heights=[],h.current.totalHeight=0,h.current.count=0,h.current.measuredCells.clear()}),[h]),O=cD(L),k=_((()=>{if(f)return void T();const e=new Map(h.current.measuredCells);T(),e.forEach((([e,t,r,n])=>{O.current(e,t,r,n,!0)})),c||y(h.current.totalHeight/h.current.count)}),[T,c,O,f]);ar((()=>{T()}),[g,n]),ar((()=>{k()}),[x,b.width]);return null!=i&&i.current?i.current.resetAfterRowIndex(h.current.resetAfterRowIndex,!1):null!=a&&a.current&&a.current.resetAfterIndex(h.current.resetAfterRowIndex,!1),d.estimatedRowHeight=v,{setCellSize:L,getRowHeight:P,rowMeta:h,estimatedRowHeight:v,maxLineCount:R,resizeVisibleCells:e=>{if(!u||f)return;T();const{overscanRowStartIndex:t,overscanRowStopIndex:r}=u.current,n=Math.min(r,g.qHyperCube.qSize.qcy-1);for(let r=t;r<=n;r++){var o;const t=null!==(o=e[r])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&L(null!==(t=e.representation.text)&&void 0!==t?t:"",r,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:k,resetRowMeta:T,maxImageHeight:I}};var bD;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(bD||(bD={}));const vD={enabled:!1},yD=()=>{},xD={current:null};const SD=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=S((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},ED=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},CD={overflow:"hidden",willChange:"auto"};var wD=O(T(((e,t)=>{var r;const{rect:n,columns:o,innerForwardRef:i,pageInfo:a,bodyStyle:s,rowHeight:l,headerAndTotalsHeight:u,syncHeight:c}=e,{flags:d}=Gw($w,(e=>e.env)),{layout:p,model:f,theme:m,viewService:h}=Gw($w,(e=>e.baseProps)),g=Gw($w,(e=>e.columnWidths)),b=Gw($w,(e=>e.initialDataPages)),{maxNbrLines:v,isStaticNbrOfLines:y}=OA({viewService:h,layout:p,isImagesEnabled:d.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),x=M(null),E=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),w=!(null===(r=Ow(p))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{scrollHandler:R,verticalScrollDirection:A,horizontalScrollDirection:I}=(()=>{const e=M(0),t=M(0),r=M(bD.None),n=M(bD.None);return{scrollHandler:_((({scrollTop:o,scrollLeft:i})=>{o>t.current?r.current=bD.Down:o<t.current?r.current=bD.Up:r.current=bD.None,i>e.current?n.current=bD.Right:i<e.current?n.current=bD.Left:n.current=bD.None,t.current=o,e.current=i}),[t,e,r,n]),verticalScrollDirection:r,horizontalScrollDirection:n}})(),{rowCount:D,visibleRowCount:L,visibleColumnCount:P}=SD(p,a,n,g,l),{setCellSize:T,getRowHeight:O,rowMeta:q,estimatedRowHeight:F,maxLineCount:z,resizeVisibleCells:j,maxImageHeight:$}=gD({pageInfo:a,style:s,rowHeight:l,columnWidths:g,columns:o,gridRef:x,rowCount:D,gridState:E,isSnapshot:!!p.snapshotData,viewService:h,maxNbrLines:v,isStaticNbrOfLines:y}),{rowsInPage:B,loadRows:H,loadColumns:W}=hD({layout:p,model:f,theme:m,initialDataPages:b,pageInfo:a,rowCount:D,visibleRowCount:L,visibleColumnCount:P,columns:o,setCellSize:T,gridState:E}),G=(({layout:e,loadRows:t,loadColumns:r,verticalScrollDirection:n,horizontalScrollDirection:o,rowCount:i,pageInfo:a,gridState:s,viewService:l})=>_((({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p,visibleColumnStartIndex:f,visibleColumnStopIndex:m,visibleRowStartIndex:h,visibleRowStopIndex:g})=>{if(s.current.overscanColumnStartIndex=u,s.current.overscanColumnStopIndex=c,s.current.overscanRowStartIndex=d,s.current.overscanRowStopIndex=p,d>i)return;const b=u,v=d+a.page*a.rowsPerPage,y=c-u+1,x=p-d+1;if(l.visibleLeft=f,l.visibleWidth=m-f+1,l.visibleTop=h+a.page*a.rowsPerPage,l.visibleHeight=g-h+1,l.page=a.page,l.rowsPerPage=a.rowsPerPage,n.current===bD.Down){const e=x+25;t(b,v,y,d+e>i?i-d:e)}else if(n.current===bD.Up){const e=x+25,r=a.page*a.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(o.current===bD.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(o.current===bD.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[s,i,a.page,a.rowsPerPage,l,n,o,t,e.qHyperCube.qSize.qcx,r]))({layout:p,loadRows:H,loadColumns:W,verticalScrollDirection:A,horizontalScrollDirection:I,rowCount:D,pageInfo:a,gridState:E,viewService:h}),V=S((()=>({rowsInPage:B,columns:o,bodyStyle:s,isHoverEnabled:w,maxLineCount:z,maxImageHeight:$})),[B,o,s,w,z,$]),U=((e,t,r,n)=>{let{height:o}=e;return o-=t,r*n<o&&(o=Math.min(r*n,o)),o})(n,u,D,F);return k((()=>{var e,t;c(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[D,c,i]),k((()=>{var e,t,r;(c(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===q.current.lastScrollToRatio)&&(null===(r=x.current)||void 0===r||r.scrollToItem({rowIndex:D-1,align:"start"}))})),function(e){const{selectionsAPI:t}=Gw($w,(e=>e.baseProps)),r=Gw($w,(e=>e.selectionDispatch));C((()=>{r({type:wf.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[r,e]),jA({selectionsAPI:t,selectionDispatch:r,setShouldRefocus:yD,keyboard:vD,tableWrapperRef:xD})}(B),ar((()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[p,a,m.name(),n.width,g]),N(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=i.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:U)-U,a=Math.round(o*e);var s,l,u;(q.current.lastScrollToRatio=e,1===q.current.lastScrollToRatio)?(null===(s=x.current)||void 0===s||s.scrollToItem({rowIndex:D-1,align:"start"}),null===(l=x.current)||void 0===l||l.scrollTo({scrollLeft:t})):null===(u=x.current)||void 0===u||u.scrollTo({scrollTop:a,scrollLeft:t})},resizeCells:()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),j(B)}})),[i,U,q,D,j,B]),ra.jsx(GI,{"data-key":"body",ref:x,innerRef:i,style:CD,columnCount:p.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:U,rowCount:D,rowHeight:O,estimatedRowHeight:F,width:n.width,itemData:V,onItemsRendered:G,onScroll:R,itemKey:ED,className:"sn-table-body",children:uD})})));const RD=({width:e,height:t,children:r})=>ra.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),AD=yf("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:r}}))),ID=({index:e,style:t,data:r})=>{const{columns:n,headerStyle:{...o},columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=r,{interactions:s,styling:{head:{activeBackground:l,background:u,hoverBackground:c}}}=Gw($w,(e=>e.baseProps)),d=Gw($w,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),p=Gw($w,(e=>e.showRightBorder)),f=!!s.active&&!d,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=mI({isInteractionEnabled:f,columnsData:n}),v=n[e],y=n.length-1===e,x="right"===v.headTextAlign?"row-reverse":"row";return ra.jsxs(AD,{className:`sn-table-cell ${fr}`,title:s.passive?v.label:void 0,onClick:g,applicableStyle:o,style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:y&&!p?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:x,userSelect:"none",fontWeight:ng},interactions:s,hoverBackground:c,background:m?l:u,children:[ra.jsx(fI,{column:v,isInteractionEnabled:f,open:m,setOpen:h,allColumnsIconVisibilityStatusRef:a}),ra.jsx(eI,{column:v,isLastColumn:y,onColumnResize:i,setIsAdjustingWidth:b})]})},DD=(e,t,r,n,o)=>{k((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,r,e,n,o])},LD={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},PD=e=>{const{rect:t,forwardRef:r,columns:n,pageInfo:o,headerStyle:i,rowHeight:a,columResizeHandler:s,allColumnsIconVisibilityStatusRef:l}=e,{layout:u,theme:c}=Gw($w,(e=>e.baseProps)),d=Gw($w,(e=>e.columnWidths));return DD(r,u,o,d,c.name()),ra.jsx(QI,{ref:r,layout:"horizontal",style:LD,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:a,width:t.width,itemData:{columns:n,headerStyle:i,columResizeHandler:s,allColumnsIconVisibilityStatusRef:l},children:ID})};var MD=O(PD);const _D=x.forwardRef(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a}=Gw($w,(e=>e.baseProps));return ra.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:n,height:o},onScroll:i,children:r})})),TD=({children:e,rect:t})=>ra.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),OD=({index:e,style:t,data:r})=>{const{layout:n,interactions:o}=Gw($w,(e=>e.baseProps)),i=Gw($w,(e=>e.showRightBorder)),{totalsStyle:{hoverColors:a,...s},columns:l,totals:u}=r,c=l[e].totalInfo,{totalsTextAlign:d,isTotalNumeric:p}=l[e],f=n.qHyperCube.qSize.qcx-1===e;return ra.jsx("div",{className:`sn-table-cell ${fr}`,title:o.passive?c:void 0,style:{...t,...s,display:"flex",alignItems:u.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:f&&!i?"0px":"1px",borderTopWidth:u.atBottom?"1px":"0px",borderBottomWidth:u.atTop?"1px":"0px",padding:"4px 12px",justifyContent:d,boxSizing:"border-box",cursor:"default",fontWeight:ng},children:ra.jsx(kA,{wordBreak:!p,lines:3,virtualizedCell:!0,children:c})})},kD=e=>{const{rect:t,forwardRef:r,pageInfo:n,totals:o,rowHeight:i,columns:a}=e,{layout:s,styling:l,theme:u}=Gw($w,(e=>e.baseProps)),c=Gw($w,(e=>e.columnWidths));return DD(r,s,n,c,u.name()),ra.jsx(QI,{ref:r,layout:"horizontal",style:LD,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{totalsStyle:l.totals,columns:a,totals:o},children:OD})};var qD=O(kD);const ND=({columns:e,columnWidths:t,pageInfo:r,headerRef:n,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:s,allColumnsIconVisibilityStatus:l})=>{const{styling:u}=Gw($w,(e=>e.baseProps)),c=gD({style:u.head,columnWidths:t,lineRef:n,rowCount:1,pageInfo:r,fontWeight:ng,columns:e,isSnapshot:a,viewService:s,allColumnsIconVisibilityStatus:l}),d=gD({style:u.totals,columnWidths:t,lineRef:o,rowCount:1,pageInfo:r,fontWeight:ng,isSnapshot:a,viewService:s});e.forEach(((e,t)=>{c.setCellSize(e.label,0,t),d.setCellSize(e.totalInfo,0,t,ki(e.totalInfo))}));const p=c.getRowHeight(0)+8,f=d.getRowHeight(0);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:a?s.estimatedRowHeight:(({fontSize:e=og.fontSize})=>Math.max(24,Lw(e)))(u.body),headerAndTotalsHeight:i.atTop||i.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},FD=e=>{var t;const{pageInfo:r}=e,{totalsPosition:n,columns:o,paginationNeeded:i}=Gw($w,(e=>e.tableData)),{layout:a,theme:s,styling:l,rect:u,viewService:c}=Gw($w,(e=>e.baseProps)),d=Gw($w,(e=>e.columnWidths)),p=Gw($w,(e=>e.setYScrollbarWidth)),f=M(null),m=M(null),h=M(null),g=M(null),b=M(),{xScrollbarWidth:v,yScrollbarWidth:y}=IA(f),x=S((()=>{var e;return{...l.body,background:null!==(e=s.background.color)&&void 0!==e?e:"transparent"}}),[s.background.color,l]),C=M([]),{headerRowHeight:w,totalsRowHeight:R,bodyRowHeight:A,headerAndTotalsHeight:I,resizeAllHeaderCells:D,resizeAllTotalCells:L}=ND({columns:o,columnWidths:d,pageInfo:r,totalsPosition:n,headerRef:m,totalsRef:h,isSnapshot:!!a.snapshotData,viewService:c,allColumnsIconVisibilityStatus:C.current}),P=S((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(u,i)),[u,i]),T=S((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(P,v,y)),[P,v,y]),{rowCount:O}=SD(a,r,T,d,A),[q,N]=E(O*A+I),F=d.reduce(((e,t)=>e+t),0),z=((e,t,r,n)=>_((o=>{var i,a,s;const{scrollHeight:l,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(l-u)));n.scrollTopRatio=p,n.scrollLeft=d,null===(i=r.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(s=t.current)||void 0===s||s.scrollTo(d)}),[n,r,e,t]))(m,h,g,c),j=_(((e,t=!1)=>{const r=e+I;(q<T.height&&r>T.height||t)&&N(r)}),[q,I,T.height]),$=_((()=>{var e;f.current&&(f.current.scrollTop=0),null===(e=g.current)||void 0===e||e.resizeCells(),D(),L()}),[f,D,L]);k((()=>{f.current&&(f.current.scrollLeft=0,f.current.scrollTop=0)}),[o.length]);const B=s.name();k((()=>{f.current&&(f.current.scrollTop=0)}),[r,O,B]),CA((()=>{p(y)}),[y]);const H=ra.jsx(qD,{rect:T,pageInfo:r,columns:o,forwardRef:h,totals:n,rowHeight:R});return ra.jsx(_D,{ref:f,width:P.width,height:P.height,onScroll:z,children:ra.jsx(RD,{width:F,height:q,children:ra.jsxs(TD,{rect:T,children:[null!==(t=c.viewState)&&void 0!==t&&t.skipHeader?null:ra.jsx(MD,{headerStyle:l.head,rect:T,pageInfo:r,columns:o,forwardRef:m,rowHeight:w,columResizeHandler:$,allColumnsIconVisibilityStatusRef:C}),n.atTop?H:null,ra.jsx(wD,{ref:g,innerForwardRef:b,bodyStyle:x,rect:T,pageInfo:r,columns:o,rowHeight:A,headerAndTotalsHeight:I,syncHeight:j}),n.atBottom?H:null]})})})};var zD=O(FD);const jD=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=Gw($w,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=Gw($w,(e=>e.tableData)),c=Gw($w,(e=>e.pageInfo)),d=Gw($w,(e=>e.setPage));return ra.jsxs(xA,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[ra.jsx(zD,{pageInfo:c}),ra.jsx(yA,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var $D=O(jD);var BD,HD={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。有关键盘导航的完整范围,请参阅文档。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。如需完整的鍵盤導覽,請參閱文件。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(BD||(BD={}));const WD=(e,r)=>t((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(HD).forEach((t=>{e.add(HD[t])}))}}(r),()=>((e,t,r)=>{let n=r||null;return({keys:r,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=r.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),s=e.querySelector(".sn-table-announcer-1"),l=e.querySelector(".sn-table-announcer-2");let u;n===BD.FIRST?(u=l,n=BD.SECOND):(u=s,n=BD.FIRST),u.innerHTML=u.innerHTML.endsWith(" ")?a:`${a} `,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(e,r))),[e,r.language()]),GD={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},VD=({app:e,model:t,rootElement:r,layout:s,interactions:l,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,embed:h,reactRoot:g,applyColumnWidths:b,isFontLoaded:v,viewService:y,env:x})=>{const{direction:S,footerContainer:E}=n(),C=Gi(s,y),w=Vi(s,y),R=WD(r,u),A=C?{page:y.page||GD.page,rowsPerPage:y.rowsPerPage||GD.rowsPerPage,rowsPerPageOptions:GD.rowsPerPageOptions}:GD,[I,D]=o(A),[L]=i((async()=>w?async function(e,t,r,n,o,i){var a,s;const{page:l,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),m=null!==(a=o.visibleTop)&&void 0!==a?a:l*u,h=null!==(s=o.visibleHeight)&&void 0!==s?s:Math.min(u,p-m);if(l>0&&m>=p)return n({...r,page:0}),null;if(h*d>Ni)return n({...r,rowsPerPage:Fi(d,c),page:0}),null;const g=p>10,b=zi(t,o),v=Wi(t),y=!!t.snapshotData,x=y?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:m,qLeft:0,qHeight:h,qWidth:d}]);o&&!y&&(o.qTop=m,o.qHeight=h,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=(null==x?void 0:x[0].qMatrix.map(((e,t)=>{const r=[];return v.forEach(((n,o)=>{r[o]={id:_o(),...e[o],align:Hi(e[o],n.bodyTextAlign),rowIdx:t+m,colIdx:n.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:n.selectionColIdx,isSelectable:n.isDim&&!n.isLocked,isLastRow:t===h-1,isNumeric:qi(e[o]),representation:Oi(e[o],n.representation,n.qAttrExprInfoIndex,i)}})),r})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(t,s,I,D,y,x):null),[s,I,t,l,w]);a((()=>{!!(w&&g&&t&&(s.snapshotData||e)&&s&&L&&p&&d&&c&&v&&h)&&function(e,t){const{app:r,model:n,direction:o,selectionsAPI:i,layout:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,env:v,...y}=e,x=Vw(o);null==t||t.render(ra.jsx(_l,{stylisPlugins:"rtl"===o?[Pf]:void 0,children:ra.jsx(Sf,{theme:x,children:ra.jsx(Ww,{app:r,model:n,tableData:h,selectionsAPI:i,layout:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,env:v,children:ra.jsx(yI,{...y,direction:o})})})}))}({app:e,model:t,rootElement:r,layout:s,tableData:L,direction:S,pageInfo:I,setPageInfo:D,interactions:l,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,footerContainer:E,announce:R,embed:h,applyColumnWidths:b,viewService:y,env:x},g)}),[e,t,g,L,l,S,d.name(),f.active,R,p,b,w,s,c,h,r,I,D,u,m,E,v,x])};const UD=({model:e,layout:t,shouldRender:r,page:n})=>{const[o]=i((async()=>{if(r&&e)return(async(e,t,r)=>{let{qDataPages:n}=t.qHyperCube;if(0!==r||void 0===n||0===n.length){const o=r*Math.min(ig,t.qHyperCube.qSize.qcy);n=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:n,derivedFrom:{layout:t,page:r}}})(e,t,n)}),[e,t,n]),a=(null==o?void 0:o.derivedFrom.layout)!==t||(null==o?void 0:o.derivedFrom.page)!==n;return{initialDataPages:null==o?void 0:o.initialDataPages,isLoading:a}},YD=({app:e,layout:r,model:n,rect:i,theme:s,keyboard:l,translator:u,interactions:c,selectionsAPI:d,changeSortOrder:p,rootElement:f,embed:m,reactRoot:h,applyColumnWidths:g,isFontLoaded:b,viewService:v,env:y})=>{const S=!Vi(r,v),E=t((()=>function(e,t,r){const n=zi(e,r),o=Wi(e),i=e.qHyperCube.qSize.qcy,a=Math.min(ig,i),s=i>ig&&!!t.active;return{totalsPosition:n,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:s}}(r,c,v)),[r,c,v]),{pageInfo:C,setPage:w}=((e,r)=>{const[n,i]=o(0),a=Math.min(ig,e.qHyperCube.qSize.qcy),s=t((()=>({page:n,rowsPerPage:a,rowsPerPageOptions:[]})),[a,n]);if(r){const t=Math.floor(e.qHyperCube.qSize.qcy/ig);t<n&&i(t)}return{pageInfo:s,setPage:i}})(r,S),{initialDataPages:R,isLoading:A}=UD({model:n,layout:r,page:C.page,shouldRender:S});a((()=>{var e;S&&l.active&&(null===(e=l.blur)||void 0===e||e.call(l,!1))}),[l.active]),a((()=>{S&&n&&p&&R&&!A&&b&&function(e,t){const{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:s,theme:l,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:S}=e,E=Vw("ltr");t.render(ra.jsx(x.StrictMode,{children:ra.jsx(Sf,{theme:E,children:ra.jsx(Ww,{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:s,theme:l,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:S,children:ra.jsx($D,{})})})}))}({app:e,layout:r,model:n,rect:i,theme:s,keyboard:l,translator:u,interactions:c,selectionsAPI:d,rootElement:f,embed:m,changeSortOrder:p,tableData:E,applyColumnWidths:g,setPage:w,pageInfo:C,initialDataPages:R,viewService:v,env:y},h)}),[e,r,n,i,s.name(),l.active,u,c,d,p,S,f,m,h,E,g,w,C,A,R,b,y])},KD={version:JSON.stringify("3.5.1"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function XD(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=(null==r?void 0:r.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=(null==a?void 0:a.getBoundingClientRect())||{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const JD=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},ZD=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const QD=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||GD.rowsPerPage,s=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},eL=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=zi(e,t);if(Vi(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=XD(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:QD(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=JD(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(ZD(m,h,g)?d:d+1)+c;let v=p+c;const y=JD(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(ZD(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:QD(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},tL=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),rL=e=>e.getStyle("object","straightTableV2","backgroundColor");function nL(o){return{qae:{properties:{initial:KD},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:Un,exportProperties:Gn,exploration:Yn},ext:Co(o),component(){var y;const x=u(),S=(e=>{const r=t((()=>or(e)),[e]);return a((()=>()=>r.unmount()),[r]),r})(x),E=c(),C=d(),w=p(),R=f(),A=m(),I=h(),D=g(),{freeResize:L}=n(),P=b(),M=null!=E&&null!==(y=E.snapshotData)&&void 0!==y&&y.content&&!L?{...P,...E.snapshotData.content.size}:P,_=(e=>{const{viewState:r}=n();return t((()=>((e,t)=>{var r,n,o,i,a,s,l,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(s=t.content)||void 0===s?void 0:s.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(l=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==l?l:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(r,e.snapshotData)),[r,e.snapshotData,e.usePagination])})(E),T=v(),O=((r,n,o)=>{const i=e();return t((()=>({...i,background:je(i,r,n,o)})),[i.name(),r,n,o])})(x,tL,rL),k=((e,r)=>t((()=>((e,t)=>{if(t)return async(r,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,d=[],p=n&&n!==s||!n&&l;l||(c.splice(c.indexOf(i),1),c.unshift(i),d.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${c.join(",")}]`})),p&&d.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(d,!0)}})(e.qDimensionInfo.length,r)),[e.qDimensionInfo.length,r]))(E.qHyperCube,w),q=wo(E.qHyperCube,w),N=((e,t)=>{const{fontSize:r,fontFamily:n}=qw(t,e,!1),{fontSize:o,fontFamily:a}=Nw(t,e),[s,l]=i((async()=>(await document.fonts.load(`600 ${r} ${n}`),await document.fonts.load(`${o} ${a}`),!0)),[r,n,o,a]);return l?(console.warn("Failed to load font:",l),!0):!!s})(O,E);null==r||r(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${fr}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{Sr(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{s((async i=>{if(!i.snapshotData||!r||i.snapshotData.content)return i;if(r.getHyperCubeData){i.qHyperCube||(i.qHyperCube={});const{rowPartialHeight:a,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=eL(e,t,n);i.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:e.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),i.snapshotData.content={rowPartialHeight:a,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return i})),l((()=>({getViewState:()=>eL(e,t,n)})),[e,t,n])})({layout:E,viewService:_,model:w,rootElement:x,contentRect:P}),YD({app:C,layout:E,model:w,rect:M,theme:O,keyboard:D,translator:A,interactions:R,selectionsAPI:I,changeSortOrder:k,rootElement:x,embed:T,reactRoot:S,applyColumnWidths:q,isFontLoaded:N,viewService:_,env:o}),VD({app:C,model:w,rootElement:x,layout:E,interactions:R,translator:A,selectionsAPI:I,theme:O,changeSortOrder:k,keyboard:D,rect:M,embed:T,reactRoot:S,applyColumnWidths:q,isFontLoaded:N,viewService:_,env:o})}}}export{nL as default};
|