@nebula.js/sn-pivot-table 3.15.0 → 3.15.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-pivot-table.js +17 -17
- package/dist/sn-pivot-table.systemjs.js +15 -15
- package/package.json +4 -4
- package/sn-pivot-table-ext/dist/sn-pivot-table.js +17 -17
- package/sn-pivot-table-ext/sn-pivot-table.qext +1 -1
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pivot-table v3.15.
|
|
2
|
+
* @nebula.js/sn-pivot-table v3.15.1
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],(function(e){"use strict";var t,r,n,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,I,A,M,D,P,_,k,T,O,q,N,F,j,z,$;return{setters:[function(e){t=e.useState,r=e.useEffect,n=e.useTheme,o=e.useMemo,i=e.usePromise,a=e.onContextMenu,l=e.useOptions,s=e.onTakeSnapshot,u=e.useImperativeHandle,c=e.useTranslator,d=e.useElement,p=e.useStaleLayout,f=e.useModel,h=e.useApp,m=e.useEmbed,g=e.useKeyboard,b=e.useInteractionState,v=e.useSelections,y=e.useRect},function(e){x=e,S=e.default,E=e.useContext,C=e.createElement,w=e.Children,R=e.isValidElement,L=e.cloneElement,I=e.useMemo,A=e.useState,M=e.useRef,D=e.forwardRef,P=e.useCallback,_=e.useEffect,k=e.createContext,T=e.memo,O=e.useLayoutEffect,q=e.PureComponent,N=e.useReducer},function(e){F=e.default,j=e},function(e){z=e.default},function(e){$=e.default}],execute:function(){function G(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function B(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}e("default",(function(e){return{qae:{properties:{initial:WP()},data:Dt(e)},ext:Mo(e),component(){GP(e)}}}));var W={exports:{}};self,W.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Pe});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},I=Array.isArray;function A(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function M(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=M(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(e,t){var r=!0;if(A(e)&&A(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){_(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}L.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);_(i,a)||D(t,o)||(M(a)?n.push({op:"add",path:l,value:i}):A(i)&&A(a)?n=n.concat(L.generate(a,i,l)):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]&&M(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(!M(t[0])&&M(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(L.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!D(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},L.apply=function(e,t){t.forEach((function(t){var r,n,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(A(a)&&A(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!D(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=P(e,t.from);I(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const k=L,T=function(e,r,n){if(!e)return Promise.resolve();var o=k.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function 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 j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(G(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(G(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(G(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(G(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(G(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(G(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var H="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===H)return r[n]}function Y(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===H)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var U={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,U),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))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,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!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 le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="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,Le)&&r(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Ae=Ie;function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var De={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:De,apply:ke,applyModifiers:Te,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:Ae.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return De[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ye({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var _e={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;_e[r.id]=_e[r.id]||{isFirstTime:!0};var u=_e[r.id].isFirstTime;if(_e[r.id].isFirstTime=!1,n&&"object"===Me(n))return Te({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[r.id].lastReloadTime;if(_e[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ye({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Ge(n);var o=Qe(n);return Ue({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return h&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(r++,"object"!==Me(De[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=De[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}),Te({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Me(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return je(n).forEach((function(e){return Oe(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Te(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Ge(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ye({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ae.isValid(r)||Ae.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(l++,"object"!==Me(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");De[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:De[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[n.type].updateModifier&&De[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:De[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):Oe(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&!De[e.type]}))}(e)?Ae.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(De[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||De[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Ge(e){je(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:!Ae.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!De[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 He(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!He(t)&&Ye({modifiers:ze(t),properties:r,layout:n})}function Ye(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ue(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):T(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"===Me(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ye({modifiers:n,properties:e})){var i=He(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={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_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:()=>Ge});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function 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 A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const M=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},D=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},P=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},_=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},k=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return 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=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},G=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return A(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const H={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:s}),m({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?_():w,L=s.defaultMeasure,I=void 0===L?k():L;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),T({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}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),D("qMaxStackedCells",b,v),D("qNoOfLeftDims",b,v),P("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",b,v,"S"),P("qReductionMode",b,v,"N"),P("qSortbyYValue",b,v),P("qIndentMode",b,v),P("qShowTotalsAbove",b,v),M(g,t,n),m.qProperty=g;var A=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:A}),p&&W(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&W(m.qProperty,"dynamicScript"),m}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function U(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(Y(a,t,n,o),U(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||l,key:r||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}n||(i.auto=!1,i.mode=a)}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=H.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=H.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",Ie="conditionalColoring",Ae="measures",Me="qDef.conditionalColoring";const De={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ie,arrayName:Ae,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:Me,arrayName:Ae,quarantineName:Ie})}};var Pe="qHyperCubeDef.qMeasures",_e="measures",ke="qHyperCubeDef.qDimensions",Te="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:_e,itemPath:je}),we({properties:e,arrayPath:ke,quarantineName:ze,arrayName:Te,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:_e,itemPath:je}),Re({properties:e,arrayPath:ke,quarantineName:ze,arrayName:Te,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},Ge={hypercube:H,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:$e}})(),n.default})();var H=G(W.exports);const V="qHyperCubeDef.qMeasures",Y="measures",U="qHyperCubeDef.qDimensions",K="dimensions",X="qDef.representation",J="tableRepresentation",Z="qDef.conditionalColoring",Q="conditionalColoring",ee="qMiniChartDef",te="miniChartDef",re=e=>{H.unquarantineArrayProp({properties:e,arrayPath:U,itemPath:X,arrayName:K,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:Y,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:Y,quarantineName:Q}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:Y,quarantineName:te})},ne=e=>{H.quarantineArrayProp({properties:e,arrayPath:U,itemPath:X,arrayName:K,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:Y,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:Y,quarantineName:Q}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:Y,quarantineName:te})};function oe(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&oe(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function ae(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var se={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},ue="qcm-color";function ce(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:ue,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},h=0,m=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===ue){var v=r[0];h=v.r,m=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))h=parseInt(y[1],10),m=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))h=parseInt(y[1],10),m=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,h=parseInt(y[2],10),m=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))h=parseInt(y[1],16),m=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))h=parseInt(y[1]+y[1],16),m=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,h=S[0]+p,m=S[1]+p,g=S[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,h=E[0]+p,m=E[1]+p,g=E[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,h=C[0]+p,m=C[1]+p,g=C[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g),b=1}else if(se[x.toLowerCase()]){a=x.toLowerCase();var w=se[a];h=w.r,m=w.g,g=w.b,b="number"==typeof se[a].a?se[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,h=(16711680&r[0])>>16,m=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(h=(16711680&r[0])>>16,m=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(h=r[0],m=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+h+m+g+b)&&(f.invalid=!0),f.r=Math.floor(h),f.g=Math.floor(m),f.b=Math.floor(g),f.a=b,f.l=l,f}function de(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function pe(e){if(oe(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?ie(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function fe(e,t){return oe(e)?"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(", "),")"):fe(ce(e),t)}function he(e){return oe(e)?1===e.a?pe(e):fe(e):he(ce(e))}var me=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ge(){var e=ce.apply(void 0,arguments);return e.invalid||function(e){return.2126*me(e.r)+.7152*me(e.g)+.0722*me(e.b)}(e)<.4}var be,ve,ye=1/.7;function xe(){var e=ce.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]);return l+=e,l=Math.max(0,Math.min(l,100)),"hsla(".concat(o,", ").concat(i,", ").concat(l,", ").concat(a,")")},o=function(e){return xe(Math.min(t.r*e,255),Math.min(t.g*e,255),Math.min(t.b*e,255),t.a)};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:ce(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return ge(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=pe(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=fe(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=he(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,r,n;if(oe(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?ie(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=de(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=de(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getShiftedColor:function(e){var r=void 0===e||Number.isNaN(+e)?1:e,o=.299*t.r+.587*t.g+.114*t.b,i=t.g<126?1:1+t.g/512;return xe(n(20*(o*i<220?.8+1/(o+1)*4:-(.8+o/255*1))*r))},getBrightenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return o(Math.pow(ye,e))},getDarkenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return o(Math.pow(.7,e))}}}var Se=function(){if(ve)return be;ve=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return be=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(h&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},be}();function Ee(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ce(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function we(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Se);var Re=1/.7,Le="\\s*([+-]?\\d+)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Me=/^#([0-9a-f]{3,8})$/,De=new RegExp(`^rgb\\(${Le},${Le},${Le}\\)$`),Pe=new RegExp(`^rgb\\(${Ae},${Ae},${Ae}\\)$`),_e=new RegExp(`^rgba\\(${Le},${Le},${Le},${Ie}\\)$`),ke=new RegExp(`^rgba\\(${Ae},${Ae},${Ae},${Ie}\\)$`),Te=new RegExp(`^hsl\\(${Ie},${Ae},${Ae}\\)$`),Oe=new RegExp(`^hsla\\(${Ie},${Ae},${Ae},${Ie}\\)$`),qe={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 Ne(){return this.rgb().formatHex()}function Fe(){return this.rgb().formatRgb()}function je(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Me.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?ze(t):3===r?new We(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?$e(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?$e(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=De.exec(e))?new We(t[1],t[2],t[3],1):(t=Pe.exec(e))?new We(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_e.exec(e))?$e(t[1],t[2],t[3],t[4]):(t=ke.exec(e))?$e(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Te.exec(e))?Xe(t[1],t[2]/100,t[3]/100,1):(t=Oe.exec(e))?Xe(t[1],t[2]/100,t[3]/100,t[4]):qe.hasOwnProperty(e)?ze(qe[e]):"transparent"===e?new We(NaN,NaN,NaN,0):null}function ze(e){return new We(e>>16&255,e>>8&255,255&e,1)}function $e(e,t,r,n){return n<=0&&(e=t=r=NaN),new We(e,t,r,n)}function Ge(e){return e instanceof we||(e=je(e)),e?new We((e=e.rgb()).r,e.g,e.b,e.opacity):new We}function Be(e,t,r,n){return 1===arguments.length?Ge(e):new We(e,t,r,null==n?1:n)}function We(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function He(){return`#${Ke(this.r)}${Ke(this.g)}${Ke(this.b)}`}function Ve(){const e=Ye(this.opacity);return`${1===e?"rgb(":"rgba("}${Ue(this.r)}, ${Ue(this.g)}, ${Ue(this.b)}${1===e?")":`, ${e})`}`}function Ye(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ue(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ke(e){return((e=Ue(e))<16?"0":"")+e.toString(16)}function Xe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ze(e,t,r,n)}function Je(e){if(e instanceof Ze)return new Ze(e.h,e.s,e.l,e.opacity);if(e instanceof we||(e=je(e)),!e)return new Ze;if(e instanceof Ze)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Ze(a,l,s,e.opacity)}function Ze(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Qe(e){return(e=(e||0)%360)<0?e+360:e}function et(e){return Math.max(0,Math.min(1,e||0))}function tt(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ee(we,je,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ne,formatHex:Ne,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Je(this).formatHsl()},formatRgb:Fe,toString:Fe}),Ee(We,Be,Ce(we,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new We(Ue(this.r),Ue(this.g),Ue(this.b),Ye(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:He,formatHex:He,formatHex8:function(){return`#${Ke(this.r)}${Ke(this.g)}${Ke(this.b)}${Ke(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ve,toString:Ve})),Ee(Ze,(function(e,t,r,n){return 1===arguments.length?Je(e):new Ze(e,t,r,null==n?1:n)}),Ce(we,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new Ze(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ze(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new We(tt(e>=240?e-240:e+120,o,n),tt(e,o,n),tt(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Ze(Qe(this.h),et(this.s),et(this.l),Ye(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=Ye(this.opacity);return`${1===e?"hsl(":"hsla("}${Qe(this.h)}, ${100*et(this.s)}%, ${100*et(this.l)}%${1===e?")":`, ${e})`}`}}));const rt=Math.PI/180,nt=180/Math.PI,ot=4/29,it=6/29,at=3*it*it;function lt(e){if(e instanceof st)return new st(e.l,e.a,e.b,e.opacity);if(e instanceof ft)return ht(e);e instanceof We||(e=Ge(e));var t,r,n=pt(e.r),o=pt(e.g),i=pt(e.b),a=ut((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=ut((.4360747*n+.3850649*o+.1430804*i)/.96422),r=ut((.0139322*n+.0971045*o+.7141733*i)/.82521)),new st(116*a-16,500*(t-a),200*(a-r),e.opacity)}function st(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function ut(e){return e>.008856451679035631?Math.pow(e,1/3):e/at+ot}function ct(e){return e>it?e*e*e:at*(e-ot)}function dt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function pt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ft(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ht(e){if(isNaN(e.h))return new st(e.l,0,0,e.opacity);var t=e.h*rt;return new st(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ee(st,(function(e,t,r,n){return 1===arguments.length?lt(e):new st(e,t,r,null==n?1:n)}),Ce(we,{brighter(e){return new st(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new st(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 We(dt(3.1338561*(t=.96422*ct(t))-1.6168667*(e=1*ct(e))-.4906146*(r=.82521*ct(r))),dt(-.9787684*t+1.9161415*e+.033454*r),dt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ee(ft,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof ft)return new ft(e.h,e.c,e.l,e.opacity);if(e instanceof st||(e=lt(e)),0===e.a&&0===e.b)return new ft(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*nt;return new ft(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ft(e,t,r,null==n?1:n)}),Ce(we,{brighter(e){return new ft(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ft(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ht(this).rgb()}}));var mt=e=>()=>e;function gt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):mt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?gt: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):mt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Be(e)).r,(t=Be(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=gt(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 bt="center",vt="bottom";[{key:"NoDataExist",alignment:bt,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:bt,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:bt,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:bt},{key:"DataRangeIncludingZero",alignment:vt},{key:"LimitedData",alignment:vt},{key:"NegativeOrZeroValues",alignment:vt}].reduce((function(e,t){return e[t.key]=t,e}),{});var yt,xt=["__proto__","constructor"];function St(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!xt.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function Et(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}function Ct(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 wt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Lt)):void 0===t&&(t=Rt);for(var r,n,o,i,a,l=new Mt(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Mt(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(At)}function Rt(e){return e.children}function Lt(e){return Array.isArray(e)?e[1]:null}function It(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function At(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Mt(e){this.data=e,this.depth=this.height=0,this.parent=null}function Dt(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o=n&&"rows"===n.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}Mt.prototype=wt.prototype={constructor:Mt,count:function(){return this.eachAfter(Ct)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return wt(this).eachBefore(It)},[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)}},yt=function(e){
|
|
7
|
+
System.register(["react","@nebula.js/stardust","react-dom","picasso-plugin-q","picasso.js"],(function(e){"use strict";var t,r,n,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,I,A,M,D,P,_,k,T,O,q,N,F,j,z,$;return{setters:[function(e){t=e,r=e.default,n=e.useContext,o=e.createElement,i=e.Children,a=e.isValidElement,l=e.cloneElement,s=e.useMemo,u=e.useState,c=e.useRef,d=e.forwardRef,p=e.useCallback,f=e.useEffect,h=e.createContext,m=e.memo,g=e.useLayoutEffect,b=e.PureComponent,v=e.useReducer},function(e){y=e.useState,x=e.useEffect,S=e.useTheme,E=e.useMemo,C=e.usePromise,w=e.onContextMenu,R=e.useOptions,L=e.onTakeSnapshot,I=e.useImperativeHandle,A=e.useTranslator,M=e.useElement,D=e.useStaleLayout,P=e.useModel,_=e.useApp,k=e.useEmbed,T=e.useKeyboard,O=e.useInteractionState,q=e.useSelections,N=e.useRect},function(e){F=e.default,j=e},function(e){z=e.default},function(e){$=e.default}],execute:function(){function G(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function B(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}e("default",(function(e){return{qae:{properties:{initial:HP()},data:Dt(e)},ext:cv(e),component(){BP(e)}}}));var W={exports:{}};self,W.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Pe});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},I=Array.isArray;function A(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function M(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=M(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(e,t){var r=!0;if(A(e)&&A(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){_(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}L.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);_(i,a)||D(t,o)||(M(a)?n.push({op:"add",path:l,value:i}):A(i)&&A(a)?n=n.concat(L.generate(a,i,l)):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]&&M(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(!M(t[0])&&M(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(L.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!D(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},L.apply=function(e,t){t.forEach((function(t){var r,n,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(A(a)&&A(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!D(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=P(e,t.from);I(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const k=L,T=function(e,r,n){if(!e)return Promise.resolve();var o=k.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function 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 j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(G(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(G(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(G(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(G(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(G(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(G(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var H="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===H)return r[n]}function Y(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===H)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var U={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,U),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))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,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!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 le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="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,Le)&&r(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Ae=Ie;function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var De={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:De,apply:ke,applyModifiers:Te,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:Ae.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return De[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ye({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var _e={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;_e[r.id]=_e[r.id]||{isFirstTime:!0};var u=_e[r.id].isFirstTime;if(_e[r.id].isFirstTime=!1,n&&"object"===Me(n))return Te({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[r.id].lastReloadTime;if(_e[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ye({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Ge(n);var o=Qe(n);return Ue({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return h&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(r++,"object"!==Me(De[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=De[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}),Te({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Me(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return je(n).forEach((function(e){return Oe(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Te(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Ge(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ye({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ae.isValid(r)||Ae.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(l++,"object"!==Me(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");De[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:De[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[n.type].updateModifier&&De[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:De[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):Oe(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&!De[e.type]}))}(e)?Ae.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(De[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||De[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Ge(e){je(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:!Ae.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!De[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 He(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!He(t)&&Ye({modifiers:ze(t),properties:r,layout:n})}function Ye(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ue(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):T(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"===Me(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ye({modifiers:n,properties:e})){var i=He(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={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_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:()=>Ge});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function 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 A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const M=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},D=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},P=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},_=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},k=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return 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=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},G=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return A(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const H={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:s}),m({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?_():w,L=s.defaultMeasure,I=void 0===L?k():L;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),T({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}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),D("qMaxStackedCells",b,v),D("qNoOfLeftDims",b,v),P("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",b,v,"S"),P("qReductionMode",b,v,"N"),P("qSortbyYValue",b,v),P("qIndentMode",b,v),P("qShowTotalsAbove",b,v),M(g,t,n),m.qProperty=g;var A=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:A}),p&&W(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&W(m.qProperty,"dynamicScript"),m}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function U(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(Y(a,t,n,o),U(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||l,key:r||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}n||(i.auto=!1,i.mode=a)}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=H.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=H.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",Ie="conditionalColoring",Ae="measures",Me="qDef.conditionalColoring";const De={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ie,arrayName:Ae,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:Me,arrayName:Ae,quarantineName:Ie})}};var Pe="qHyperCubeDef.qMeasures",_e="measures",ke="qHyperCubeDef.qDimensions",Te="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:_e,itemPath:je}),we({properties:e,arrayPath:ke,quarantineName:ze,arrayName:Te,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:_e,itemPath:je}),Re({properties:e,arrayPath:ke,quarantineName:ze,arrayName:Te,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},Ge={hypercube:H,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:$e}})(),n.default})();var H=G(W.exports);const V="qHyperCubeDef.qMeasures",Y="measures",U="qHyperCubeDef.qDimensions",K="dimensions",X="qDef.representation",J="tableRepresentation",Z="qDef.conditionalColoring",Q="conditionalColoring",ee="qMiniChartDef",te="miniChartDef",re=e=>{H.unquarantineArrayProp({properties:e,arrayPath:U,itemPath:X,arrayName:K,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:Y,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:Y,quarantineName:Q}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:Y,quarantineName:te})},ne=e=>{H.quarantineArrayProp({properties:e,arrayPath:U,itemPath:X,arrayName:K,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:Y,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:Y,quarantineName:Q}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:Y,quarantineName:te})};function oe(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&oe(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function ae(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var se={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},ue="qcm-color";function ce(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:ue,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},h=0,m=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===ue){var v=r[0];h=v.r,m=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))h=parseInt(y[1],10),m=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))h=parseInt(y[1],10),m=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,h=parseInt(y[2],10),m=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))h=parseInt(y[1],16),m=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))h=parseInt(y[1]+y[1],16),m=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,h=S[0]+p,m=S[1]+p,g=S[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,h=E[0]+p,m=E[1]+p,g=E[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,h=C[0]+p,m=C[1]+p,g=C[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g),b=1}else if(se[x.toLowerCase()]){a=x.toLowerCase();var w=se[a];h=w.r,m=w.g,g=w.b,b="number"==typeof se[a].a?se[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,h=(16711680&r[0])>>16,m=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(h=(16711680&r[0])>>16,m=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(h=r[0],m=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+h+m+g+b)&&(f.invalid=!0),f.r=Math.floor(h),f.g=Math.floor(m),f.b=Math.floor(g),f.a=b,f.l=l,f}function de(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function pe(e){if(oe(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?ie(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function fe(e,t){return oe(e)?"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(", "),")"):fe(ce(e),t)}function he(e){return oe(e)?1===e.a?pe(e):fe(e):he(ce(e))}var me=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ge(){var e=ce.apply(void 0,arguments);return e.invalid||function(e){return.2126*me(e.r)+.7152*me(e.g)+.0722*me(e.b)}(e)<.4}var be,ve,ye=1/.7;function xe(){var e=ce.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]);return l+=e,l=Math.max(0,Math.min(l,100)),"hsla(".concat(o,", ").concat(i,", ").concat(l,", ").concat(a,")")},o=function(e){return xe(Math.min(t.r*e,255),Math.min(t.g*e,255),Math.min(t.b*e,255),t.a)};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:ce(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return ge(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=pe(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=fe(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=he(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,r,n;if(oe(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?ie(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=de(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=de(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getShiftedColor:function(e){var r=void 0===e||Number.isNaN(+e)?1:e,o=.299*t.r+.587*t.g+.114*t.b,i=t.g<126?1:1+t.g/512;return xe(n(20*(o*i<220?.8+1/(o+1)*4:-(.8+o/255*1))*r))},getBrightenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return o(Math.pow(ye,e))},getDarkenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return o(Math.pow(.7,e))}}}var Se=function(){if(ve)return be;ve=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return be=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(h&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},be}();function Ee(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ce(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function we(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Se);var Re=1/.7,Le="\\s*([+-]?\\d+)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Me=/^#([0-9a-f]{3,8})$/,De=new RegExp(`^rgb\\(${Le},${Le},${Le}\\)$`),Pe=new RegExp(`^rgb\\(${Ae},${Ae},${Ae}\\)$`),_e=new RegExp(`^rgba\\(${Le},${Le},${Le},${Ie}\\)$`),ke=new RegExp(`^rgba\\(${Ae},${Ae},${Ae},${Ie}\\)$`),Te=new RegExp(`^hsl\\(${Ie},${Ae},${Ae}\\)$`),Oe=new RegExp(`^hsla\\(${Ie},${Ae},${Ae},${Ie}\\)$`),qe={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 Ne(){return this.rgb().formatHex()}function Fe(){return this.rgb().formatRgb()}function je(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Me.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?ze(t):3===r?new We(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?$e(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?$e(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=De.exec(e))?new We(t[1],t[2],t[3],1):(t=Pe.exec(e))?new We(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_e.exec(e))?$e(t[1],t[2],t[3],t[4]):(t=ke.exec(e))?$e(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Te.exec(e))?Xe(t[1],t[2]/100,t[3]/100,1):(t=Oe.exec(e))?Xe(t[1],t[2]/100,t[3]/100,t[4]):qe.hasOwnProperty(e)?ze(qe[e]):"transparent"===e?new We(NaN,NaN,NaN,0):null}function ze(e){return new We(e>>16&255,e>>8&255,255&e,1)}function $e(e,t,r,n){return n<=0&&(e=t=r=NaN),new We(e,t,r,n)}function Ge(e){return e instanceof we||(e=je(e)),e?new We((e=e.rgb()).r,e.g,e.b,e.opacity):new We}function Be(e,t,r,n){return 1===arguments.length?Ge(e):new We(e,t,r,null==n?1:n)}function We(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function He(){return`#${Ke(this.r)}${Ke(this.g)}${Ke(this.b)}`}function Ve(){const e=Ye(this.opacity);return`${1===e?"rgb(":"rgba("}${Ue(this.r)}, ${Ue(this.g)}, ${Ue(this.b)}${1===e?")":`, ${e})`}`}function Ye(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ue(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ke(e){return((e=Ue(e))<16?"0":"")+e.toString(16)}function Xe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ze(e,t,r,n)}function Je(e){if(e instanceof Ze)return new Ze(e.h,e.s,e.l,e.opacity);if(e instanceof we||(e=je(e)),!e)return new Ze;if(e instanceof Ze)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Ze(a,l,s,e.opacity)}function Ze(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Qe(e){return(e=(e||0)%360)<0?e+360:e}function et(e){return Math.max(0,Math.min(1,e||0))}function tt(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ee(we,je,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ne,formatHex:Ne,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Je(this).formatHsl()},formatRgb:Fe,toString:Fe}),Ee(We,Be,Ce(we,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new We(Ue(this.r),Ue(this.g),Ue(this.b),Ye(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:He,formatHex:He,formatHex8:function(){return`#${Ke(this.r)}${Ke(this.g)}${Ke(this.b)}${Ke(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ve,toString:Ve})),Ee(Ze,(function(e,t,r,n){return 1===arguments.length?Je(e):new Ze(e,t,r,null==n?1:n)}),Ce(we,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new Ze(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ze(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new We(tt(e>=240?e-240:e+120,o,n),tt(e,o,n),tt(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Ze(Qe(this.h),et(this.s),et(this.l),Ye(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=Ye(this.opacity);return`${1===e?"hsl(":"hsla("}${Qe(this.h)}, ${100*et(this.s)}%, ${100*et(this.l)}%${1===e?")":`, ${e})`}`}}));const rt=Math.PI/180,nt=180/Math.PI,ot=4/29,it=6/29,at=3*it*it;function lt(e){if(e instanceof st)return new st(e.l,e.a,e.b,e.opacity);if(e instanceof ft)return ht(e);e instanceof We||(e=Ge(e));var t,r,n=pt(e.r),o=pt(e.g),i=pt(e.b),a=ut((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=ut((.4360747*n+.3850649*o+.1430804*i)/.96422),r=ut((.0139322*n+.0971045*o+.7141733*i)/.82521)),new st(116*a-16,500*(t-a),200*(a-r),e.opacity)}function st(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function ut(e){return e>.008856451679035631?Math.pow(e,1/3):e/at+ot}function ct(e){return e>it?e*e*e:at*(e-ot)}function dt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function pt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ft(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ht(e){if(isNaN(e.h))return new st(e.l,0,0,e.opacity);var t=e.h*rt;return new st(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ee(st,(function(e,t,r,n){return 1===arguments.length?lt(e):new st(e,t,r,null==n?1:n)}),Ce(we,{brighter(e){return new st(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new st(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 We(dt(3.1338561*(t=.96422*ct(t))-1.6168667*(e=1*ct(e))-.4906146*(r=.82521*ct(r))),dt(-.9787684*t+1.9161415*e+.033454*r),dt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ee(ft,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof ft)return new ft(e.h,e.c,e.l,e.opacity);if(e instanceof st||(e=lt(e)),0===e.a&&0===e.b)return new ft(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*nt;return new ft(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ft(e,t,r,null==n?1:n)}),Ce(we,{brighter(e){return new ft(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ft(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ht(this).rgb()}}));var mt=e=>()=>e;function gt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):mt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?gt: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):mt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Be(e)).r,(t=Be(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=gt(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 bt="center",vt="bottom";[{key:"NoDataExist",alignment:bt,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:bt,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:bt,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:bt},{key:"DataRangeIncludingZero",alignment:vt},{key:"LimitedData",alignment:vt},{key:"NegativeOrZeroValues",alignment:vt}].reduce((function(e,t){return e[t.key]=t,e}),{});var yt,xt=["__proto__","constructor"];function St(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!xt.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function Et(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}function Ct(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 wt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Lt)):void 0===t&&(t=Rt);for(var r,n,o,i,a,l=new Mt(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Mt(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(At)}function Rt(e){return e.children}function Lt(e){return Array.isArray(e)?e[1]:null}function It(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function At(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Mt(e){this.data=e,this.depth=this.height=0,this.parent=null}function Dt(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o=n&&"rows"===n.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}Mt.prototype=wt.prototype={constructor:Mt,count:function(){return this.eachAfter(Ct)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return wt(this).eachBefore(It)},[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)}},yt=function(e){
|
|
8
8
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
9
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},yt({exports:{}});const Pt="qHyperCubeDef.qDimensions",_t="dimensions",kt="qOtherTotalSpec.qTotalMode",Tt="totalMode",Ot={quarantine(e){H.quarantineArrayProp({properties:e,arrayPath:Pt,quarantineName:Tt,arrayName:_t,itemPath:kt})},unquarantine(e){H.unquarantineArrayProp({properties:e,arrayPath:Pt,quarantineName:Tt,arrayName:_t,itemPath:kt})}};function qt(e){const t=Dt(e);return(e,r,n,o)=>{var i,a,l,s,u,c;const d=H.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),p=((null===(i=d.qProperty)||void 0===i||null===(i=i.qHyperCubeDef)||void 0===i?void 0:i.qDimensions)||[]).length,f=(null===(a=d.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a||null===(a=a.qMeasures)||void 0===a?void 0:a.length)||0;let h,m=(null===(l=d.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l?void 0:l.qInterColumnSortOrder)||[],g=!0;p+f===m.length&&St(d,"qProperty.qLayoutExclude.quarantine.interColSortOrder",m.concat());const b=(null==d||null===(s=d.qProperty)||void 0===s||null===(s=s.qLayoutExclude)||void 0===s||null===(s=s.quarantine)||void 0===s?void 0:s.pivotInterColSortOrder)||void 0;b?(m=b,h=[...b],St(d,"qProperty.qHyperCubeDef.qInterColumnSortOrder",m),delete d.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):m.length=0;const v=+(m.indexOf(-1)>-1),y=p+v;if(y>m.length)for(let e=m.length;e<y;e++)m.indexOf(e)<0&&m.push(e-v);for(let e=m.length-1;e>=0;e--)m[e]>=p&&m.splice(e,1);f>1&&m.indexOf(-1)<0?m.push(-1):f<2&&m.indexOf(-1)>-1&&m.splice(m.indexOf(-1),1);const x=null!==(u=null==d||null===(c=d.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qNoOfLeftDims)&&void 0!==u?u:-1;if(p>0&&-1===x&&St(d,"qProperty.qHyperCubeDef.qNoOfLeftDims",p),h&&m&&h.length===m.length){for(let e=0;e<h.length;e++)if(h[e]!==m[e]){g=!1;break}g&&H.unquarantineProperty(d.qProperty,"noOfLeftDims")}return H.conditionalShow.unquarantine(d.qProperty),Ot.unquarantine(d.qProperty),re(d.qProperty),H.unquarantineProperty(d.qProperty,"pivotTableIndentMode"),d}}function Nt(e,t){var r,n,o;const i=null!==(r=null==e||null===(n=e.qProperty)||void 0===n||null===(n=n.qHyperCubeDef)||void 0===n?void 0:n.qInterColumnSortOrder)&&void 0!==r?r:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=H.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;St(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),H.quarantineProperty(s.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete s.properties.qHyperCubeDef.qNoOfLeftDims;const f=null==s||null===(o=s.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;f&&(p=f,St(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),St(s,"data.0.interColumnSortOrder",p),delete s.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=p.length;e<c+d;e++)p.length<=e&&p.push(e);return H.quarantineProperty(s.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),H.conditionalShow.quarantine(s.properties),Ot.quarantine(s.properties),ne(s.properties),s}const Ft={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let jt=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e}({}),zt=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const $t=e=>{switch(null==e?void 0:e.type){case"url":return jt.Link;case"image":return jt.Image;case"indicator":return jt.Indicator;case"miniChart":return jt.MiniChart;default:return jt.Text}},Gt=({args:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}={}})=>!e.properties.qHyperCubeDef.qIndentMode||(!(!r&&!n)||!t),Bt=({isImagesEnabled:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:r})=>{const{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}=null!=r?r:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,r,i)=>Gt({args:i,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}}),options(t,r,i){const{qIndentMode:a}=i.properties.qHyperCubeDef,l=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!a||a&&n)&&l.push({value:"url",translation:"Object.Table.Representation.Link"}),(!a&&e||a&&o)&&l.push({value:"image",translation:"Object.Table.Representation.Image"}),l}}},Wt=(e,t)=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(r,n,o)=>$t(r.qDef.representation)===jt.Link&&Gt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(r,n,o)=>{var i;return $t(r.qDef.representation)===jt.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===zt.Dimension&&Gt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(r,n,o)=>{var i;return $t(r.qDef.representation)===jt.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===zt.Attribute&&Gt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}}}),Ht=(e,t,r)=>{if(e||r)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,o)=>$t(e.qDef.representation)===jt.Image&&Gt({args:o,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:r}}),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"}]}}}}},Vt=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),l=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),s=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:Bt({isImagesEnabled:s,isIndentModeEnabled:i,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:a,isImagesSupportedInIndentMode:l}}),...Wt(i,a),...Ht(s,i,l)}},Yt=(e,t)=>{var r;const{flags:n,anything:o}=e,i=null==o||null===(r=o.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=i&&i("tableImages"))&&t.some((e=>e===jt.Image)),l=n.isEnabled("CLIENT_IM_5975_INDENT_MODE"),s=n.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),u=n.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")&&!(null!=i&&i("qMiniChartDef"))&&t.some((e=>e===jt.MiniChart)),c=n.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=i&&i("tableIndicators"))&&t.some((e=>e===jt.Indicator));return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>Gt({args:r,isIndentModeEnabled:l,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:s}}),options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef,r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&a||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),c&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),u&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:a||s?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>$t(e.qDef.representation)===jt.Image&&Gt({args:r,isIndentModeEnabled:l,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:s}}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:c?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:u?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var Ut,Kt,Xt,Jt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Ut||(Ut={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Kt||(Kt={})),function(e){e.TOP_GRID="topGrid",e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Xt||(Xt={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Jt||(Jt={}));const Zt="12px",Qt="nebula-table-utils-head-menu-button",er="sn-copy-cell";let tr=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 rr="nebula-table-utils-column-adjuster";let nr=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}({}),or=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const ir={darker:.15,brighter:.3,opacity:.03},ar={darker:.3,brighter:.5,opacity:.05};let lr=function(e){return e.single="N",e.drillDown="H",e.cyclic="C",e}({});var sr,ur;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(sr||(sr={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(ur||(ur={}));var cr=sr;const dr="image",pr=(e,t,r)=>{if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=r.properties.qHyperCubeDef.qNoOfLeftDims;n>-1&&n<o&&(o-=1);const i=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},fr=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:or.Auto,translation:"Common.Auto"},{value:or.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:or.Pixels,translation:"Object.Table.Column.Pixels"},{value:or.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:or.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:nr.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===or.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(nr.PixelsMin,Math.min(nr.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:nr.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===or.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(nr.PercentageMin,Math.min(nr.PercentageMax,e.qDef.columnWidth.percentage)))}}}),hr=({key:e,translation:t,env:r})=>{var n,o;const i=r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(n=r.anything)&&void 0!==n&&null!==(n=n.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var r;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==dr}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var r,n;return!(void 0===t.qDef[e]||null!==(r=t.qDef[e])&&void 0!==r&&r.auto)&&(!i||"labelTextAlign"===e||(null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==dr)}}}},mr="TOTAL_OFF",gr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Kt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Kt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},br="TOTAL_OFF",vr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Kt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Kt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},yr=e=>{var t,r;const{translator:n,anything:o,flags:i}=e,a=(e=>{var t,r;const{translator:n,anything:o}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:mr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:mr,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&pr},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!=o&&null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==mr&&pr(e,0,r)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:gr,...hr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...hr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Vt(e),...fr()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:gr,...hr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...hr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Yt(e,[jt.Image]),...fr()}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:br,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:br,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&pr},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!=o&&null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==br&&pr(e,0,r)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:vr,...hr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...hr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Vt(e),...fr()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:vr,...hr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...hr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Yt(e,[jt.Image]),...fr()}}}}},xr=(e,t,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,n){const o=n.theme.current(),i=r(o);return{color:"transparent"===i?"none":i}}});function Sr(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function Er(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&Sr(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function Cr(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wr(Object(r),!0).forEach((function(t){Cr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Lr={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Ir="qcm-color";function Ar(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:Ir,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},h=0,m=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===Ir){var v=r[0];h=v.r,m=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=Rr({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))h=parseInt(y[1],10),m=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))h=parseInt(y[1],10),m=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,h=parseInt(y[2],10),m=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))h=parseInt(y[1],16),m=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))h=parseInt(y[1]+y[1],16),m=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,h=S[0]+p,m=S[1]+p,g=S[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,h=E[0]+p,m=E[1]+p,g=E[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,h=C[0]+p,m=C[1]+p,g=C[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g),b=1}else if(Lr[x.toLowerCase()]){a=x.toLowerCase();var w=Lr[a];h=w.r,m=w.g,g=w.b,b="number"==typeof Lr[a].a?Lr[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,h=(16711680&r[0])>>16,m=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(h=(16711680&r[0])>>16,m=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(h=r[0],m=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+h+m+g+b)&&(f.invalid=!0),f.r=Math.floor(h),f.g=Math.floor(m),f.b=Math.floor(g),f.a=b,f.l=l,f}function Mr(e){var t,r,n=0,o="string"==typeof e?Ar(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function Dr(e){if(Sr(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?Er(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function Pr(e,t){return Sr(e)?"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(", "),")"):Pr(Ar(e),t)}function _r(e){return Sr(e)?1===e.a?Dr(e):Pr(e):_r(Ar(e))}var kr=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function Tr(e){return.2126*kr(e.r)+.7152*kr(e.g)+.0722*kr(e.b)}var Or=1/.7;function qr(){var e=Ar.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?Ar(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]);return l+=e,l=Math.max(0,Math.min(l,100)),"hsla(".concat(o,", ").concat(i,", ").concat(l,", ").concat(a,")")},o=function(e){return qr(Math.min(t.r*e,255),Math.min(t.g*e,255),Math.min(t.b*e,255),t.a)};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:Ar(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=Ar.apply(void 0,arguments);return e.invalid||Tr(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=Dr(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=Pr(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=_r(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,r,n;if(Sr(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?Er(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?Ar(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=Mr(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=Mr(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getShiftedColor:function(e){var r=void 0===e||Number.isNaN(+e)?1:e,o=.299*t.r+.587*t.g+.114*t.b,i=t.g<126?1:1+t.g/512;return qr(n(20*(o*i<220?.8+1/(o+1)*4:-(.8+o/255*1))*r))},getBrightenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return o(Math.pow(Or,e))},getDarkenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return o(Math.pow(.7,e))}}}function Nr(e,t){if(e&&t){var r=Tr(e),n=Tr(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var Fr,jr,zr=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],$r=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Gr(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?$r:zr}var Br=function(){if(jr)return Fr;jr=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return Fr=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(h&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},Fr}();function Wr(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Hr(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Vr(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Br);var Yr=1/.7,Ur="\\s*([+-]?\\d+)\\s*",Kr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jr=/^#([0-9a-f]{3,8})$/,Zr=new RegExp(`^rgb\\(${Ur},${Ur},${Ur}\\)$`),Qr=new RegExp(`^rgb\\(${Xr},${Xr},${Xr}\\)$`),en=new RegExp(`^rgba\\(${Ur},${Ur},${Ur},${Kr}\\)$`),tn=new RegExp(`^rgba\\(${Xr},${Xr},${Xr},${Kr}\\)$`),rn=new RegExp(`^hsl\\(${Kr},${Xr},${Xr}\\)$`),nn=new RegExp(`^hsla\\(${Kr},${Xr},${Xr},${Kr}\\)$`),on={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 an(){return this.rgb().formatHex()}function ln(){return this.rgb().formatRgb()}function sn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Jr.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?un(t):3===r?new fn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?cn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?cn(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=Zr.exec(e))?new fn(t[1],t[2],t[3],1):(t=Qr.exec(e))?new fn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=en.exec(e))?cn(t[1],t[2],t[3],t[4]):(t=tn.exec(e))?cn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=rn.exec(e))?yn(t[1],t[2]/100,t[3]/100,1):(t=nn.exec(e))?yn(t[1],t[2]/100,t[3]/100,t[4]):on.hasOwnProperty(e)?un(on[e]):"transparent"===e?new fn(NaN,NaN,NaN,0):null}function un(e){return new fn(e>>16&255,e>>8&255,255&e,1)}function cn(e,t,r,n){return n<=0&&(e=t=r=NaN),new fn(e,t,r,n)}function dn(e){return e instanceof Vr||(e=sn(e)),e?new fn((e=e.rgb()).r,e.g,e.b,e.opacity):new fn}function pn(e,t,r,n){return 1===arguments.length?dn(e):new fn(e,t,r,null==n?1:n)}function fn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function hn(){return`#${vn(this.r)}${vn(this.g)}${vn(this.b)}`}function mn(){const e=gn(this.opacity);return`${1===e?"rgb(":"rgba("}${bn(this.r)}, ${bn(this.g)}, ${bn(this.b)}${1===e?")":`, ${e})`}`}function gn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function bn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function vn(e){return((e=bn(e))<16?"0":"")+e.toString(16)}function yn(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 xn(e){if(e instanceof Sn)return new Sn(e.h,e.s,e.l,e.opacity);if(e instanceof Vr||(e=sn(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,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Sn(a,l,s,e.opacity)}function Sn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function En(e){return(e=(e||0)%360)<0?e+360:e}function Cn(e){return Math.max(0,Math.min(1,e||0))}function wn(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Wr(Vr,sn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:an,formatHex:an,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return xn(this).formatHsl()},formatRgb:ln,toString:ln}),Wr(fn,pn,Hr(Vr,{brighter(e){return e=null==e?Yr:Math.pow(Yr,e),new fn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new fn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fn(bn(this.r),bn(this.g),bn(this.b),gn(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:hn,formatHex:hn,formatHex8:function(){return`#${vn(this.r)}${vn(this.g)}${vn(this.b)}${vn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:mn,toString:mn})),Wr(Sn,(function(e,t,r,n){return 1===arguments.length?xn(e):new Sn(e,t,r,null==n?1:n)}),Hr(Vr,{brighter(e){return e=null==e?Yr:Math.pow(Yr,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 fn(wn(e>=240?e-240:e+120,o,n),wn(e,o,n),wn(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Sn(En(this.h),Cn(this.s),Cn(this.l),gn(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=gn(this.opacity);return`${1===e?"hsl(":"hsla("}${En(this.h)}, ${100*Cn(this.s)}%, ${100*Cn(this.l)}%${1===e?")":`, ${e})`}`}}));const Rn=Math.PI/180,Ln=180/Math.PI,In=4/29,An=6/29,Mn=3*An*An;function Dn(e){if(e instanceof Pn)return new Pn(e.l,e.a,e.b,e.opacity);if(e instanceof qn)return Nn(e);e instanceof fn||(e=dn(e));var t,r,n=On(e.r),o=On(e.g),i=On(e.b),a=_n((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=_n((.4360747*n+.3850649*o+.1430804*i)/.96422),r=_n((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Pn(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Pn(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function _n(e){return e>.008856451679035631?Math.pow(e,1/3):e/Mn+In}function kn(e){return e>An?e*e*e:Mn*(e-In)}function Tn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function On(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function qn(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Nn(e){if(isNaN(e.h))return new Pn(e.l,0,0,e.opacity);var t=e.h*Rn;return new Pn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Wr(Pn,(function(e,t,r,n){return 1===arguments.length?Dn(e):new Pn(e,t,r,null==n?1:n)}),Hr(Vr,{brighter(e){return new Pn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Pn(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 fn(Tn(3.1338561*(t=.96422*kn(t))-1.6168667*(e=1*kn(e))-.4906146*(r=.82521*kn(r))),Tn(-.9787684*t+1.9161415*e+.033454*r),Tn(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Wr(qn,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof qn)return new qn(e.h,e.c,e.l,e.opacity);if(e instanceof Pn||(e=Dn(e)),0===e.a&&0===e.b)return new qn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ln;return new qn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new qn(e,t,r,null==n?1:n)}),Hr(Vr,{brighter(e){return new qn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new qn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Nn(this).rgb()}}));var Fn=e=>()=>e;function jn(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Fn(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?jn: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):Fn(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=pn(e)).r,(t=pn(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=jn(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 zn,$n="center",Gn="bottom";function Bn(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 Wn(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 Hn(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Yn)):void 0===t&&(t=Vn);for(var r,n,o,i,a,l=new Xn(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Xn(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Kn)}function Vn(e){return e.children}function Yn(e){return Array.isArray(e)?e[1]:null}function Un(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Kn(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Xn(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:$n,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:$n,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:$n,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:$n},{key:"DataRangeIncludingZero",alignment:Gn},{key:"LimitedData",alignment:Gn},{key:"NegativeOrZeroValues",alignment:Gn}].reduce((function(e,t){return e[t.key]=t,e}),{}),Xn.prototype=Hn.prototype={constructor:Xn,count:function(){return this.eachAfter(Wn)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Hn(this).eachBefore(Un)},[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)}},zn=function(e){
|
|
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,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},zn({exports:{}});const Jn=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},Zn=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Jn(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...Gr(n).filter((e=>!s.includes(e))).map((e=>Jn(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Qn=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],eo=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Jn(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Qn.filter((e=>!a.includes(e))).map((e=>Jn(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),to=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Zn({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:eo({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:xr(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:xr(`${e}.background`,"properties.background",(t=>{var r;return null!==(r=o(t,e,"backgroundColor"))&&void 0!==r?r:"transparent"}))}}}}),ro=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:xr(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:xr(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),no=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),oo="12px",io="Source Sans Pro, sans-serif",ao="600",lo=15e3,so=4/3;var uo,co;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(uo||(uo={})),function(e){e.Solid="solid",e.None="none"}(co||(co={}));const po={display:"flex",justifyContent:"center",alignItems:"center"},fo={borderStyle:"solid"},ho={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},mo={lineHeight:so,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},go=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),bo=(e,t)=>e>0?`${e}px ${co.Solid} ${t}`:co.None,vo=(e,t,r,n)=>{const o=Number(!t||(null==n?void 0:n.right)),i=Number(!e||(null==n?void 0:n.bottom));return{borderRight:bo(o,r),borderBottom:bo(i,r),borderLeft:co.None,borderTop:co.None}},yo=(e,t,r,n,o,i)=>{const a=vo(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=bo(2,o)),r||(a.borderLeft=bo(1,o))),a},xo=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=bo(1,r)),t&&(n.borderRight=bo(1,r)),n},So=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:no("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?no("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:xr("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:uo.DividerLight})),divider:xr("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:uo.DividerDark})),background:xr("grid.background","properties.background",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.backgroundColor)&&void 0!==t?t:uo.Transparent}))}}}}),Eo=(e,t,r)=>{var n,o,i,a,l,s;switch(t){case"header":return null==e||null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[r];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[r];default:return}},Co=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:to({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:Eo}),dimensionValueSection:to({section:"dimensionValues",translator:e,flags:t,getThemeValue:Eo}),measureValueSection:to({section:"measureValues",translator:e,flags:t,getThemeValue:Eo}),measureLabelSection:ro({section:"measureLabels",getThemeValue:Eo}),totalValuesSection:ro({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:Eo}),nullValuesSection:ro({section:"nullValues",fallbackBackground:uo.NullValueBackground,getThemeValue:Eo}),gridSection:So(t)}}]}),wo=e=>({type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},...e.isEnabled("CLIENT_IM_5975_INDENT_MODE")&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:or.Auto,translation:"Common.Auto"},{value:or.Pixels,translation:"Object.Table.Column.Pixels"},{value:or.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:or.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:nr.PixelsDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===or.Pixels},change:e=>{var t;const r=e.qHyperCubeDef;void 0!==(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(r.indentModeColumnWidth.pixels=Math.max(nr.PixelsMin,Math.min(nr.PixelsMax,r.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:nr.PercentageDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===or.Percentage},change:e=>{var t;const r=e.qHyperCubeDef;void 0!==(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(r.indentModeColumnWidth.percentage=Math.max(nr.PercentageMin,Math.min(nr.PercentageMaxInIndentMode,r.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){var r;const{qIndentMode:n}=t.qHyperCubeDef;return(!n||n&&!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&(null===(r=t.qHyperCubeDef)||void 0===r||null===(r=r.qDimensions)||void 0===r?void 0:r.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)})))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}),Ro=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Co(e,t),wo(t)]}}}),Lo="auto",Io={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:Lo,translation:"Object.Table.SortingInSearch",options:[{value:Lo,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Ao(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:yr(e),sorting:Io,addons:Ft,settings:Ro(t,r)}}}function Mo(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Ao(e),importProperties:qt(e),exportProperties:Nt}}function Do(){return Do=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Do.apply(null,arguments)}var Po={exports:{}};function _o(){}function ko(){}ko.resetWarningCache=_o;Po.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:ko,resetWarningCache:_o};return r.PropTypes=r,r}();var To=G(Po.exports);function Oo(e){if(e.type)return e;if("#"===e.charAt(0))return Oo(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 qo(e,t){return e=Oo(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 No(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Fo(e,t){return Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fo(e,t)}function jo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fo(e,t)}function zo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const $o={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"},Go={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",...$o,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)"},Bo=12,Wo=14,Ho=16,Vo=24,Yo=3,Uo=300,Ko=400,Xo=600,Jo=700,Zo={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};qo(Go.GREYSCALE_0,.05),qo(Go.GREEN_PALE,.5),qo(Go.BLUE_PALE,.5),qo(Go.GREEN_PALE,.5),qo(Go.BLUE_PALE,.5),qo(Go.GREEN_PALE,.5),qo(Go.BLUE_PALE,.5);var Qo;function ei(){return ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ei.apply(null,arguments)}qo(Go.GREEN_PALE,.5),qo(Go.BLUE_PALE,.5),qo(Go.GREEN_PALE,.5),qo(Go.BLUE_PALE,.5);var ti,ri=function(e){return x.createElement("svg",ei({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Qo||(Qo=x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ni.apply(null,arguments)}var oi=function(e){return x.createElement("svg",ni({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),ti||(ti=x.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 ii({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return S.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 ai=(e={})=>S.createElement(ii,{...e},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},S.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),S.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"}))),li=(e={})=>S.createElement(ii,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),S.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),si=(e={})=>S.createElement(ii,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},S.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),ui=(e={})=>S.createElement(ii,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),S.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"}))),ci=({className:e})=>S.createElement(ii,{fontSize:"small",className:e},S.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},S.createElement("g",{transform:"translate(4.324187, 1.300372)"},S.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"}),S.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 di={black:"#000",white:"#fff"};var pi={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 fi={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 hi={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 mi={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 gi={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 bi={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 vi={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 yi(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 xi="$$material";function Si(){return Si=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},Si.apply(this,arguments)}function Ei(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}function Ci(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 wi=Object.freeze({__proto__:null,default:Ci}),Ri=function(){return Ri=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},Ri.apply(this,arguments)};function Li(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 Ii="-ms-",Ai="-moz-",Mi="-webkit-",Di="comm",Pi="rule",_i="decl",ki="@keyframes",Ti=Math.abs,Oi=String.fromCharCode,qi=Object.assign;function Ni(e){return e.trim()}function Fi(e,t){return(e=t.exec(e))?e[0]:e}function ji(e,t,r){return e.replace(t,r)}function zi(e,t,r){return e.indexOf(t,r)}function $i(e,t){return 0|e.charCodeAt(t)}function Gi(e,t,r){return e.slice(t,r)}function Bi(e){return e.length}function Wi(e){return e.length}function Hi(e,t){return t.push(e),e}function Vi(e,t){return e.filter((function(e){return!Fi(e,t)}))}var Yi=1,Ui=1,Ki=0,Xi=0,Ji=0,Zi="";function Qi(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Yi,column:Ui,length:a,return:"",siblings:l}}function ea(e,t){return qi(Qi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ta(e){for(;e.root;)e=ea(e.root,{children:[e]});Hi(e,e.siblings)}function ra(){return Ji=Xi>0?$i(Zi,--Xi):0,Ui--,10===Ji&&(Ui=1,Yi--),Ji}function na(){return Ji=Xi<Ki?$i(Zi,Xi++):0,Ui++,10===Ji&&(Ui=1,Yi++),Ji}function oa(){return $i(Zi,Xi)}function ia(){return Xi}function aa(e,t){return Gi(Zi,e,t)}function la(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 sa(e){return Ni(aa(Xi-1,da(91===e?e+2:40===e?e+1:e)))}function ua(e){for(;(Ji=oa())&&Ji<33;)na();return la(e)>2||la(Ji)>3?"":" "}function ca(e,t){for(;--t&&na()&&!(Ji<48||Ji>102||Ji>57&&Ji<65||Ji>70&&Ji<97););return aa(e,ia()+(t<6&&32==oa()&&32==na()))}function da(e){for(;na();)switch(Ji){case e:return Xi;case 34:case 39:34!==e&&39!==e&&da(Ji);break;case 40:41===e&&da(e);break;case 92:na()}return Xi}function pa(e,t){for(;na()&&e+Ji!==57&&(e+Ji!==84||47!==oa()););return"/*"+aa(t,Xi-1)+"*"+Oi(47===e?e:na())}function fa(e){for(;!la(oa());)na();return aa(e,Xi)}function ha(e){return function(e){return Zi="",e}(ma("",null,null,null,[""],e=function(e){return Yi=Ui=1,Ki=Bi(Zi=e),Xi=0,[]}(e),0,[0],e))}function ma(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(h=v,v=na()){case 40:if(108!=h&&58==$i(C,d-1)){-1!=zi(C+=ji(sa(v),"&","&\f"),"&\f",Ti(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=sa(v);break;case 9:case 10:case 13:case 32:C+=ua(h);break;case 92:C+=ca(ia()-1,7);continue;case 47:switch(oa()){case 42:case 47:Hi(ba(pa(na(),ia()),t,r,s),s);break;default:C+="/"}break;case 123*m:l[u++]=Bi(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=ji(C,/\f/g,"")),f>0&&Bi(C)-d&&Hi(f>32?va(C+";",n,r,d-1,s):va(ji(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(Hi(E=ga(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)ma(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===$i(C,3)?100:p){case 100:case 108:case 109:case 115:ma(e,E,E,n&&Hi(ga(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:ma(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Bi(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ra())continue;switch(C+=Oi(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Bi(C)-1)*b,b=1;break;case 64:45===oa()&&(C+=sa(na())),p=oa(),c=d=Bi(y=C+=fa(ia())),v++;break;case 45:45===h&&2==Bi(C)&&(m=0)}}return i}function ga(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Wi(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=Gi(e,p+1,p=Ti(g=a[m])),x=e;v<h;++v)(x=Ni(g>0?f[v]+" "+y:ji(y,/&\f/g,f[v])))&&(s[b++]=x);return Qi(e,t,r,0===o?Pi:l,s,u,c,d)}function ba(e,t,r,n){return Qi(e,t,r,Di,Oi(Ji),Gi(e,2,-2),0,n)}function va(e,t,r,n,o){return Qi(e,t,r,_i,Gi(e,0,n),Gi(e,n+1,-1),n,o)}function ya(e,t,r){switch(function(e,t){return 45^$i(e,0)?(((t<<2^$i(e,0))<<2^$i(e,1))<<2^$i(e,2))<<2^$i(e,3):0}(e,t)){case 5103:return Mi+"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 Mi+e+e;case 4789:return Ai+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Mi+e+Ai+e+Ii+e+e;case 5936:switch($i(e,t+11)){case 114:return Mi+e+Ii+ji(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Mi+e+Ii+ji(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Mi+e+Ii+ji(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Mi+e+Ii+e+e;case 6165:return Mi+e+Ii+"flex-"+e+e;case 5187:return Mi+e+ji(e,/(\w+).+(:[^]+)/,Mi+"box-$1$2"+Ii+"flex-$1$2")+e;case 5443:return Mi+e+Ii+"flex-item-"+ji(e,/flex-|-self/g,"")+(Fi(e,/flex-|baseline/)?"":Ii+"grid-row-"+ji(e,/flex-|-self/g,""))+e;case 4675:return Mi+e+Ii+"flex-line-pack"+ji(e,/align-content|flex-|-self/g,"")+e;case 5548:return Mi+e+Ii+ji(e,"shrink","negative")+e;case 5292:return Mi+e+Ii+ji(e,"basis","preferred-size")+e;case 6060:return Mi+"box-"+ji(e,"-grow","")+Mi+e+Ii+ji(e,"grow","positive")+e;case 4554:return Mi+ji(e,/([^-])(transform)/g,"$1"+Mi+"$2")+e;case 6187:return ji(ji(ji(e,/(zoom-|grab)/,Mi+"$1"),/(image-set)/,Mi+"$1"),e,"")+e;case 5495:case 3959:return ji(e,/(image-set\([^]*)/,Mi+"$1$`$1");case 4968:return ji(ji(e,/(.+:)(flex-)?(.*)/,Mi+"box-pack:$3"+Ii+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Mi+e+e;case 4200:if(!Fi(e,/flex-|baseline/))return Ii+"grid-column-align"+Gi(e,t)+e;break;case 2592:case 3360:return Ii+ji(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Fi(e.props,/grid-\w+-end/)}))?~zi(e+(r=r[t].value),"span",0)?e:Ii+ji(e,"-start","")+e+Ii+"grid-row-span:"+(~zi(r,"span",0)?Fi(r,/\d+/):+Fi(r,/\d+/)-+Fi(e,/\d+/))+";":Ii+ji(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Fi(e.props,/grid-\w+-start/)}))?e:Ii+ji(ji(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ji(e,/(.+)-inline(.+)/,Mi+"$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(Bi(e)-1-t>6)switch($i(e,t+1)){case 109:if(45!==$i(e,t+4))break;case 102:return ji(e,/(.+:)(.+)-([^]+)/,"$1"+Mi+"$2-$3$1"+Ai+(108==$i(e,t+3)?"$3":"$2-$3"))+e;case 115:return~zi(e,"stretch",0)?ya(ji(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return ji(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return Ii+r+":"+n+l+(o?Ii+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===$i(e,t+6))return ji(e,":",":"+Mi)+e;break;case 6444:switch($i(e,45===$i(e,14)?18:11)){case 120:return ji(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Mi+(45===$i(e,14)?"inline-":"")+"box$3$1"+Mi+"$2$3$1"+Ii+"$2box$3")+e;case 100:return ji(e,":",":"+Ii)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ji(e,"scroll-","scroll-snap-")+e}return e}function xa(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Sa(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case _i:return e.return=e.return||e.value;case Di:return"";case ki:return e.return=e.value+"{"+xa(e.children,n)+"}";case Pi:if(!Bi(e.value=e.props.join(",")))return""}return Bi(r=xa(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ea(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case _i:return void(e.return=ya(e.value,e.length,r));case ki:return xa([ea(e,{value:ji(e.value,"@","@"+Mi)})],n);case Pi:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Fi(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ta(ea(e,{props:[ji(t,/:(read-\w+)/,":-moz-$1")]})),ta(ea(e,{props:[t]})),qi(e,{props:Vi(r,n)});break;case"::placeholder":ta(ea(e,{props:[ji(t,/:(plac\w+)/,":"+Mi+"input-$1")]})),ta(ea(e,{props:[ji(t,/:(plac\w+)/,":-moz-$1")]})),ta(ea(e,{props:[ji(t,/:(plac\w+)/,Ii+"input-$1")]})),ta(ea(e,{props:[t]})),qi(e,{props:Vi(r,n)})}return""}))}}var Ca={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},wa="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ra="active",La="data-styled-version",Ia="6.1.13",Aa="/*!sc*/\n",Ma="undefined"!=typeof window&&"HTMLElement"in window,Da=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)),Pa={},_a=Object.freeze([]),ka=Object.freeze({});function Ta(e,t,r){return void 0===r&&(r=ka),e.theme!==r.theme&&e.theme||t||r.theme}var Oa=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"]),qa=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Na=/(^-|-$)/g;function Fa(e){return e.replace(qa,"-").replace(Na,"")}var ja=/(a)(d)/gi,za=function(e){return String.fromCharCode(e+(e>25?39:97))};function $a(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=za(t%52)+r;return(za(t%52)+r).replace(ja,"$1-$2")}var Ga,Ba=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Wa=function(e){return Ba(5381,e)};function Ha(e){return $a(Wa(e)>>>0)}function Va(e){return"string"==typeof e&&!0}var Ya="function"==typeof Symbol&&Symbol.for,Ua=Ya?Symbol.for("react.memo"):60115,Ka=Ya?Symbol.for("react.forward_ref"):60112,Xa={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ja={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Za={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qa=((Ga={})[Ka]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ga[Ua]=Za,Ga);function el(e){return("type"in(t=e)&&t.type.$$typeof)===Ua?Za:"$$typeof"in e?Qa[e.$$typeof]:Xa;var t}var tl=Object.defineProperty,rl=Object.getOwnPropertyNames,nl=Object.getOwnPropertySymbols,ol=Object.getOwnPropertyDescriptor,il=Object.getPrototypeOf,al=Object.prototype;function ll(e,t,r){if("string"!=typeof t){if(al){var n=il(t);n&&n!==al&&ll(e,n,r)}var o=rl(t);nl&&(o=o.concat(nl(t)));for(var i=el(e),a=el(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Ja||r&&r[s]||a&&s in a||i&&s in i)){var u=ol(t,s);try{tl(e,s,u)}catch(e){}}}}return e}function sl(e){return"function"==typeof e}function ul(e){return"object"==typeof e&&"styledComponentId"in e}function cl(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function dl(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 pl(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function fl(e,t,r){if(void 0===r&&(r=!1),!r&&!pl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=fl(e[n],t[n]);else if(pl(t))for(var n in t)e[n]=fl(e[n],t[n]);return e}function hl(e,t){Object.defineProperty(e,"toString",{value:t})}function ml(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 gl=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 ml(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Aa);return t},e}(),bl=new Map,vl=new Map,yl=1,xl=function(e){if(bl.has(e))return bl.get(e);for(;vl.has(yl);)yl++;var t=yl++;return bl.set(e,t),vl.set(t,e),t},Sl=function(e,t){yl=t+1,bl.set(e,t),vl.set(t,e)},El="style[".concat(wa,"][").concat(La,'="').concat(Ia,'"]'),Cl=new RegExp("^".concat(wa,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),wl=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)},Rl=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Aa),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(Cl);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Sl(c,u),wl(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Ll=function(e){for(var t=document.querySelectorAll(El),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(wa)!==Ra&&(Rl(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Il=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(wa,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(wa,Ra),n.setAttribute(La,Ia);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Al=function(){function e(e){this.element=Il(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 ml(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}(),Ml=function(){function e(e){this.element=Il(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}(),Dl=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}(),Pl=Ma,_l={isServer:!Ma,useCSSOMInjection:!Da},kl=function(){function e(e,t,r){void 0===e&&(e=ka),void 0===t&&(t={});var n=this;this.options=Ri(Ri({},_l),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Ma&&Pl&&(Pl=!1,Ll(this)),hl(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return vl.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(wa,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Aa)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return xl(e)},e.prototype.rehydrate=function(){!this.server&&Ma&&Ll(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Ri(Ri({},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 Dl(r):t?new Al(r):new Ml(r)}(this.options),new gl(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(xl(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(xl(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(xl(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Tl=/&/g,Ol=/^\s*\/\/.*$/gm;function ql(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=ql(e.children,t)),e}))}var Nl=new kl,Fl=function(e){var t,r,n,o=void 0===e?ka:e,i=o.options,a=void 0===i?ka:i,l=o.plugins,s=void 0===l?_a:l,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Pi&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Tl,r).replace(n,u))})),a.prefix&&c.push(Ea),c.push(Sa);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var s=e.replace(Ol,""),u=ha(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=ql(u,a.namespace));var d,p=[];return xa(u,function(e){var t=Wi(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||ml(15),Ba(e,t.name)}),5381).toString():"",d}(),jl=S.createContext({shouldForwardProp:void 0,styleSheet:Nl,stylis:Fl});function zl(){return E(jl)}jl.Consumer;var $l=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Fl);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,hl(this,(function(){throw ml(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Fl),this.name+e.hash},e}(),Gl=function(e){return e>="A"&&e<="Z"};function Bl(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Gl(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Wl=function(e){return null==e||!1===e||""===e},Hl=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Wl(i)&&(Array.isArray(i)&&i.isCss||sl(i)?n.push("".concat(Bl(o),":"),i,";"):pl(i)?n.push.apply(n,Li(Li(["".concat(o," {")],Hl(i),!1),["}"],!1)):n.push("".concat(Bl(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Ca||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Vl(e,t,r,n){return Wl(e)?[]:ul(e)?[".".concat(e.styledComponentId)]:sl(e)?!sl(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Vl(e(t),t,r,n):e instanceof $l?r?(e.inject(r,n),[e.getName(n)]):[e]:pl(e)?Hl(e):Array.isArray(e)?Array.prototype.concat.apply(_a,e.map((function(e){return Vl(e,t,r,n)}))):[e.toString()];var o}function Yl(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(sl(r)&&!ul(r))return!1}return!0}var Ul=Wa(Ia),Kl=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Yl(e),this.componentId=t,this.baseHash=Ba(Ul,t),this.baseStyle=r,kl.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=cl(n,this.staticRulesId);else{var o=dl(Vl(this.rules,e,t,r)),i=$a(Ba(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=cl(n,i),this.staticRulesId=i}else{for(var l=Ba(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=dl(Vl(c,e,t,r));l=Ba(l,d+u),s+=d}}if(s){var p=$a(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=cl(n,p)}}return n},e}(),Xl=S.createContext(void 0);Xl.Consumer;var Jl={};new Set;function Zl(e,t,r){var n=ul(e),o=e,i=!Va(e),a=t.attrs,l=void 0===a?_a:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Fa(e);Jl[r]=(Jl[r]||0)+1;var n="".concat(r,"-").concat(Ha(Ia+r+Jl[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Va(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Fa(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,h=t.shouldForwardProp;if(n&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var b=new Kl(r,p,n?o.componentStyle:void 0);function v(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=S.useContext(Xl),c=zl(),d=e.shouldForwardProp||c.shouldForwardProp,p=Ta(t,u,i)||ka,f=function(e,t,r){for(var n,o=Ri(Ri({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=sl(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?cl(o[l],a[l]):"style"===l?Ri(Ri({},o[l]),a[l]):a[l]}return t.className&&(o.className=cl(o.className,t.className)),o}(n,t,p),h=f.as||s,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var b=function(e,t){var r=zl();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=cl(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[Va(h)&&!Oa.has(h)?"class":"className"]=v,m.ref=r,C(h,m)}(y,e,t)}v.displayName=d;var y=S.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=n?cl(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++)fl(e,o[n],!0);return e}({},o.defaultProps,e):e}}),hl(y,(function(){return".".concat(y.styledComponentId)})),i&&ll(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Ql(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 es=function(e){return Object.assign(e,{isCss:!0})};function ts(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(sl(e)||pl(e))return es(Vl(Ql(_a,Li([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Vl(n):es(Vl(Ql(n,t)))}function rs(e,t,r){if(void 0===r&&(r=ka),!t)throw ml(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,ts.apply(void 0,Li([n],o,!1)))};return n.attrs=function(n){return rs(e,t,Ri(Ri({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return rs(e,t,Ri(Ri({},r),n))},n}var ns=function(e){return rs(Zl,e)},os=ns;Oa.forEach((function(e){os[e]=ns(e)}));var is=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Yl(e),kl.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(dl(Vl(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&&kl.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function as(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=dl(ts.apply(void 0,Li([e],t,!1))),o=Ha(n);return new $l(o,n)}function ls(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}ls.propTypes={children:To.node,injectFirst:To.bool};const ss=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=ts.apply(void 0,Li([e],t,!1)),o="sc-global-".concat(Ha(JSON.stringify(n))),i=new is(n,o),a=function(e){var t=zl(),r=S.useContext(Xl),n=S.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Pa,r,o);else{var l=Ri(Ri({},t),{theme:Ta(t,n,a.defaultProps)});i.renderStyles(e,l,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};return S.memo(a)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));var us=ss;
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},yt({exports:{}});const Pt="qHyperCubeDef.qDimensions",_t="dimensions",kt="qOtherTotalSpec.qTotalMode",Tt="totalMode",Ot={quarantine(e){H.quarantineArrayProp({properties:e,arrayPath:Pt,quarantineName:Tt,arrayName:_t,itemPath:kt})},unquarantine(e){H.unquarantineArrayProp({properties:e,arrayPath:Pt,quarantineName:Tt,arrayName:_t,itemPath:kt})}};function qt(e){const t=Dt(e);return(e,r,n,o)=>{var i,a,l,s,u,c;const d=H.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),p=((null===(i=d.qProperty)||void 0===i||null===(i=i.qHyperCubeDef)||void 0===i?void 0:i.qDimensions)||[]).length,f=(null===(a=d.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a||null===(a=a.qMeasures)||void 0===a?void 0:a.length)||0;let h,m=(null===(l=d.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l?void 0:l.qInterColumnSortOrder)||[],g=!0;p+f===m.length&&St(d,"qProperty.qLayoutExclude.quarantine.interColSortOrder",m.concat());const b=(null==d||null===(s=d.qProperty)||void 0===s||null===(s=s.qLayoutExclude)||void 0===s||null===(s=s.quarantine)||void 0===s?void 0:s.pivotInterColSortOrder)||void 0;b?(m=b,h=[...b],St(d,"qProperty.qHyperCubeDef.qInterColumnSortOrder",m),delete d.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):m.length=0;const v=+(m.indexOf(-1)>-1),y=p+v;if(y>m.length)for(let e=m.length;e<y;e++)m.indexOf(e)<0&&m.push(e-v);for(let e=m.length-1;e>=0;e--)m[e]>=p&&m.splice(e,1);f>1&&m.indexOf(-1)<0?m.push(-1):f<2&&m.indexOf(-1)>-1&&m.splice(m.indexOf(-1),1);const x=null!==(u=null==d||null===(c=d.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qNoOfLeftDims)&&void 0!==u?u:-1;if(p>0&&-1===x&&St(d,"qProperty.qHyperCubeDef.qNoOfLeftDims",p),h&&m&&h.length===m.length){for(let e=0;e<h.length;e++)if(h[e]!==m[e]){g=!1;break}g&&H.unquarantineProperty(d.qProperty,"noOfLeftDims")}return H.conditionalShow.unquarantine(d.qProperty),Ot.unquarantine(d.qProperty),re(d.qProperty),H.unquarantineProperty(d.qProperty,"pivotTableIndentMode"),d}}function Nt(e,t){var r,n,o;const i=null!==(r=null==e||null===(n=e.qProperty)||void 0===n||null===(n=n.qHyperCubeDef)||void 0===n?void 0:n.qInterColumnSortOrder)&&void 0!==r?r:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=H.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;St(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),H.quarantineProperty(s.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete s.properties.qHyperCubeDef.qNoOfLeftDims;const f=null==s||null===(o=s.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;f&&(p=f,St(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),St(s,"data.0.interColumnSortOrder",p),delete s.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=p.length;e<c+d;e++)p.length<=e&&p.push(e);return H.quarantineProperty(s.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),H.conditionalShow.quarantine(s.properties),Ot.quarantine(s.properties),ne(s.properties),s}const Ft={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let jt=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e}({}),zt=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const $t=e=>{switch(null==e?void 0:e.type){case"url":return jt.Link;case"image":return jt.Image;case"indicator":return jt.Indicator;case"miniChart":return jt.MiniChart;default:return jt.Text}},Gt=({args:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}={}})=>!e.properties.qHyperCubeDef.qIndentMode||(!(!r&&!n)||!t),Bt=({isImagesEnabled:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:r})=>{const{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}=null!=r?r:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,r,i)=>Gt({args:i,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}}),options(t,r,i){const{qIndentMode:a}=i.properties.qHyperCubeDef,l=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!a||a&&n)&&l.push({value:"url",translation:"Object.Table.Representation.Link"}),(!a&&e||a&&o)&&l.push({value:"image",translation:"Object.Table.Representation.Image"}),l}}},Wt=(e,t)=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(r,n,o)=>$t(r.qDef.representation)===jt.Link&&Gt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(r,n,o)=>{var i;return $t(r.qDef.representation)===jt.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===zt.Dimension&&Gt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(r,n,o)=>{var i;return $t(r.qDef.representation)===jt.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===zt.Attribute&&Gt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}}}),Ht=(e,t,r)=>{if(e||r)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,o)=>$t(e.qDef.representation)===jt.Image&&Gt({args:o,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:r}}),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"}]}}}}},Vt=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),l=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),s=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:Bt({isImagesEnabled:s,isIndentModeEnabled:i,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:a,isImagesSupportedInIndentMode:l}}),...Wt(i,a),...Ht(s,i,l)}},Yt=(e,t)=>{var r;const{flags:n,anything:o}=e,i=null==o||null===(r=o.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=i&&i("tableImages"))&&t.some((e=>e===jt.Image)),l=n.isEnabled("CLIENT_IM_5975_INDENT_MODE"),s=n.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),u=n.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")&&!(null!=i&&i("qMiniChartDef"))&&t.some((e=>e===jt.MiniChart)),c=n.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=i&&i("tableIndicators"))&&t.some((e=>e===jt.Indicator));return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>Gt({args:r,isIndentModeEnabled:l,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:s}}),options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef,r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&a||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),c&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),u&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:a||s?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>$t(e.qDef.representation)===jt.Image&&Gt({args:r,isIndentModeEnabled:l,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:s}}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:c?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:u?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var Ut,Kt,Xt,Jt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Ut||(Ut={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Kt||(Kt={})),function(e){e.TOP_GRID="topGrid",e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Xt||(Xt={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Jt||(Jt={}));const Zt="12px",Qt="nebula-table-utils-head-menu-button",er="sn-copy-cell";let tr=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 rr="nebula-table-utils-column-adjuster";let nr=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}({}),or=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const ir={darker:.15,brighter:.3,opacity:.03},ar={darker:.3,brighter:.5,opacity:.05};let lr=function(e){return e.single="N",e.drillDown="H",e.cyclic="C",e}({});var sr,ur;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(sr||(sr={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(ur||(ur={}));var cr=sr;const dr="image",pr=(e,t,r)=>{if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=r.properties.qHyperCubeDef.qNoOfLeftDims;n>-1&&n<o&&(o-=1);const i=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},fr=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:or.Auto,translation:"Common.Auto"},{value:or.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:or.Pixels,translation:"Object.Table.Column.Pixels"},{value:or.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:or.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:nr.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===or.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(nr.PixelsMin,Math.min(nr.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:nr.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===or.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(nr.PercentageMin,Math.min(nr.PercentageMax,e.qDef.columnWidth.percentage)))}}}),hr=({key:e,translation:t,env:r})=>{var n,o;const i=r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(n=r.anything)&&void 0!==n&&null!==(n=n.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var r;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==dr}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var r,n;return!(void 0===t.qDef[e]||null!==(r=t.qDef[e])&&void 0!==r&&r.auto)&&(!i||"labelTextAlign"===e||(null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==dr)}}}},mr="TOTAL_OFF",gr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Kt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Kt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},br="TOTAL_OFF",vr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Kt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Kt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Kt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},yr=e=>{var t,r;const{translator:n,anything:o,flags:i}=e,a=(e=>{var t,r;const{translator:n,anything:o}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:mr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:mr,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&pr},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!=o&&null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==mr&&pr(e,0,r)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:gr,...hr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...hr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Vt(e),...fr()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:gr,...hr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...hr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Yt(e,[jt.Image]),...fr()}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:br,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:br,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&pr},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!=o&&null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==br&&pr(e,0,r)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:vr,...hr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...hr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Vt(e),...fr()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:vr,...hr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...hr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Yt(e,[jt.Image]),...fr()}}}}};function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xr.apply(null,arguments)}var Sr={exports:{}};function Er(){}function Cr(){}Cr.resetWarningCache=Er;Sr.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:Cr,resetWarningCache:Er};return r.PropTypes=r,r}();var wr=G(Sr.exports);function Rr(e){if(e.type)return e;if("#"===e.charAt(0))return Rr(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 Lr(e,t){return e=Rr(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 Ir(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Ar(e,t){return Ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ar(e,t)}function Mr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ar(e,t)}function Dr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Pr={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"},_r={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",...Pr,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)"},kr=12,Tr=14,Or=16,qr=24,Nr=3,Fr=300,jr=400,zr=600,$r=700,Gr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Lr(_r.GREYSCALE_0,.05),Lr(_r.GREEN_PALE,.5),Lr(_r.BLUE_PALE,.5),Lr(_r.GREEN_PALE,.5),Lr(_r.BLUE_PALE,.5),Lr(_r.GREEN_PALE,.5),Lr(_r.BLUE_PALE,.5);var Br;function Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wr.apply(null,arguments)}Lr(_r.GREEN_PALE,.5),Lr(_r.BLUE_PALE,.5),Lr(_r.GREEN_PALE,.5),Lr(_r.BLUE_PALE,.5);var Hr,Vr=function(e){return t.createElement("svg",Wr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Br||(Br=t.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yr.apply(null,arguments)}var Ur=function(e){return t.createElement("svg",Yr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Hr||(Hr=t.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 Kr({fontSize:e="medium",children:t=null,className:n=""}={}){const o="small"===e?"16px":"20px",i="small"===e?"-2px 0":void 0;return r.createElement("i",{style:{fontSize:o,margin:i,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var Xr=(e={})=>r.createElement(Kr,{...e},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},r.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),r.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"}))),Jr=(e={})=>r.createElement(Kr,{...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),r.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Zr=(e={})=>r.createElement(Kr,{fontSize:"medium",...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},r.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Qr=(e={})=>r.createElement(Kr,{fontSize:"medium",...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),r.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"}))),en=({className:e})=>r.createElement(Kr,{fontSize:"small",className:e},r.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},r.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},r.createElement("g",{transform:"translate(4.324187, 1.300372)"},r.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"}),r.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 tn={black:"#000",white:"#fff"};var rn={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 nn={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 on={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 an={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 ln={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 sn={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 un={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 cn(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 dn="$$material";function pn(){return pn=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},pn.apply(this,arguments)}function fn(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}function hn(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 mn=Object.freeze({__proto__:null,default:hn}),gn=function(){return gn=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},gn.apply(this,arguments)};function bn(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 vn="-ms-",yn="-moz-",xn="-webkit-",Sn="comm",En="rule",Cn="decl",wn="@keyframes",Rn=Math.abs,Ln=String.fromCharCode,In=Object.assign;function An(e){return e.trim()}function Mn(e,t){return(e=t.exec(e))?e[0]:e}function Dn(e,t,r){return e.replace(t,r)}function Pn(e,t,r){return e.indexOf(t,r)}function _n(e,t){return 0|e.charCodeAt(t)}function kn(e,t,r){return e.slice(t,r)}function Tn(e){return e.length}function On(e){return e.length}function qn(e,t){return t.push(e),e}function Nn(e,t){return e.filter((function(e){return!Mn(e,t)}))}var Fn=1,jn=1,zn=0,$n=0,Gn=0,Bn="";function Wn(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Fn,column:jn,length:a,return:"",siblings:l}}function Hn(e,t){return In(Wn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Vn(e){for(;e.root;)e=Hn(e.root,{children:[e]});qn(e,e.siblings)}function Yn(){return Gn=$n>0?_n(Bn,--$n):0,jn--,10===Gn&&(jn=1,Fn--),Gn}function Un(){return Gn=$n<zn?_n(Bn,$n++):0,jn++,10===Gn&&(jn=1,Fn++),Gn}function Kn(){return _n(Bn,$n)}function Xn(){return $n}function Jn(e,t){return kn(Bn,e,t)}function Zn(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 Qn(e){return An(Jn($n-1,ro(91===e?e+2:40===e?e+1:e)))}function eo(e){for(;(Gn=Kn())&&Gn<33;)Un();return Zn(e)>2||Zn(Gn)>3?"":" "}function to(e,t){for(;--t&&Un()&&!(Gn<48||Gn>102||Gn>57&&Gn<65||Gn>70&&Gn<97););return Jn(e,Xn()+(t<6&&32==Kn()&&32==Un()))}function ro(e){for(;Un();)switch(Gn){case e:return $n;case 34:case 39:34!==e&&39!==e&&ro(Gn);break;case 40:41===e&&ro(e);break;case 92:Un()}return $n}function no(e,t){for(;Un()&&e+Gn!==57&&(e+Gn!==84||47!==Kn()););return"/*"+Jn(t,$n-1)+"*"+Ln(47===e?e:Un())}function oo(e){for(;!Zn(Kn());)Un();return Jn(e,$n)}function io(e){return function(e){return Bn="",e}(ao("",null,null,null,[""],e=function(e){return Fn=jn=1,zn=Tn(Bn=e),$n=0,[]}(e),0,[0],e))}function ao(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(h=v,v=Un()){case 40:if(108!=h&&58==_n(C,d-1)){-1!=Pn(C+=Dn(Qn(v),"&","&\f"),"&\f",Rn(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Qn(v);break;case 9:case 10:case 13:case 32:C+=eo(h);break;case 92:C+=to(Xn()-1,7);continue;case 47:switch(Kn()){case 42:case 47:qn(so(no(Un(),Xn()),t,r,s),s);break;default:C+="/"}break;case 123*m:l[u++]=Tn(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Dn(C,/\f/g,"")),f>0&&Tn(C)-d&&qn(f>32?uo(C+";",n,r,d-1,s):uo(Dn(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(qn(E=lo(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)ao(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===_n(C,3)?100:p){case 100:case 108:case 109:case 115:ao(e,E,E,n&&qn(lo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:ao(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Tn(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Yn())continue;switch(C+=Ln(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Tn(C)-1)*b,b=1;break;case 64:45===Kn()&&(C+=Qn(Un())),p=Kn(),c=d=Tn(y=C+=oo(Xn())),v++;break;case 45:45===h&&2==Tn(C)&&(m=0)}}return i}function lo(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=On(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=kn(e,p+1,p=Rn(g=a[m])),x=e;v<h;++v)(x=An(g>0?f[v]+" "+y:Dn(y,/&\f/g,f[v])))&&(s[b++]=x);return Wn(e,t,r,0===o?En:l,s,u,c,d)}function so(e,t,r,n){return Wn(e,t,r,Sn,Ln(Gn),kn(e,2,-2),0,n)}function uo(e,t,r,n,o){return Wn(e,t,r,Cn,kn(e,0,n),kn(e,n+1,-1),n,o)}function co(e,t,r){switch(function(e,t){return 45^_n(e,0)?(((t<<2^_n(e,0))<<2^_n(e,1))<<2^_n(e,2))<<2^_n(e,3):0}(e,t)){case 5103:return xn+"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 xn+e+e;case 4789:return yn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xn+e+yn+e+vn+e+e;case 5936:switch(_n(e,t+11)){case 114:return xn+e+vn+Dn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xn+e+vn+Dn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xn+e+vn+Dn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return xn+e+vn+e+e;case 6165:return xn+e+vn+"flex-"+e+e;case 5187:return xn+e+Dn(e,/(\w+).+(:[^]+)/,xn+"box-$1$2"+vn+"flex-$1$2")+e;case 5443:return xn+e+vn+"flex-item-"+Dn(e,/flex-|-self/g,"")+(Mn(e,/flex-|baseline/)?"":vn+"grid-row-"+Dn(e,/flex-|-self/g,""))+e;case 4675:return xn+e+vn+"flex-line-pack"+Dn(e,/align-content|flex-|-self/g,"")+e;case 5548:return xn+e+vn+Dn(e,"shrink","negative")+e;case 5292:return xn+e+vn+Dn(e,"basis","preferred-size")+e;case 6060:return xn+"box-"+Dn(e,"-grow","")+xn+e+vn+Dn(e,"grow","positive")+e;case 4554:return xn+Dn(e,/([^-])(transform)/g,"$1"+xn+"$2")+e;case 6187:return Dn(Dn(Dn(e,/(zoom-|grab)/,xn+"$1"),/(image-set)/,xn+"$1"),e,"")+e;case 5495:case 3959:return Dn(e,/(image-set\([^]*)/,xn+"$1$`$1");case 4968:return Dn(Dn(e,/(.+:)(flex-)?(.*)/,xn+"box-pack:$3"+vn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xn+e+e;case 4200:if(!Mn(e,/flex-|baseline/))return vn+"grid-column-align"+kn(e,t)+e;break;case 2592:case 3360:return vn+Dn(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Mn(e.props,/grid-\w+-end/)}))?~Pn(e+(r=r[t].value),"span",0)?e:vn+Dn(e,"-start","")+e+vn+"grid-row-span:"+(~Pn(r,"span",0)?Mn(r,/\d+/):+Mn(r,/\d+/)-+Mn(e,/\d+/))+";":vn+Dn(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Mn(e.props,/grid-\w+-start/)}))?e:vn+Dn(Dn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Dn(e,/(.+)-inline(.+)/,xn+"$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(Tn(e)-1-t>6)switch(_n(e,t+1)){case 109:if(45!==_n(e,t+4))break;case 102:return Dn(e,/(.+:)(.+)-([^]+)/,"$1"+xn+"$2-$3$1"+yn+(108==_n(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Pn(e,"stretch",0)?co(Dn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Dn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return vn+r+":"+n+l+(o?vn+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===_n(e,t+6))return Dn(e,":",":"+xn)+e;break;case 6444:switch(_n(e,45===_n(e,14)?18:11)){case 120:return Dn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+xn+(45===_n(e,14)?"inline-":"")+"box$3$1"+xn+"$2$3$1"+vn+"$2box$3")+e;case 100:return Dn(e,":",":"+vn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Dn(e,"scroll-","scroll-snap-")+e}return e}function po(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function fo(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Cn:return e.return=e.return||e.value;case Sn:return"";case wn:return e.return=e.value+"{"+po(e.children,n)+"}";case En:if(!Tn(e.value=e.props.join(",")))return""}return Tn(r=po(e.children,n))?e.return=e.value+"{"+r+"}":""}function ho(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Cn:return void(e.return=co(e.value,e.length,r));case wn:return po([Hn(e,{value:Dn(e.value,"@","@"+xn)})],n);case En:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Mn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Vn(Hn(e,{props:[Dn(t,/:(read-\w+)/,":-moz-$1")]})),Vn(Hn(e,{props:[t]})),In(e,{props:Nn(r,n)});break;case"::placeholder":Vn(Hn(e,{props:[Dn(t,/:(plac\w+)/,":"+xn+"input-$1")]})),Vn(Hn(e,{props:[Dn(t,/:(plac\w+)/,":-moz-$1")]})),Vn(Hn(e,{props:[Dn(t,/:(plac\w+)/,vn+"input-$1")]})),Vn(Hn(e,{props:[t]})),In(e,{props:Nn(r,n)})}return""}))}}var mo={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},go="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",bo="active",vo="data-styled-version",yo="6.1.13",xo="/*!sc*/\n",So="undefined"!=typeof window&&"HTMLElement"in window,Eo=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)),Co={},wo=Object.freeze([]),Ro=Object.freeze({});function Lo(e,t,r){return void 0===r&&(r=Ro),e.theme!==r.theme&&e.theme||t||r.theme}var Io=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"]),Ao=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Mo=/(^-|-$)/g;function Do(e){return e.replace(Ao,"-").replace(Mo,"")}var Po=/(a)(d)/gi,_o=function(e){return String.fromCharCode(e+(e>25?39:97))};function ko(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=_o(t%52)+r;return(_o(t%52)+r).replace(Po,"$1-$2")}var To,Oo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},qo=function(e){return Oo(5381,e)};function No(e){return ko(qo(e)>>>0)}function Fo(e){return"string"==typeof e&&!0}var jo="function"==typeof Symbol&&Symbol.for,zo=jo?Symbol.for("react.memo"):60115,$o=jo?Symbol.for("react.forward_ref"):60112,Go={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Wo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ho=((To={})[$o]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},To[zo]=Wo,To);function Vo(e){return("type"in(t=e)&&t.type.$$typeof)===zo?Wo:"$$typeof"in e?Ho[e.$$typeof]:Go;var t}var Yo=Object.defineProperty,Uo=Object.getOwnPropertyNames,Ko=Object.getOwnPropertySymbols,Xo=Object.getOwnPropertyDescriptor,Jo=Object.getPrototypeOf,Zo=Object.prototype;function Qo(e,t,r){if("string"!=typeof t){if(Zo){var n=Jo(t);n&&n!==Zo&&Qo(e,n,r)}var o=Uo(t);Ko&&(o=o.concat(Ko(t)));for(var i=Vo(e),a=Vo(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Bo||r&&r[s]||a&&s in a||i&&s in i)){var u=Xo(t,s);try{Yo(e,s,u)}catch(e){}}}}return e}function ei(e){return"function"==typeof e}function ti(e){return"object"==typeof e&&"styledComponentId"in e}function ri(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ni(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 oi(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ii(e,t,r){if(void 0===r&&(r=!1),!r&&!oi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ii(e[n],t[n]);else if(oi(t))for(var n in t)e[n]=ii(e[n],t[n]);return e}function ai(e,t){Object.defineProperty(e,"toString",{value:t})}function li(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 si=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 li(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(xo);return t},e}(),ui=new Map,ci=new Map,di=1,pi=function(e){if(ui.has(e))return ui.get(e);for(;ci.has(di);)di++;var t=di++;return ui.set(e,t),ci.set(t,e),t},fi=function(e,t){di=t+1,ui.set(e,t),ci.set(t,e)},hi="style[".concat(go,"][").concat(vo,'="').concat(yo,'"]'),mi=new RegExp("^".concat(go,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),gi=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)},bi=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(xo),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(mi);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(fi(c,u),gi(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},vi=function(e){for(var t=document.querySelectorAll(hi),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(go)!==bo&&(bi(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var yi=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(go,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(go,bo),n.setAttribute(vo,yo);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},xi=function(){function e(e){this.element=yi(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 li(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}(),Si=function(){function e(e){this.element=yi(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}(),Ei=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}(),Ci=So,wi={isServer:!So,useCSSOMInjection:!Eo},Ri=function(){function e(e,t,r){void 0===e&&(e=Ro),void 0===t&&(t={});var n=this;this.options=gn(gn({},wi),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&So&&Ci&&(Ci=!1,vi(this)),ai(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return ci.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(go,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(xo)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return pi(e)},e.prototype.rehydrate=function(){!this.server&&So&&vi(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(gn(gn({},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 Ei(r):t?new xi(r):new Si(r)}(this.options),new si(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(pi(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(pi(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(pi(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Li=/&/g,Ii=/^\s*\/\/.*$/gm;function Ai(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=Ai(e.children,t)),e}))}var Mi=new Ri,Di=function(e){var t,r,n,o=void 0===e?Ro:e,i=o.options,a=void 0===i?Ro:i,l=o.plugins,s=void 0===l?wo:l,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===En&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Li,r).replace(n,u))})),a.prefix&&c.push(ho),c.push(fo);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var s=e.replace(Ii,""),u=io(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Ai(u,a.namespace));var d,p=[];return po(u,function(e){var t=On(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||li(15),Oo(e,t.name)}),5381).toString():"",d}(),Pi=r.createContext({shouldForwardProp:void 0,styleSheet:Mi,stylis:Di});function _i(){return n(Pi)}Pi.Consumer;var ki=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Di);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,ai(this,(function(){throw li(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Di),this.name+e.hash},e}(),Ti=function(e){return e>="A"&&e<="Z"};function Oi(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Ti(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var qi=function(e){return null==e||!1===e||""===e},Ni=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!qi(i)&&(Array.isArray(i)&&i.isCss||ei(i)?n.push("".concat(Oi(o),":"),i,";"):oi(i)?n.push.apply(n,bn(bn(["".concat(o," {")],Ni(i),!1),["}"],!1)):n.push("".concat(Oi(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in mo||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Fi(e,t,r,n){return qi(e)?[]:ti(e)?[".".concat(e.styledComponentId)]:ei(e)?!ei(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Fi(e(t),t,r,n):e instanceof ki?r?(e.inject(r,n),[e.getName(n)]):[e]:oi(e)?Ni(e):Array.isArray(e)?Array.prototype.concat.apply(wo,e.map((function(e){return Fi(e,t,r,n)}))):[e.toString()];var o}function ji(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(ei(r)&&!ti(r))return!1}return!0}var zi=qo(yo),$i=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&ji(e),this.componentId=t,this.baseHash=Oo(zi,t),this.baseStyle=r,Ri.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=ri(n,this.staticRulesId);else{var o=ni(Fi(this.rules,e,t,r)),i=ko(Oo(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=ri(n,i),this.staticRulesId=i}else{for(var l=Oo(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=ni(Fi(c,e,t,r));l=Oo(l,d+u),s+=d}}if(s){var p=ko(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=ri(n,p)}}return n},e}(),Gi=r.createContext(void 0);Gi.Consumer;var Bi={};new Set;function Wi(e,t,n){var i=ti(e),a=e,l=!Fo(e),s=t.attrs,u=void 0===s?wo:s,c=t.componentId,d=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Do(e);Bi[r]=(Bi[r]||0)+1;var n="".concat(r,"-").concat(No(yo+r+Bi[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,p=t.displayName,f=void 0===p?function(e){return Fo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,h=t.displayName&&t.componentId?"".concat(Do(t.displayName),"-").concat(t.componentId):t.componentId||d,m=i&&a.attrs?a.attrs.concat(u).filter(Boolean):u,g=t.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;g=function(e,t){return b(e,t)&&v(e,t)}}else g=b}var y=new $i(n,h,i?a.componentStyle:void 0);function x(e,t){return function(e,t,n){var i=e.attrs,a=e.componentStyle,l=e.defaultProps,s=e.foldedComponentIds,u=e.styledComponentId,c=e.target,d=r.useContext(Gi),p=_i(),f=e.shouldForwardProp||p.shouldForwardProp,h=Lo(t,d,l)||Ro,m=function(e,t,r){for(var n,o=gn(gn({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=ei(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?ri(o[l],a[l]):"style"===l?gn(gn({},o[l]),a[l]):a[l]}return t.className&&(o.className=ri(o.className,t.className)),o}(i,t,h),g=m.as||c,b={};for(var v in m)void 0===m[v]||"$"===v[0]||"as"===v||"theme"===v&&m.theme===h||("forwardedAs"===v?b.as=m.forwardedAs:f&&!f(v,g)||(b[v]=m[v]));var y=function(e,t){var r=_i();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,m),x=ri(s,u);return y&&(x+=" "+y),m.className&&(x+=" "+m.className),b[Fo(g)&&!Io.has(g)?"class":"className"]=x,b.ref=n,o(g,b)}(S,e,t)}x.displayName=f;var S=r.forwardRef(x);return S.attrs=m,S.componentStyle=y,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=i?ri(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=h,S.target=i?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?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++)ii(e,o[n],!0);return e}({},a.defaultProps,e):e}}),ai(S,(function(){return".".concat(S.styledComponentId)})),l&&Qo(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Hi(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 Vi=function(e){return Object.assign(e,{isCss:!0})};function Yi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(ei(e)||oi(e))return Vi(Fi(Hi(wo,bn([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Fi(n):Vi(Fi(Hi(n,t)))}function Ui(e,t,r){if(void 0===r&&(r=Ro),!t)throw li(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Yi.apply(void 0,bn([n],o,!1)))};return n.attrs=function(n){return Ui(e,t,gn(gn({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Ui(e,t,gn(gn({},r),n))},n}var Ki=function(e){return Ui(Wi,e)},Xi=Ki;Io.forEach((function(e){Xi[e]=Ki(e)}));var Ji=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ji(e),Ri.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(ni(Fi(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&&Ri.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Zi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=ni(Yi.apply(void 0,bn([e],t,!1))),o=No(n);return new ki(o,n)}function Qi(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}Qi.propTypes={children:wr.node,injectFirst:wr.bool};const ea=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Yi.apply(void 0,bn([e],t,!1)),i="sc-global-".concat(No(JSON.stringify(o))),a=new Ji(o,i),l=function(e){var t=_i(),n=r.useContext(Gi),o=r.useRef(t.styleSheet.allocateGSInstance(i)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,Co,r,o);else{var i=gn(gn({},t),{theme:Lo(t,n,l.defaultProps)});a.renderStyles(e,i,r,o)}}(o,e,t.styleSheet,n,t.stylis),null};return r.memo(l)}((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 ta=ea;
|
|
12
10
|
/**
|
|
13
11
|
* @mui/styled-engine-sc v6.0.0-alpha.24
|
|
14
12
|
*
|
|
@@ -16,7 +14,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
|
|
|
16
14
|
* This source code is licensed under the MIT license found in the
|
|
17
15
|
* LICENSE file in the root directory of this source tree.
|
|
18
16
|
*/
|
|
19
|
-
function cs(e,t){let r;return r=t?os(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):os(e),r}ss.propTypes={defaultTheme:To.object,styles:To.oneOfType([To.array,To.string,To.object,To.func])};const ds=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var ps=Object.freeze({__proto__:null,GlobalStyles:us,StyledEngineProvider:ls,ThemeContext:Xl,css:ts,default:cs,internal_processStyles:ds,keyframes:as});function fs(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 hs(e){if(!fs(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=hs(e[r])})),t}function ms(e,t,r={clone:!0}){const n=r.clone?Do({},e):e;return fs(e)&&fs(t)&&Object.keys(t).forEach((o=>{fs(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&fs(e[o])?n[o]=ms(e[o],t[o],r):r.clone?n[o]=fs(t[o])?hs(t[o]):t[o]:n[o]=t[o]})),n}var gs,bs=Object.freeze({__proto__:null,default:ms,isPlainObject:fs}),vs={exports:{}},ys={},xs=Symbol.for("react.element"),Ss=Symbol.for("react.portal"),Es=Symbol.for("react.fragment"),Cs=Symbol.for("react.strict_mode"),ws=Symbol.for("react.profiler"),Rs=Symbol.for("react.provider"),Ls=Symbol.for("react.context"),Is=Symbol.for("react.server_context"),As=Symbol.for("react.forward_ref"),Ms=Symbol.for("react.suspense"),Ds=Symbol.for("react.suspense_list"),Ps=Symbol.for("react.memo"),_s=Symbol.for("react.lazy"),ks=Symbol.for("react.offscreen");function Ts(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case xs:switch(e=e.type){case Es:case ws:case Cs:case Ms:case Ds:return e;default:switch(e=e&&e.$$typeof){case Is:case Ls:case As:case _s:case Ps:case Rs:return e;default:return t}}case Ss:return t}}}gs=Symbol.for("react.module.reference"),ys.ContextConsumer=Ls,ys.ContextProvider=Rs,ys.Element=xs,ys.ForwardRef=As,ys.Fragment=Es,ys.Lazy=_s,ys.Memo=Ps,ys.Portal=Ss,ys.Profiler=ws,ys.StrictMode=Cs,ys.Suspense=Ms,ys.SuspenseList=Ds,ys.isAsyncMode=function(){return!1},ys.isConcurrentMode=function(){return!1},ys.isContextConsumer=function(e){return Ts(e)===Ls},ys.isContextProvider=function(e){return Ts(e)===Rs},ys.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===xs},ys.isForwardRef=function(e){return Ts(e)===As},ys.isFragment=function(e){return Ts(e)===Es},ys.isLazy=function(e){return Ts(e)===_s},ys.isMemo=function(e){return Ts(e)===Ps},ys.isPortal=function(e){return Ts(e)===Ss},ys.isProfiler=function(e){return Ts(e)===ws},ys.isStrictMode=function(e){return Ts(e)===Cs},ys.isSuspense=function(e){return Ts(e)===Ms},ys.isSuspenseList=function(e){return Ts(e)===Ds},ys.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Es||e===ws||e===Cs||e===Ms||e===Ds||e===ks||"object"==typeof e&&null!==e&&(e.$$typeof===_s||e.$$typeof===Ps||e.$$typeof===Rs||e.$$typeof===Ls||e.$$typeof===As||e.$$typeof===gs||void 0!==e.getModuleId)},ys.typeOf=Ts,vs.exports=ys;var Os=vs.exports;const qs=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ns(e){const t=`${e}`.match(qs);return t&&t[1]||""}function Fs(e,t=""){return e.displayName||e.name||Ns(e)||t}function js(e,t,r){const n=Fs(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var zs=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Fs(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Os.ForwardRef:return js(e,e.render,"ForwardRef");case Os.Memo:return js(e,e.type,"memo");default:return}}},getFunctionName:Ns});function $s(e){if("string"!=typeof e)throw new Error(Ci(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Gs=Object.freeze({__proto__:null,default:$s});function Bs(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Ws(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Hs(e){return e&&e.ownerDocument||document}function Vs(e){return Hs(e).defaultView||window}function Ys(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Us="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function Ks(e){const t=x.useRef(e);return Us((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function Xs(...e){return x.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Ys(e,t)}))}),e)}const Js={};const Zs=[];let Qs=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 eu(){const e=function(e,t){const r=x.useRef(Js);return r.current===Js&&(r.current=e(t)),r}(Qs.create).current;var t;return t=e.disposeEffect,x.useEffect(t,Zs),e}let tu=!0,ru=!1;const nu=new Qs,ou={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 iu(e){e.metaKey||e.altKey||e.ctrlKey||(tu=!0)}function au(){tu=!1}function lu(){"hidden"===this.visibilityState&&ru&&(tu=!0)}function su(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return tu||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!ou[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function uu(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",iu,!0),t.addEventListener("mousedown",au,!0),t.addEventListener("pointerdown",au,!0),t.addEventListener("touchstart",au,!0),t.addEventListener("visibilitychange",lu,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!su(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ru=!0,nu.start(100,(()=>{ru=!1})),t.current=!1,!0)},ref:e}}function cu(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function du(e,t){const r=Do({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Do({},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]=Do({},i),Object.keys(o).forEach((e=>{r[n][e]=du(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function pu(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const fu=e=>e;var hu=(()=>{let e=fu;return{configure(t){e=t},generate:t=>e(t),reset(){e=fu}}})();const mu={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 gu(e,t,r="Mui"){const n=mu[t];return n?`${r}-${n}`:`${hu.generate(e)}-${t}`}function bu(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=gu(e,t,r)})),n}function vu(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var yu=Object.freeze({__proto__:null,default:vu});function xu(e){return"string"==typeof e}function Su(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=Su(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Eu(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Su(e))&&(n&&(n+=" "),n+=t);return n}function Cu(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 wu(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 Ru=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Lu(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=No(e,Ru),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Eu(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Do({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Do({},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=Cu(Do({},o,n)),l=wu(n),s=wu(o),u=t(a),c=Eu(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=Do({},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=Do({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Do({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||xu(e)?t:Do({},t,{ownerState:Do({},t.ownerState,r)})}(r,Do({},s,{ref:Xs(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const Iu=["values","unit","step"];function Au(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=No(e,Iu),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Do({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Do({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var Mu={borderRadius:4};function Du(e,t){return t?ms(e,t,{clone:!1}):e}const Pu={xs:0,sm:600,md:900,lg:1200,xl:1536},_u={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Pu[e]}px)`};function ku(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||_u;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||_u;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Pu).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Tu(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 Ou(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Tu(e,r)||n,t&&(o=t(o,n,e)),o}function qu(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=Tu(e.theme,n)||{};return ku(e,i,(e=>{let n=Ou(a,o,e);return e===n&&"string"==typeof e&&(n=Ou(a,o,`${t}${"default"===e?"":$s(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Nu={m:"margin",p:"padding"},Fu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ju={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zu=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!ju[e])return[e];e=ju[e]}const[t,r]=e.split(""),n=Nu[t],o=Fu[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),$u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Bu(e,t,r,n){var o;const i=null!=(o=Tu(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 Wu(e){return Bu(e,"spacing",8)}function Hu(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 Vu(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Hu(t,r),e)),{})}(zu(r),n);return ku(e,e[r],o)}function Yu(e,t){const r=Wu(e.theme);return Object.keys(e).map((n=>Vu(e,t,n,r))).reduce(Du,{})}function Uu(e){return Yu(e,$u)}function Ku(e){return Yu(e,Gu)}function Xu(...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]?Du(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 Zu(e,t){return qu({prop:e,themeKey:"borders",transform:t})}Uu.propTypes={},Uu.filterProps=$u,Ku.propTypes={},Ku.filterProps=Gu;const Qu=Zu("border",Ju),ec=Zu("borderTop",Ju),tc=Zu("borderRight",Ju),rc=Zu("borderBottom",Ju),nc=Zu("borderLeft",Ju),oc=Zu("borderColor"),ic=Zu("borderTopColor"),ac=Zu("borderRightColor"),lc=Zu("borderBottomColor"),sc=Zu("borderLeftColor"),uc=Zu("outline",Ju),cc=Zu("outlineColor"),dc=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Bu(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Hu(t,e)});return ku(e,e.borderRadius,r)}return null};dc.propTypes={},dc.filterProps=["borderRadius"],Xu(Qu,ec,tc,rc,nc,oc,ic,ac,lc,sc,dc,uc,cc);const pc=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Bu(e.theme,"spacing",8),r=e=>({gap:Hu(t,e)});return ku(e,e.gap,r)}return null};pc.propTypes={},pc.filterProps=["gap"];const fc=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Bu(e.theme,"spacing",8),r=e=>({columnGap:Hu(t,e)});return ku(e,e.columnGap,r)}return null};fc.propTypes={},fc.filterProps=["columnGap"];const hc=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Bu(e.theme,"spacing",8),r=e=>({rowGap:Hu(t,e)});return ku(e,e.rowGap,r)}return null};hc.propTypes={},hc.filterProps=["rowGap"];function mc(e,t){return"grey"===t?t:e}Xu(pc,fc,hc,qu({prop:"gridColumn"}),qu({prop:"gridRow"}),qu({prop:"gridAutoFlow"}),qu({prop:"gridAutoColumns"}),qu({prop:"gridAutoRows"}),qu({prop:"gridTemplateColumns"}),qu({prop:"gridTemplateRows"}),qu({prop:"gridTemplateAreas"}),qu({prop:"gridArea"}));function gc(e){return e<=1&&0!==e?100*e+"%":e}Xu(qu({prop:"color",themeKey:"palette",transform:mc}),qu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mc}),qu({prop:"backgroundColor",themeKey:"palette",transform:mc}));const bc=qu({prop:"width",transform:gc}),vc=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])||Pu[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:gc(t)}};return ku(e,e.maxWidth,t)}return null};vc.filterProps=["maxWidth"];const yc=qu({prop:"minWidth",transform:gc}),xc=qu({prop:"height",transform:gc}),Sc=qu({prop:"maxHeight",transform:gc}),Ec=qu({prop:"minHeight",transform:gc});qu({prop:"size",cssProperty:"width",transform:gc}),qu({prop:"size",cssProperty:"height",transform:gc});Xu(bc,vc,yc,xc,Sc,Ec,qu({prop:"boxSizing"}));var Cc={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:dc},color:{themeKey:"palette",transform:mc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mc},backgroundColor:{themeKey:"palette",transform:mc},p:{style:Ku},pt:{style:Ku},pr:{style:Ku},pb:{style:Ku},pl:{style:Ku},px:{style:Ku},py:{style:Ku},padding:{style:Ku},paddingTop:{style:Ku},paddingRight:{style:Ku},paddingBottom:{style:Ku},paddingLeft:{style:Ku},paddingX:{style:Ku},paddingY:{style:Ku},paddingInline:{style:Ku},paddingInlineStart:{style:Ku},paddingInlineEnd:{style:Ku},paddingBlock:{style:Ku},paddingBlockStart:{style:Ku},paddingBlockEnd:{style:Ku},m:{style:Uu},mt:{style:Uu},mr:{style:Uu},mb:{style:Uu},ml:{style:Uu},mx:{style:Uu},my:{style:Uu},margin:{style:Uu},marginTop:{style:Uu},marginRight:{style:Uu},marginBottom:{style:Uu},marginLeft:{style:Uu},marginX:{style:Uu},marginY:{style:Uu},marginInline:{style:Uu},marginInlineStart:{style:Uu},marginInlineEnd:{style:Uu},marginBlock:{style:Uu},marginBlockStart:{style:Uu},marginBlockEnd:{style:Uu},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:pc},rowGap:{style:hc},columnGap:{style:fc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:gc},maxWidth:{style:vc},minWidth:{transform:gc},height:{transform:gc},maxHeight:{transform:gc},minHeight:{transform:gc},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const wc=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Tu(r,l)||{};if(u)return u(o);return ku(o,t,(t=>{let r=Ou(c,s,t);return t===r&&"string"==typeof t&&(r=Ou(c,s,`${e}${"default"===t?"":$s(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:Cc;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=Du(s,e(r,o,i,a));else{const e=ku({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=Du(s,e):s[r]=t({sx:o,theme:i})}else s=Du(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();wc.filterProps=["sx"];var Rc=wc;function Lc(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 Ic=["breakpoints","palette","spacing","shape"];function Ac(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=No(e,Ic),l=Au(r),s=function(e=8){if(e.mui)return e;const t=Wu({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=ms({breakpoints:l,direction:"ltr",components:{},palette:Do({mode:"light"},n),spacing:s,shape:Do({},Mu,i)},a);return u.applyStyles=Lc,u=t.reduce(((e,t)=>ms(e,t)),u),u.unstable_sxConfig=Do({},Cc,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Rc({sx:e,theme:this})},u}function Mc(e=null){const t=x.useContext(Xl);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Dc=Ac();function Pc(e=Dc){return Mc(e)}var _c={exports:{}},kc={},Tc=S,Oc=Symbol.for("react.element"),qc=Symbol.for("react.fragment"),Nc=Object.prototype.hasOwnProperty,Fc=Tc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jc={key:!0,ref:!0,__self:!0,__source:!0};function zc(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)Nc.call(t,n)&&!jc.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:Oc,type:e,key:i,ref:a,props:o,_owner:Fc.current}}kc.Fragment=qc,kc.jsx=zc,kc.jsxs=zc,_c.exports=kc;var $c=_c.exports;function Gc({styles:e,themeId:t,defaultTheme:r={}}){const n=Pc(r),o="function"==typeof e?e(t&&n[t]||n):e;return $c.jsx(us,{styles:o})}const Bc=["sx"];function Wc(e){const{sx:t}=e,r=No(e,Bc),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Cc;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return fs(r)?Do({},n,r):n}:Do({},n,t),Do({},o,{sx:i})}const Hc=["className","component"];const Vc=["ownerState"],Yc=["variants"],Uc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Kc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Xc=Ac(),Jc=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Zc({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Qc(e){return e?(t,r)=>r[e]:null}function ed(e,t){let{ownerState:r}=t,n=No(t,Vc);const o="function"==typeof e?e(Do({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>ed(e,Do({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=No(o,Yc);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Do({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(Do({ownerState:r},n)):e.style))})),t}return o}function td({props:e,name:t,defaultTheme:r,themeId:n}){let o=Pc(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?du(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function rd(e,t=0,r=1){return vu(e,t,r)}function nd(e){if(e.type)return e;if("#"===e.charAt(0))return nd(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(Ci(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(Ci(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function od(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 id(e){let t="hsl"===(e=nd(e)).type||"hsla"===e.type?nd(function(e){e=nd(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),od({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ad(e,t){return e=nd(e),t=rd(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,od(e)}function ld(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 sd(e){if(!ld(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=sd(e[r])})),t}function ud(e,t,r={clone:!0}){const n=r.clone?Do({},e):e;return ld(e)&&ld(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(ld(t[o])&&o in e&&ld(e[o])?n[o]=ud(e[o],t[o],r):r.clone?n[o]=ld(t[o])?sd(t[o]):t[o]:n[o]=t[o])})),n}function cd(e){if("string"!=typeof e)throw new Error(yi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function dd(e){return e&&e.ownerDocument||document}function pd(e){return dd(e).defaultView||window}var fd="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;let hd=0;const md=x["useId".toString()];function gd(e){if(void 0!==md){const t=md();return null!=e?e:t}return function(e){const[t,r]=x.useState(e),n=e||t;return x.useEffect((()=>{null==t&&(hd+=1,r(`mui-${hd}`))}),[t]),n}(e)}function bd({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=x.useRef(void 0!==e),[i,a]=x.useState(t);return[o?e:i,x.useCallback((e=>{o||a(e)}),[])]}function vd(e){const t=x.useRef(e);return fd((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function yd(...e){return x.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 xd{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new xd}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Sd=!0,Ed=!1;const Cd=new xd,wd={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 Rd(e){e.metaKey||e.altKey||e.ctrlKey||(Sd=!0)}function Ld(){Sd=!1}function Id(){"hidden"===this.visibilityState&&Ed&&(Sd=!0)}function Ad(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Sd||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!wd[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Md(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Rd,!0),t.addEventListener("mousedown",Ld,!0),t.addEventListener("pointerdown",Ld,!0),t.addEventListener("touchstart",Ld,!0),t.addEventListener("visibilitychange",Id,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ad(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Ed=!0,Cd.start(100,(()=>{Ed=!1})),t.current=!1,!0)},ref:e}}function Dd(e,t){const r=Do({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Do({},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]=Do({},i),Object.keys(o).forEach((e=>{r[n][e]=Dd(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Pd=e=>e;var _d=(()=>{let e=Pd;return{configure(t){e=t},generate:t=>e(t),reset(){e=Pd}}})();const kd={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 Td(e,t,r="Mui"){const n=kd[t];return n?`${r}-${n}`:`${_d.generate(e)}-${t}`}function Od(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Td(e,t,r)})),n}const qd=["mode","contrastThreshold","tonalOffset"],Nd={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:di.white,default:di.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}},Fd={text:{primary:di.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:di.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 jd(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=nd(e),t=rd(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return od(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=nd(e),t=rd(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return od(e)}(e.main,i)))}function zd(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ei(e,qd),i=e.primary||function(e="light"){return"dark"===e?{main:hi[200],light:hi[50],dark:hi[400]}:{main:hi[700],light:hi[400],dark:hi[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:fi[200],light:fi[50],dark:fi[400]}:{main:fi[500],light:fi[300],dark:fi[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:pi[500],light:pi[300],dark:pi[700]}:{main:pi[700],light:pi[400],dark:pi[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:mi[400],light:mi[300],dark:mi[700]}:{main:mi[700],light:mi[500],dark:mi[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:gi[400],light:gi[300],dark:gi[700]}:{main:gi[800],light:gi[500],dark:gi[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:bi[400],light:bi[300],dark:bi[700]}:{main:"#ed6c02",light:bi[500],dark:bi[900]}}(t);function d(e){const t=function(e,t){const r=id(e),n=id(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Fd.text.primary)>=r?Fd.text.primary:Nd.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Si({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(yi(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(yi(12,t?` (${t})`:"",JSON.stringify(e.main)));return jd(e,"light",o,n),jd(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Fd,light:Nd};return ud(Si({common:Si({},di),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:vi,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const $d=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Gd={textTransform:"uppercase"},Bd='"Roboto", "Helvetica", "Arial", sans-serif';function Wd(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Bd,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Ei(r,$d),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Si({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Bd?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Gd),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Gd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ud(Si({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Hd(...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 Vd=["none",Hd(0,2,1,-1,0,1,1,0,0,1,3,0),Hd(0,3,1,-2,0,2,2,0,0,1,5,0),Hd(0,3,3,-2,0,3,4,0,0,1,8,0),Hd(0,2,4,-1,0,4,5,0,0,1,10,0),Hd(0,3,5,-1,0,5,8,0,0,1,14,0),Hd(0,3,5,-1,0,6,10,0,0,1,18,0),Hd(0,4,5,-2,0,7,10,1,0,2,16,1),Hd(0,5,5,-3,0,8,10,1,0,3,14,2),Hd(0,5,6,-3,0,9,12,1,0,3,16,2),Hd(0,6,6,-3,0,10,14,1,0,4,18,3),Hd(0,6,7,-4,0,11,15,1,0,4,20,3),Hd(0,7,8,-4,0,12,17,2,0,5,22,4),Hd(0,7,8,-4,0,13,19,2,0,5,24,4),Hd(0,7,9,-4,0,14,21,2,0,5,26,4),Hd(0,8,9,-5,0,15,22,2,0,6,28,5),Hd(0,8,10,-5,0,16,24,2,0,6,30,5),Hd(0,8,11,-5,0,17,26,2,0,6,32,5),Hd(0,9,11,-5,0,18,28,2,0,7,34,6),Hd(0,9,12,-6,0,19,29,2,0,7,36,6),Hd(0,10,13,-6,0,20,31,3,0,8,38,7),Hd(0,10,13,-6,0,21,33,3,0,8,40,7),Hd(0,10,14,-6,0,22,35,3,0,8,42,7),Hd(0,11,14,-7,0,23,36,3,0,9,44,8),Hd(0,11,15,-7,0,24,38,3,0,9,46,8)];const Yd=["duration","easing","delay"],Ud={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)"},Kd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xd(e){return`${Math.round(e)}ms`}function Jd(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Zd(e){const t=Si({},Ud,e.easing),r=Si({},Kd,e.duration);return Si({getAutoHeightDuration:Jd,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Ei(n,Yd),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Xd(o)} ${i} ${"string"==typeof a?a:Xd(a)}`)).join(",")}},e,{easing:t,duration:r})}var Qd={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const ep=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function tp(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Ei(e,ep);if(e.vars)throw new Error(yi(18));const l=zd(n),s=Ac(e);let u=ud(s,{mixins:(c=s.breakpoints,d=r,Si({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Vd.slice(),typography:Wd(l,i),transitions:Zd(o),zIndex:Si({},Qd),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=ud(u,a),u=t.reduce(((e,t)=>ud(e,t)),u),u.unstable_sxConfig=Si({},Cc,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Rc({sx:e,theme:this})},u}var rp=tp();function np(){const e=Pc(rp);return e[xi]||e}function op({props:e,name:t}){return td({props:e,name:t,defaultTheme:rp,themeId:xi})}const ip=e=>Kc(e)&&"classes"!==e,ap=Kc,lp=function(e={}){const{themeId:t,defaultTheme:r=Xc,rootShouldForwardProp:n=Kc,slotShouldForwardProp:o=Kc}=e,i=e=>Rc(Do({},e,{theme:Zc(Do({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ds(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Qc(Jc(s))}=a,p=No(a,Uc),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Kc;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=cs(e,Do({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||fs(e)?n=>ed(e,Do({},n,{theme:Zc({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=Zc(Do({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=ed(r,Do({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Zc(Do({},e,{defaultTheme:r,themeId:t}));return ed({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},Do({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:xi,defaultTheme:rp,rootShouldForwardProp:ip});var sp=lp;var up=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function cp(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=cp(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function dp(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=cp(e))&&(n&&(n+=" "),n+=t);return n}function pp(e){return Td("MuiSvgIcon",e)}Od("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const fp=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],hp=sp("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${cd(r.color)}`],t[`fontSize${cd(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),mp=x.forwardRef((function(e,t){const r=op({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=Ei(r,fp),f=x.isValidElement(n)&&"svg"===n.type,h=Si({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return pu({root:["root","inherit"!==t&&`color${cd(t)}`,`fontSize${cd(r)}`]},pp,n)})(h);return $c.jsxs(hp,Si({as:a,className:dp(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,c?$c.jsx("title",{children:c}):null]}))}));mp.muiName="SvgIcon";var gp=mp;var bp,vp={},yp=Symbol.for("react.element"),xp=Symbol.for("react.portal"),Sp=Symbol.for("react.fragment"),Ep=Symbol.for("react.strict_mode"),Cp=Symbol.for("react.profiler"),wp=Symbol.for("react.provider"),Rp=Symbol.for("react.context"),Lp=Symbol.for("react.server_context"),Ip=Symbol.for("react.forward_ref"),Ap=Symbol.for("react.suspense"),Mp=Symbol.for("react.suspense_list"),Dp=Symbol.for("react.memo"),Pp=Symbol.for("react.lazy"),_p=Symbol.for("react.offscreen");
|
|
17
|
+
function ra(e,t){let r;return r=t?Xi(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Xi(e),r}ea.propTypes={defaultTheme:wr.object,styles:wr.oneOfType([wr.array,wr.string,wr.object,wr.func])};const na=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var oa=Object.freeze({__proto__:null,GlobalStyles:ta,StyledEngineProvider:Qi,ThemeContext:Gi,css:Yi,default:ra,internal_processStyles:na,keyframes:Zi});function ia(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 aa(e){if(!ia(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=aa(e[r])})),t}function la(e,t,r={clone:!0}){const n=r.clone?xr({},e):e;return ia(e)&&ia(t)&&Object.keys(t).forEach((o=>{ia(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ia(e[o])?n[o]=la(e[o],t[o],r):r.clone?n[o]=ia(t[o])?aa(t[o]):t[o]:n[o]=t[o]})),n}var sa,ua=Object.freeze({__proto__:null,default:la,isPlainObject:ia}),ca={exports:{}},da={},pa=Symbol.for("react.element"),fa=Symbol.for("react.portal"),ha=Symbol.for("react.fragment"),ma=Symbol.for("react.strict_mode"),ga=Symbol.for("react.profiler"),ba=Symbol.for("react.provider"),va=Symbol.for("react.context"),ya=Symbol.for("react.server_context"),xa=Symbol.for("react.forward_ref"),Sa=Symbol.for("react.suspense"),Ea=Symbol.for("react.suspense_list"),Ca=Symbol.for("react.memo"),wa=Symbol.for("react.lazy"),Ra=Symbol.for("react.offscreen");function La(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case pa:switch(e=e.type){case ha:case ga:case ma:case Sa:case Ea:return e;default:switch(e=e&&e.$$typeof){case ya:case va:case xa:case wa:case Ca:case ba:return e;default:return t}}case fa:return t}}}sa=Symbol.for("react.module.reference"),da.ContextConsumer=va,da.ContextProvider=ba,da.Element=pa,da.ForwardRef=xa,da.Fragment=ha,da.Lazy=wa,da.Memo=Ca,da.Portal=fa,da.Profiler=ga,da.StrictMode=ma,da.Suspense=Sa,da.SuspenseList=Ea,da.isAsyncMode=function(){return!1},da.isConcurrentMode=function(){return!1},da.isContextConsumer=function(e){return La(e)===va},da.isContextProvider=function(e){return La(e)===ba},da.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===pa},da.isForwardRef=function(e){return La(e)===xa},da.isFragment=function(e){return La(e)===ha},da.isLazy=function(e){return La(e)===wa},da.isMemo=function(e){return La(e)===Ca},da.isPortal=function(e){return La(e)===fa},da.isProfiler=function(e){return La(e)===ga},da.isStrictMode=function(e){return La(e)===ma},da.isSuspense=function(e){return La(e)===Sa},da.isSuspenseList=function(e){return La(e)===Ea},da.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ha||e===ga||e===ma||e===Sa||e===Ea||e===Ra||"object"==typeof e&&null!==e&&(e.$$typeof===wa||e.$$typeof===Ca||e.$$typeof===ba||e.$$typeof===va||e.$$typeof===xa||e.$$typeof===sa||void 0!==e.getModuleId)},da.typeOf=La,ca.exports=da;var Ia=ca.exports;const Aa=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ma(e){const t=`${e}`.match(Aa);return t&&t[1]||""}function Da(e,t=""){return e.displayName||e.name||Ma(e)||t}function Pa(e,t,r){const n=Da(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var _a=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Da(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ia.ForwardRef:return Pa(e,e.render,"ForwardRef");case Ia.Memo:return Pa(e,e.type,"memo");default:return}}},getFunctionName:Ma});function ka(e){if("string"!=typeof e)throw new Error(hn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ta=Object.freeze({__proto__:null,default:ka});function Oa(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function qa(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Na(e){return e&&e.ownerDocument||document}function Fa(e){return Na(e).defaultView||window}function ja(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var za="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function $a(e){const r=t.useRef(e);return za((()=>{r.current=e})),t.useRef(((...e)=>(0,r.current)(...e))).current}function Ga(...e){return t.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{ja(e,t)}))}),e)}const Ba={};const Wa=[];let Ha=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 Va(){const e=function(e,r){const n=t.useRef(Ba);return n.current===Ba&&(n.current=e(r)),n}(Ha.create).current;var r;return r=e.disposeEffect,t.useEffect(r,Wa),e}let Ya=!0,Ua=!1;const Ka=new Ha,Xa={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 Ja(e){e.metaKey||e.altKey||e.ctrlKey||(Ya=!0)}function Za(){Ya=!1}function Qa(){"hidden"===this.visibilityState&&Ua&&(Ya=!0)}function el(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ya||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Xa[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function tl(){const e=t.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ja,!0),t.addEventListener("mousedown",Za,!0),t.addEventListener("pointerdown",Za,!0),t.addEventListener("touchstart",Za,!0),t.addEventListener("visibilitychange",Qa,!0))}),[]),r=t.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!el(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(Ua=!0,Ka.start(100,(()=>{Ua=!1})),r.current=!1,!0)},ref:e}}function rl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function nl(e,t){const r=xr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=xr({},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]=xr({},i),Object.keys(o).forEach((e=>{r[n][e]=nl(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function ol(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const il=e=>e;var al=(()=>{let e=il;return{configure(t){e=t},generate:t=>e(t),reset(){e=il}}})();const ll={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 sl(e,t,r="Mui"){const n=ll[t];return n?`${r}-${n}`:`${al.generate(e)}-${t}`}function ul(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=sl(e,t,r)})),n}function cl(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var dl=Object.freeze({__proto__:null,default:cl});function pl(e){return"string"==typeof e}function fl(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=fl(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function hl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=fl(e))&&(n&&(n+=" "),n+=t);return n}function ml(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 gl(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 bl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function vl(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Ir(e,bl),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=hl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=xr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=xr({},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=ml(xr({},o,n)),l=gl(n),s=gl(o),u=t(a),c=hl(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=xr({},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=xr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(xr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||pl(e)?t:xr({},t,{ownerState:xr({},t.ownerState,r)})}(r,xr({},s,{ref:Ga(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const yl=["values","unit","step"];function xl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ir(e,yl),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>xr({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return xr({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var Sl={borderRadius:4};function El(e,t){return t?la(e,t,{clone:!1}):e}const Cl={xs:0,sm:600,md:900,lg:1200,xl:1536},wl={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Cl[e]}px)`};function Rl(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||wl;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||wl;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Cl).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Ll(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 Il(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Ll(e,r)||n,t&&(o=t(o,n,e)),o}function Al(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=Ll(e.theme,n)||{};return Rl(e,i,(e=>{let n=Il(a,o,e);return e===n&&"string"==typeof e&&(n=Il(a,o,`${t}${"default"===e?"":ka(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Ml={m:"margin",p:"padding"},Dl={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Pl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_l=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Pl[e])return[e];e=Pl[e]}const[t,r]=e.split(""),n=Ml[t],o=Dl[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),kl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Tl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ol(e,t,r,n){var o;const i=null!=(o=Ll(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 ql(e){return Ol(e,"spacing",8)}function Nl(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 Fl(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Nl(t,r),e)),{})}(_l(r),n);return Rl(e,e[r],o)}function jl(e,t){const r=ql(e.theme);return Object.keys(e).map((n=>Fl(e,t,n,r))).reduce(El,{})}function zl(e){return jl(e,kl)}function $l(e){return jl(e,Tl)}function Gl(...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]?El(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Bl(e){return"number"!=typeof e?e:`${e}px solid`}function Wl(e,t){return Al({prop:e,themeKey:"borders",transform:t})}zl.propTypes={},zl.filterProps=kl,$l.propTypes={},$l.filterProps=Tl;const Hl=Wl("border",Bl),Vl=Wl("borderTop",Bl),Yl=Wl("borderRight",Bl),Ul=Wl("borderBottom",Bl),Kl=Wl("borderLeft",Bl),Xl=Wl("borderColor"),Jl=Wl("borderTopColor"),Zl=Wl("borderRightColor"),Ql=Wl("borderBottomColor"),es=Wl("borderLeftColor"),ts=Wl("outline",Bl),rs=Wl("outlineColor"),ns=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ol(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Nl(t,e)});return Rl(e,e.borderRadius,r)}return null};ns.propTypes={},ns.filterProps=["borderRadius"],Gl(Hl,Vl,Yl,Ul,Kl,Xl,Jl,Zl,Ql,es,ns,ts,rs);const os=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ol(e.theme,"spacing",8),r=e=>({gap:Nl(t,e)});return Rl(e,e.gap,r)}return null};os.propTypes={},os.filterProps=["gap"];const is=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ol(e.theme,"spacing",8),r=e=>({columnGap:Nl(t,e)});return Rl(e,e.columnGap,r)}return null};is.propTypes={},is.filterProps=["columnGap"];const as=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ol(e.theme,"spacing",8),r=e=>({rowGap:Nl(t,e)});return Rl(e,e.rowGap,r)}return null};as.propTypes={},as.filterProps=["rowGap"];function ls(e,t){return"grey"===t?t:e}Gl(os,is,as,Al({prop:"gridColumn"}),Al({prop:"gridRow"}),Al({prop:"gridAutoFlow"}),Al({prop:"gridAutoColumns"}),Al({prop:"gridAutoRows"}),Al({prop:"gridTemplateColumns"}),Al({prop:"gridTemplateRows"}),Al({prop:"gridTemplateAreas"}),Al({prop:"gridArea"}));function ss(e){return e<=1&&0!==e?100*e+"%":e}Gl(Al({prop:"color",themeKey:"palette",transform:ls}),Al({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ls}),Al({prop:"backgroundColor",themeKey:"palette",transform:ls}));const us=Al({prop:"width",transform:ss}),cs=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])||Cl[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:ss(t)}};return Rl(e,e.maxWidth,t)}return null};cs.filterProps=["maxWidth"];const ds=Al({prop:"minWidth",transform:ss}),ps=Al({prop:"height",transform:ss}),fs=Al({prop:"maxHeight",transform:ss}),hs=Al({prop:"minHeight",transform:ss});Al({prop:"size",cssProperty:"width",transform:ss}),Al({prop:"size",cssProperty:"height",transform:ss});Gl(us,cs,ds,ps,fs,hs,Al({prop:"boxSizing"}));var ms={border:{themeKey:"borders",transform:Bl},borderTop:{themeKey:"borders",transform:Bl},borderRight:{themeKey:"borders",transform:Bl},borderBottom:{themeKey:"borders",transform:Bl},borderLeft:{themeKey:"borders",transform:Bl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Bl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ns},color:{themeKey:"palette",transform:ls},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ls},backgroundColor:{themeKey:"palette",transform:ls},p:{style:$l},pt:{style:$l},pr:{style:$l},pb:{style:$l},pl:{style:$l},px:{style:$l},py:{style:$l},padding:{style:$l},paddingTop:{style:$l},paddingRight:{style:$l},paddingBottom:{style:$l},paddingLeft:{style:$l},paddingX:{style:$l},paddingY:{style:$l},paddingInline:{style:$l},paddingInlineStart:{style:$l},paddingInlineEnd:{style:$l},paddingBlock:{style:$l},paddingBlockStart:{style:$l},paddingBlockEnd:{style:$l},m:{style:zl},mt:{style:zl},mr:{style:zl},mb:{style:zl},ml:{style:zl},mx:{style:zl},my:{style:zl},margin:{style:zl},marginTop:{style:zl},marginRight:{style:zl},marginBottom:{style:zl},marginLeft:{style:zl},marginX:{style:zl},marginY:{style:zl},marginInline:{style:zl},marginInlineStart:{style:zl},marginInlineEnd:{style:zl},marginBlock:{style:zl},marginBlockStart:{style:zl},marginBlockEnd:{style:zl},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:os},rowGap:{style:as},columnGap:{style:is},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ss},maxWidth:{style:cs},minWidth:{transform:ss},height:{transform:ss},maxHeight:{transform:ss},minHeight:{transform:ss},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const gs=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Ll(r,l)||{};if(u)return u(o);return Rl(o,t,(t=>{let r=Il(c,s,t);return t===r&&"string"==typeof t&&(r=Il(c,s,`${e}${"default"===t?"":ka(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:ms;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=El(s,e(r,o,i,a));else{const e=Rl({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=El(s,e):s[r]=t({sx:o,theme:i})}else s=El(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();gs.filterProps=["sx"];var bs=gs;function vs(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 ys=["breakpoints","palette","spacing","shape"];function xs(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Ir(e,ys),l=xl(r),s=function(e=8){if(e.mui)return e;const t=ql({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=la({breakpoints:l,direction:"ltr",components:{},palette:xr({mode:"light"},n),spacing:s,shape:xr({},Sl,i)},a);return u.applyStyles=vs,u=t.reduce(((e,t)=>la(e,t)),u),u.unstable_sxConfig=xr({},ms,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return bs({sx:e,theme:this})},u}function Ss(e=null){const r=t.useContext(Gi);return r&&(n=r,0!==Object.keys(n).length)?r:e;var n}const Es=xs();function Cs(e=Es){return Ss(e)}var ws={exports:{}},Rs={},Ls=r,Is=Symbol.for("react.element"),As=Symbol.for("react.fragment"),Ms=Object.prototype.hasOwnProperty,Ds=Ls.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ps={key:!0,ref:!0,__self:!0,__source:!0};function _s(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)Ms.call(t,n)&&!Ps.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:Is,type:e,key:i,ref:a,props:o,_owner:Ds.current}}Rs.Fragment=As,Rs.jsx=_s,Rs.jsxs=_s,ws.exports=Rs;var ks=ws.exports;function Ts({styles:e,themeId:t,defaultTheme:r={}}){const n=Cs(r),o="function"==typeof e?e(t&&n[t]||n):e;return ks.jsx(ta,{styles:o})}const Os=["sx"];function qs(e){const{sx:t}=e,r=Ir(e,Os),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:ms;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return ia(r)?xr({},n,r):n}:xr({},n,t),xr({},o,{sx:i})}const Ns=["className","component"];const Fs=["ownerState"],js=["variants"],zs=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $s(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Gs=xs(),Bs=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ws({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Hs(e){return e?(t,r)=>r[e]:null}function Vs(e,t){let{ownerState:r}=t,n=Ir(t,Fs);const o="function"==typeof e?e(xr({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Vs(e,xr({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Ir(o,js);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(xr({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(xr({ownerState:r},n)):e.style))})),t}return o}function Ys({props:e,name:t,defaultTheme:r,themeId:n}){let o=Cs(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?nl(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function Us(e,t=0,r=1){return cl(e,t,r)}function Ks(e){if(e.type)return e;if("#"===e.charAt(0))return Ks(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(hn(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(hn(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Xs(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 Js(e){let t="hsl"===(e=Ks(e)).type||"hsla"===e.type?Ks(function(e){e=Ks(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Xs({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Zs(e,t){return e=Ks(e),t=Us(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Xs(e)}function Qs(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 eu(e){if(!Qs(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=eu(e[r])})),t}function tu(e,t,r={clone:!0}){const n=r.clone?xr({},e):e;return Qs(e)&&Qs(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Qs(t[o])&&o in e&&Qs(e[o])?n[o]=tu(e[o],t[o],r):r.clone?n[o]=Qs(t[o])?eu(t[o]):t[o]:n[o]=t[o])})),n}function ru(e){if("string"!=typeof e)throw new Error(cn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function nu(e){return e&&e.ownerDocument||document}function ou(e){return nu(e).defaultView||window}var iu="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;let au=0;const lu=t["useId".toString()];function su(e){if(void 0!==lu){const t=lu();return null!=e?e:t}return function(e){const[r,n]=t.useState(e),o=e||r;return t.useEffect((()=>{null==r&&(au+=1,n(`mui-${au}`))}),[r]),o}(e)}function uu({controlled:e,default:r,name:n,state:o="value"}){const{current:i}=t.useRef(void 0!==e),[a,l]=t.useState(r);return[i?e:a,t.useCallback((e=>{i||l(e)}),[])]}function cu(e){const r=t.useRef(e);return iu((()=>{r.current=e})),t.useRef(((...e)=>(0,r.current)(...e))).current}function du(...e){return t.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 pu{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new pu}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let fu=!0,hu=!1;const mu=new pu,gu={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 bu(e){e.metaKey||e.altKey||e.ctrlKey||(fu=!0)}function vu(){fu=!1}function yu(){"hidden"===this.visibilityState&&hu&&(fu=!0)}function xu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return fu||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!gu[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Su(){const e=t.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",bu,!0),t.addEventListener("mousedown",vu,!0),t.addEventListener("pointerdown",vu,!0),t.addEventListener("touchstart",vu,!0),t.addEventListener("visibilitychange",yu,!0))}),[]),r=t.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!xu(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(hu=!0,mu.start(100,(()=>{hu=!1})),r.current=!1,!0)},ref:e}}function Eu(e,t){const r=xr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=xr({},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]=xr({},i),Object.keys(o).forEach((e=>{r[n][e]=Eu(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Cu=e=>e;var wu=(()=>{let e=Cu;return{configure(t){e=t},generate:t=>e(t),reset(){e=Cu}}})();const Ru={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 Lu(e,t,r="Mui"){const n=Ru[t];return n?`${r}-${n}`:`${wu.generate(e)}-${t}`}function Iu(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Lu(e,t,r)})),n}const Au=["mode","contrastThreshold","tonalOffset"],Mu={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:tn.white,default:tn.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}},Du={text:{primary:tn.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:tn.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 Pu(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=Ks(e),t=Us(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 Xs(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Ks(e),t=Us(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 Xs(e)}(e.main,i)))}function _u(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=fn(e,Au),i=e.primary||function(e="light"){return"dark"===e?{main:on[200],light:on[50],dark:on[400]}:{main:on[700],light:on[400],dark:on[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:nn[200],light:nn[50],dark:nn[400]}:{main:nn[500],light:nn[300],dark:nn[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:rn[500],light:rn[300],dark:rn[700]}:{main:rn[700],light:rn[400],dark:rn[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:an[400],light:an[300],dark:an[700]}:{main:an[700],light:an[500],dark:an[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ln[400],light:ln[300],dark:ln[700]}:{main:ln[800],light:ln[500],dark:ln[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:sn[400],light:sn[300],dark:sn[700]}:{main:"#ed6c02",light:sn[500],dark:sn[900]}}(t);function d(e){const t=function(e,t){const r=Js(e),n=Js(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Du.text.primary)>=r?Du.text.primary:Mu.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=pn({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(cn(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(cn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Pu(e,"light",o,n),Pu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Du,light:Mu};return tu(pn({common:pn({},tn),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:un,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const ku=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Tu={textTransform:"uppercase"},Ou='"Roboto", "Helvetica", "Arial", sans-serif';function qu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Ou,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=fn(r,ku),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return pn({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Ou?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Tu),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Tu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tu(pn({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Nu(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Fu=["none",Nu(0,2,1,-1,0,1,1,0,0,1,3,0),Nu(0,3,1,-2,0,2,2,0,0,1,5,0),Nu(0,3,3,-2,0,3,4,0,0,1,8,0),Nu(0,2,4,-1,0,4,5,0,0,1,10,0),Nu(0,3,5,-1,0,5,8,0,0,1,14,0),Nu(0,3,5,-1,0,6,10,0,0,1,18,0),Nu(0,4,5,-2,0,7,10,1,0,2,16,1),Nu(0,5,5,-3,0,8,10,1,0,3,14,2),Nu(0,5,6,-3,0,9,12,1,0,3,16,2),Nu(0,6,6,-3,0,10,14,1,0,4,18,3),Nu(0,6,7,-4,0,11,15,1,0,4,20,3),Nu(0,7,8,-4,0,12,17,2,0,5,22,4),Nu(0,7,8,-4,0,13,19,2,0,5,24,4),Nu(0,7,9,-4,0,14,21,2,0,5,26,4),Nu(0,8,9,-5,0,15,22,2,0,6,28,5),Nu(0,8,10,-5,0,16,24,2,0,6,30,5),Nu(0,8,11,-5,0,17,26,2,0,6,32,5),Nu(0,9,11,-5,0,18,28,2,0,7,34,6),Nu(0,9,12,-6,0,19,29,2,0,7,36,6),Nu(0,10,13,-6,0,20,31,3,0,8,38,7),Nu(0,10,13,-6,0,21,33,3,0,8,40,7),Nu(0,10,14,-6,0,22,35,3,0,8,42,7),Nu(0,11,14,-7,0,23,36,3,0,9,44,8),Nu(0,11,15,-7,0,24,38,3,0,9,46,8)];const ju=["duration","easing","delay"],zu={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},$u={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gu(e){return`${Math.round(e)}ms`}function Bu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Wu(e){const t=pn({},zu,e.easing),r=pn({},$u,e.duration);return pn({getAutoHeightDuration:Bu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return fn(n,ju),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Gu(o)} ${i} ${"string"==typeof a?a:Gu(a)}`)).join(",")}},e,{easing:t,duration:r})}var Hu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Vu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Yu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=fn(e,Vu);if(e.vars)throw new Error(cn(18));const l=_u(n),s=xs(e);let u=tu(s,{mixins:(c=s.breakpoints,d=r,pn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Fu.slice(),typography:qu(l,i),transitions:Wu(o),zIndex:pn({},Hu),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=tu(u,a),u=t.reduce(((e,t)=>tu(e,t)),u),u.unstable_sxConfig=pn({},ms,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return bs({sx:e,theme:this})},u}var Uu=Yu();function Ku(){const e=Cs(Uu);return e[dn]||e}function Xu({props:e,name:t}){return Ys({props:e,name:t,defaultTheme:Uu,themeId:dn})}const Ju=e=>$s(e)&&"classes"!==e,Zu=$s,Qu=function(e={}){const{themeId:t,defaultTheme:r=Gs,rootShouldForwardProp:n=$s,slotShouldForwardProp:o=$s}=e,i=e=>bs(xr({},e,{theme:Ws(xr({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{na(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Hs(Bs(s))}=a,p=Ir(a,zs),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=$s;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=ra(e,xr({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||ia(e)?n=>Vs(e,xr({},n,{theme:Ws({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=Ws(xr({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Vs(r,xr({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Ws(xr({},e,{defaultTheme:r,themeId:t}));return Vs({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},xr({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:dn,defaultTheme:Uu,rootShouldForwardProp:Ju});var ec=Qu;var tc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function rc(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=rc(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function nc(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=rc(e))&&(n&&(n+=" "),n+=t);return n}function oc(e){return Lu("MuiSvgIcon",e)}Iu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ic=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ac=ec("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${ru(r.color)}`],t[`fontSize${ru(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),lc=t.forwardRef((function(e,r){const n=Xu({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,f=fn(n,ic),h=t.isValidElement(o)&&"svg"===o.type,m=pn({},n,{color:a,component:l,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:h}),g={};c||(g.viewBox=p);const b=(e=>{const{color:t,fontSize:r,classes:n}=e;return ol({root:["root","inherit"!==t&&`color${ru(t)}`,`fontSize${ru(r)}`]},oc,n)})(m);return ks.jsxs(ac,pn({as:l,className:nc(b.root,i),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:r},g,f,h&&o.props,{ownerState:m,children:[h?o.props.children:o,d?ks.jsx("title",{children:d}):null]}))}));lc.muiName="SvgIcon";var sc=lc;var uc,cc={},dc=Symbol.for("react.element"),pc=Symbol.for("react.portal"),fc=Symbol.for("react.fragment"),hc=Symbol.for("react.strict_mode"),mc=Symbol.for("react.profiler"),gc=Symbol.for("react.provider"),bc=Symbol.for("react.context"),vc=Symbol.for("react.server_context"),yc=Symbol.for("react.forward_ref"),xc=Symbol.for("react.suspense"),Sc=Symbol.for("react.suspense_list"),Ec=Symbol.for("react.memo"),Cc=Symbol.for("react.lazy"),wc=Symbol.for("react.offscreen");
|
|
20
18
|
/**
|
|
21
19
|
* @license React
|
|
22
20
|
* react-is.production.min.js
|
|
@@ -25,7 +23,7 @@ function cs(e,t){let r;return r=t?os(e).withConfig({displayName:t.label,shouldFo
|
|
|
25
23
|
*
|
|
26
24
|
* This source code is licensed under the MIT license found in the
|
|
27
25
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/function kp(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case yp:switch(e=e.type){case Sp:case Cp:case Ep:case Ap:case Mp:return e;default:switch(e=e&&e.$$typeof){case Lp:case Rp:case Ip:case Pp:case Dp:case wp:return e;default:return t}}case xp:return t}}}bp=Symbol.for("react.module.reference"),vp.ContextConsumer=Rp,vp.ContextProvider=wp,vp.Element=yp,vp.ForwardRef=Ip,vp.Fragment=Sp,vp.Lazy=Pp,vp.Memo=Dp,vp.Portal=xp,vp.Profiler=Cp,vp.StrictMode=Ep,vp.Suspense=Ap,vp.SuspenseList=Mp,vp.isAsyncMode=function(){return!1},vp.isConcurrentMode=function(){return!1},vp.isContextConsumer=function(e){return kp(e)===Rp},vp.isContextProvider=function(e){return kp(e)===wp},vp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===yp},vp.isForwardRef=function(e){return kp(e)===Ip},vp.isFragment=function(e){return kp(e)===Sp},vp.isLazy=function(e){return kp(e)===Pp},vp.isMemo=function(e){return kp(e)===Dp},vp.isPortal=function(e){return kp(e)===xp},vp.isProfiler=function(e){return kp(e)===Cp},vp.isStrictMode=function(e){return kp(e)===Ep},vp.isSuspense=function(e){return kp(e)===Ap},vp.isSuspenseList=function(e){return kp(e)===Mp},vp.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Sp||e===Cp||e===Ep||e===Ap||e===Mp||e===_p||"object"==typeof e&&null!==e&&(e.$$typeof===Pp||e.$$typeof===Dp||e.$$typeof===wp||e.$$typeof===Rp||e.$$typeof===Ip||e.$$typeof===bp||void 0!==e.getModuleId)},vp.typeOf=kp;var Tp=!1,Op=S.createContext(null),qp="unmounted",Np="exited",Fp="entering",jp="entered",zp="exiting",$p=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=Np,n.appearStatus=Fp):o=jp:o=t.unmountOnExit||t.mountOnEnter?qp:Np,n.state={status:o},n.nextCallback=null,n}jo(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===qp?{status:Np}: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!==Fp&&r!==jp&&(t=Fp):r!==Fp&&r!==jp||(t=zp)}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===Fp){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Np&&this.setState({status:qp})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[F.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||Tp?this.safeSetState({status:jp},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Fp},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:jp},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:F.findDOMNode(this);t&&!Tp?(this.props.onExit(n),this.safeSetState({status:zp},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Np},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Np},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===qp)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=No(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(Op.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.Component);function Gp(){}$p.contextType=Op,$p.propTypes={},$p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gp,onEntering:Gp,onEntered:Gp,onExit:Gp,onExiting:Gp,onExited:Gp},$p.UNMOUNTED=qp,$p.EXITED=Np,$p.ENTERING=Fp,$p.ENTERED=jp,$p.EXITING=zp;var Bp=$p;function Wp(e,t){var r=Object.create(null);return e&&w.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&R(e)?t(e):e}(e)})),r}function Hp(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Vp(e,t,r){var n=Wp(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(R(a)){var l=i in t,s=i in n,u=t[i],c=R(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&R(u)&&(o[i]=L(a,{onExited:r.bind(null,a),in:u.props.in,exit:Hp(a,"exit",e),enter:Hp(a,"enter",e)})):o[i]=L(a,{in:!1}):o[i]=L(a,{onExited:r.bind(null,a),in:!0,exit:Hp(a,"exit",e),enter:Hp(a,"enter",e)})}})),o}var Yp=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Up=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(zo(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}jo(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,Wp(r.children,(function(e){return L(e,{onExited:n.bind(null,e),in:!0,appear:Hp(e,"appear",r),enter:Hp(e,"enter",r),exit:Hp(e,"exit",r)})}))):Vp(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Wp(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=Do({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=No(e,["component","childFactory"]),o=this.state.contextValue,i=Yp(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?S.createElement(Op.Provider,{value:o},i):S.createElement(Op.Provider,{value:o},S.createElement(t,n,i))},t}(S.Component);Up.propTypes={},Up.defaultProps={component:"div",childFactory:function(e){return e}};var Kp=Up;const Xp=e=>e.scrollTop;function Jp(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 Zp(e){return Td("MuiPaper",e)}Od("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 Qp=["className","component","elevation","square","variant"],ef=sp("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 Si({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&&Si({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ad("#fff",up(t.elevation))}, ${ad("#fff",up(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var tf=x.forwardRef((function(e,t){const r=op({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Ei(r,Qp),u=Si({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return pu({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Zp,o)})(u);return $c.jsx(ef,Si({as:o,ownerState:u,className:dp(c.root,n),ref:t},s))}));function rf(e){return"string"==typeof e}function nf(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 of(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 af=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function lf(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=No(e,af),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Eu(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Do({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Do({},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=nf(Do({},o,n)),l=of(n),s=of(o),u=t(a),c=Eu(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=Do({},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=Do({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Do({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||rf(e)?t:Do({},t,{ownerState:Do({},t.ownerState,r)})}(r,Do({},s,{ref:Xs(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var sf=Od("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const uf=["center","classes","className"];let cf,df,pf,ff,hf=e=>e;const mf=as(cf||(cf=hf`
|
|
26
|
+
*/function Rc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case dc:switch(e=e.type){case fc:case mc:case hc:case xc:case Sc:return e;default:switch(e=e&&e.$$typeof){case vc:case bc:case yc:case Cc:case Ec:case gc:return e;default:return t}}case pc:return t}}}uc=Symbol.for("react.module.reference"),cc.ContextConsumer=bc,cc.ContextProvider=gc,cc.Element=dc,cc.ForwardRef=yc,cc.Fragment=fc,cc.Lazy=Cc,cc.Memo=Ec,cc.Portal=pc,cc.Profiler=mc,cc.StrictMode=hc,cc.Suspense=xc,cc.SuspenseList=Sc,cc.isAsyncMode=function(){return!1},cc.isConcurrentMode=function(){return!1},cc.isContextConsumer=function(e){return Rc(e)===bc},cc.isContextProvider=function(e){return Rc(e)===gc},cc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===dc},cc.isForwardRef=function(e){return Rc(e)===yc},cc.isFragment=function(e){return Rc(e)===fc},cc.isLazy=function(e){return Rc(e)===Cc},cc.isMemo=function(e){return Rc(e)===Ec},cc.isPortal=function(e){return Rc(e)===pc},cc.isProfiler=function(e){return Rc(e)===mc},cc.isStrictMode=function(e){return Rc(e)===hc},cc.isSuspense=function(e){return Rc(e)===xc},cc.isSuspenseList=function(e){return Rc(e)===Sc},cc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===fc||e===mc||e===hc||e===xc||e===Sc||e===wc||"object"==typeof e&&null!==e&&(e.$$typeof===Cc||e.$$typeof===Ec||e.$$typeof===gc||e.$$typeof===bc||e.$$typeof===yc||e.$$typeof===uc||void 0!==e.getModuleId)},cc.typeOf=Rc;var Lc=!1,Ic=r.createContext(null),Ac="unmounted",Mc="exited",Dc="entering",Pc="entered",_c="exiting",kc=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=Mc,n.appearStatus=Dc):o=Pc:o=t.unmountOnExit||t.mountOnEnter?Ac:Mc,n.state={status:o},n.nextCallback=null,n}Mr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ac?{status:Mc}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Dc&&r!==Pc&&(t=Dc):r!==Dc&&r!==Pc||(t=_c)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.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}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Dc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Mc&&this.setState({status:Ac})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[F.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||Lc?this.safeSetState({status:Pc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Dc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Pc},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:F.findDOMNode(this);t&&!Lc?(this.props.onExit(n),this.safeSetState({status:_c},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Mc},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Mc},(function(){e.props.onExited(n)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ac)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var o=Ir(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(Ic.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function Tc(){}kc.contextType=Ic,kc.propTypes={},kc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Tc,onEntering:Tc,onEntered:Tc,onExit:Tc,onExiting:Tc,onExited:Tc},kc.UNMOUNTED=Ac,kc.EXITED=Mc,kc.ENTERING=Dc,kc.ENTERED=Pc,kc.EXITING=_c;var Oc=kc;function qc(e,t){var r=Object.create(null);return e&&i.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&a(e)?t(e):e}(e)})),r}function Nc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Fc(e,t,r){var n=qc(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var s=o[i];if(a(s)){var u=i in t,c=i in n,d=t[i],p=a(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&a(d)&&(o[i]=l(s,{onExited:r.bind(null,s),in:d.props.in,exit:Nc(s,"exit",e),enter:Nc(s,"enter",e)})):o[i]=l(s,{in:!1}):o[i]=l(s,{onExited:r.bind(null,s),in:!0,exit:Nc(s,"exit",e),enter:Nc(s,"enter",e)})}})),o}var jc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},zc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Dr(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Mr(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,qc(r.children,(function(e){return l(e,{onExited:n.bind(null,e),in:!0,appear:Nc(e,"appear",r),enter:Nc(e,"enter",r),exit:Nc(e,"exit",r)})}))):Fc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var r=qc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=xr({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=Ir(e,["component","childFactory"]),i=this.state.contextValue,a=jc(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(Ic.Provider,{value:i},a):r.createElement(Ic.Provider,{value:i},r.createElement(t,o,a))},t}(r.Component);zc.propTypes={},zc.defaultProps={component:"div",childFactory:function(e){return e}};var $c=zc;const Gc=e=>e.scrollTop;function Bc(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 Wc(e){return Lu("MuiPaper",e)}Iu("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 Hc=["className","component","elevation","square","variant"],Vc=ec("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 pn({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&&pn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Zs("#fff",tc(t.elevation))}, ${Zs("#fff",tc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var Yc=t.forwardRef((function(e,t){const r=Xu({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=fn(r,Hc),u=pn({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return ol({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Wc,o)})(u);return ks.jsx(Vc,pn({as:o,ownerState:u,className:nc(c.root,n),ref:t},s))}));function Uc(e){return"string"==typeof e}function Kc(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 Xc(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 Jc=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Zc(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Ir(e,Jc),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=hl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=xr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=xr({},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=Kc(xr({},o,n)),l=Xc(n),s=Xc(o),u=t(a),c=hl(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=xr({},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=xr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(xr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Uc(e)?t:xr({},t,{ownerState:xr({},t.ownerState,r)})}(r,xr({},s,{ref:Ga(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Qc=Iu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const ed=["center","classes","className"];let td,rd,nd,od,id=e=>e;const ad=Zi(td||(td=id`
|
|
29
27
|
0% {
|
|
30
28
|
transform: scale(0);
|
|
31
29
|
opacity: 0.1;
|
|
@@ -35,7 +33,7 @@ function cs(e,t){let r;return r=t?os(e).withConfig({displayName:t.label,shouldFo
|
|
|
35
33
|
transform: scale(1);
|
|
36
34
|
opacity: 0.3;
|
|
37
35
|
}
|
|
38
|
-
`)),
|
|
36
|
+
`)),ld=Zi(rd||(rd=id`
|
|
39
37
|
0% {
|
|
40
38
|
opacity: 1;
|
|
41
39
|
}
|
|
@@ -43,7 +41,7 @@ function cs(e,t){let r;return r=t?os(e).withConfig({displayName:t.label,shouldFo
|
|
|
43
41
|
100% {
|
|
44
42
|
opacity: 0;
|
|
45
43
|
}
|
|
46
|
-
`)),
|
|
44
|
+
`)),sd=Zi(nd||(nd=id`
|
|
47
45
|
0% {
|
|
48
46
|
transform: scale(1);
|
|
49
47
|
}
|
|
@@ -55,7 +53,7 @@ function cs(e,t){let r;return r=t?os(e).withConfig({displayName:t.label,shouldFo
|
|
|
55
53
|
100% {
|
|
56
54
|
transform: scale(1);
|
|
57
55
|
}
|
|
58
|
-
`)),
|
|
56
|
+
`)),ud=ec("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),cd=ec((function(e){const{className:r,classes:n,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:u,timeout:c}=e,[d,p]=t.useState(!1),f=nc(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:l,height:l,top:-l/2+a,left:-l/2+i},m=nc(n.child,d&&n.childLeaving,o&&n.childPulsate);return s||d||p(!0),t.useEffect((()=>{if(!s&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,s,c]),ks.jsx("span",{className:f,style:h,children:ks.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(od||(od=id`
|
|
59
57
|
opacity: 0;
|
|
60
58
|
position: absolute;
|
|
61
59
|
|
|
@@ -98,7 +96,9 @@ function cs(e,t){let r;return r=t?os(e).withConfig({displayName:t.label,shouldFo
|
|
|
98
96
|
animation-iteration-count: infinite;
|
|
99
97
|
animation-delay: 200ms;
|
|
100
98
|
}
|
|
101
|
-
`),sf.rippleVisible,mf,550,(({theme:e})=>e.transitions.easing.easeInOut),sf.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),sf.child,sf.childLeaving,gf,550,(({theme:e})=>e.transitions.easing.easeInOut),sf.childPulsate,bf,(({theme:e})=>e.transitions.easing.easeInOut));var xf=x.forwardRef((function(e,t){const r=op({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Ei(r,uf),[l,s]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=x.useRef(!1),p=x.useRef(0),f=x.useRef(null),h=x.useRef(null);x.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=x.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,$c.jsx(yf,{classes:{ripple:dp(o.ripple,sf.ripple),rippleVisible:dp(o.rippleVisible,sf.rippleVisible),ripplePulsate:dp(o.ripplePulsate,sf.ripplePulsate),child:dp(o.child,sf.child),childLeaving:dp(o.childLeaving,sf.childLeaving),childPulsate:dp(o.childPulsate,sf.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=x.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m]),b=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return x.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),$c.jsx(vf,Si({className:dp(sf.root,o.root,i),ref:h},a,{children:$c.jsx(Kp,{component:null,exit:!0,children:l})}))}));function Sf(e){return Td("MuiButtonBase",e)}var Ef=Od("MuiButtonBase",["root","disabled","focusVisible"]);const Cf=["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"],wf=sp("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"},[`&.${Ef.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Rf=x.forwardRef((function(e,t){const r=op({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:I,tabIndex:A=0,TouchRippleProps:M,touchRippleRef:D,type:P}=r,_=Ei(r,Cf),k=x.useRef(null),T=x.useRef(null),O=yd(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Md(),[z,$]=x.useState(!1);s&&z&&$(!1),x.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),k.current.focus()}})),[]);const[G,B]=x.useState(!1);x.useEffect((()=>{B(!0)}),[]);const W=G&&!u&&!s;function H(e,t,r=c){return vd((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}x.useEffect((()=>{z&&d&&!u&&G&&T.current.pulsate()}),[u,d,z,G]);const V=H("start",E),Y=H("stop",m),U=H("stop",g),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",I),Z=H("stop",R),Q=H("stop",L),ee=H("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=vd((e=>{k.current||(k.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=k.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=vd((e=>{d&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=vd((e=>{d&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=yd(t,j,k),ue=Si({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=pu({root:["root",t&&"disabled",r&&"focusVisible"]},Sf,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return $c.jsxs(wf,Si({as:ae,className:dp(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:A,type:P},le,_,{children:[i,W?$c.jsx(xf,Si({ref:O,center:o},M)):null]}))}));var Lf=Rf;function If(e){return Td("MuiTypography",e)}Od("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Af=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Mf=sp("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${cd(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Si({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}))),Df={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Pf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_f=x.forwardRef((function(e,t){const r=op({props:e,name:"MuiTypography"}),n=(e=>Pf[e]||e)(r.color),o=Wc(Si({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Df}=o,f=Ei(o,Af),h=Si({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||Df[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return pu({root:["root",i,"inherit"!==e.align&&`align${cd(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},If,a)})(h);return $c.jsx(Mf,Si({as:m,ref:t,ownerState:h,className:dp(g.root,a)},f))}));var kf=_f;const Tf=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Of(e){const t=[],r=[];return Array.from(e.querySelectorAll(Tf)).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 qf(){return!0}function Nf(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Of,isEnabled:a=qf,open:l}=e,s=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=Xs(t.ref,h),g=x.useRef(null);x.useEffect((()=>{l&&h.current&&(f.current=!r)}),[r,l]),x.useEffect((()=>{if(!l||!h.current)return;const e=Hs(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),x.useEffect((()=>{if(!l||!h.current)return;const e=Hs(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return $c.jsxs(x.Fragment,{children:[$c.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),$c.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Ff=x.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=x.useState(null),l=Xs(x.isValidElement(r)?r.ref:null,t);if(Us((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Us((()=>{if(i&&!o)return Ys(t,i),()=>{Ys(t,null)}}),[t,i,o]),o){if(x.isValidElement(r)){const e={ref:l};return x.cloneElement(r,e)}return $c.jsx(x.Fragment,{children:r})}return $c.jsx(x.Fragment,{children:i?j.createPortal(r,i):i})}));function jf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function zf(e){return parseInt(Vs(e).getComputedStyle(e).paddingRight,10)||0}function $f(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&&jf(e,o)}))}function Gf(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Bf(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Hs(e);return t.body===e?Vs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=cu(Hs(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${zf(n)+e}px`;const t=Hs(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${zf(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Hs(n).body;else{const t=n.parentElement,r=Vs(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 Wf=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&&jf(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);$f(t,e.mount,e.modalRef,n,!0);const o=Gf(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=Gf(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Bf(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Gf(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&&jf(e.modalRef,t),$f(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&&jf(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Hf(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Wf,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=Xs(h,d),[g,b]=x.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=Ks((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Hs(f.current).body;o.add(S(),e),h.current&&E()})),w=x.useCallback((()=>o.isTopModal(S())),[o]),R=Ks((e=>{f.current=e,e&&(c&&w()?E():h.current&&jf(h.current,y))})),L=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{L()}),[L]),x.useEffect((()=>{c?C():v&&i||L()}),[c,L,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")))},A=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=nf(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Do({},r,t);return Do({role:"presentation"},n,{onKeyDown:I(n),ref:m})},getBackdropProps:(e={})=>Do({"aria-hidden":!0},e,{onClick:A(e),open:c}),getTransitionProps:()=>({onEnter:Bs((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Bs((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const Vf=["onChange","maxRows","minRows","style","value"];function Yf(e){return parseInt(e,10)||0}const Uf={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Kf(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Xf=x.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=No(e,Vf),{current:s}=x.useRef(null!=a),u=x.useRef(null),c=Xs(t,u),d=x.useRef(null),p=x.useRef(0),[f,h]=x.useState({outerHeightStyle:0}),m=x.useCallback((()=>{const t=u.current,r=Vs(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,l=Yf(r.paddingBottom)+Yf(r.paddingTop),s=Yf(r.borderBottomWidth)+Yf(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},b=x.useCallback((()=>{const e=m();Kf(e)||h((t=>g(t,e)))}),[m]);Us((()=>{const e=()=>{p.current=0,(()=>{const e=m();Kf(e)||j.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=Ws(e),r=u.current,n=Vs(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()}}),[m]),Us((()=>{b()})),x.useEffect((()=>{p.current=0}),[a]);return $c.jsxs(x.Fragment,{children:[$c.jsx("textarea",Do({value:a,onChange:e=>{p.current=0,s||b(),r&&r(e)},ref:c,rows:o,style:Do({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),$c.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Do({},Uf,i,{paddingTop:0,paddingBottom:0})})]})}));function Jf({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 Zf=x.createContext(void 0);function Qf(){return x.useContext(Zf)}function eh(e){return $c.jsx(Gc,Si({},e,{defaultTheme:rp,themeId:xi}))}function th(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function rh(e,t=!1){return e&&(th(e.value)&&""!==e.value||t&&th(e.defaultValue)&&""!==e.defaultValue)}function nh(e){return Td("MuiInputBase",e)}var oh=Od("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const ih=["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"],ah=(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${cd(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},lh=(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]},sh=sp("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ah})((({theme:e,ownerState:t})=>Si({},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",[`&.${oh.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Si({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),uh=sp("input",{name:"MuiInputBase",slot:"Input",overridesResolver:lh})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Si({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 Si({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] + .${oh.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},[`&.${oh.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"})})),ch=$c.jsx(eh,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),dh=x.forwardRef((function(e,t){var r;const n=op({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:I,onKeyDown:A,onKeyUp:M,placeholder:D,readOnly:P,renderSuffix:_,rows:k,slotProps:T={},slots:O={},startAdornment:q,type:N="text",value:F}=n,j=Ei(n,ih),z=null!=b.value?b.value:F,{current:$}=x.useRef(null!=z),G=x.useRef(),B=x.useCallback((e=>{}),[]),W=yd(G,v,b.ref,B),[H,V]=x.useState(!1),Y=Qf(),U=Jf({props:n,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:H,x.useEffect((()=>{!Y&&d&&H&&(V(!1),w&&w())}),[Y,d,H,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=x.useCallback((e=>{rh(e)?K&&K():X&&X()}),[K,X]);fd((()=>{$&&J({value:z})}),[z,J,$]);x.useEffect((()=>{J(G.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=Si(k?{type:void 0,minRows:k,maxRows:k}:{type:void 0,maxRows:y,minRows:S},Q),Z=Xf);x.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=Si({},n,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:Y,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:E,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return pu({root:["root",`color${cd(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${cd(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},nh,t)})(ee),re=O.root||s.Root||sh,ne=T.root||u.root||{},oe=O.input||s.Input||uh;return Q=Si({},Q,null!=(r=T.input)?r:u.input),$c.jsxs(x.Fragment,{children:[!p&&ch,$c.jsxs(re,Si({},ne,!rf(re)&&{ownerState:Si({},ee,ne.ownerState)},{ref:t,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),L&&L(e)}},j,{className:dp(te.root,ne.className,l,P&&"MuiInputBase-readOnly"),children:[q,$c.jsx(Zf.Provider,{value:null,children:$c.jsx(oe,Si({ownerState:ee,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?G.current:{value:"x"})},name:C,placeholder:D,readOnly:P,required:U.required,rows:k,value:z,onKeyDown:A,onKeyUp:M,type:N},Q,!rf(oe)&&{as:Z,ownerState:Si({},ee,Q.ownerState)},{ref:W,className:dp(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||G.current;if(null==t)throw new Error(yi(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),f,_?_(Si({},U,{startAdornment:q})):null]}))]})}));var ph=dh;function fh(e){return Td("MuiInput",e)}var hh=Si({},oh,Od("MuiInput",["root","underline","input"]));function mh(e){return Td("MuiOutlinedInput",e)}var gh=Si({},oh,Od("MuiOutlinedInput",["root","notchedOutline","input"]));function bh(e){return Td("MuiFilledInput",e)}var vh=Si({},oh,Od("MuiFilledInput",["root","underline","input"])),yh=function(e,t){function r(r,n){return $c.jsx(gp,Si({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=gp.muiName,x.memo(x.forwardRef(r))}($c.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const xh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Sh={entering:{opacity:1},entered:{opacity:1}},Eh=x.forwardRef((function(e,t){const r=np(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=Bp}=e,v=Ei(e,xh),y=x.useRef(null),S=yd(y,a.ref,t),E=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{Xp(e);const n=Jp({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),L=E(h),I=E((e=>{const t=Jp({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),A=E(f);return $c.jsx(b,Si({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:A,onExiting:L,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,Si({style:Si({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Sh[e],m,a.props.style),ref:S},t))}))}));var Ch=Eh;function wh(e){return Td("MuiBackdrop",e)}Od("MuiBackdrop",["root","invisible"]);const Rh=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Lh=sp("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Si({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"}))),Ih=x.forwardRef((function(e,t){var r,n,o;const i=op({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Ch,transitionDuration:g}=i,b=Ei(i,Rh),v=Si({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return pu({root:["root",r&&"invisible"]},wh,t)})(v),x=null!=(r=f.root)?r:c.root;return $c.jsx(m,Si({in:p,timeout:g},b,{children:$c.jsx(Lh,Si({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:s,className:dp(y.root,l,null==x?void 0:x.className),ownerState:Si({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Ah=Ih;var Mh=Od("MuiBox",["root"]);const Dh=tp(),Ph=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=cs("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Rc);return x.forwardRef((function(e,a){const l=Pc(r),s=Wc(e),{className:u,component:c="div"}=s,d=No(s,Hc);return $c.jsx(i,Do({as:c,ref:a,className:Eu(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:xi,defaultTheme:Dh,defaultClassName:Mh.root,generateClassName:_d.generate});var _h=Ph;function kh(e){return Td("MuiButton",e)}var Th=Od("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 Oh=x.createContext({});var qh=x.createContext(void 0);const Nh=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Fh=e=>Si({},"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}}),jh=sp(Lf,{shouldForwardProp:e=>ip(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${cd(r.color)}`],t[`size${cd(r.size)}`],t[`${r.variant}Size${cd(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 Si({},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":Si({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ad(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})`:ad(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})`:ad(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":Si({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Th.focusVisible}`]:Si({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Th.disabled}`]:Si({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 ${ad(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"},[`&.${Th.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Th.disabled}`]:{boxShadow:"none"}})),zh=sp("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${cd(r.size)}`]]}})((({ownerState:e})=>Si({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Fh(e)))),$h=sp("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${cd(r.size)}`]]}})((({ownerState:e})=>Si({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Fh(e)))),Gh=x.forwardRef((function(e,t){const r=x.useContext(Oh),n=x.useContext(qh),o=op({props:Dd(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Ei(o,Nh),S=Si({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Si({},a,pu({root:["root",i,`${i}${cd(t)}`,`size${cd(o)}`,`${i}Size${cd(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${cd(o)}`],endIcon:["endIcon",`iconSize${cd(o)}`]},kh,a))})(S),C=g&&$c.jsx(zh,{className:E.startIcon,ownerState:S,children:g}),w=p&&$c.jsx($h,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return $c.jsxs(jh,Si({ownerState:S,className:dp(r.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:dp(E.focusVisible,f),ref:t,type:b},y,{classes:E,children:[C,i,w]}))}));var Bh=Gh;function Wh(e){return Td("MuiModal",e)}Od("MuiModal",["root","hidden","backdrop"]);const Hh=["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"],Vh=sp("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})=>Si({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Yh=sp(Ah,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Uh=x.forwardRef((function(e,t){var r,n,o,i,a,l;const s=op({name:"MuiModal",props:e}),{BackdropComponent:u=Yh,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:I,open:A,slotProps:M,slots:D}=s,P=Ei(s,Hh),_=Si({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:k,getBackdropProps:T,getTransitionProps:O,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=Hf(Si({},_,{rootRef:t})),z=Si({},_,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return pu({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Wh,n)})(z),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),j){const{onEnter:e,onExited:t}=O();G.onEnter=e,G.onExited=t}const B=null!=(r=null!=(n=null==D?void 0:D.root)?n:g.Root)?r:Vh,W=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,H=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,Y=lf({elementType:B,externalSlotProps:H,externalForwardedProps:P,getSlotProps:k,additionalProps:{ref:t,as:m},ownerState:z,className:dp(d,null==H?void 0:H.className,null==$?void 0:$.root,!z.open&&z.exited&&(null==$?void 0:$.hidden))}),U=lf({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(Si({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:dp(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:z});return L||A||j&&!F?$c.jsx(Ff,{ref:q,container:h,disablePortal:E,children:$c.jsxs(B,Si({},Y,{children:[!R&&u?$c.jsx(W,Si({},U)):null,$c.jsx(Nf,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:A,children:x.cloneElement(f,G)})]}))}):null}));var Kh=Uh;function Xh(e){return Td("MuiDivider",e)}var Jh=Od("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Zh=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Qh=sp("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})=>Si({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)`:ad(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})=>Si({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Si({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Si({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Si({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),em=sp("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Si({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)`}))),tm=x.forwardRef((function(e,t){const r=op({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Ei(r,Zh),h=Si({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return pu({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Xh,n)})(h);return $c.jsx(Qh,Si({as:a,className:dp(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?$c.jsx(em,{className:m.wrapper,ownerState:h,children:o}):null}))}));tm.muiSkipListHighlight=!0;var rm=tm;const nm=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],om=sp(sh,{shouldForwardProp:e=>ip(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ah(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Si({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}},[`&.${vh.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${vh.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${vh.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vh.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(.${vh.disabled}, .${vh.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vh.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Si({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}))})),im=sp(uh,{name:"MuiFilledInput",slot:"Input",overridesResolver:lh})((({theme:e,ownerState:t})=>Si({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}))),am=x.forwardRef((function(e,t){var r,n,o,i;const a=op({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Ei(a,nm),g=Si({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Si({},t,pu({root:["root",!r&&"underline"],input:["input"]},bh,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?ud(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:om,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:im;return $c.jsx(ph,Si({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));am.muiName="Input";var lm=am;const sm=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function um(e){return`scale(${e}, ${e**2})`}const cm={entering:{opacity:1,transform:um(1)},entered:{opacity:1,transform:"none"}},dm="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),pm=x.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Bp}=e,g=Ei(e,sm),b=x.useRef(),v=x.useRef(),y=np(),S=x.useRef(null),E=yd(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)=>{Xp(e);const{duration:r,delay:n,easing:o}=Jp({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:dm?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),L=C(s),I=C(p),A=C((e=>{const{duration:t,delay:r,easing:n}=Jp({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:dm?o:.666*o,delay:dm?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=um(.75),c&&c(e)})),M=C(d);return x.useEffect((()=>()=>{clearTimeout(b.current)}),[]),$c.jsx(m,Si({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:A,onExited:M,onExiting:I,addEndListener:e=>{"auto"===h&&(b.current=setTimeout(e,v.current||0)),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,Si({style:Si({opacity:0,transform:um(.75),visibility:"exited"!==e||a?void 0:"hidden"},cm[e],f,o.props.style),ref:E},t))}))}));pm.muiSupportAuto=!0;var fm=pm;const hm=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],mm=sp(sh,{shouldForwardProp:e=>ip(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ah(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})`),Si({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"},[`&.${hh.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${hh.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(.${hh.disabled}, .${hh.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${hh.disabled}:before`]:{borderBottomStyle:"dotted"}})})),gm=sp(uh,{name:"MuiInput",slot:"Input",overridesResolver:lh})({}),bm=x.forwardRef((function(e,t){var r,n,o,i;const a=op({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Ei(a,hm),b=(e=>{const{classes:t,disableUnderline:r}=e;return Si({},t,pu({root:["root",!r&&"underline"],input:["input"]},fh,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?ud(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:s.Root)?r:mm,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:gm;return $c.jsx(ph,Si({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));bm.muiName="Input";var vm=bm;function ym(e){return Td("MuiLink",e)}var xm=Od("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Sm={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Em=({theme:e,ownerState:t})=>{const r=(e=>Sm[e]||e)(t.color),n=Tu(e,`palette.${r}`,!1)||t.color,o=Tu(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ad(n,.4)};const Cm=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],wm=sp(kf,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${cd(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Si({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Si({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Em({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"},[`&.${xm.focusVisible}`]:{outline:"auto"}}))),Rm=x.forwardRef((function(e,t){const r=op({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=r,p=Ei(r,Cm),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=Md(),[b,v]=x.useState(!1),y=yd(t,g),S=Si({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return pu({root:["root",`underline${cd(o)}`,"button"===r&&"button",n&&"focusVisible"]},ym,t)})(S);return $c.jsx(wm,Si({color:o,className:dp(E.root,n),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),l&&l(e)},ref:y,ownerState:S,variant:c,sx:[...Object.keys(Sm).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var Lm=Rm;var Im=x.createContext({});function Am(e){return Td("MuiList",e)}Od("MuiList",["root","padding","dense","subheader"]);const Mm=["children","className","component","dense","disablePadding","subheader"],Dm=sp("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})=>Si({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Pm=x.forwardRef((function(e,t){const r=op({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=Ei(r,Mm),c=x.useMemo((()=>({dense:a})),[a]),d=Si({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return pu({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Am,t)})(d);return $c.jsx(Im.Provider,{value:c,children:$c.jsxs(Dm,Si({as:i,className:dp(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function _m(e){return Td("MuiListItemIcon",e)}var km=Od("MuiListItemIcon",["root","alignItemsFlexStart"]);const Tm=["className"],Om=sp("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})=>Si({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var qm=x.forwardRef((function(e,t){const r=op({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Ei(r,Tm),i=Si({},r,{alignItems:x.useContext(Im).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return pu({root:["root","flex-start"===t&&"alignItemsFlexStart"]},_m,r)})(i);return $c.jsx(Om,Si({className:dp(a.root,n),ownerState:i,ref:t},o))}));var Nm=Od("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Fm=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function jm(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function zm(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function $m(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 Gm(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&$m(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Bm=x.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Ei(e,Fm),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});fd((()=>{n&&p.current.focus()}),[n]),x.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)}(dd(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=yd(p,t);let m=-1;x.Children.forEach(i,((e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=x.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),x.cloneElement(e,t)}return e}));return $c.jsx(Pm,Si({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=dd(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Gm(t,n,s,l,jm);else if("ArrowUp"===r)e.preventDefault(),Gm(t,n,s,l,zm);else if("Home"===r)e.preventDefault(),Gm(t,null,s,l,jm);else if("End"===r)e.preventDefault(),Gm(t,null,s,l,zm);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&$m(n,o);o.previousKeyMatched&&(s||Gm(t,n,!1,l,jm,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Wm(e){return Td("MuiPopover",e)}Od("MuiPopover",["root","paper"]);const Hm=["onEntering"],Vm=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ym=["slotProps"];function Um(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Km(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Xm(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Jm(e){return"function"==typeof e?e():e}const Zm=sp(Kh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qm=sp(tf,{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 eg=x.forwardRef((function(e,t){var r,n,o;const i=op({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=fm,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=Ei(i.TransitionProps,Hm),I=Ei(i,Vm),A=null!=(r=null==y?void 0:y.paper)?r:b,M=x.useRef(),D=yd(M,A.ref),P=Si({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return pu({root:["root"],paper:["paper"]},Wm,t)})(P),k=x.useCallback((()=>{if("anchorPosition"===c)return u;const e=Jm(l),t=(e&&1===e.nodeType?e:dd(M.current).body).getBoundingClientRect();return{top:t.top+Um(t,s.vertical),left:t.left+Km(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=x.useCallback((e=>({vertical:Um(e,S.vertical),horizontal:Km(e,S.horizontal)})),[S.horizontal,S.vertical]),O=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===c)return{top:null,left:null,transformOrigin:Xm(r)};const n=k();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=pd(Jm(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Xm(r)}}),[l,c,k,T,m]),[q,N]=x.useState(g),F=x.useCallback((()=>{const e=M.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]);x.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);x.useEffect((()=>{g&&F()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),x.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=pd(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=f||(l?dd(Jm(l)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:Zm,G=null!=(o=null==v?void 0:v.paper)?o:Qm,B=lf({elementType:G,externalSlotProps:Si({},A,{style:q?A.style:Si({},A.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:dp(_.paper,null==A?void 0:A.className)}),W=lf({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:P,className:dp(_.root,p)}),{slotProps:H}=W,V=Ei(W,Ym);return $c.jsx($,Si({},V,!rf($)&&{slotProps:H,disableScrollLock:R},{children:$c.jsx(E,Si({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:$c.jsx(G,Si({},B,{children:d}))}))}))}));function tg(e){return Td("MuiMenu",e)}Od("MuiMenu",["root","paper","list"]);const rg=["onEntering"],ng=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],og={vertical:"top",horizontal:"right"},ig={vertical:"top",horizontal:"left"},ag=sp(eg,{shouldForwardProp:e=>ip(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lg=sp(Qm,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sg=sp(Bm,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var ug=x.forwardRef((function(e,t){var r,n;const o=op({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Ei(o.TransitionProps,rg),S=Ei(o,ng),E=np(),C="rtl"===E.direction,w=Si({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),R=(e=>{const{classes:t}=e;return pu({root:["root"],paper:["paper"],list:["list"]},tg,t)})(w),L=i&&!s&&d,I=x.useRef(null);let A=-1;x.Children.map(a,((e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const M=null!=(r=b.paper)?r:lg,D=null!=(n=v.paper)?n:p,P=lf({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),_=lf({elementType:M,externalSlotProps:D,ownerState:w,className:R.paper});return $c.jsx(ag,Si({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?og:ig,slots:{paper:M,root:b.root},slotProps:{root:P,paper:_},open:d,ref:t,transitionDuration:h,TransitionProps:Si({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),m&&m(e,t)}},y),ownerState:w},S,{classes:f,children:$c.jsx(sg,Si({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:I,autoFocus:i&&(-1===A||s),autoFocusItem:L,variant:g},u,{className:dp(R.list,u.className),children:a}))}))}));function cg(e){return Td("MuiMenuItem",e)}var dg=Od("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const pg=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],fg=sp(Lf,{shouldForwardProp:e=>ip(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})=>Si({},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"}},[`&.${dg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ad(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${dg.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ad(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${dg.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ad(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})`:ad(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${dg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${dg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Jh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Jh.inset}`]:{marginLeft:52},[`& .${Nm.root}`]:{marginTop:0,marginBottom:0},[`& .${Nm.inset}`]:{paddingLeft:36},[`& .${km.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Si({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${km.root} svg`]:{fontSize:"1.25rem"}}))));var hg=x.forwardRef((function(e,t){const r=op({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=Ei(r,pg),f=x.useContext(Im),h=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=x.useRef(null);fd((()=>{n&&m.current&&m.current.focus()}),[n]);const g=Si({},r,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Si({},a,pu({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},cg,a))})(r),v=yd(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),$c.jsx(Im.Provider,{value:h,children:$c.jsx(fg,Si({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:dp(b.focusVisible,s),className:dp(b.root,d)},p,{ownerState:g,classes:b}))})}));function mg(e){return Td("MuiNativeSelect",e)}var gg=Od("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const bg=["className","disabled","error","IconComponent","inputRef","variant"],vg=({ownerState:e,theme:t})=>Si({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Si({},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"},[`&.${gg.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}}),yg=sp("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ip,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${gg.multiple}`]:t.multiple}]}})(vg),xg=({ownerState:e,theme:t})=>Si({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${gg.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Sg=sp("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${cd(r.variant)}`],r.open&&t.iconOpen]}})(xg),Eg=x.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Ei(e,bg),u=Si({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return pu({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${cd(r)}`,i&&"iconOpen",n&&"disabled"]},mg,t)})(u);return $c.jsxs(x.Fragment,{children:[$c.jsx(yg,Si({ownerState:u,className:dp(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:$c.jsx(Sg,{as:i,ownerState:u,className:c.icon})]})}));var Cg,wg=Eg;const Rg=["children","classes","className","label","notched"],Lg=sp("fieldset",{shouldForwardProp:ip})({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%"}),Ig=sp("legend",{shouldForwardProp:ip})((({ownerState:e,theme:t})=>Si({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&&Si({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 Ag=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Mg=sp(sh,{shouldForwardProp:e=>ip(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:ah})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Si({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${gh.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${gh.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${gh.focused} .${gh.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${gh.error} .${gh.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${gh.disabled} .${gh.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Si({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Dg=sp((function(e){const{className:t,label:r,notched:n}=e,o=Ei(e,Rg),i=null!=r&&""!==r,a=Si({},e,{notched:n,withLabel:i});return $c.jsx(Lg,Si({"aria-hidden":!0,className:t,ownerState:a},o,{children:$c.jsx(Ig,{ownerState:a,children:i?$c.jsx("span",{children:r}):Cg||(Cg=$c.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}})),Pg=sp(uh,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:lh})((({theme:e,ownerState:t})=>Si({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}))),_g=x.forwardRef((function(e,t){var r,n,o,i,a;const l=op({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=Ei(l,Ag),b=(e=>{const{classes:t}=e;return Si({},t,pu({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},mh,t))})(l),v=Qf(),y=Jf({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Si({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),E=null!=(r=null!=(n=h.root)?n:s.Root)?r:Mg,C=null!=(o=null!=(i=h.input)?i:s.Input)?o:Pg;return $c.jsx(ph,Si({slots:{root:E,input:C},renderSuffix:e=>$c.jsx(Dg,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=$c.jsxs(x.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:Si({},b,{notchedOutline:null})}))}));_g.muiName="Input";var kg=_g;function Tg(e){return Td("MuiSelect",e)}var Og,qg=Od("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Ng=["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"],Fg=sp("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${qg.select}`]:t.select},{[`&.${qg.select}`]:t[r.variant]},{[`&.${qg.error}`]:t.error},{[`&.${qg.multiple}`]:t.multiple}]}})(vg,{[`&.${qg.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),jg=sp("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${cd(r.variant)}`],r.open&&t.iconOpen]}})(xg),zg=sp("input",{shouldForwardProp:e=>ap(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 $g(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Gg(e){return null==e||"string"==typeof e&&!e.trim()}const Bg=x.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:I,renderValue:A,SelectDisplayProps:M={},tabIndex:D,value:P,variant:_="standard"}=e,k=Ei(e,Ng),[T,O]=bd({controlled:P,default:c,name:"Select"}),[q,N]=bd({controlled:L,default:u,name:"Select"}),F=x.useRef(null),j=x.useRef(null),[z,$]=x.useState(null),{current:G}=x.useRef(null!=L),[B,W]=x.useState(),H=yd(t,m),V=x.useCallback((e=>{j.current=e,e&&$(e)}),[]),Y=null==z?void 0:z.parentNode;x.useImperativeHandle(H,(()=>({focus:()=>{j.current.focus()},node:F.current,value:T})),[T]),x.useEffect((()=>{u&&q&&z&&!G&&(W(a?null:Y.clientWidth),j.current.focus())}),[z,a]),x.useEffect((()=>{i&&j.current.focus()}),[i]),x.useEffect((()=>{if(!g)return;const e=dd(j.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?R&&R(t):C&&C(t),G||(W(a?null:Y.clientWidth),N(e))},K=x.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==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:y}}),E(o,e)}v||U(!1,t)}},J=null!==z&&q;let Z,Q;delete k["aria-invalid"];const ee=[];let te=!1;(rh({value:T})||p)&&(A?Z=A(T):te=!0);const re=K.map((e=>{if(!x.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(yi(2));t=T.some((t=>$g(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=$g(T,e.props.value),t&&te&&(Q=e.props.children);return x.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=B;!a&&G&&z&&(oe=Y.clientWidth),ne=void 0!==D?D:d?null:0;const ie=M.id||(y?`mui-component-select-${y}`:void 0),ae=Si({},e,{variant:_,value:T,open:J,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return pu({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${cd(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Tg,t)})(ae),se=Si({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=gd();return $c.jsxs(x.Fragment,{children:[$c.jsx(Fg,Si({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(),U(!0,e))}},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),U(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:y}}),S(e))},onFocus:w},M,{ownerState:ae,className:dp(M.className,le.select,s),id:ie,children:Gg(Z)?Og||(Og=$c.jsx("span",{className:"notranslate",children:""})):Z})),$c.jsx(zg,Si({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:y,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:le.nativeInput,autoFocus:i,ownerState:ae},k)),$c.jsx(jg,{as:h,className:le.icon,ownerState:ae}),$c.jsx(ug,Si({id:`menu-${y||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Si({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Si({},b.slotProps,{paper:Si({},se,{style:Si({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var Wg=Bg;const Hg=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Vg=["root"],Yg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ip(e)&&"variant"!==e,slot:"Root"},Ug=sp(vm,Yg)(""),Kg=sp(kg,Yg)(""),Xg=sp(lm,Yg)(""),Jg=x.forwardRef((function(e,t){const r=op({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=yh,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=r,R=Ei(r,Hg),L=b?wg:Wg,I=Jf({props:r,muiFormControl:Qf(),states:["variant","error"]}),A=I.variant||w,M=Si({},r,{variant:A,classes:i}),D=(e=>{const{classes:t}=e;return t})(M),P=Ei(D,Vg),_=d||{standard:$c.jsx(Ug,{ownerState:M}),outlined:$c.jsx(Kg,{label:f,ownerState:M}),filled:$c.jsx(Xg,{ownerState:M})}[A],k=yd(t,_.ref);return $c.jsx(x.Fragment,{children:x.cloneElement(_,Si({inputComponent:L,inputProps:Si({children:o,error:I.error,IconComponent:u,variant:A,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:S,renderValue:E,SelectDisplayProps:Si({id:c},C)},p,{classes:p?ud(P,p.classes):P},d?d.props.inputProps:{})},g&&b&&"outlined"===A?{notched:!0}:{},{ref:k,className:dp(_.props.className,a,D.root)},!d&&{variant:A},R))})}));Jg.muiName="Select";var Zg=Jg,Qg=(e={})=>S.createElement(ii,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:Go.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const eb={MuiAccordion:{styleOverrides:{root:{backgroundColor:Go.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Go.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(ri,{"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 ${Go.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Go.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Go.MISC_FOCUS_BORDER}`,borderRadius:Yo,backgroundColor:Go.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 ${Go.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Go.WHITE,color:Go.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:Yo},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Go.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Go.GREYSCALE_0_15,backgroundColor:Go.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Go.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Go.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Go.GREEN_PALE},"&:active":{backgroundColor:Go.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Go.GREEN_PALE,boxShadow:`0 0 0 3px ${ad(Go.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Go.BLUE_PALE},"&:active":{backgroundColor:Go.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Go.BLUE_PALE,boxShadow:`0 0 0 3px ${ad(Go.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:Yo,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Go.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Go.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Go.GREYSCALE_0_15,backgroundColor:Go.GREYSCALE_100_60,"&:active":{backgroundColor:Go.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Go.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Go.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Go.PURPLE,"&.Mui-focusVisible":{borderColor:Go.PURPLE,boxShadow:`0 0 0 3px ${ad(Go.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Go.GREEN,"&.Mui-focusVisible":{borderColor:Go.GREEN,boxShadow:`0 0 0 3px ${ad(Go.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Go.BLUE,"&.Mui-focusVisible":{borderColor:Go.BLUE,boxShadow:`0 0 0 3px ${ad(Go.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Go.ORANGE,"&.Mui-focusVisible":{borderColor:Go.ORANGE,boxShadow:`0 0 0 3px ${ad(Go.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Go.RED,"&.Mui-focusVisible":{borderColor:Go.RED,boxShadow:`0 0 0 3px ${ad(Go.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Go.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Go.PURPLE_PALE},"&:active":{backgroundColor:Go.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Go.PURPLE_PALE,boxShadow:`0 0 0 3px ${ad(Go.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Go.GREEN_PALE},"&:active":{backgroundColor:Go.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Go.GREEN_PALE,boxShadow:`0 0 0 3px ${ad(Go.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Go.BLUE_PALE},"&:active":{backgroundColor:Go.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Go.BLUE_PALE,boxShadow:`0 0 0 3px ${ad(Go.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Go.ORANGE_PALE},"&:active":{backgroundColor:Go.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Go.ORANGE_PALE,boxShadow:`0 0 0 3px ${ad(Go.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Go.RED_PALE},"&:active":{backgroundColor:Go.RED_DARK},"&.Mui-focusVisible":{borderColor:Go.RED_PALE,boxShadow:`0 0 0 3px ${ad(Go.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:Go.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Go.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Yo,boxShadow:`inset 0 0 0 2px ${Go.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(oi,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Bo,borderRadius:Yo,color:Go.TEXT_PRIMARY,backgroundColor:Go.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Go.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Go.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Go.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Go.GREYSCALE_0_05,color:Go.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Go.GREEN,borderColor:Go.GREEN},"&.MuiChip-outlinedInfo":{color:Go.BLUE,borderColor:Go.BLUE},"&.MuiChip-outlinedWarning":{color:Go.ORANGE,borderColor:Go.ORANGE},"&.MuiChip-outlinedError":{color:Go.RED,borderColor:Go.RED}},outlined:{border:`solid 1px ${Go.GREYSCALE_0_15}`,backgroundColor:Go.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Yo,boxShadow:"none",backgroundColor:Go.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Go.GREEN,borderColor:Go.GREEN},outlinedSecondary:{color:Go.BLUE,borderColor:Go.BLUE},label:{fontFamily:Zo.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(oi,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(ri,{"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:Yo},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Yo,fontSize:Wo,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Go.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Go.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Go.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Go.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Go.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Yo,border:`solid 1px ${Go.GREYSCALE_0_15}`,color:Go.GREYSCALE_0_60,marginRight:0,width:Vo,height:Vo},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Go.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Yo,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Go.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Wo}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Bo,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Go.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Go.GREYSCALE_25,fontSize:Bo,fontFamily:Zo.FONT_FAMILY,fontWeight:Xo,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Go.TEXT_PRIMARY},"&.Mui-error":{color:Go.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Go.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ko,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Go.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ko,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Wo,lineHeight:"16px",backgroundColor:Go.WHITE,borderRadius:Yo,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Go.GREYSCALE_0_05}`,borderColor:Go.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Go.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Go.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Go.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Go.RED}`,boxShadow:`0px 0px 0px 1px ${Go.RED}, inset 0 2px 0 0 ${Go.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Go.GREYSCALE_0_10}`,borderColor:Go.GREYSCALE_0_10,backgroundColor:Go.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Go.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Go.GREYSCALE_0_15,borderRadius:Yo,boxShadow:`inset 0 2px 0 0 ${Go.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(ri,{...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:Go.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Go.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Go.GREYSCALE_0_03},"&:active":{backgroundColor:Go.GREYSCALE_0_10},"&:focus":{backgroundColor:Go.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Go.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Go.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Go.GREYSCALE_0_30,"&:hover":{backgroundColor:Go.GREYSCALE_0_0,borderColor:Go.GREYSCALE_0_15},"& ~svg":{color:Go.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Go.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Yo}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Go.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Go.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Go.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Wo,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Bo,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Bo,fontWeight:Xo,color:Go.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Xo}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Go.GREYSCALE_0_15}, 0px 0px 0px 1px ${Go.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(si,null),checkedIcon:S.createElement(ui,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Go.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Go.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Go.GREEN_PALE,boxShadow:`0 0 0 3px ${ad(Go.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Go.BLUE_PALE,boxShadow:`0 0 0 3px ${ad(Go.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Go.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Go.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(Qg,null),checkedIcon:S.createElement(ai,null),indeterminateIcon:S.createElement(li,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Yo,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Go.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Go.GREYSCALE_0_55,color:Go.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:Go.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Go.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Go.GREYSCALE_0_55,"&:hover":{color:Go.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:Go.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Go.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Wo,color:Go.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Xo},secondary:{fontSize:Bo,color:Go.GREYSCALE_45,fontWeight:Ko,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Wo,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Wo,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Go.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Bo,borderBottom:`solid 1px ${Go.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Wo,color:Go.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Go.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Go.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Go.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:Go.RED}}},"&.Mui-focusVisible":{backgroundColor:Go.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:Go.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:Go.GREEN,height:"24px","&.Mui-disabled":{color:Go.GREYSCALE_0_15}},rail:{backgroundColor:Go.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Go.GREYSCALE_0_05}`,borderRadius:Yo,boxShadow:`inset 0px 0px 0px 1px ${Go.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Go.GREYSCALE_0_05}`,borderRadius:Yo},thumb:{height:"16px",width:"16px",borderRadius:Yo,backgroundColor:Go.WHITE,boxShadow:`0px 1px 2px 0px ${Go.GREYSCALE_0_15}, 0px 0px 0px 1px ${Go.GREYSCALE_0_05}`,"&:hover":{borderRadius:Yo,boxShadow:`0 2px 4px 0 ${Go.GREYSCALE_0_30}, 0 0 0 1px ${Go.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Go.GREYSCALE_0_15}, 0 0 0 1px ${Go.GREYSCALE_0_06}, 0 0 0 2px ${Go.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Go.GREYSCALE_0_15}, 0 0 0 1px ${Go.GREYSCALE_0_06}, 0 0 0 2px ${Go.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Go.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Go.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Go.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Go.GREYSCALE_0_15},markLabel:{color:Go.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Go.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Go.WHITE,color:Go.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:Go.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:Go.GREEN_PALE,boxShadow:`0 0 0 3px ${ad(Go.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Go.BLUE_PALE,boxShadow:`0 0 0 3px ${ad(Go.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Go.GREYSCALE_0_15,borderRadius:Yo},thumb:{height:"16px",width:"16px",borderRadius:Yo,backgroundColor:Go.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:Wo,fontWeight:Xo,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Go.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Go.MISC_FOCUS_BORDER}`,backgroundColor:Go.GREYSCALE_0_03,borderRadius:Yo},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Go.GREYSCALE_25,"&.Mui-selected":{color:Go.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Wo,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Yo,"&:hover":{backgroundColor:`${Go.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Go.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Go.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Yo,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Go.GREYSCALE_0_05},"&:hover":{backgroundColor:`${Go.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Go.GREYSCALE_85}`,borderRight:`1px solid ${Go.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Xo,backgroundColor:Go.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:Go.GREYSCALE_98,borderBottom:`1px solid ${Go.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Go.GREYSCALE_85}`,borderTop:`1px solid ${Go.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Go.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Go.GREYSCALE_0_05,"&:hover":{backgroundColor:Go.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Go.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(ci,{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 ${Go.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Wo,borderRadius:Yo,padding:"7px 16px",border:`1px solid ${Go.GREYSCALE_0_15}`,backgroundColor:Go.GREYSCALE_100_60,color:Go.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Go.GREYSCALE_0_10,border:`1px solid ${Go.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Go.GREYSCALE_0_03,border:`1px solid ${Go.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Go.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Go.MISC_FOCUS_BORDER}`,border:`1px solid ${Go.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Go.GREYSCALE_25,backgroundColor:Go.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Go.GREYSCALE_0_10,border:`1px solid ${Go.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Bo,height:24,width:24,padding:7},sizeLarge:{fontSize:Ho,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Wo,borderRadius:Yo}}},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:Go.GREYSCALE_20},tooltip:{backgroundColor:Go.GREYSCALE_20,fontSize:Bo,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const tb={mode:"light",primary:{ultraLight:Go.GREEN_ULTRA_LIGHT,light:Go.GREEN_PALE,main:Go.GREEN,dark:Go.GREEN_DARK,extraDark:Go.GREEN_EXTRA_DARK,contrastText:Go.WHITE},secondary:{ultraLight:Go.BLUE_ULTRA_LIGHT,light:Go.BLUE_PALE,main:Go.BLUE,dark:Go.BLUE_DARK,extraDark:Go.BLUE_EXTRA_DARK,contrastText:Go.WHITE},error:{ultraLight:Go.RED_ULTRA_LIGHT,light:Go.RED_PALE,main:Go.RED,dark:Go.RED_DARK,extraDark:Go.RED_EXTRA_DARK,contrastText:Go.WHITE},warning:{ultraLight:Go.ORANGE_ULTRA_LIGHT,light:Go.ORANGE_PALE,main:Go.ORANGE,dark:Go.ORANGE_DARK,extraDark:Go.ORANGE_EXTRA_DARK,contrastText:Go.WHITE},success:{ultraLight:Go.GREEN_ULTRA_LIGHT,light:Go.GREEN_PALE,main:Go.GREEN,dark:Go.GREEN_DARK,extraDark:Go.GREEN_EXTRA_DARK,contrastText:Go.WHITE},info:{ultraLight:Go.BLUE_ULTRA_LIGHT,light:Go.BLUE_PALE,main:Go.BLUE,dark:Go.BLUE_DARK,extraDark:Go.BLUE_EXTRA_DARK,contrastText:Go.WHITE},text:{primary:Go.TEXT_PRIMARY,secondary:Go.TEXT_SECONDARY,disabled:Go.GREYSCALE_0_30},action:{hover:Go.GREYSCALE_0_03,hoverOpacity:.03,selected:Go.GREYSCALE_0_05,selectedOpacity:.05,focus:Go.MISC_FOCUS_BORDER},amethyst:{ultraLight:Go.WHITE,main:Go.PURPLE,light:Go.PURPLE_PALE,dark:Go.PURPLE_DARK,extraDark:Go.GREYSCALE_0_0,contrastText:Go.WHITE},background:{paper:Go.WHITE,default:Go.GREYSCALE_95},divider:Go.GREYSCALE_0_15},rb=e=>({components:eb,palette:tb,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:Wo,fontWeightLight:Uo,fontWeightRegular:Ko,fontWeightMedium:Xo,fontWeightBold:Jo,htmlFontSize:Wo,fontFamily:Zo.FONT_FAMILY,button:{fontWeight:Xo,fontSize:Wo,textTransform:"none"},body1:{fontSize:Ho,lineHeight:"24px"},body2:{fontSize:Wo,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Vo,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ho,fontWeight:Xo,lineHeight:"16px"},h6:{fontSize:Wo,fontWeight:Xo,lineHeight:"16px"},caption:{color:Go.TEXT_SECONDARY},subtitle1:{fontSize:Wo,color:Go.TEXT_SECONDARY},subtitle2:{fontSize:Bo,color:Go.TEXT_SECONDARY}},shape:{borderRadius:Yo}}),nb={...$o,MISC_FOCUS_BORDER:Go.MISC_FOCUS_BORDER},ob=rb().palette,ib={TEXT:ob.text.primary,DISABLED:ob.text.disabled,HOVER:ob.action.hover,WHITE:nb.GREYSCALE_100,BORDER_LIGHT:nb.GREYSCALE_90,BORDER_MEDIUM:nb.GREYSCALE_85,BORDER_HEAVY:nb.GREYSCALE_50,DARK_MODE_TEXT:nb.GREYSCALE_95,DARK_MODE_BORDER:nb.GREYSCALE_95,DARK_MODE_DISABLED:nb.GREYSCALE_70,DARK_MODE_BACKGROUND:nb.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:nb.GREYSCALE_95,SELECTED:ob.primary.main},ab=(e,t=ib.TEXT,r=ib.WHITE)=>{const n=qr(e),o=qr(t),i=qr(r);return n.isInvalid()?t:function(e,t,r){return Nr(e,t)>Nr(e,r)?t:r}(n,i,o).getRGB()};function lb(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function sb(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ub(){}var cb=.7,db=1/cb,pb="\\s*([+-]?\\d+)\\s*",fb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",hb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mb=/^#([0-9a-f]{3,8})$/,gb=new RegExp(`^rgb\\(${pb},${pb},${pb}\\)$`),bb=new RegExp(`^rgb\\(${hb},${hb},${hb}\\)$`),vb=new RegExp(`^rgba\\(${pb},${pb},${pb},${fb}\\)$`),yb=new RegExp(`^rgba\\(${hb},${hb},${hb},${fb}\\)$`),xb=new RegExp(`^hsl\\(${fb},${hb},${hb}\\)$`),Sb=new RegExp(`^hsla\\(${fb},${hb},${hb},${fb}\\)$`),Eb={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 Cb(){return this.rgb().formatHex()}function wb(){return this.rgb().formatRgb()}function Rb(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=mb.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Lb(t):3===r?new Mb(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Ib(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Ib(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=gb.exec(e))?new Mb(t[1],t[2],t[3],1):(t=bb.exec(e))?new Mb(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=vb.exec(e))?Ib(t[1],t[2],t[3],t[4]):(t=yb.exec(e))?Ib(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xb.exec(e))?Ob(t[1],t[2]/100,t[3]/100,1):(t=Sb.exec(e))?Ob(t[1],t[2]/100,t[3]/100,t[4]):Eb.hasOwnProperty(e)?Lb(Eb[e]):"transparent"===e?new Mb(NaN,NaN,NaN,0):null}function Lb(e){return new Mb(e>>16&255,e>>8&255,255&e,1)}function Ib(e,t,r,n){return n<=0&&(e=t=r=NaN),new Mb(e,t,r,n)}function Ab(e){return e instanceof ub||(e=Rb(e)),e?new Mb((e=e.rgb()).r,e.g,e.b,e.opacity):new Mb}function Mb(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Db(){return`#${Tb(this.r)}${Tb(this.g)}${Tb(this.b)}`}function Pb(){const e=_b(this.opacity);return`${1===e?"rgb(":"rgba("}${kb(this.r)}, ${kb(this.g)}, ${kb(this.b)}${1===e?")":`, ${e})`}`}function _b(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function kb(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Tb(e){return((e=kb(e))<16?"0":"")+e.toString(16)}function Ob(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Nb(e,t,r,n)}function qb(e){if(e instanceof Nb)return new Nb(e.h,e.s,e.l,e.opacity);if(e instanceof ub||(e=Rb(e)),!e)return new Nb;if(e instanceof Nb)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Nb(a,l,s,e.opacity)}function Nb(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Fb(e){return(e=(e||0)%360)<0?e+360:e}function jb(e){return Math.max(0,Math.min(1,e||0))}function zb(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}lb(ub,Rb,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Cb,formatHex:Cb,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return qb(this).formatHsl()},formatRgb:wb,toString:wb}),lb(Mb,(function(e,t,r,n){return 1===arguments.length?Ab(e):new Mb(e,t,r,null==n?1:n)}),sb(ub,{brighter(e){return e=null==e?db:Math.pow(db,e),new Mb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?cb:Math.pow(cb,e),new Mb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Mb(kb(this.r),kb(this.g),kb(this.b),_b(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:Db,formatHex:Db,formatHex8:function(){return`#${Tb(this.r)}${Tb(this.g)}${Tb(this.b)}${Tb(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Pb,toString:Pb})),lb(Nb,(function(e,t,r,n){return 1===arguments.length?qb(e):new Nb(e,t,r,null==n?1:n)}),sb(ub,{brighter(e){return e=null==e?db:Math.pow(db,e),new Nb(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?cb:Math.pow(cb,e),new Nb(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 Mb(zb(e>=240?e-240:e+120,o,n),zb(e,o,n),zb(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Nb(Fb(this.h),jb(this.s),jb(this.l),_b(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=_b(this.opacity);return`${1===e?"hsl(":"hsla("}${Fb(this.h)}, ${100*jb(this.s)}%, ${100*jb(this.l)}%${1===e?")":`, ${e})`}`}}));const $b=Math.PI/180,Gb=180/Math.PI,Bb=.96422,Wb=.82521,Hb=4/29,Vb=6/29,Yb=3*Vb*Vb,Ub=Vb*Vb*Vb;function Kb(e){if(e instanceof Xb)return new Xb(e.l,e.a,e.b,e.opacity);if(e instanceof rv)return nv(e);e instanceof Mb||(e=Ab(e));var t,r,n=ev(e.r),o=ev(e.g),i=ev(e.b),a=Jb((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Jb((.4360747*n+.3850649*o+.1430804*i)/Bb),r=Jb((.0139322*n+.0971045*o+.7141733*i)/Wb)),new Xb(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Xb(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Jb(e){return e>Ub?Math.pow(e,1/3):e/Yb+Hb}function Zb(e){return e>Vb?e*e*e:Yb*(e-Hb)}function Qb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ev(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function tv(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof rv)return new rv(e.h,e.c,e.l,e.opacity);if(e instanceof Xb||(e=Kb(e)),0===e.a&&0===e.b)return new rv(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Gb;return new rv(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new rv(e,t,r,null==n?1:n)}function rv(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function nv(e){if(isNaN(e.h))return new Xb(e.l,0,0,e.opacity);var t=e.h*$b;return new Xb(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}lb(Xb,(function(e,t,r,n){return 1===arguments.length?Kb(e):new Xb(e,t,r,null==n?1:n)}),sb(ub,{brighter(e){return new Xb(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Xb(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 Mb(Qb(3.1338561*(t=Bb*Zb(t))-1.6168667*(e=1*Zb(e))-.4906146*(r=Wb*Zb(r))),Qb(-.9787684*t+1.9161415*e+.033454*r),Qb(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),lb(rv,tv,sb(ub,{brighter(e){return new rv(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new rv(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return nv(this).rgb()}}));const ov=(e,t)=>{const r=tv(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()},iv={background:ib.SELECTED,color:ib.WHITE},av=({theme:e,flags:t})=>{if(!t.isEnabled("PS_22149_THEME_SELECTION_COLORS"))return iv;const r=e.getStyle("","","dataColors.selected")||iv.background,n=function(e,t){var r=qr("#FFFFFF"),n=qr(e),o=qr(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=Nr(r,n),a=Nr(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(r,ib.TEXT);return{background:r,color:n}},lv=e=>!!e&&0===qr(e).a,sv=e=>{const t=qr(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},uv=e=>{e.stopPropagation(),e.preventDefault()},cv="#grid",dv=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},pv=(e,t,r,n,o)=>{const i=dv(".qv-object .qv-inner-object",r),a=dv(".qv-panel-sheet",r),l=dv(cv,r),s=null!=l?l:a,u=(e=>{var t,r,n,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(r=l.bgColor)||void 0===r?void 0:r.colorExpression,u=null==l||null===(n=l.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return sv(s);if("none"===u)return"transparent";if(void 0===u)return;const c=qr(u);return c.setAlpha(null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=lv(p),h=ab(f?s:p,ib.TEXT,ib.DARK_MODE_TEXT)===Dr(ib.DARK_MODE_TEXT);const m=((e,t,r)=>e&&!lv(e)?e:lv(t)?r&&!lv(r)?r:ib.WHITE:t)(u,p,s);return{color:p,headerColor:m,isDark:h}},fv=(e,i,a,l)=>{const s=n(),u=((e,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[o,i]=t([]);return r((()=>{let t;return e&&(t=new MutationObserver((e=>{i(e)})),t.observe(e,n)),()=>{var e;null===(e=t)||void 0===e||e.disconnect()}}),[e,n]),o})(null==i?void 0:i.closest(cv),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return o((()=>({...s,background:pv(e,s,i,a,l)})),[s.name(),i,a,l,e,u])};function hv(e,t){const r=o((()=>({isLoading:!0})),t),[n,a]=i((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,a]}const mv=3;function gv(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function bv({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=mv}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=I((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=Bn(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=Bn((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=gv(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var vv,yv=F;vv=yv.createRoot,yv.hydrateRoot;function xv(e,t){const[r,n]=A(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Sv={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_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 Ev=({translator:e})=>(I((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Sv).forEach((t=>{e.add(Sv[t])}))}}(e)),[e]),e),Cv=document.createElement("textarea");function wv(e){Cv.value=e,document.body.appendChild(Cv),Cv.select(),Cv.setSelectionRange(0,Cv.value.length),document.execCommand("copy"),document.body.removeChild(Cv)}Cv.style.position="absolute",Cv.style.left="-9999px",Cv.setAttribute("readonly","");function Rv(){null==a||a(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${er}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>wv(r))):wv(r))})(n)}})}))}var Lv="$$material";const Iv=["values","unit","step"];function Av(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=No(e,Iv),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Do({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Do({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var Mv={borderRadius:4};function Dv(e,t){return t?ms(e,t,{clone:!1}):e}const Pv={xs:0,sm:600,md:900,lg:1200,xl:1536},_v={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Pv[e]}px)`};function kv(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||_v;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||_v;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Pv).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Tv(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 Ov(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Tv(e,r)||n,t&&(o=t(o,n,e)),o}function qv(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=Tv(e.theme,n)||{};return kv(e,i,(e=>{let n=Ov(a,o,e);return e===n&&"string"==typeof e&&(n=Ov(a,o,`${t}${"default"===e?"":$s(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Nv={m:"margin",p:"padding"},Fv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zv=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!jv[e])return[e];e=jv[e]}const[t,r]=e.split(""),n=Nv[t],o=Fv[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),$v=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Bv(e,t,r,n){var o;const i=null!=(o=Tv(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 Wv(e){return Bv(e,"spacing",8)}function Hv(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 Vv(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Hv(t,r),e)),{})}(zv(r),n);return kv(e,e[r],o)}function Yv(e,t){const r=Wv(e.theme);return Object.keys(e).map((n=>Vv(e,t,n,r))).reduce(Dv,{})}function Uv(e){return Yv(e,$v)}function Kv(e){return Yv(e,Gv)}function Xv(...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]?Dv(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Jv(e){return"number"!=typeof e?e:`${e}px solid`}function Zv(e,t){return qv({prop:e,themeKey:"borders",transform:t})}Uv.propTypes={},Uv.filterProps=$v,Kv.propTypes={},Kv.filterProps=Gv;const Qv=Zv("border",Jv),ey=Zv("borderTop",Jv),ty=Zv("borderRight",Jv),ry=Zv("borderBottom",Jv),ny=Zv("borderLeft",Jv),oy=Zv("borderColor"),iy=Zv("borderTopColor"),ay=Zv("borderRightColor"),ly=Zv("borderBottomColor"),sy=Zv("borderLeftColor"),uy=Zv("outline",Jv),cy=Zv("outlineColor"),dy=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Bv(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Hv(t,e)});return kv(e,e.borderRadius,r)}return null};dy.propTypes={},dy.filterProps=["borderRadius"],Xv(Qv,ey,ty,ry,ny,oy,iy,ay,ly,sy,dy,uy,cy);const py=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Bv(e.theme,"spacing",8),r=e=>({gap:Hv(t,e)});return kv(e,e.gap,r)}return null};py.propTypes={},py.filterProps=["gap"];const fy=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Bv(e.theme,"spacing",8),r=e=>({columnGap:Hv(t,e)});return kv(e,e.columnGap,r)}return null};fy.propTypes={},fy.filterProps=["columnGap"];const hy=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Bv(e.theme,"spacing",8),r=e=>({rowGap:Hv(t,e)});return kv(e,e.rowGap,r)}return null};hy.propTypes={},hy.filterProps=["rowGap"];function my(e,t){return"grey"===t?t:e}Xv(py,fy,hy,qv({prop:"gridColumn"}),qv({prop:"gridRow"}),qv({prop:"gridAutoFlow"}),qv({prop:"gridAutoColumns"}),qv({prop:"gridAutoRows"}),qv({prop:"gridTemplateColumns"}),qv({prop:"gridTemplateRows"}),qv({prop:"gridTemplateAreas"}),qv({prop:"gridArea"}));function gy(e){return e<=1&&0!==e?100*e+"%":e}Xv(qv({prop:"color",themeKey:"palette",transform:my}),qv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:my}),qv({prop:"backgroundColor",themeKey:"palette",transform:my}));const by=qv({prop:"width",transform:gy}),vy=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])||Pv[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:gy(t)}};return kv(e,e.maxWidth,t)}return null};vy.filterProps=["maxWidth"];const yy=qv({prop:"minWidth",transform:gy}),xy=qv({prop:"height",transform:gy}),Sy=qv({prop:"maxHeight",transform:gy}),Ey=qv({prop:"minHeight",transform:gy});qv({prop:"size",cssProperty:"width",transform:gy}),qv({prop:"size",cssProperty:"height",transform:gy});Xv(by,vy,yy,xy,Sy,Ey,qv({prop:"boxSizing"}));var Cy={border:{themeKey:"borders",transform:Jv},borderTop:{themeKey:"borders",transform:Jv},borderRight:{themeKey:"borders",transform:Jv},borderBottom:{themeKey:"borders",transform:Jv},borderLeft:{themeKey:"borders",transform:Jv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Jv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dy},color:{themeKey:"palette",transform:my},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:my},backgroundColor:{themeKey:"palette",transform:my},p:{style:Kv},pt:{style:Kv},pr:{style:Kv},pb:{style:Kv},pl:{style:Kv},px:{style:Kv},py:{style:Kv},padding:{style:Kv},paddingTop:{style:Kv},paddingRight:{style:Kv},paddingBottom:{style:Kv},paddingLeft:{style:Kv},paddingX:{style:Kv},paddingY:{style:Kv},paddingInline:{style:Kv},paddingInlineStart:{style:Kv},paddingInlineEnd:{style:Kv},paddingBlock:{style:Kv},paddingBlockStart:{style:Kv},paddingBlockEnd:{style:Kv},m:{style:Uv},mt:{style:Uv},mr:{style:Uv},mb:{style:Uv},ml:{style:Uv},mx:{style:Uv},my:{style:Uv},margin:{style:Uv},marginTop:{style:Uv},marginRight:{style:Uv},marginBottom:{style:Uv},marginLeft:{style:Uv},marginX:{style:Uv},marginY:{style:Uv},marginInline:{style:Uv},marginInlineStart:{style:Uv},marginInlineEnd:{style:Uv},marginBlock:{style:Uv},marginBlockStart:{style:Uv},marginBlockEnd:{style:Uv},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:py},rowGap:{style:hy},columnGap:{style:fy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:gy},maxWidth:{style:vy},minWidth:{transform:gy},height:{transform:gy},maxHeight:{transform:gy},minHeight:{transform:gy},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function wy(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Tv(r,l)||{};if(u)return u(o);return kv(o,t,(t=>{let r=Ov(c,s,t);return t===r&&"string"==typeof t&&(r=Ov(c,s,`${e}${"default"===t?"":$s(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:Cy;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=Dv(s,e(r,o,i,a));else{const e=kv({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=Dv(s,e):s[r]=t({sx:o,theme:i})}else s=Dv(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Ry=wy();Ry.filterProps=["sx"];var Ly=Ry;function Iy(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 Ay=["breakpoints","palette","spacing","shape"];function My(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=No(e,Ay),l=Av(r),s=function(e=8){if(e.mui)return e;const t=Wv({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=ms({breakpoints:l,direction:"ltr",components:{},palette:Do({mode:"light"},n),spacing:s,shape:Do({},Mv,i)},a);return u.applyStyles=Iy,u=t.reduce(((e,t)=>ms(e,t)),u),u.unstable_sxConfig=Do({},Cy,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ly({sx:e,theme:this})},u}var Dy=Object.freeze({__proto__:null,default:My,private_createBreakpoints:Av,unstable_applyStyles:Iy});function Py(e=null){const t=x.useContext(Xl);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const _y=My();function ky(e=_y){return Py(e)}const Ty=["sx"];function Oy(e){const{sx:t}=e,r=No(e,Ty),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Cy;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return fs(r)?Do({},n,r):n}:Do({},n,t),Do({},o,{sx:i})}var qy=Object.freeze({__proto__:null,default:Ly,extendSxProp:Oy,unstable_createStyleFunctionSx:wy,unstable_defaultSxConfig:Cy});const Ny=["className","component"];function Fy(e){if(e.type)return e;if("#"===e.charAt(0))return Fy(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(Ci(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(Ci(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function jy(e,t){return e=Fy(e),t=function(e,t=0,r=1){return vu(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)}var zy=x.createContext(null);function $y(){return x.useContext(zy)}var Gy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function By(e){const{children:t,theme:r}=e,n=$y(),o=x.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Do({},e,t)}(n,r);return null!=e&&(e[Gy]=null!==n),e}),[r,n]);return $c.jsx(zy.Provider,{value:o,children:t})}const Wy=["value"],Hy=x.createContext();function Vy(e){let{value:t}=e,r=No(e,Wy);return $c.jsx(Hy.Provider,Do({value:null==t||t},r))}const Yy=x.createContext(void 0);function Uy({value:e,children:t}){return $c.jsx(Yy.Provider,{value:e,children:t})}function Ky({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?du(o.defaultProps,n):o.styleOverrides||o.variants?n:du(o,n)}({props:e,name:t,theme:{components:x.useContext(Yy)}})}const Xy={};function Jy(e,t,r,n=!1){return x.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Do({},t,{[e]:i}):i;return n?()=>a:a}return Do({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Zy(e){const{children:t,theme:r,themeId:n}=e,o=Py(Xy),i=$y()||Xy,a=Jy(n,o,r),l=Jy(n,i,r,!0),s="rtl"===a.direction;return $c.jsx(By,{theme:l,children:$c.jsx(Xl.Provider,{value:a,children:$c.jsx(Vy,{value:s,children:$c.jsx(Uy,{value:null==a?void 0:a.components,children:t})})})})}var Qy={},ex={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(ex);var tx=ex.exports,rx=B(wi),nx=B(yu),ox=tx;Object.defineProperty(Qy,"__esModule",{value:!0});var ix=Qy.alpha=vx;Qy.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=fx(e),a=fx(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return mx({type:"rgb",values:l})},Qy.colorChannel=void 0;var ax=Qy.darken=yx;Qy.decomposeColor=fx,Qy.emphasize=Sx;var lx=Qy.getContrastRatio=function(e,t){const r=bx(e),n=bx(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Qy.getLuminance=bx,Qy.hexToRgb=px,Qy.hslToRgb=gx;var sx=Qy.lighten=xx;Qy.private_safeAlpha=function(e,t,r){try{return vx(e,t)}catch(t){return e}},Qy.private_safeColorChannel=void 0,Qy.private_safeDarken=function(e,t,r){try{return yx(e,t)}catch(t){return e}},Qy.private_safeEmphasize=function(e,t,r){try{return Sx(e,t)}catch(t){return e}},Qy.private_safeLighten=function(e,t,r){try{return xx(e,t)}catch(t){return e}},Qy.recomposeColor=mx,Qy.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=fx(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 ux=ox(rx),cx=ox(nx);function dx(e,t=0,r=1){return(0,cx.default)(e,t,r)}function px(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 fx(e){if(e.type)return e;if("#"===e.charAt(0))return fx(px(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,ux.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,ux.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const hx=e=>{const t=fx(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Qy.colorChannel=hx;function mx(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 gx(e){e=fx(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),mx({type:l,values:s})}function bx(e){let t="hsl"===(e=fx(e)).type||"hsla"===e.type?fx(gx(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 vx(e,t){return e=fx(e),t=dx(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,mx(e)}function yx(e,t){if(e=fx(e),t=dx(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 mx(e)}function xx(e,t){if(e=fx(e),t=dx(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 mx(e)}function Sx(e,t=.15){return bx(e)>.5?yx(e,t):xx(e,t)}Qy.private_safeColorChannel=(e,t)=>{try{return hx(e)}catch(t){return e}};var Ex={black:"#000",white:"#fff"};var Cx={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 wx={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 Rx={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 Lx={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 Ix={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 Ax={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 Mx={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 Dx=["mode","contrastThreshold","tonalOffset"],Px={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:Ex.white,default:Ex.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}},_x={text:{primary:Ex.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:Ex.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 kx(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=sx(e.main,o):"dark"===t&&(e.dark=ax(e.main,i)))}function Tx(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=No(e,Dx),i=e.primary||function(e="light"){return"dark"===e?{main:Ix[200],light:Ix[50],dark:Ix[400]}:{main:Ix[700],light:Ix[400],dark:Ix[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:wx[200],light:wx[50],dark:wx[400]}:{main:wx[500],light:wx[300],dark:wx[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Rx[500],light:Rx[300],dark:Rx[700]}:{main:Rx[700],light:Rx[400],dark:Rx[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ax[400],light:Ax[300],dark:Ax[700]}:{main:Ax[700],light:Ax[500],dark:Ax[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Mx[400],light:Mx[300],dark:Mx[700]}:{main:Mx[800],light:Mx[500],dark:Mx[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Lx[400],light:Lx[300],dark:Lx[700]}:{main:"#ed6c02",light:Lx[500],dark:Lx[900]}}(t);function d(e){return lx(e,_x.text.primary)>=r?_x.text.primary:Px.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Do({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Ci(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Ci(12,t?` (${t})`:"",JSON.stringify(e.main)));return kx(e,"light",o,n),kx(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:_x,light:Px};return ms(Do({common:Do({},Ex),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Cx,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Ox=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const qx={textTransform:"uppercase"},Nx='"Roboto", "Helvetica", "Arial", sans-serif';function Fx(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Nx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=No(r,Ox),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Do({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Nx?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,qx),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,qx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ms(Do({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function jx(...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 zx=["none",jx(0,2,1,-1,0,1,1,0,0,1,3,0),jx(0,3,1,-2,0,2,2,0,0,1,5,0),jx(0,3,3,-2,0,3,4,0,0,1,8,0),jx(0,2,4,-1,0,4,5,0,0,1,10,0),jx(0,3,5,-1,0,5,8,0,0,1,14,0),jx(0,3,5,-1,0,6,10,0,0,1,18,0),jx(0,4,5,-2,0,7,10,1,0,2,16,1),jx(0,5,5,-3,0,8,10,1,0,3,14,2),jx(0,5,6,-3,0,9,12,1,0,3,16,2),jx(0,6,6,-3,0,10,14,1,0,4,18,3),jx(0,6,7,-4,0,11,15,1,0,4,20,3),jx(0,7,8,-4,0,12,17,2,0,5,22,4),jx(0,7,8,-4,0,13,19,2,0,5,24,4),jx(0,7,9,-4,0,14,21,2,0,5,26,4),jx(0,8,9,-5,0,15,22,2,0,6,28,5),jx(0,8,10,-5,0,16,24,2,0,6,30,5),jx(0,8,11,-5,0,17,26,2,0,6,32,5),jx(0,9,11,-5,0,18,28,2,0,7,34,6),jx(0,9,12,-6,0,19,29,2,0,7,36,6),jx(0,10,13,-6,0,20,31,3,0,8,38,7),jx(0,10,13,-6,0,21,33,3,0,8,40,7),jx(0,10,14,-6,0,22,35,3,0,8,42,7),jx(0,11,14,-7,0,23,36,3,0,9,44,8),jx(0,11,15,-7,0,24,38,3,0,9,46,8)];const $x=["duration","easing","delay"],Gx={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)"},Bx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wx(e){return`${Math.round(e)}ms`}function Hx(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Vx(e){const t=Do({},Gx,e.easing),r=Do({},Bx,e.duration);return Do({getAutoHeightDuration:Hx,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return No(n,$x),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Wx(o)} ${i} ${"string"==typeof a?a:Wx(a)}`)).join(",")}},e,{easing:t,duration:r})}var Yx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Ux=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Kx(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=No(e,Ux);if(e.vars)throw new Error(Ci(18));const l=Tx(n),s=My(e);let u=ms(s,{mixins:(c=s.breakpoints,d=r,Do({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:zx.slice(),typography:Fx(l,i),transitions:Vx(o),zIndex:Do({},Yx)});var c,d;return u=ms(u,a),u=t.reduce(((e,t)=>ms(e,t)),u),u.unstable_sxConfig=Do({},Cy,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ly({sx:e,theme:this})},u}var Xx=Kx();function Jx(){const e=ky(Xx);return e[Lv]||e}var Zx,Qx={},eS={exports:{}};var tS,rS={exports:{}};var nS=B(ps),oS=B(bs),iS=B(Gs),aS=B(zs),lS=B(Dy),sS=B(qy),uS=tx;Object.defineProperty(Qx,"__esModule",{value:!0});var cS=Qx.default=function(e={}){const{themeId:t,defaultTheme:r=ES,rootShouldForwardProp:n=SS,slotShouldForwardProp:o=SS}=e,i=e=>(0,gS.default)((0,dS.default)({},e,{theme:wS((0,dS.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,fS.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=RS(CS(s))}=a,p=(0,pS.default)(a,yS),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=SS;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,fS.default)(e,(0,dS.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,hS.isPlainObject)(e)?n=>LS(e,(0,dS.default)({},n,{theme:wS({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=wS((0,dS.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=LS(r,(0,dS.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=wS((0,dS.default)({},e,{defaultTheme:r,themeId:t}));return LS({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,dS.default)({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};Qx.shouldForwardProp=SS,Qx.systemDefaultTheme=void 0;var dS=uS((Zx||(Zx=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(eS)),eS.exports)),pS=uS((tS||(tS=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(rS)),rS.exports)),fS=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=xS(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}(nS),hS=oS;uS(iS),uS(aS);var mS=uS(lS),gS=uS(sS);const bS=["ownerState"],vS=["variants"],yS=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function xS(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(xS=function(e){return e?r:t})(e)}function SS(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ES=Qx.systemDefaultTheme=(0,mS.default)(),CS=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function wS({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function RS(e){return e?(t,r)=>r[e]:null}function LS(e,t){let{ownerState:r}=t,n=(0,pS.default)(t,bS);const o="function"==typeof e?e((0,dS.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>LS(e,(0,dS.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,pS.default)(o,vS);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,dS.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,dS.default)({ownerState:r},n,r)):e.style))})),t}return o}var IS=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var AS=cS({themeId:Lv,defaultTheme:Xx,rootShouldForwardProp:IS});const MS=["theme"];function DS(e){let{theme:t}=e,r=No(e,MS);const n=t[Lv];return $c.jsx(Zy,Do({},r,{themeId:n?Lv:void 0,theme:n||t}))}var PS=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const _S={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},kS={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},TS=sp("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{..._S},"&::-moz-range-track":{..._S},"&::-ms-track":{..._S},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...kS},"&::-moz-range-thumb":{...kS},"&::-ms-thumb":{...kS},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),OS=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c})=>{const d=Ev({translator:c.translator}),p=M({initWidth:e,columnWidth:e,initX:0}),f=r?0:1,h=n&&!u,m={left:h?p.current.columnWidth-f:"100%"},g=t=>{p.current={initWidth:e,columnWidth:e,initX:null!=t?t:p.current.initX}};xv((()=>h&&g()),[e]);const b=e=>{const t=Math.max(e,nr.PixelsMin);p.current.columnWidth=t,i(t)},v=()=>{if(p.current.columnWidth!==p.current.initWidth){const e={type:or.Pixels,pixels:p.current.columnWidth};a(e)}else null==s||s(!1)},y=e=>{const t=p.current.initWidth+e.clientX-p.current.initX;b(t)},x=e=>{uv(e),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",x),v()},E=e=>{const t=p.current.initWidth+e.touches[0].clientX-p.current.initX;b(t)},C=e=>{uv(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",C),v()},w=!n&&l?e=>{if(e.key===tr.LEFT||e.key===tr.RIGHT){uv(e);const t=5,r=e.key===tr.LEFT?-t:t;b(p.current.columnWidth+r)}else e.key===tr.SPACE||e.key===tr.ENTER?(uv(e),l(e),v()):e.key===tr.ESC&&(uv(e),l(e),b(p.current.initWidth))}:void 0,R=d.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return S.createElement(TS,{style:m,key:t,hoverColor:o,isLastColumn:r,className:rr,"data-testid":rr,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",y),document.addEventListener("mouseup",x),null==s||s(!0),g(e.clientX)},onDoubleClick:()=>a({type:or.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",E),document.addEventListener("touchend",C),null==s||s(!0),g(e.touches[0].clientX))},onKeyDown:w,onBlur:l,onFocus:()=>g(),type:"range",tabIndex:"-1",max:nr.PixelsMax,"aria-label":R,"aria-valuemin":nr.PixelsMin,"aria-valuemax":nr.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};function qS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NS=(e,t)=>S.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){qS(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),S.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),FS=D(NS);function jS(){return jS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jS.apply(null,arguments)}const zS=sp(_h,{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"}))),$S=sp(FS,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),GS=sp(ug)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),BS=sp(rm)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),WS=sp(hg)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),HS=sp(hg,{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")}))),VS=sp("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"}))),YS=sp("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),US=sp(kf)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),KS=sp(qm)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function XS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const JS=(e,t)=>S.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){XS(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),S.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),ZS=D(JS);let QS={};const eE=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=A(!1),p=M(null),f=P((e=>{e.stopPropagation(),d(!1)}),[d]);return S.createElement(S.Fragment,null,S.createElement(HS,{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),QS={}),null!=a&&a.length&&(d(!0),QS[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&S.createElement(VS,null),S.createElement(YS,null,S.createElement(KS,null,S.createElement(o,null)),S.createElement(US,{variant:"body2"},n)),null!=a&&a.length?S.createElement(ZS,null):null),(null==a?void 0:a.length)&&S.createElement(nE,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=QS,h.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(m).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var h,m},tE=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&S.createElement(WS,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>S.createElement(eE,jS({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),rE={appear:200,enter:200,exit:100},nE=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>n.length?S.createElement(GS,jS({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,transitionDuration:rE,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[tE({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?S.createElement(BS,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:n,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,oE=(e,t)=>e.some((e=>t[e]>0)),iE={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},aE=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=A(null),[a,l]=A(iE);return xv((()=>{e||(l(iE),i(null))}),[e]),_((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject.qDimensionInfo;o=c.qInfo.qId,a?s():(i(u),l((e=>({canSelectAll:oE(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:oE(["qSelected"],e),canSelectPossible:oE(["qOption"],e),canSelectAlternative:oE(["qAlternative"],e),canSelectExcluded:oE(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function lE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sE=(e,t)=>S.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){lE(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),S.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"})),uE=D(sE);function cE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dE=(e,t)=>S.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){cE(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),S.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"})),pE=D(dE);function fE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hE=(e,t)=>S.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){fE(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),S.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"})),mE=D(hE);function gE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bE=(e,t)=>S.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){gE(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),S.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"})),vE=D(bE);function yE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xE=(e,t)=>S.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){yE(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),S.createElement("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})),SE=D(xE);function EE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CE=(e,t)=>S.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){EE(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),S.createElement("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})),wE=D(CE);function RE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const LE=(e,t)=>S.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){RE(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),S.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"})),IE=D(LE);function AE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ME=(e,t)=>S.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){AE(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),S.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"})),DE=D(ME);function PE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _E=(e,t)=>S.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){PE(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),S.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"})),kE=D(_E);function TE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const OE=(e,t)=>S.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){TE(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),S.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"})),qE=D(OE);function NE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const FE=(e,t)=>S.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){NE(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),S.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"})),jE=D(FE);function zE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $E=(e,t)=>S.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){zE(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),S.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"})),GE=D($E);let BE=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const WE="/qListObjectDef",HE=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c,setActiveFieldCallback:d})=>{const p=[];if(r[BE.SORTING]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:uE,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:vE,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:wE,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:SE,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&p.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[BE.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:IE,enabled:!0}]}]),r[BE.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:GE,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(WE))},icon:DE,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(WE))},icon:jE,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(WE))},icon:kE,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectExcluded(WE))},icon:qE,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clearSelections(WE))},icon:pE,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[BE.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:mE,enabled:!0}]}]),p},VE=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,env:f})=>{var h;const m=Ev({translator:o}),{headTextAlign:g,qLibraryId:b,fieldId:v}=n,y=null==d?void 0:d.app,{fieldInstance:x,selectionActionsEnabledStatus:E}=aE({open:e,headerData:n,app:y,qStateName:null==d?void 0:d.qStateName});let C=null;if(f.flags.isEnabled("CLIENT_IM_7107_TABLE_MENU_CYCLIC_DIM")&&y&&n.qLibraryId){const e=n.qLibraryId;C=async t=>{try{const r=await y.getDimension(e);await r.setActiveField(t)}catch(e){console.error(e)}}}const w=P((()=>{const e=b?{qLibraryId:b,type:"dimension"}:v;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria,stateName:null==d?void 0:d.qStateName})}}),[b,v,c,null==d?void 0:d.qStateName]),R=P((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?S.createElement(zS,{rightAligned:"right"===g,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&S.createElement($S,{height:Zt,className:Qt,"data-testid":Qt,isInteractionsActive:null!==(h=i.active)&&void 0!==h&&h},S.createElement(FS,null)),S.createElement(nE,{open:e,anchorEl:r.current,onClose:R,menuGroups:HE({headerData:n,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:w,interactions:i,fieldInstance:x,selectionActionsEnabledStatus:E,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster,setActiveFieldCallback:C}),handleHeadCellMenuKeyDown:a})):null},YE=e=>e.isDark?{background:e.color,borderColor:ib.DARK_MODE_BORDER,color:ib.DARK_MODE_TEXT,disabledColor:ib.DARK_MODE_DISABLED,iconColor:ib.DARK_MODE_TEXT}:{background:e.color,borderColor:ib.BORDER_MEDIUM,color:ib.TEXT,disabledColor:ib.DISABLED},UE=sp(_h,{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}`}))),KE=sp(Zg,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),XE=sp(Bh,{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)}))),JE=sp(kf)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),ZE=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=I((()=>YE(n.background)),[n]);if(!r.active)return null;const a=o?S.createElement(UE,{footerStyle:i},e):null;return t?F.createPortal(e,t):a},QE=k({}),eC=()=>E(QE),tC=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=I((()=>YE(p.background)),[p]),v=o?o.getBoundingClientRect().width:h.width,y=Ev({translator:d}),x=I((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,l,s,u,c,y,p,f,h,m,b,g,v]);return S.createElement(QE.Provider,{value:x},e)};let rC=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),nC=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 oC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const iC=(e,t)=>S.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){oC(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),S.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),aC=D(iC);function lC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sC=(e,t)=>S.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){lC(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),S.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),uC=D(sC);function cC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dC=(e,t)=>S.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){cC(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),S.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),pC=D(dC),fC={FirstPage:uC,PreviousPage:aC,NextPage:ZS,LastPage:pC,FirstPageRTL:pC,PreviousPageRTL:ZS,NextPageRTL:aC,LastPageRTL:uC},hC=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=eC(),u=fC[`${r}${"rtl"===n?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},mC=()=>{const{pageInfo:e,width:t}=eC(),r=0===e.page,{IconComponent:n,styledProps:o}=hC({type:rC.FirstPage,disabledCondition:r,pageNumber:0});return t<=nC.FirstPage?null:S.createElement(XE,o,S.createElement(n,{height:Zt}))},gC=(e,t,r=!1)=>{r&&e.key===tr.TAB&&!e.shiftKey&&(uv(e),((e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)})(e.target,t,!1))},bC=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=eC(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=hC({type:rC.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>gC(e,t,n):null;return o<=nC.LastPage?null:S.createElement(XE,jS({},l,{onKeyDown:s}),S.createElement(a,{height:Zt}))},vC=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=eC(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=hC({type:rC.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>nC.FirstPage&&o>nC.LastPage)&&t.enabled?e=>gC(e,t,n):null;return S.createElement(XE,jS({},l,{onKeyDown:s}),S.createElement(a,{height:Zt}))},yC=()=>{const{pageInfo:e}=eC(),t=0===e.page,{IconComponent:r,styledProps:n}=hC({type:rC.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return S.createElement(XE,n,S.createElement(r,{height:Zt}))},xC=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=eC(),{page:o,rowsPerPage:i}=r;if(t<=nC.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return S.createElement(JE,{variant:"caption"},a)},SC=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=eC(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return S.createElement(S.Fragment,null,S.createElement(JE,{variant:"caption",id:d},u,":"),S.createElement(KE,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},EC=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=eC();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>nC.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=S.createElement(S.Fragment,null,t.rowsPerPageOptions.map((e=>S.createElement("option",{key:e,value:e},e))));return S.createElement(SC,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},CC=1e3,wC="…",RC=({totalPages:e,page:t})=>{const r=Math.min(e,CC),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-CC):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return S.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(S.createElement("option",{key:"startMoreOptions",value:wC,disabled:!0},wC)),o<e-1&&a.push(S.createElement("option",{key:"endMoreOptions",value:wC,disabled:!0},wC)),S.createElement(S.Fragment,null,a)},LC=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=eC(),{page:o}=e;if(t<=nC.SelectPage)return null;const i=S.createElement(RC,{totalPages:r,page:o});return S.createElement(SC,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var IC=T((e=>S.createElement(tC,e,S.createElement(EC,null),S.createElement(LC,null),S.createElement(xC,null),S.createElement(mC,null),S.createElement(yC,null),S.createElement(vC,null),S.createElement(bC,null))));const AC=e=>S.createElement(ZE,e,S.createElement(IC,e)),MC=k({}),DC=()=>E(MC),PC=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,children:o})=>{const i=I((()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n})),[e,t,r,n]);return $c.jsx(MC.Provider,{value:i,children:o})},_C=k({}),kC=()=>E(_C),TC=({app:e,model:t,theme:r,embed:n,keyboard:o,translator:i,interactions:a,env:l,children:s})=>{const u=I((()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:o,env:l,translator:i})),[e,a,t,n,r,o,l,i]);return $c.jsx(_C.Provider,{value:u,children:s})},OC=k({}),qC=()=>E(OC),NC=({children:e,...t})=>$c.jsx(OC.Provider,{value:t,children:e}),FC=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:r}=kC(),{layoutService:n}=qC(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:io;return n.hasData?n.hasLimitedData?{text:r.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:r.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:$c.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:$c.jsx("span",{style:{...mo,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},jC="/qHyperCubeDef",zC=-1,$C="PSEUDO-DIM",GC=[];for(let e=0;e<256;++e)GC.push((e+256).toString(16).slice(1));let BC;const WC=new Uint8Array(16);function HC(){if(!BC){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");BC=crypto.getRandomValues.bind(crypto)}return BC(WC)}var VC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function YC(e,t,r){if(VC.randomUUID&&!t&&!e)return VC.randomUUID();const n=(e=e||{}).random||(e.rng||HC)();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(GC[e[t+0]]+GC[e[t+1]]+GC[e[t+2]]+GC[e[t+3]]+"-"+GC[e[t+4]]+GC[e[t+5]]+"-"+GC[e[t+6]]+GC[e[t+7]]+"-"+GC[e[t+8]]+GC[e[t+9]]+"-"+GC[e[t+10]]+GC[e[t+11]]+GC[e[t+12]]+GC[e[t+13]]+GC[e[t+14]]+GC[e[t+15]]).toLowerCase()}(n)}const UC=()=>{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:YC()},KC=e=>e===zC?$C:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:UC()})(e),XC=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===zC?r.columnWidthLocation=Ut.Measures:r.isLeftDimension?r.columnWidthLocation=Ut.Dimension:t.at(-1)===zC?r.columnWidthLocation=Ut.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=Ut.Pivot))},JC=(e,t,r)=>{var n;const o=KC(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===zC?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:Ut.Measures,isPivot:!0}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isLocked:null!==(n=t.qLocked)&&void 0!==n&&n,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,isCyclic:t.qGrouping===lr.cyclic,groupDimensionPos:t.qGroupPos,groupDimensionLabels:t.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:Ut.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},ZC=({layoutService:e,lastRow:t,lastCol:r})=>{let n=r;var o;t.length>0&&(n=(o=r).at(-1)===zC?o.slice(0,-1):o);const i=n.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,r,n)=>{const o=r===n.length-1;l[i-1][r]=JC(e,t,o)})),n.forEach(((t,r,n)=>{const o=r===n.length-1;l[r][a-1]=JC(e,t,o)})),l},QC=(e,t,r)=>{var n,o;const i=((e,t,r)=>{let n;var o;return n=0===t.length||t.includes(zC)?ZC({layoutService:e,lastRow:r,lastCol:t}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(ZC({layoutService:e,lastRow:t,lastCol:r})),e.isIndentModeEnabled&&n[n.length-1].length>1&&(n[n.length-1]=[n.at(-1),...new Array(n[0]?n[0].length-1:0).fill(null)]),n.length&&(null===(o=n.at(-1))||void 0===o||o.forEach(((t,n)=>{if(Array.isArray(t)){const n=t;for(let t=0;t<n.length;t++)XC({layoutService:e,visibleLeftDimensionInfos:r,cell:n[t],colIdx:t})}else XC({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}))),n})(e,t,r);return{data:i,size:{x:null!==(n=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==n?n:0,y:i.length}}};function ew(e){return ew="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},ew(e)}function tw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rw(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 nw(e,t,r){return t&&rw(e.prototype,t),r&&rw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ow(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&&aw(e,t)}function iw(e){return iw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iw(e)}function aw(e,t){return aw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aw(e,t)}function lw(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 sw(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=iw(e);if(t){var o=iw(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return lw(this,r)}}function uw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return cw(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 cw(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 cw(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 dw={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:pw(e),value:pw(t),useEqualSign:r}}(r,o,i))}})),t}};function pw(e){try{return decodeURIComponent(e)}catch(t){return e}}function fw(e){if(!(this instanceof fw))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 dw.fromSearchString(t.search)}}})}function hw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}fw.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},fw.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=hw((t=e[n]).key),t.value?r+="=".concat(hw(t.value)):r+=t.useEqualSign?"=":"";return r};var mw,gw=function(){function e(t){tw(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return nw(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}(),bw=function(){function e(){tw(this,e)}return nw(e,[{key:"decode",value:function(e){for(var t,r="",n=new gw(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),vw=function(e){return e>=0&&e<=1114111},yw=function(e){return e.match(/[\s]/)},xw=function(e){ow(r,e);var t=sw(r);function r(){return tw(this,r),t.apply(this,arguments)}return nw(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())&&!yw(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return vw(a)?String.fromCharCode(a):"�"}}]),r}(bw),Sw=function(){function e(t,r){tw(this,e),this._key=t,this._value=r}return nw(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}(),Ew=function(){function e(){tw(this,e)}return nw(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return Sw.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return Sw.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||Sw.newInstanceIfNeeded(e,t,this._value)}}]),e}(),Cw=function(){function e(){tw(this,e),this.clear()}return nw(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 Ew);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),ww=function(){var e,t,r,n=[],o=[],i=new Cw;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}(),Rw=function(e){ow(r,e);var t=sw(r);function r(){return tw(this,r),t.apply(this,arguments)}return nw(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,ww.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=ww.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)&&vw(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)&&vw(n)?String.fromCharCode(n):null}}]),r}(bw),Lw=function(e){ow(r,e);var t=sw(r);function r(){return tw(this,r),t.apply(this,arguments)}return nw(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),vw(o))?String.fromCharCode(o):(e.reset(),null)}}]),r}(bw),Iw=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(mw=document.createElement("div"));var Aw=Array.prototype.indexOf,Mw=[",",".","_"," "],Dw=[",",".","-","_"," "],Pw={width:["%"],height:["%"]},_w={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},kw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":_w.image,"background-color":_w.color,"border-color":_w.color,"border-image":_w.image,color:_w.color,icon:_w.image,"list-style-image":_w.image,"outline-color":_w.color},Tw={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Ow(e,t,r){var n;if(t){if(Aw)return Aw.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 qw(e){if(null==e)return"";var t,r=document.createTextNode(e);return mw.appendChild(r),t=mw.innerHTML,mw.removeChild(r),t}function Nw(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=jw(e).toLowerCase(),t=jw(t),Ow(e,Tw.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<Tw.attr_val;i++)if(t.toLowerCase().match(Tw.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=Pw[e])||(n=Dw),o="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&Ow(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Fw(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=jw(e).toLowerCase(),t=jw(t),Ow(e,Tw.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<Tw.css_val.length;n++)if(t.toLowerCase().indexOf(Tw.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=kw[e])||(o=_w.default),i="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&Ow(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function jw(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new Rw,new Lw,new xw];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var zw=[],$w=0;$w<255;$w++)zw[$w]=$w>=48&&$w<=57||$w>=65&&$w<=90||$w>=97&&$w<=122?null:$w.toString(16);var Gw=function(e){return qw(e.unsafe)},Bw=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]=Fw(t,r[t],!0),i+=Fw(t,r[t],!0),o[t]=n[t]);return e.map?o:i},Ww=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]=Nw(i,t[i],!0),o+=Nw(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function Hw(e,t){throw new Error(t)}var Vw={canonicalize:jw,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===ew(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?Gw(e):"css"===e.context?(null!=e.map&&"object"!==ew(e.map)&&Hw(this,"Invalid parameter type"),Bw(e)):"attr"===e.context?(null!=e.map&&"object"!==ew(e.map)&&Hw(this,"Invalid parameter type"),Ww(e)):void Hw(this,"Invalid parameter type")},encodeForAttr:Nw,encodeForAttr2:function(e){return Nw("nonsens",e,!0)},encodeForCSS:Fw,encodeForHref:function(e){jw(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new fw(e),r=fw.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+fw.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,l;for(t||(t=Mw),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Ow(o,t)>=0||null==zw[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:qw,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=jw(t).toLowerCase():Hw(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,r=uw(null!==(t=Iw.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const Yw=(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]},Uw=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"}}},Kw=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&Vw.isSafeDataURL(t)?{type:jt.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Uw(n)}:{type:jt.Text,url:void 0,text:e},Xw=(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)===zt.Attribute||null==r?void 0:r.urlLabel},Jw=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:jt.Link,url:Vw.encodeForHref(t),text:e}}catch(t){return{type:jt.Text,url:void 0,text:e}}},Zw=(e,t,r,n,o,i)=>{var a,l,s,u,c,d;const p=$t(t);return p!==jt.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(a=n.anything.sense)&&void 0!==a&&null!==(l=a.isUnsupportedFeature)&&void 0!==l&&l.call(a,"tableImages")?p===jt.Link?((e,t,r)=>{const{urlPosition:n}=null!=t?t:{};if(n===zt.Attribute){var o;const n=Xw(null!==(o=r.url)&&void 0!==o?o:-1,e,t),i=e.qText||n||"";return Jw({text:i,url:n})}if(n===zt.Dimension){var i;const n=Xw(null!==(i=r.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return Jw({text:n,url:e.qText})}return{type:jt.Text,url:void 0,text:e.qText}})(e,t,r):p!==jt.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(s=n.anything.sense)&&void 0!==s&&null!==(u=s.isUnsupportedFeature)&&void 0!==u&&u.call(s,"tableIndicators")?p!==jt.MiniChart||!n.flags.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")||null!==(c=n.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"qMiniChartDef")?{type:jt.Text,url:void 0,text:e.qText}:((e,t,r)=>{var n;if(!e.qMiniChart||!t||!r)return{type:jt.Text,text:e.qText};const o="local"===(null==t||null===(n=t.miniChart)||void 0===n||null===(n=n.yAxis)||void 0===n?void 0:n.scale);return{type:jt.MiniChart,text:e.qText,miniChart:{qMatrix:e.qMiniChart.qMatrix,minY:o?e.qMiniChart.qMin:r.qYMin,maxY:o?e.qMiniChart.qMax:r.qYMax}}})(e,t,i):((e,t,r)=>{const{indicator:n}=null!=t?t:{};return{type:jt.Indicator,url:void 0,text:e.qText,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:r}})(e,t,o):((e,t,r)=>{const{imageSize:n,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=Yw(null!==(s=r.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return Kw({text:t,url:i,imageSize:n,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===r.imageLabel)return Kw({text:a||t||"",url:t,imageSize:n,imagePosition:o});const i=null!==(u=null===(c=Yw(null!==(d=r.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return Kw({text:i,url:t,imageSize:n,imagePosition:o})}return{type:jt.Text,url:void 0,text:e.qText}})(e,t,r)},Qw=(e,t)=>{var r,n,o,i;const a=t.qAttrExps,l=null==a||null===(r=a.qValues)||void 0===r||null===(r=r[null!==(n=null==e?void 0:e.cellForegroundColor)&&void 0!==n?n:-1])||void 0===r?void 0:r.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?sv(s):null,c=l?sv(l):null,d=((e,t)=>e||!t?null:ab(t))(c,u);return{color:null!=d?d:c,background:u}},eR=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:eR(e,t)),e),tR=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:lo-n;let l=e.qUp+e.qDown;if(o&&0===r){const r=(t+e.qUp)%i.rowsPerPage;l=e.qDown+r}return Math.min(a,eR(l,e))},rR=(e,t)=>{if(e!==zC)return t?{type:jt.Text}:e.representation},nR=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const h=(!c||!u)&&e.qType===cr.NX_DIM_CELL_PSEUDO;let m="";if(u&&e.indentLabel){const{label:t,delimeter:r,suffix:n}=e.indentLabel;m=`${t} ${!n||!t&&n?"":r} ${n}`.trim()}else m=e.qText;const g={id:UC(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:tR(e,o,i,n,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===cr.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===cr.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===cr.NX_DIM_CELL_NULL,isPseudoDimension:h,expressionColor:Qw(s,e),selectionCellType:u?ur.NX_CELL_LEFT:ur.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:h?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:Zw({...e,qText:m},rR(l,c),s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},oR=(e,t,r,n,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,h=-1){e[f]||(e[f]={}),s&&h++;const m=o.leftDimensionInfoIndexes.indexOf(zC);p.forEach(((p,g)=>{var b;u+=0===g?0:1;const v=r.qTop-n.page*n.rowsPerPage,y=Math.max(0,v+u-p.qUp),x=r.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&h<=m){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===cr.NX_DIM_CELL_NORMAL||p.qType===cr.NX_DIM_CELL_NULL||p.qType===cr.NX_DIM_CELL_TOTAL)h<m&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===cr.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},h=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let L=f;s&&(L=m>=1&&h>=m?h+1:h,0===h&&0===m&&0===p.qSubNodes.length&&(L=0));const I=s&&void 0===(null===(b=e[f][y])||void 0===b?void 0:b.ref.qText)||!e[f][y]?nR({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:h},env:l,pageInfo:n}):e[f][y];if(e[f][y]=I,p.qSubNodes.length){const e=s?0:f+1;t(c||I,I,p.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},iR=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n[r+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},aR=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==r?void 0:r[o],a=n.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},lR=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=oR(e.grid,l,s,r,n,o,i,a);iR(u,r.rowsOnCurrentPage);const c=aR(u,n);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},sR=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===cr.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:UC(),ref:t,isNull:u}}))})),o},uR=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n.length?sR({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},cR=(e,t,r,n,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var h;u+=0===f?0:1;const m=r.qLeft+u-d.qUp,g=null!==(h=e[p][m])&&void 0!==h?h:nR({node:d,parent:c,root:a,x:m,y:p,pageY:p,layoutService:n,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,...n.isIndentModeEnabled&&{isIndentModeEnabled:n.isIndentModeEnabled},env:l,pageInfo:s});e[p][m]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},dR=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=cR(e.grid,s,u,r,n,o,i,a,l);iR(c,r.size.x);const d=aR(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},pR=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),fR=(e,t)=>{const{env:r}=kC(),{layoutService:n}=qC(),{qPivotDataPages:o,pageInfo:i}=DC(),[a,l]=A(null),s=((e,t,r)=>I((()=>({left:e.map(pR),top:t.map(pR),measures:r.map(pR)})),[r,e,t]))(e,t,n.visibleMeasureInfo),u=I((()=>QC(n,t,e)),[n,t,e]),c=P((()=>o.slice(1).reduce(((e,t)=>uR({prevData:e,dataPage:t,pageInfo:i})),((e,t)=>{const{qData:r,qArea:n}=e;return sR({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(o[0],i))),[o,i]),d=P((()=>o.slice(1).reduce(((e,o)=>dR({prevData:e,nextDataPage:o,layoutService:n,visibleTopDimensionInfo:t,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:r,pageInfo:i})),((e,t,r,n,o,i,a)=>{const{qArea:l,qTop:s}=e,u=cR([],s,l,t,r,n,o,i,a);iR(u,t.size.x);const c=aR(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(o[0],n,t,s.top,u.size.y,r,i))),[o,n,t,s.top,u.size.y,r,i]),p=P((()=>o.slice(1).reduce(((t,o)=>lR({prevData:t,nextDataPage:o,pageInfo:i,layoutService:n,visibleLeftDimensionInfo:e,attrExprInfoIndexes:s.left,env:r})),((e,t,r,n,o,i)=>{const{qArea:a,qLeft:l}=e,s=oR([],l,a,r,t,n,o,i);iR(s,r.rowsOnCurrentPage);const u=aR(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(o[0],n,i,e,s.left,r))),[o,n,i,e,s,r]),[f,h]=A((()=>c())),[m,g]=A((()=>d())),[b,v]=A((()=>p()));xv((()=>{h(c())}),[c]),xv((()=>{g(d())}),[d]),xv((()=>{v(p())}),[p]),xv((()=>{a&&a.forEach((o=>{h((e=>uR({prevData:e,dataPage:o,pageInfo:i}))),g((e=>dR({prevData:e,nextDataPage:o,layoutService:n,visibleTopDimensionInfo:t,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:r,pageInfo:i}))),v((t=>lR({prevData:t,nextDataPage:o,pageInfo:i,layoutService:n,visibleLeftDimensionInfo:e,attrExprInfoIndexes:s.left,env:r})))}))}),[a]);const y=P((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:m,leftDimensionData:b,attrExprInfoIndexes:s,nextPageHandler:y}},hR=Math.sqrt(1e4),mR=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/nr.PixelsMin)}),gR=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/hR),n=Math.ceil(e.qHeight/hR);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*hR,qTop:e.qTop+r*hR,qWidth:Math.min(hR,e.qWidth-o*hR),qHeight:Math.min(hR,e.qHeight-r*hR)});return t};function bR({nextPageHandler:e}){const{model:t}=kC(),{pageInfo:r}=DC(),{layoutService:n}=qC(),o=(e=>{const t=M(e);return t.current=e,t})(r.page),i=t,a=P((async(e,t)=>{var r;await(null==i||null===(r=i.collapseLeft)||void 0===r?void 0:r.call(i,jC,e,t,!1))}),[i]),l=P((async(e,t)=>{await(null==i?void 0:i.collapseTop(jC,e,t,!1))}),[i]),s=P((async(e,t)=>{await(null==i?void 0:i.expandLeft(jC,e,t,!1))}),[i]),u=P((async(e,t)=>{await(null==i?void 0:i.expandTop(jC,e,t,!1))}),[i]),c=P((async t=>{if(null!=i&&i.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(jC,t.reduce(((e,t)=>[...e,...gR(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),d=P(((e,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case Ut.Dimension:c=[{qPath:`${jC}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case Ut.Measures:if(o)c=l.map(((e,t)=>({qPath:`${jC}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${jC}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Ut.Pivot:c=[{qPath:`${jC}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}}));null==t||t.applyPatches(d,!0)}),[t,n]),p=P((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${jC}/indentModeColumnWidth`,qOp:null!==(t=n.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))}),[i,n]);return I((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const vR=(e,t,r)=>(n,o)=>{if(n===cr.NX_DIM_CELL_PSEUDO)return zC;const i=t[r+o];return e[i]},yR=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},xR=k({}),SR=()=>E(xR),ER=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=qC(),{qPivotDataPages:n}=DC();return I((()=>{var o,i,a,l;const s=yR(null!==(o=null===(i=n[0])||void 0===i?void 0:i.qLeft)&&void 0!==o?o:[]),u=yR(null!==(a=null===(l=n[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(vR(r,t,0)),visibleTopDimensionInfo:u.map(vR(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:l,nextPageHandler:s}=fR(t,r),u=bR({nextPageHandler:s}),c=I((()=>({gridSectionsData:{headersData:n,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:l,dataModel:u})),[t,r,n,o,i,a,l,u]);return $c.jsx(xR.Provider,{value:c,children:e})},CR=18,wR=.75,RR=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===jt.Image},LR=e=>void 0===e?ao:e,IR=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,AR=e=>IR(e,nr.PixelsDefault),MR=(e,t)=>IR(e,nr.PercentageDefault)*t/100,DR=(e,t,r)=>{switch(null==t?void 0:t.type){case or.Pixels:return AR(t.pixels);case or.Percentage:return MR(t.percentage,e);case or.FitToContent:case or.Auto:default:return r}},PR=({headers:e,layoutService:t,estimateWidthForDimensionValue:r,shouldConsiderCombinatedLength:n,measureTextForHeader:o,longestMeasureValuePossible:i})=>e.reduce(((e,a,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s}},isFullyExpanded:u}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=a;if(!f)return e+0;if(c===$C)return e+0;const h=r(p),m=!u&&f&&d<s-1?21:0;let g=0;if(n&&o&&i){g=o("-")+i}return Math.max(e,24*l+CR+m+h+g)}),0),_R=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*CR;return Math.max(e,o+t(n.qFallbackTitle))}),0),kR=(e,t,r,n)=>{const o=100*e/t,i=n*wR*(o/100),a=r*(o/100);return Math.min(a,i)},TR=(e,t,r,n)=>n*(r/100)*(100*e/t/100),OR=(e,t)=>e.some((e=>e>=t*wR)),qR=({layoutService:e,headersData:t,columnWidths:r,tableWidth:n,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:s})=>{let u=[];const c=n*wR,d=t.data[t.data.length-1][0],p=Math.min(c,r.at(-1)),f=Math.min(c,PR({headers:d,layoutService:e,estimateWidthForDimensionValue:a})),h=Math.min(c,_R(e.visibleMeasureInfo,i));let m=0;const g=d.findIndex((e=>e.id===$C)),b=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===or.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+CR+16:24})({layoutService:e,measureTextForHeader:i,translator:s,headersData:t});if(e.hasPseudoDimOnLeft)if(0===g){const e=Math.max(p,f,h);u=[Math.max(b,e-p),p]}else{const t=Math.min(c,_R(e.visibleMeasureInfo,l,!0));m=Math.min(c,PR({headers:d.slice(0,g),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const r=Math.max(p,f,m);u=[Math.max(b,r-p),p]}else u=[Math.max(b,f-p),p];const v=Math.min(c,u.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:y}=e;o&&o<=c&&(y.type=or.Pixels,y.pixels=o);return[or.Pixels,or.Percentage].includes(y.type)||OR(u,n)?((e,t,r,n)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=OR(e,r);s===or.Auto&&d&&(o>i?o-=i:i-=o),s===or.Pixels&&u&&(o=kR(e[0],l,u,r),i=kR(e[1],l,u,r)),s===or.Percentage&&c&&(o=TR(e[0],l,c,r),i=TR(e[1],l,c,r));let p=0;i<=n&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-n,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(u,y,n,p):{leftGridWidth:v,leftGridColumnWidths:u,leftGridFullWidth:v}};function NR({tableWidth:e}){const t=e*wR,{styleService:r,layoutService:n}=qC(),{translator:o}=kC(),{gridSectionsData:{headersData:i}}=SR(),{measureText:a}=bv(r.header),{estimateWidth:l,measureText:s}=bv({...r.dimensionValues,fontWeight:LR(r.dimensionValues.fontWeight)}),{measureText:u}=bv({...r.dimensionValues,...r.measureLabels}),c=P(((r,c)=>{const{layout:{qHyperCube:{qNoOfLeftDims:d,topHeadersColumnWidth:p}},visibleMeasureInfo:f,isFullyExpanded:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=n,b=(t=0)=>f.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=u(n)+CR,a=Math.max(i,t);return Math.max(r,m?a:DR(e,o,a))}),0),v=e=>i.data.reduce(((t,r)=>{const n=r[e];if(!n)return t;if(n.id===$C)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?20:0;return CR+a(t)+20+n})(n);return Math.max(o,t)}),0);let y=0,x=i.data.at(-1);m&&i.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((o,a)=>{let s=CR;if((!m||m&&1===i.size.x)&&r&&void 0!==c&&c===o.colIdx)s=m?Math.min(t,r):r;else{let t;o.columnWidthLocation===Ut.Pivot?t=m?void 0:p:o.columnWidthLocation===Ut.Dimension&&({columnWidth:t}=o);let r=0;if(o.isLeftDimension)if(o.id===$C)r=b();else{const e=v(a),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=e,a=n.getDimensionInfo(i);if(RR(a))return nr.PixelsDefault;const s=!h&&o&&t<d-1?21:0;return CR+l(r)+s})(o,a);r=Math.max(e,t),m&&!g&&a+1===d&&o.columnWidthLocation===Ut.Dimension&&i.size.x>1&&(r=e)}else o.isLeftDimension||(r=v(a),o.columnWidthLocation===Ut.Measures&&(r=b(r)));m&&1===i.size.x&&(t=n.indentModeColumnWidth),s=m&&!g&&i.size.x>1?r:DR(e,t,r)}return y+=s,s}));return m&&i.size.x>1?qR({layoutService:n,headersData:i,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:o}):{leftGridWidth:Math.min(t,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[e,i,n,t,a,u,l,s,o]),[d,p]=A(c);xv((()=>{p(c())}),[c]);const f=P(((e,t)=>{p(c(e,t))}),[c]);return{...d,overrideLeftGridWidth:f}}function FR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=qC(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=SR(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:l}},size:s,visibleMeasureInfo:u}=o,{estimateWidth:c,measureText:d}=bv(n.measureValues),{estimateWidth:p}=bv({...n.dimensionValues,fontWeight:LR(n.dimensionValues.fontWeight)}),f=e-r-1,h=i.at(-1),m=h===zC,g=l.length-a>i.length?21:0,b=I((()=>{const e=m?u:[h],t=s.x/e.length,r=[],n=[];let o=f;const i=(e,n)=>{r[e]=Math.min(nr.PixelsMax,Math.max(nr.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:s}=e;switch(r){case or.Pixels:i(t,AR(o));break;case or.Percentage:i(t,MR(a,f));break;case or.FitToContent:i(t,((e,t,r)=>r?nr.PixelsDefault:CR+(m?Math.max(c(e),d(t)):Math.max(Math.max(...u.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,s,RR(e)));break;case or.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(nr.AutoMinPivot,i)}))}return r}),[m,u,h,s.x,f,c,d,p,g]),v=I((()=>{if(m){return u.reduce(((e,t,r)=>e+b[r]),0)/u.length}return b[0]}),[m,b,u]),y=parseFloat((t/o.size.x).toFixed(12)),x=P((e=>(m&&void 0!==e?b[o.getMeasureInfoIndexFromCellIndex(e,!0)]:v)-y),[m,b,o,v,y]),S=s.x*v;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}const jR=`scrollable-container--${Xt.TOP_GRID}`,zR=`scrollable-container--${Xt.LEFT_GRID}`,$R=`scrollable-container--${Xt.DATA_GRID}`,GR=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},BR=(e,t)=>e>t?Jt.Forward:e<t?Jt.Backward:Jt.None,WR=()=>{const{layoutService:e}=qC(),t=M(null),r=M(null),n=M(null),o=M(null),i=M([]),a=M([]),l=M(null),{scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:u},resetHorizontalScrollbarHeight:c}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=A(0),[i,a]=A(0);return O((()=>{(e.current||r.current)&&o(Math.max(GR(e.current).width,GR(r.current).width))})),O((()=>{(t.current||r.current)&&a(Math.max(GR(t.current).height,GR(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>a(0)}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:l}=DC(),{downloadService:s,viewService:u,layoutService:c}=qC(),d=P((()=>{var o,i,a,l;const s={left:0,top:0};null===(o=e.current)||void 0===o||o.scrollTo(s),null===(i=t.current)||void 0===i||i.scrollTo(s),null===(a=r.current)||void 0===a||a.scrollTo(s),null===(l=n.current)||void 0===l||l.scrollTo(s)}),[e,t,r,n]);O((()=>{d()}),[l.page,d]),O((()=>{c.triggerdByExpandOrCollapse||d()}),[c,d]),O((()=>{if(c.triggerdByExpandOrCollapse){var e,t,r,l,s,u,d;const c=null!==(e=null===(t=n.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0,p=null!==(r=null===(l=n.current)||void 0===l?void 0:l.scrollTop)&&void 0!==r?r:0;null===(s=i.current)||void 0===s||s.forEach((e=>null==e?void 0:e.scrollTo(p))),null===(u=o.current)||void 0===u||u.forEach((e=>null==e?void 0:e.scrollTo(c))),null===(d=a.current)||void 0===d||d.scrollTo({scrollTop:p,scrollLeft:c})}}),[c,n,a,i,o]),O((()=>{(s.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,s,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l}});const{trackScrollDirection:d,scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:f}}=(()=>{const e=M(Jt.None),t=M(Jt.None),r=M({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:P((n=>{if(n instanceof WheelEvent&&(e.current=BR(n.deltaY,0),t.current=BR(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=BR(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=BR(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),h=(()=>{const{viewService:e}=qC();return P((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===zR&&(e.leftGridScrollLeft=n.scrollLeft),o===$R&&(e.scrollLeft=n.scrollLeft),o===jR&&(e.topGridScrollTop=n.scrollTop),o!==zR&&o!==$R||(e.scrollTop=n.scrollTop)}),[e])})(),m={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},getWrapperElements:P((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:o.current})),[t,r,n,o]),updateViewService:h,trackScrollDirection:d,isSnapshotMode:e.isSnapshot};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,isSnapshotMode:a})=>{_((()=>{const{headerGridWrapperElement:o,topGridWrapperElement:l,leftGridWrapperElement:s,dataGridWrapperElement:u}=n(),c=e=>{o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,s.scrollLeft=o.scrollLeft,l.scrollTop=o.scrollTop,i(e)},d=e=>{var n,a;s.scrollTop+=e.deltaY,null===(n=t.current)||void 0===n||n.forEach((e=>null==e?void 0:e.scrollTo(s.scrollTop))),o.scrollLeft+=e.deltaX,s.scrollLeft=o.scrollLeft,u.scrollTop=s.scrollTop,null===(a=r.current)||void 0===a||a.scrollTo({scrollTop:s.scrollTop}),i(e)},p=t=>{var n,a;l.scrollLeft+=t.deltaX,null===(n=e.current)||void 0===n||n.forEach((e=>null==e?void 0:e.scrollTo(l.scrollLeft))),o.scrollTop+=t.deltaY,l.scrollTop=o.scrollTop,u.scrollLeft=l.scrollLeft,null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:l.scrollLeft}),i(t)},f=n=>{var o,a,c;u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,null===(o=r.current)||void 0===o||o.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),l.scrollLeft=u.scrollLeft,null===(a=e.current)||void 0===a||a.forEach((e=>null==e?void 0:e.scrollTo(u.scrollLeft))),s.scrollTop=u.scrollTop,null===(c=t.current)||void 0===c||c.forEach((e=>null==e?void 0:e.scrollTo(u.scrollTop))),i(n)};return o.addEventListener("wheel",c),s.addEventListener("wheel",d),l.addEventListener("wheel",p),u.addEventListener("wheel",f),a&&setTimeout((()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[i,o,a,e,t,r,n])})(m),(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,isSnapshotMode:a})=>{_((()=>{const{headerGridWrapperElement:l,topGridWrapperElement:s,leftGridWrapperElement:u,dataGridWrapperElement:c}=n(),d=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,i(e),null==o||o(e)},p=e=>{const t=e.target;l.scrollTop=t.scrollTop,i(e),null==o||o(e)},f=n=>{var a,l,d;const p=n.target;null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:p.scrollLeft,scrollTop:p.scrollTop}),s.scrollLeft=c.scrollLeft,null===(l=e.current)||void 0===l||l.forEach((e=>null==e?void 0:e.scrollTo(p.scrollLeft))),u.scrollTop=c.scrollTop,null===(d=t.current)||void 0===d||d.forEach((e=>null==e?void 0:e.scrollTo(p.scrollTop))),i(n),null==o||o(n)};return u.addEventListener("scroll",d),s.addEventListener("scroll",p),c.addEventListener("scroll",f),a&&setTimeout((()=>{u.removeEventListener("scroll",d),s.removeEventListener("scroll",p),c.removeEventListener("scroll",f)}),0),()=>{u.removeEventListener("scroll",d),s.removeEventListener("scroll",p),c.removeEventListener("scroll",f)}}),[i,o,a,e,t,r,n])})(m),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:f},scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:u,resetHorizontalScrollbarHeight:c}}},HR=()=>{const{layoutService:e}=qC(),{rect:t,pageInfo:r}=DC();return I((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},VR=({children:e,style:t})=>$c.jsx("div",{"data-testid":"fullSize",style:t,children:e}),YR=({children:e,style:t})=>$c.jsx("div",{"data-section-id":"GRID",style:{display:"grid",...t},children:e}),UR=e=>e&&`scrollable-container--${e}`,KR=({children:e,style:t,origin:r},n)=>{const{interactions:o}=kC(),i=o.active?t:{overflow:"hidden"};return $c.jsx("div",{"data-testid":"scrollable","data-key":UR(r),style:i,ref:n,children:e})};var XR=S.forwardRef(KR);const JR=({children:e,style:t})=>$c.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,left:0,...t},children:e});var ZR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function QR(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||ZR(n)&&ZR(o)))return!1;var n,o;return!0}function eL(e,t){var r;void 0===t&&(t=QR);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var tL="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function rL(e){cancelAnimationFrame(e.id)}function nL(e,t){var r=tL();var n={id:requestAnimationFrame((function o(){tL()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var oL=-1;function iL(e){if(void 0===e&&(e=!1),-1===oL||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),oL=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return oL}var aL=null;function lL(e){if(void 0===e&&(e=!1),null===aL||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?aL="positive-descending":(t.scrollLeft=1,aL=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),aL}return aL}var sL=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function uL(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,zo(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:zo(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=eL((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=eL((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&l,m&&s,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=eL((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(lL()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&rL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=nL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}jo(t,e),t.getDerivedStateFromProps=function(e,t){return cL(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=iL();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(lL()){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&&rL(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?sL:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],R=this._getVerticalRangeToRender(),L=R[0],I=R[1],A=[];if(n>0&&g)for(var M=L;M<=I;M++)for(var D=E;D<=w;D++)A.push(C(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,D)}));var P=a(this.props,this._instanceProps),_=l(this.props,this._instanceProps);return C(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:Do({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(u||c||"div",{children:A,ref:s,style:{height:P,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],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var cL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},dL=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},pL=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},fL=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},hL=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?mL(e,t,r,i,0,n):gL(e,t,r,Math.max(0,i),n)},mL=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=fL(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},gL=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&fL(e,t,n,r).offset<o;)n+=a,a*=2;return mL(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},bL=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=fL(e,t,r,i),u="column"===e?pL(t,i):dL(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},vL=uL({getColumnOffset:function(e,t,r){return fL("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return hL("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=fL("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=fL("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:dL,getEstimatedTotalWidth:pL,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return bL("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return bL("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return fL("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return hL("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=fL("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=fL("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}}),yL=function(e,t){return e};function xL(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,zo(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:zo(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=eL((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=eL((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=eL((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(lL()){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&&rL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=nL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}jo(t,e),t.getDerivedStateFromProps=function(e,t){return SL(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?iL():0:s.scrollHeight>s.clientHeight?iL():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(lL()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&rL(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?yL:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],R=E[1],L=[];if(u>0)for(var I=w;I<=R;I++)L.push(C(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var A=n(this.props,this._instanceProps);return C(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:Do({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(l||s||"div",{children:L,ref:a,style:{height:x?"100%":A,pointerEvents:y?"none":void 0,width:x?A:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var SL=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},EL=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},CL=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=EL(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},wL=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&EL(e,r,t).offset<n;)r+=i,i*=2;return CL(e,t,Math.min(r,o-1),Math.floor(r/2),n)},RL=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},LL=xL({getItemOffset:function(e,t,r){return EL(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:RL,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=EL(e,t,o),p=RL(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?CL(e,t,o,0,r):wL(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=EL(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=EL(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 IL(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 AL=["style"],ML=["style"];function DL(e,t){var r=e.style,n=No(e,AL),o=t.style,i=No(t,ML);return!IL(r,o)&&!IL(n,i)}const PL=10,_L=(e,t)=>e.current===Jt.Backward?t:0,kL=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e[o];if(void 0===r||void 0===r[t])return!0}return!1},TL=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,OL=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(kL(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&TL(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},qL=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===Jt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return OL({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},NL=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=_L(r,PL),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+PL,l-u),pageTop:o,qHeight:a}})(n,o,r),u=OL({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...qL({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},FL=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},jL=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,zL=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(FL(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&jL(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},$L=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=_L(r,PL),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+PL,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=zL({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===Jt.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=zL({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},GL=async(e,t,r,n,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Jt.None&&(p=$L({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==Jt.None&&(f=NL({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===Jt.None&&a.current===Jt.None&&(p=zL({measureData:r,pageInfo:n,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(h)},BL=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];r=l;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(GL,100),WL=Et(GL,75),HL=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),VL=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{styleService:{grid:{border:l,divider:s}}}=qC();return $c.jsx("div",{style:{...e,...ho,...vo(r,n,l,o),...xo({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},YL=({children:e,verticalAlign:t,width:r,right:n})=>$c.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,alignSelf:t},children:e}),UL=e=>{const{type:t,imageSize:r}=e;return t!==jt.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"},KL=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function XL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const JL=(e,t)=>S.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){XL(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),S.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})),ZL=D(JL);function QL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const eI=(e,t)=>S.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){QL(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),S.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})),tI=D(eI),rI=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(rr)},nI=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),o=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:n,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:o}=e,i=new Map(o);for(let e=r;e<=n;e++){const r=t(e);(null==r?void 0:r.ref.qType)===cr.NX_DIM_CELL_NORMAL&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}};const oI=k({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),iI=()=>E(oI),aI=({children:e,selections:t})=>{const r=function(e){var t,r,n;const{env:o}=kC(),{updatePageInfo:i}=DC(),a=e.isActive(),[l,s]=N(nI,{engineSelectedCells:null,selectedField:null,activeSelection:null});_((()=>{const t=()=>{s({type:"clearSelections"})},r=()=>{t(),i({page:0})};return e.on("deactivated",t),e.on("canceled",t),e.on("confirmed",r),e.on("cleared",t),()=>{e.removeListener("deactivated",t),e.removeListener("canceled",t),e.removeListener("confirmed",r),e.removeListener("cleared",t)}}),[e,i]);const u=P((async()=>{var t,r,n;if(!l.activeSelection)return;1===l.activeSelection.clientSelectedCells.size&&(r=l.engineSelectedCells,(n=l.activeSelection).clientSelectedCells.forEach(((e,t)=>{null!=r&&r.has(t)&&(n.clientSelectedCells.delete(t),r.delete(t))})));const o=new Map([...null!==(t=l.engineSelectedCells)&&void 0!==t?t:new Map,...l.activeSelection.clientSelectedCells]);try{s({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[jC,Array.from(o,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),s({type:"mouseup",payload:{engineSelectedCells:l.engineSelectedCells}})}}),[l,e]);_((()=>{if(l.activeSelection)return document.addEventListener("mouseup",u),()=>{document.removeEventListener("mouseup",u)}}),[u,l.activeSelection]);const c=P(((e,t)=>r=>{if(r.target!==r.currentTarget)return;const n=t(e);!rI(r)&&!(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(r)&&(e=>1===e.buttons)(r)&&n&&s({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(n.ref.qElemNo,n)},selectedField:{selectionCellType:n.selectionCellType,index:n.selectionCellType===ur.NX_CELL_LEFT?n.x:n.y}}})}),[]),d=P((t=>o.flags.isEnabled("CLIENT_IM_6223_PIVOT_RANGE_SELECTION")?async()=>{l.activeSelection&&(e.isActive()||await e.begin([jC]),s({type:"mouseover",payload:{index:t}}))}:void 0),[l.activeSelection,e,o]),p=P((e=>{var t,r;return!(!(null!==(t=l.engineSelectedCells)&&void 0!==t&&t.size||null!==(r=l.activeSelection)&&void 0!==r&&r.clientSelectedCells.size)||!l.selectedField||e.selectionCellType===l.selectedField.selectionCellType&&(e.selectionCellType===ur.NX_CELL_LEFT?l.selectedField.index===e.x:l.selectedField.index===e.y))}),[null===(t=l.activeSelection)||void 0===t?void 0:t.clientSelectedCells.size,null===(r=l.engineSelectedCells)||void 0===r?void 0:r.size,l.selectedField]),f=P((e=>{var t,r;return!p(e)&&((null===(t=l.engineSelectedCells)||void 0===t?void 0:t.has(e.ref.qElemNo))||!(null===(r=l.activeSelection)||void 0===r||!r.clientSelectedCells.has(e.ref.qElemNo)))}),[p,null===(n=l.activeSelection)||void 0===n?void 0:n.clientSelectedCells,l.engineSelectedCells]);return I((()=>({isSelected:f,isActive:a,isLocked:p,createMouseDownHandler:c,createMouseOverHandler:d})),[f,a,p,c,d])}(t);return $c.jsx(oI.Provider,{value:r,children:e})};var lI;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(lI||(lI={}));const sI={brighter:.5,darker:.3,opacity:.03},uI=(e,{cell:t,styleService:r})=>{if(e===lI.Background||e===lI.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},cI=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=uI(lI.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?uI(lI.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${ov(i=o,sI)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},dI=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:uI(lI.Color,{cell:e,styleService:t}),pI=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=uI(lI.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?ao:o},fI=({cell:e,styleService:t})=>uI(lI.FontStyle,{cell:e,styleService:t}),hI=({cell:e,styleService:t})=>uI(lI.TextDecoration,{cell:e,styleService:t}),mI=e=>e?"pointer":"default",gI=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},bI=(e,t)=>{if(!e.isLeftColumn||e.representation.type===jt.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},vI=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n}=qC(),{interactions:o}=kC(),{isActive:i}=iI(),{dataModel:a}=SR();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!o.active||i||!a,s=dI({cell:e,styleService:n,isCellSelected:r}),u=i?.4:1,c=e.ref.qCanExpand?tI:ZL;let d;return d=e.ref.qCanExpand?t?null==a?void 0:a.expandLeft:null==a?void 0:a.expandTop:t?null==a?void 0:a.collapseLeft:null==a?void 0:a.collapseTop,$c.jsx(c,{opacity:u,color:s,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...bI(e,n)},onClick:l?void 0:gI({cell:e,expandOrCollapse:d})})},yI=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},xI=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},SI=({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o})=>{const i=`calc(100% - ${r?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==n?a*Math.max(n,1):a;switch(e.imageSize){case"originalSize":return{maxWidth:i,maxHeight:l};case"fitWidth":return{width:i,maxHeight:l};case"fitHeight":return{height:l,maxWidth:i};case"fill":return{height:l,width:i};default:return{width:i,height:a}}},EI=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},CI=e=>{if("alwaysFit"===e)return"contain"},wI=({representation:e,styleService:t,textStyle:r,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=qC(),t=M(null),{promise:r,resolve:n}=I((()=>KL()),[]);return _((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(r),null!==(o=t.current)&&void 0!==o&&o.complete&&n()),()=>n()}),[t,e,r,n]),{onLoad:P((()=>{n()}),[n]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=r;return $c.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==d?void 0:d.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...SI({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})},children:$c.jsx("img",{src:s,alt:u,style:{width:xI(c),height:yI(c),objectFit:CI(c),objectPosition:EI(c,d),...f},onLoad:l,ref:a})})},RI=(e,t)=>{if(null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},LI={display:"flex",flexDirection:"row",alignItems:"center"},II={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},AI=(e,t,r,n)=>t?{...II,...e.nullValues}:r?{...LI,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...LI,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},MI=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...mo,...!r&&go(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?ao:s,fontStyle:u,textDecoration:c}},DI=(e,t,r,n)=>{const{textAlign:o}=t,i=n?"flex-end":"center";var a,l;return e.isNull||r.type!==jt.Image?RI(o,i):null!==(a=null===(l=r.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:"center"},PI=({cell:e,representation:t,color:r,isNumeric:n,isTotalValueCell:o})=>{const{layoutService:i,styleService:a}=qC(),l=e.isNull?i.getNullValueText():t.text,s=MI(a,r,n,o,e.isNull);return t.type!==jt.Image||e.isNull?$c.jsx("span",{style:{padding:4,...s},children:l}):$c.jsx(wI,{representation:t,styleService:a,textStyle:s,isLeftColumn:!0})},_I=(e,t)=>{var r,n;return null!==(r=null==e||null===(n=e[t])||void 0===n?void 0:n.visibleMeasureInfoIndex)&&void 0!==r?r:0},kI="flex-start",TI=(e,t)=>{return e.isNull?kI:t.type===jt.Image&&"fill"!==t.imageSize?null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.vertical:kI;var r},OI=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const{env:i}=kC(),{pageInfo:a}=DC(),{styleService:l,layoutService:s}=qC(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleLeftDimensionInfo:f,visibleTopDimensionInfo:h}}=SR(),m=(()=>{const{layoutService:{isIndentModeEnabled:e}}=qC(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=SR(),i=n.length,a=o.length;return P(((n,o)=>{var l,s;return!!(null!==(l=r.grid.at(a-1))&&void 0!==l&&null!==(l=l[n])&&void 0!==l&&l.isTotal||null!==(s=t.grid.at(e?0:i-1))&&void 0!==s&&null!==(s=s[o])&&void 0!==s&&s.isTotal)}),[r,t,i,a,e])})(),g=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=SR(),r=t.length;return P((t=>{var n;const o=null===(n=e.grid.at(r-1))||void 0===n?void 0:n[t];return HL(o,e.totalDividerIndex)}),[e,r])})(),b=(()=>{const{layoutService:{isIndentModeEnabled:e}}=qC(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=SR(),n=r.length;return P((r=>{var o;const i=e?0:n-1,a=null===(o=t.grid.at(i))||void 0===o?void 0:o[r];return HL(a,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:v}=n,y=p.grid.at(h.length-1),x=d.grid.at(f.length-1),{background:S}=l.measureValues,E=null===(o=c[t])||void 0===o?void 0:o[e],C=t===a.rowsOnCurrentPage-1,w=e===s.size.x-1;if(!E)return $c.jsx(VL,{style:{...r,background:S},isLastRow:C,isLastColumn:w,showLastBorder:v,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const R=s.hasPseudoDimOnLeft?_I(x,t):_I(y,e),L=s.visibleMeasureInfo[R],I=Zw(E.ref,s.isIndentModeEnabled?{type:jt.Text}:L.representation,u.measures[R],i),A=!E.isNull&&m(e,t),M=E.isNull?s.getNullValueText():I.text,D=!E.isNull||!Number.isNaN(+M),_=Qw(u.measures[R],E.ref),k={...AI(l,E.isNull,A,_.background),...vo(C,w,l.grid.border,v),...xo({bottomDivider:b(t),rightDivider:g(e),borderColor:l.grid.divider}),...ho,padding:"0px 4px",display:"flex",justifyContent:DI(E,L,I,D)};return $c.jsx("div",{className:er,title:M,style:{...k,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:$c.jsx(YL,{width:UL(I),verticalAlign:TI(E,I),children:$c.jsx(PI,{cell:E,representation:I,isNumeric:D,isTotalValueCell:A,color:_.color})})})};var qI=S.memo(OI,DL);const NI=(e,t)=>{var r,n;return null!==(r=null===(n=t.list[e])||void 0===n?void 0:n.id)&&void 0!==r?r:e.toString()},FI=({columnIndex:e,rowIndex:t,data:r})=>{var n,o;return null!==(n=null===(o=r.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==n?n:`${t}-${e}`},jI={...fo,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},zI=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:l})=>{const{pageInfo:s}=DC(),{layoutService:u,styleService:{grid:{divider:c},contentCellHeight:d}}=qC(),{dataModel:p,gridSectionsData:{measureData:f}}=SR(),h={...jI,borderColor:c,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},m=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=DC(),{downloadService:n,viewService:o,layoutService:i}=qC(),{dataModel:a,gridSectionsData:{leftDimensionData:l,topDimensionData:s,measureData:u}}=SR(),c=l.columnCount,d=s.rowCount;return P((async({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=l,o.gridRowStartIndex=p,o.gridWidth=s-l+1,o.gridHeight=f-p+1;const h=o.gridWidth+c+(t.current===Jt.None?0:PL),m=o.gridHeight+d+(e.current===Jt.None?0:PL);let g=BL;m*h>1500&&(g=WL),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:l});return xv((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,p,f]),O((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,d]),0===u.size.x?null:$c.jsx(vL,{"data-section-id":"DATA_GRID",ref:e,style:h,columnCount:u.size.x,columnWidth:i,height:t,rowCount:s.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:o,grid:f},onItemsRendered:m,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:FI,children:qI})};var $I=T(zI);function GI(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=(e,t)=>S.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){GI(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),S.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"}),S.createElement("use",{fillRule:"evenodd"})),WI=D(BI),HI=e=>{const[t,r]=A(!1);return xv((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},VI=()=>{const[e,t]=A(!1),{dataModel:r}=SR(),{interactions:n}=kC(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=HI([r]);return{open:e,setOpen:t,handleOpenMenu:e=>n.active&&!rI(e)&&!o&&t(!0),setIsAdjustingWidth:i}};function YI(e,t){var r,n;const o=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,i=t.isLeftColumn?e.header.background:o,a=i===uo.Transparent?ib.WHITE:i,l=xe(e.grid.border),s=xe(a);return s.isInvalid()||l.isInvalid()||1===l.a?e.grid.border:function(e,t,r){return xe(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(s,l,l.a).getRGB()}const UI=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{var l;const{interactions:s,translator:u}=kC(),{isActive:c}=iI(),{dataModel:d}=SR(),{styleService:p}=qC(),[,f]=A({});if(!(e.canBeResized&&!!s.active&&!c))return null;const h=YI(p,e);return $c.jsx(OS,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{f({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{var r;i?null==d||d.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=a?a:0)*wR,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==d||d.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:u,columnLabel:null!==(l=e.label)&&void 0!==l?l:""}})};function KI(e){return Ky(e)}const XI=e=>e.scrollTop;function JI(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 ZI(e){return gu("MuiPaper",e)}bu("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 QI=["className","component","elevation","square","variant"],eA=AS("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 Do({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&&Do({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ix("#fff",PS(t.elevation))}, ${ix("#fff",PS(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var tA=x.forwardRef((function(e,t){const r=KI({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=No(r,QI),u=Do({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return pu({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},ZI,o)})(u);return $c.jsx(eA,Do({as:o,ownerState:u,className:Eu(c.root,n),ref:t},s))}));var rA=bu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const nA=["center","classes","className"];let oA,iA,aA,lA,sA=e=>e;const uA=as(oA||(oA=sA`
|
|
99
|
+
`),Qc.rippleVisible,ad,550,(({theme:e})=>e.transitions.easing.easeInOut),Qc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Qc.child,Qc.childLeaving,ld,550,(({theme:e})=>e.transitions.easing.easeInOut),Qc.childPulsate,sd,(({theme:e})=>e.transitions.easing.easeInOut));var dd=t.forwardRef((function(e,r){const n=Xu({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=fn(n,ed),[s,u]=t.useState([]),c=t.useRef(0),d=t.useRef(null);t.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=t.useRef(!1),f=t.useRef(0),h=t.useRef(null),m=t.useRef(null);t.useEffect((()=>()=>{f.current&&clearTimeout(f.current)}),[]);const g=t.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,ks.jsx(cd,{classes:{ripple:nc(i.ripple,Qc.ripple),rippleVisible:nc(i.rippleVisible,Qc.rippleVisible),ripplePulsate:nc(i.ripplePulsate,Qc.ripplePulsate),child:nc(i.child,Qc.child),childLeaving:nc(i.childLeaving,Qc.childLeaving),childPulsate:nc(i.childPulsate,Qc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=t.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.current=setTimeout((()=>{h.current&&(h.current(),h.current=null)}),80)):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g]),v=t.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=t.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void(f.current=setTimeout((()=>{y(e,t)})));h.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return t.useImperativeHandle(r,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),ks.jsx(ud,pn({className:nc(Qc.root,i.root,a),ref:m},l,{children:ks.jsx($c,{component:null,exit:!0,children:s})}))}));function pd(e){return Lu("MuiButtonBase",e)}var fd=Iu("MuiButtonBase",["root","disabled","focusVisible"]);const hd=["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"],md=ec("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"},[`&.${fd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gd=t.forwardRef((function(e,r){const n=Xu({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:I,tabIndex:A=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=fn(n,hd),k=t.useRef(null),T=t.useRef(null),O=du(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Su(),[z,$]=t.useState(!1);u&&z&&$(!1),t.useImperativeHandle(o,(()=>({focusVisible:()=>{$(!0),k.current.focus()}})),[]);const[G,B]=t.useState(!1);t.useEffect((()=>{B(!0)}),[]);const W=G&&!c&&!u;function H(e,t,r=d){return cu((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}t.useEffect((()=>{z&&p&&!c&&G&&T.current.pulsate()}),[c,p,z,G]);const V=H("start",E),Y=H("stop",g),U=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",I),Z=H("stop",R),Q=H("stop",L),ee=H("stop",(e=>{F(e),!1===q.current&&$(!1),h&&h(e)}),!1),te=cu((e=>{k.current||(k.current=e.currentTarget),N(e),!0===q.current&&($(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=k.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=t.useRef(!1),oe=cu((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))})),ie=cu((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.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=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(_.href||_.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=du(r,j,k),ue=pn({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:A,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=ol({root:["root",t&&"disabled",r&&"focusVisible"]},pd,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ks.jsxs(md,pn({as:ae,className:nc(ce.root,l),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:A,type:P},le,_,{children:[a,W?ks.jsx(dd,pn({ref:O,center:i},M)):null]}))}));var bd=gd;function vd(e){return Lu("MuiTypography",e)}Iu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const yd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],xd=ec("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${ru(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>pn({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}))),Sd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ed={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Cd=t.forwardRef((function(e,t){const r=Xu({props:e,name:"MuiTypography"}),n=(e=>Ed[e]||e)(r.color),o=qs(pn({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Sd}=o,f=fn(o,yd),h=pn({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||Sd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return ol({root:["root",i,"inherit"!==e.align&&`align${ru(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},vd,a)})(h);return ks.jsx(xd,pn({as:m,ref:t,ownerState:h,className:nc(g.root,a)},f))}));var wd=Cd;const Rd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ld(e){const t=[],r=[];return Array.from(e.querySelectorAll(Rd)).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 Id(){return!0}function Ad(e){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=Ld,isEnabled:l=Id,open:s}=e,u=t.useRef(!1),c=t.useRef(null),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),h=t.useRef(!1),m=t.useRef(null),g=Ga(r.ref,m),b=t.useRef(null);t.useEffect((()=>{s&&m.current&&(h.current=!n)}),[n,s]),t.useEffect((()=>{if(!s||!m.current)return;const e=Na(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),t.useEffect((()=>{if(!s||!m.current)return;const e=Na(m.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(m.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return ks.jsxs(t.Fragment,{children:[ks.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),t.cloneElement(r,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const t=r.props.onFocus;t&&t(e)}}),ks.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const Md=t.forwardRef((function(e,r){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=t.useState(null),s=Ga(t.isValidElement(n)?n.ref:null,r);if(za((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),za((()=>{if(a&&!i)return ja(r,a),()=>{ja(r,null)}}),[r,a,i]),i){if(t.isValidElement(n)){const e={ref:s};return t.cloneElement(n,e)}return ks.jsx(t.Fragment,{children:n})}return ks.jsx(t.Fragment,{children:a?j.createPortal(n,a):a})}));function Dd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Pd(e){return parseInt(Fa(e).getComputedStyle(e).paddingRight,10)||0}function _d(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&&Dd(e,o)}))}function kd(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Td(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Na(e);return t.body===e?Fa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=rl(Na(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Pd(n)+e}px`;const t=Na(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Pd(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Na(n).body;else{const t=n.parentElement,r=Fa(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 Od=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&&Dd(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);_d(t,e.mount,e.modalRef,n,!0);const o=kd(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=kd(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Td(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=kd(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&&Dd(e.modalRef,t),_d(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&&Dd(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function qd(e){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=Od,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=t.useRef({}),h=t.useRef(null),m=t.useRef(null),g=Ga(m,p),[b,v]=t.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},C=$a((()=>{const e=function(e){return"function"==typeof e?e():e}(r)||Na(h.current).body;i.add(S(),e),m.current&&E()})),w=t.useCallback((()=>i.isTopModal(S())),[i]),R=$a((e=>{h.current=e,e&&(d&&w()?E():m.current&&Dd(m.current,x))})),L=t.useCallback((()=>{i.remove(S(),x)}),[x,i]);t.useEffect((()=>()=>{L()}),[L]),t.useEffect((()=>{d?C():y&&a||L()}),[d,L,y,a,C]);const I=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},A=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Kc(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=xr({},r,t);return xr({role:"presentation"},n,{onKeyDown:I(n),ref:g})},getBackdropProps:(e={})=>xr({"aria-hidden":!0},e,{onClick:A(e),open:d}),getTransitionProps:()=>({onEnter:Oa((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Oa((()=>{v(!0),s&&s(),a&&L()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}const Nd=["onChange","maxRows","minRows","style","value"];function Fd(e){return parseInt(e,10)||0}const jd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function zd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const $d=t.forwardRef((function(e,r){const{onChange:n,maxRows:o,minRows:i=1,style:a,value:l}=e,s=Ir(e,Nd),{current:u}=t.useRef(null!=l),c=t.useRef(null),d=Ga(r,c),p=t.useRef(null),f=t.useRef(0),[h,m]=t.useState({outerHeightStyle:0}),g=t.useCallback((()=>{const t=c.current,r=Fa(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const n=p.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=r.boxSizing,l=Fd(r.paddingBottom)+Fd(r.paddingTop),s=Fd(r.borderBottomWidth)+Fd(r.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=u;i&&(f=Math.max(Number(i)*d,f)),o&&(f=Math.min(Number(o)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-u)<=1}}),[o,i,e.placeholder]),b=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return f.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(f.current+=1,{overflow:n,outerHeightStyle:r}):e},v=t.useCallback((()=>{const e=g();zd(e)||m((t=>b(t,e)))}),[g]);za((()=>{const e=()=>{f.current=0,(()=>{const e=g();zd(e)||j.flushSync((()=>{m((t=>b(t,e)))}))})()};const t=qa(e),r=c.current,n=Fa(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()}}),[g]),za((()=>{v()})),t.useEffect((()=>{f.current=0}),[l]);return ks.jsxs(t.Fragment,{children:[ks.jsx("textarea",xr({value:l,onChange:e=>{f.current=0,u||v(),n&&n(e)},ref:d,rows:i,style:xr({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},a)},s)),ks.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:xr({},jd,a,{paddingTop:0,paddingBottom:0})})]})}));function Gd({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 Bd=t.createContext(void 0);function Wd(){return t.useContext(Bd)}function Hd(e){return ks.jsx(Ts,pn({},e,{defaultTheme:Uu,themeId:dn}))}function Vd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Yd(e,t=!1){return e&&(Vd(e.value)&&""!==e.value||t&&Vd(e.defaultValue)&&""!==e.defaultValue)}function Ud(e){return Lu("MuiInputBase",e)}var Kd=Iu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Xd=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Jd=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ru(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Zd=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Qd=ec("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Jd})((({theme:e,ownerState:t})=>pn({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Kd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&pn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),ep=ec("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Zd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=pn({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 pn({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Kd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Kd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),tp=ks.jsx(Hd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),rp=t.forwardRef((function(e,r){var n;const o=Xu({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:b="input",inputProps:v={},inputRef:y,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:I,onKeyDown:A,onKeyUp:M,placeholder:D,readOnly:P,renderSuffix:_,rows:k,slotProps:T={},slots:O={},startAdornment:q,type:N="text",value:F}=o,j=fn(o,Xd),z=null!=v.value?v.value:F,{current:$}=t.useRef(null!=z),G=t.useRef(),B=t.useCallback((e=>{}),[]),W=du(G,y,v.ref,B),[H,V]=t.useState(!1),Y=Wd(),U=Gd({props:o,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:H,t.useEffect((()=>{!Y&&p&&H&&(V(!1),w&&w())}),[Y,p,H,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=t.useCallback((e=>{Yd(e)?K&&K():X&&X()}),[K,X]);iu((()=>{$&&J({value:z})}),[z,J,$]);t.useEffect((()=>{J(G.current)}),[]);let Z=b,Q=v;E&&"input"===Z&&(Q=pn(k?{type:void 0,minRows:k,maxRows:k}:{type:void 0,maxRows:x,minRows:S},Q),Z=$d);t.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=pn({},o,{color:U.color||"primary",disabled:U.disabled,endAdornment:h,error:U.error,focused:U.focused,formControl:Y,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:E,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return ol({root:["root",`color${ru(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${ru(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Ud,t)})(ee),re=O.root||u.Root||Qd,ne=T.root||c.root||{},oe=O.input||u.Input||ep;return Q=pn({},Q,null!=(n=T.input)?n:c.input),ks.jsxs(t.Fragment,{children:[!f&&tp,ks.jsxs(re,pn({},ne,!Uc(re)&&{ownerState:pn({},ee,ne.ownerState)},{ref:r,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),L&&L(e)}},j,{className:nc(te.root,ne.className,s,P&&"MuiInputBase-readOnly"),children:[q,ks.jsx(Bd.Provider,{value:null,children:ks.jsx(oe,pn({ownerState:ee,"aria-invalid":U.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:d,disabled:U.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?G.current:{value:"x"})},name:C,placeholder:D,readOnly:P,required:U.required,rows:k,value:z,onKeyDown:A,onKeyUp:M,type:N},Q,!Uc(oe)&&{as:Z,ownerState:pn({},ee,Q.ownerState)},{ref:W,className:nc(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||G.current;if(null==t)throw new Error(cn(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(I&&I(e),v.onFocus&&v.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),h,_?_(pn({},U,{startAdornment:q})):null]}))]})}));var np=rp;function op(e){return Lu("MuiInput",e)}var ip=pn({},Kd,Iu("MuiInput",["root","underline","input"]));function ap(e){return Lu("MuiOutlinedInput",e)}var lp=pn({},Kd,Iu("MuiOutlinedInput",["root","notchedOutline","input"]));function sp(e){return Lu("MuiFilledInput",e)}var up=pn({},Kd,Iu("MuiFilledInput",["root","underline","input"])),cp=function(e,r){function n(t,n){return ks.jsx(sc,pn({"data-testid":`${r}Icon`,ref:n},t,{children:e}))}return n.muiName=sc.muiName,t.memo(t.forwardRef(n))}(ks.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const dp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pp={entering:{opacity:1},entered:{opacity:1}},fp=t.forwardRef((function(e,r){const n=Ku(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:b=o,TransitionComponent:v=Oc}=e,y=fn(e,dp),x=t.useRef(null),S=du(x,l.ref,r),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{Gc(e);const r=Bc({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),L=E(m),I=E((e=>{const t=Bc({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),A=E(h);return ks.jsx(v,pn({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:A,onExiting:L,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,r)=>t.cloneElement(l,pn({style:pn({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},pp[e],g,l.props.style),ref:S},r))}))}));var hp=fp;function mp(e){return Lu("MuiBackdrop",e)}Iu("MuiBackdrop",["root","invisible"]);const gp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bp=ec("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>pn({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"}))),vp=t.forwardRef((function(e,t){var r,n,o;const i=Xu({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=hp,transitionDuration:g}=i,b=fn(i,gp),v=pn({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return ol({root:["root",r&&"invisible"]},mp,t)})(v),x=null!=(r=f.root)?r:c.root;return ks.jsx(m,pn({in:p,timeout:g},b,{children:ks.jsx(bp,pn({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:s,className:nc(y.root,l,null==x?void 0:x.className),ownerState:pn({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var yp=vp;var xp=Iu("MuiBox",["root"]);const Sp=Yu(),Ep=function(e={}){const{themeId:r,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=ra("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(bs);return t.forwardRef((function(e,t){const l=Cs(n),s=qs(e),{className:u,component:c="div"}=s,d=Ir(s,Ns);return ks.jsx(a,xr({as:c,ref:t,className:hl(u,i?i(o):o),theme:r&&l[r]||l},d))}))}({themeId:dn,defaultTheme:Sp,defaultClassName:xp.root,generateClassName:wu.generate});var Cp=Ep;function wp(e){return Lu("MuiButton",e)}var Rp=Iu("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 Lp=t.createContext({});var Ip=t.createContext(void 0);const Ap=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Mp=e=>pn({},"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}}),Dp=ec(bd,{shouldForwardProp:e=>Ju(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ru(r.color)}`],t[`size${ru(r.size)}`],t[`${r.variant}Size${ru(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 pn({},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":pn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Zs(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})`:Zs(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})`:Zs(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":pn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Rp.focusVisible}`]:pn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Rp.disabled}`]:pn({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 ${Zs(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"},[`&.${Rp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Rp.disabled}`]:{boxShadow:"none"}})),Pp=ec("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ru(r.size)}`]]}})((({ownerState:e})=>pn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Mp(e)))),_p=ec("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ru(r.size)}`]]}})((({ownerState:e})=>pn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Mp(e)))),kp=t.forwardRef((function(e,r){const n=t.useContext(Lp),o=t.useContext(Ip),i=Xu({props:Eu(n,e),name:"MuiButton"}),{children:a,color:l="primary",component:s="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:h,fullWidth:m=!1,size:g="medium",startIcon:b,type:v,variant:y="text"}=i,x=fn(i,Ap),S=pn({},i,{color:l,component:s,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:m,size:g,type:v,variant:y}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return pn({},a,ol({root:["root",i,`${i}${ru(t)}`,`size${ru(o)}`,`${i}Size${ru(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ru(o)}`],endIcon:["endIcon",`iconSize${ru(o)}`]},wp,a))})(S),C=b&&ks.jsx(Pp,{className:E.startIcon,ownerState:S,children:b}),w=f&&ks.jsx(_p,{className:E.endIcon,ownerState:S,children:f}),R=o||"";return ks.jsxs(Dp,pn({ownerState:S,className:nc(n.className,E.root,u,R),component:s,disabled:c,focusRipple:!p,focusVisibleClassName:nc(E.focusVisible,h),ref:r,type:v},x,{classes:E,children:[C,a,w]}))}));var Tp=kp;function Op(e){return Lu("MuiModal",e)}Iu("MuiModal",["root","hidden","backdrop"]);const qp=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Np=ec("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})=>pn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Fp=ec(yp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),jp=t.forwardRef((function(e,r){var n,o,i,a,l,s;const u=Xu({name:"MuiModal",props:e}),{BackdropComponent:c=Fp,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:I,open:A,slotProps:M,slots:D}=u,P=fn(u,qp),_=pn({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:k,getBackdropProps:T,getTransitionProps:O,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=qd(pn({},_,{rootRef:r})),z=pn({},_,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return ol({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Op,n)})(z),G={};if(void 0===h.props.tabIndex&&(G.tabIndex="-1"),j){const{onEnter:e,onExited:t}=O();G.onEnter=e,G.onExited=t}const B=null!=(n=null!=(o=null==D?void 0:D.root)?o:b.Root)?n:Np,W=null!=(i=null!=(a=null==D?void 0:D.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==M?void 0:M.root)?l:v.root,V=null!=(s=null==M?void 0:M.backdrop)?s:v.backdrop,Y=Zc({elementType:B,externalSlotProps:H,externalForwardedProps:P,getSlotProps:k,additionalProps:{ref:r,as:g},ownerState:z,className:nc(p,null==H?void 0:H.className,null==$?void 0:$.root,!z.open&&z.exited&&(null==$?void 0:$.hidden))}),U=Zc({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(pn({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:nc(null==V?void 0:V.className,null==d?void 0:d.className,null==$?void 0:$.backdrop),ownerState:z});return L||A||j&&!F?ks.jsx(Md,{ref:q,container:m,disablePortal:E,children:ks.jsxs(B,pn({},Y,{children:[!R&&c?ks.jsx(W,pn({},U)):null,ks.jsx(Ad,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:A,children:t.cloneElement(h,G)})]}))}):null}));var zp=jp;function $p(e){return Lu("MuiDivider",e)}var Gp=Iu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Bp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Wp=ec("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})=>pn({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)`:Zs(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})=>pn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>pn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>pn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>pn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Hp=ec("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>pn({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)`}))),Vp=t.forwardRef((function(e,t){const r=Xu({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=fn(r,Bp),h=pn({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return ol({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},$p,n)})(h);return ks.jsx(Wp,pn({as:a,className:nc(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?ks.jsx(Hp,{className:m.wrapper,ownerState:h,children:o}):null}))}));Vp.muiSkipListHighlight=!0;var Yp=Vp;const Up=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Kp=ec(Qd,{shouldForwardProp:e=>Ju(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Jd(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return pn({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}},[`&.${up.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${up.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${up.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${up.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(.${up.disabled}, .${up.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${up.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&pn({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}))})),Xp=ec(ep,{name:"MuiFilledInput",slot:"Input",overridesResolver:Zd})((({theme:e,ownerState:t})=>pn({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}))),Jp=t.forwardRef((function(e,t){var r,n,o,i;const a=Xu({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=fn(a,Up),g=pn({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return pn({},t,ol({root:["root",!r&&"underline"],input:["input"]},sp,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?tu(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:Kp,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Xp;return ks.jsx(np,pn({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Jp.muiName="Input";var Zp=Jp;const Qp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ef(e){return`scale(${e}, ${e**2})`}const tf={entering:{opacity:1,transform:ef(1)},entered:{opacity:1,transform:"none"}},rf="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),nf=t.forwardRef((function(e,r){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Oc}=e,b=fn(e,Qp),v=t.useRef(),y=t.useRef(),x=Ku(),S=t.useRef(null),E=du(S,i.ref,r),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{Gc(e);const{duration:r,delay:n,easing:o}=Bc({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:rf?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),L=C(u),I=C(f),A=C((e=>{const{duration:t,delay:r,easing:n}=Bc({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:rf?o:.666*o,delay:rf?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=ef(.75),d&&d(e)})),M=C(p);return t.useEffect((()=>()=>{clearTimeout(v.current)}),[]),ks.jsx(g,pn({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:A,onExited:M,onExiting:I,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,y.current||0)),n&&n(S.current,e)},timeout:"auto"===m?null:m},b,{children:(e,r)=>t.cloneElement(i,pn({style:pn({opacity:0,transform:ef(.75),visibility:"exited"!==e||l?void 0:"hidden"},tf[e],h,i.props.style),ref:E},r))}))}));nf.muiSupportAuto=!0;var of=nf;const af=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],lf=ec(Qd,{shouldForwardProp:e=>Ju(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Jd(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),pn({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"},[`&.${ip.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ip.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(.${ip.disabled}, .${ip.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ip.disabled}:before`]:{borderBottomStyle:"dotted"}})})),sf=ec(ep,{name:"MuiInput",slot:"Input",overridesResolver:Zd})({}),uf=t.forwardRef((function(e,t){var r,n,o,i;const a=Xu({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=fn(a,af),b=(e=>{const{classes:t,disableUnderline:r}=e;return pn({},t,ol({root:["root",!r&&"underline"],input:["input"]},op,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?tu(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:s.Root)?r:lf,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:sf;return ks.jsx(np,pn({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));uf.muiName="Input";var cf=uf;function df(e){return Lu("MuiLink",e)}var pf=Iu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const ff={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var hf=({theme:e,ownerState:t})=>{const r=(e=>ff[e]||e)(t.color),n=Ll(e,`palette.${r}`,!1)||t.color,o=Ll(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Zs(n,.4)};const mf=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],gf=ec(wd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ru(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>pn({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&pn({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:hf({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"},[`&.${pf.focusVisible}`]:{outline:"auto"}}))),bf=t.forwardRef((function(e,r){const n=Xu({props:e,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=fn(n,mf),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:b}=Su(),[v,y]=t.useState(!1),x=du(r,b),S=pn({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return ol({root:["root",`underline${ru(o)}`,"button"===r&&"button",n&&"focusVisible"]},df,t)})(S);return ks.jsx(gf,pn({color:i,className:nc(E.root,o),classes:u,component:a,onBlur:e=>{m(e),!1===h.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===h.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(ff).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))}));var vf=bf;var yf=t.createContext({});function xf(e){return Lu("MuiList",e)}Iu("MuiList",["root","padding","dense","subheader"]);const Sf=["children","className","component","dense","disablePadding","subheader"],Ef=ec("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})=>pn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Cf=t.forwardRef((function(e,r){const n=Xu({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=fn(n,Sf),d=t.useMemo((()=>({dense:l})),[l]),p=pn({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ol({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},xf,t)})(p);return ks.jsx(yf.Provider,{value:d,children:ks.jsxs(Ef,pn({as:a,className:nc(f.root,i),ref:r,ownerState:p},c,{children:[u,o]}))})}));function wf(e){return Lu("MuiListItemIcon",e)}var Rf=Iu("MuiListItemIcon",["root","alignItemsFlexStart"]);const Lf=["className"],If=ec("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})=>pn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Af=t.forwardRef((function(e,r){const n=Xu({props:e,name:"MuiListItemIcon"}),{className:o}=n,i=fn(n,Lf),a=pn({},n,{alignItems:t.useContext(yf).alignItems}),l=(e=>{const{alignItems:t,classes:r}=e;return ol({root:["root","flex-start"===t&&"alignItemsFlexStart"]},wf,r)})(a);return ks.jsx(If,pn({className:nc(l.root,o),ownerState:a,ref:r},i))}));var Mf=Iu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Df=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Pf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function _f(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function kf(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 Tf(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&kf(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Of=t.forwardRef((function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=fn(e,Df),f=t.useRef(null),h=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});iu((()=>{o&&f.current.focus()}),[o]),t.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(nu(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const m=du(f,r);let g=-1;t.Children.forEach(a,((e,r)=>{t.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=r),g===r&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===r&&(g+=1,g>=a.length&&(g=-1))}));const b=t.Children.map(a,((e,r)=>{if(r===g){const r={};return i&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(r.tabIndex=0),t.cloneElement(e,r)}return e}));return ks.jsx(Cf,pn({role:"menu",ref:m,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=nu(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Tf(t,n,u,s,Pf);else if("ArrowUp"===r)e.preventDefault(),Tf(t,n,u,s,_f);else if("Home"===r)e.preventDefault(),Tf(t,null,u,s,Pf);else if("End"===r)e.preventDefault(),Tf(t,null,u,s,_f);else if(1===r.length){const o=h.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&&kf(n,o);o.previousKeyMatched&&(l||Tf(t,n,!1,s,Pf,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function qf(e){return Lu("MuiPopover",e)}Iu("MuiPopover",["root","paper"]);const Nf=["onEntering"],Ff=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],jf=["slotProps"];function zf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function $f(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Gf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Bf(e){return"function"==typeof e?e():e}const Wf=ec(zp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hf=ec(Yc,{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 Vf=t.forwardRef((function(e,r){var n,o,i;const a=Xu({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=of,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,L=fn(a.TransitionProps,Nf),I=fn(a,Ff),A=null!=(n=null==x?void 0:x.paper)?n:v,M=t.useRef(),D=du(M,A.ref),P=pn({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return ol({root:["root"],paper:["paper"]},qf,t)})(P),k=t.useCallback((()=>{if("anchorPosition"===d)return c;const e=Bf(s),t=(e&&1===e.nodeType?e:nu(M.current).body).getBoundingClientRect();return{top:t.top+zf(t,u.vertical),left:t.left+$f(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=t.useCallback((e=>({vertical:zf(e,S.vertical),horizontal:$f(e,S.horizontal)})),[S.horizontal,S.vertical]),O=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:Gf(r)};const n=k();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=ou(Bf(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;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:Gf(r)}}),[s,d,k,T,g]),[q,N]=t.useState(b),F=t.useCallback((()=>{const e=M.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]);t.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);t.useEffect((()=>{b&&F()})),t.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),t.useEffect((()=>{if(!b)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=ou(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=h||(s?nu(Bf(s)).body:void 0),$=null!=(o=null==y?void 0:y.root)?o:Wf,G=null!=(i=null==y?void 0:y.paper)?i:Hf,B=Zc({elementType:G,externalSlotProps:pn({},A,{style:q?A.style:pn({},A.style,{opacity:0})}),additionalProps:{elevation:m,ref:D},ownerState:P,className:nc(_.paper,null==A?void 0:A.className)}),W=Zc({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:nc(_.root,f)}),{slotProps:H}=W,V=fn(W,jf);return ks.jsx($,pn({},V,!Uc($)&&{slotProps:H,disableScrollLock:R},{children:ks.jsx(E,pn({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:ks.jsx(G,pn({},B,{children:p}))}))}))}));function Yf(e){return Lu("MuiMenu",e)}Iu("MuiMenu",["root","paper","list"]);const Uf=["onEntering"],Kf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Xf={vertical:"top",horizontal:"right"},Jf={vertical:"top",horizontal:"left"},Zf=ec(Vf,{shouldForwardProp:e=>Ju(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qf=ec(Hf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eh=ec(Of,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var th=t.forwardRef((function(e,r){var n,o;const i=Xu({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=fn(i.TransitionProps,Uf),S=fn(i,Kf),E=Ku(),C="rtl"===E.direction,w=pn({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:x,variant:b}),R=(e=>{const{classes:t}=e;return ol({root:["root"],paper:["paper"],list:["list"]},Yf,t)})(w),L=a&&!u&&p,I=t.useRef(null);let A=-1;t.Children.map(l,((e,r)=>{t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===A)&&(A=r))}));const M=null!=(n=v.paper)?n:Qf,D=null!=(o=y.paper)?o:f,P=Zc({elementType:v.root,externalSlotProps:y.root,ownerState:w,className:[R.root,s]}),_=Zc({elementType:M,externalSlotProps:D,ownerState:w,className:R.paper});return ks.jsx(Zf,pn({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Xf:Jf,slots:{paper:M,root:v.root},slotProps:{root:P,paper:_},open:p,ref:r,transitionDuration:m,TransitionProps:pn({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),g&&g(e,t)}},x),ownerState:w},S,{classes:h,children:ks.jsx(eh,pn({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:I,autoFocus:a&&(-1===A||u),autoFocusItem:L,variant:b},c,{className:nc(R.list,c.className),children:l}))}))}));function rh(e){return Lu("MuiMenuItem",e)}var nh=Iu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const oh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ih=ec(bd,{shouldForwardProp:e=>Ju(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})=>pn({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zs(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Zs(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${nh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zs(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})`:Zs(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${nh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Gp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Gp.inset}`]:{marginLeft:52},[`& .${Mf.root}`]:{marginTop:0,marginBottom:0},[`& .${Mf.inset}`]:{paddingLeft:36},[`& .${Rf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&pn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Rf.root} svg`]:{fontSize:"1.25rem"}}))));var ah=t.forwardRef((function(e,r){const n=Xu({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=fn(n,oh),h=t.useContext(yf),m=t.useMemo((()=>({dense:a||h.dense||!1,disableGutters:s})),[h.dense,a,s]),g=t.useRef(null);iu((()=>{o&&g.current&&g.current.focus()}),[o]);const b=pn({},n,{dense:m.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return pn({},a,ol({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},rh,a))})(n),y=du(g,r);let x;return n.disabled||(x=void 0!==d?d:-1),ks.jsx(yf.Provider,{value:m,children:ks.jsx(ih,pn({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:nc(v.focusVisible,u),className:nc(v.root,p)},f,{ownerState:b,classes:v}))})}));function lh(e){return Lu("MuiNativeSelect",e)}var sh=Iu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const uh=["className","disabled","error","IconComponent","inputRef","variant"],ch=({ownerState:e,theme:t})=>pn({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":pn({},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"},[`&.${sh.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),dh=ec("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ju,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${sh.multiple}`]:t.multiple}]}})(ch),ph=({ownerState:e,theme:t})=>pn({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${sh.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),fh=ec("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ru(r.variant)}`],r.open&&t.iconOpen]}})(ph),hh=t.forwardRef((function(e,r){const{className:n,disabled:o,error:i,IconComponent:a,inputRef:l,variant:s="standard"}=e,u=fn(e,uh),c=pn({},e,{disabled:o,variant:s,error:i}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ol({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ru(r)}`,i&&"iconOpen",n&&"disabled"]},lh,t)})(c);return ks.jsxs(t.Fragment,{children:[ks.jsx(dh,pn({ownerState:c,className:nc(d.select,n),disabled:o,ref:l||r},u)),e.multiple?null:ks.jsx(fh,{as:a,ownerState:c,className:d.icon})]})}));var mh,gh=hh;const bh=["children","classes","className","label","notched"],vh=ec("fieldset",{shouldForwardProp:Ju})({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%"}),yh=ec("legend",{shouldForwardProp:Ju})((({ownerState:e,theme:t})=>pn({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&&pn({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 xh=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Sh=ec(Qd,{shouldForwardProp:e=>Ju(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Jd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return pn({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${lp.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${lp.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${lp.focused} .${lp.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${lp.error} .${lp.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${lp.disabled} .${lp.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&pn({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Eh=ec((function(e){const{className:t,label:r,notched:n}=e,o=fn(e,bh),i=null!=r&&""!==r,a=pn({},e,{notched:n,withLabel:i});return ks.jsx(vh,pn({"aria-hidden":!0,className:t,ownerState:a},o,{children:ks.jsx(yh,{ownerState:a,children:i?ks.jsx("span",{children:r}):mh||(mh=ks.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}})),Ch=ec(ep,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Zd})((({theme:e,ownerState:t})=>pn({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}))),wh=t.forwardRef((function(e,r){var n,o,i,a,l;const s=Xu({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:h,slots:m={},type:g="text"}=s,b=fn(s,xh),v=(e=>{const{classes:t}=e;return pn({},t,ol({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ap,t))})(s),y=Wd(),x=Gd({props:s,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=pn({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),E=null!=(n=null!=(o=m.root)?o:u.Root)?n:Sh,C=null!=(i=null!=(a=m.input)?a:u.Input)?i:Ch;return ks.jsx(np,pn({slots:{root:E,input:C},renderSuffix:e=>ks.jsx(Eh,{ownerState:S,className:v.notchedOutline,label:null!=p&&""!==p&&x.required?l||(l=ks.jsxs(t.Fragment,{children:[p," ","*"]})):p,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:r,type:g},b,{classes:pn({},v,{notchedOutline:null})}))}));wh.muiName="Input";var Rh=wh;function Lh(e){return Lu("MuiSelect",e)}var Ih,Ah=Iu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Mh=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Dh=ec("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Ah.select}`]:t.select},{[`&.${Ah.select}`]:t[r.variant]},{[`&.${Ah.error}`]:t.error},{[`&.${Ah.multiple}`]:t.multiple}]}})(ch,{[`&.${Ah.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ph=ec("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ru(r.variant)}`],r.open&&t.iconOpen]}})(ph),_h=ec("input",{shouldForwardProp:e=>Zu(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 kh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Th(e){return null==e||"string"==typeof e&&!e.trim()}const Oh=t.forwardRef((function(e,r){var n;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:g,labelId:b,MenuProps:v={},multiple:y,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:I,renderValue:A,SelectDisplayProps:M={},tabIndex:D,value:P,variant:_="standard"}=e,k=fn(e,Mh),[T,O]=uu({controlled:P,default:d,name:"Select"}),[q,N]=uu({controlled:L,default:c,name:"Select"}),F=t.useRef(null),j=t.useRef(null),[z,$]=t.useState(null),{current:G}=t.useRef(null!=L),[B,W]=t.useState(),H=du(r,g),V=t.useCallback((e=>{j.current=e,e&&$(e)}),[]),Y=null==z?void 0:z.parentNode;t.useImperativeHandle(H,(()=>({focus:()=>{j.current.focus()},node:F.current,value:T})),[T]),t.useEffect((()=>{c&&q&&z&&!G&&(W(l?null:Y.clientWidth),j.current.focus())}),[z,l]),t.useEffect((()=>{a&&j.current.focus()}),[a]),t.useEffect((()=>{if(!b)return;const e=nu(j.current).getElementById(b);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[b]);const U=(e,t)=>{e?R&&R(t):C&&C(t),G||(W(l?null:Y.clientWidth),N(e))},K=t.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(y){r=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==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)}y||U(!1,t)}},J=null!==z&&q;let Z,Q;delete k["aria-invalid"];const ee=[];let te=!1;(Yd({value:T})||f)&&(A?Z=A(T):te=!0);const re=K.map((e=>{if(!t.isValidElement(e))return null;let r;if(y){if(!Array.isArray(T))throw new Error(cn(2));r=T.some((t=>kh(t,e.props.value))),r&&te&&ee.push(e.props.children)}else r=kh(T,e.props.value),r&&te&&(Q=e.props.children);return t.cloneElement(e,{"aria-selected":r?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:r,value:void 0,"data-value":e.props.value})}));te&&(Z=y?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=B;!l&&G&&z&&(oe=Y.clientWidth),ne=void 0!==D?D:p?null:0;const ie=M.id||(x?`mui-component-select-${x}`:void 0),ae=pn({},e,{variant:_,value:T,open:J,error:h}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ol({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ru(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Lh,t)})(ae),se=pn({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),ue=su();return ks.jsxs(t.Fragment,{children:[ks.jsx(Dh,pn({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:p||I?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),U(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:x}}),S(e))},onFocus:w},M,{ownerState:ae,className:nc(M.className,le.select,u),id:ie,children:Th(Z)?Ih||(Ih=ks.jsx("span",{className:"notranslate",children:""})):Z})),ks.jsx(_h,pn({"aria-invalid":h,value:Array.isArray(T)?T.join(","):T,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:p,className:le.nativeInput,autoFocus:a,ownerState:ae},k)),ks.jsx(Ph,{as:m,className:le.icon,ownerState:ae}),ks.jsx(th,pn({id:`menu-${x||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:pn({"aria-labelledby":b,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:pn({},v.slotProps,{paper:pn({},se,{style:pn({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var qh=Oh;const Nh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Fh=["root"],jh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ju(e)&&"variant"!==e,slot:"Root"},zh=ec(cf,jh)(""),$h=ec(Rh,jh)(""),Gh=ec(Zp,jh)(""),Bh=t.forwardRef((function(e,r){const n=Xu({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=cp,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:g,multiple:b=!1,native:v=!1,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=fn(n,Nh),L=v?gh:qh,I=Gd({props:n,muiFormControl:Wd(),states:["variant","error"]}),A=I.variant||w,M=pn({},n,{variant:A,classes:a}),D=(e=>{const{classes:t}=e;return t})(M),P=fn(D,Fh),_=p||{standard:ks.jsx(zh,{ownerState:M}),outlined:ks.jsx($h,{label:h,ownerState:M}),filled:ks.jsx(Gh,{ownerState:M})}[A],k=du(r,_.ref);return ks.jsx(t.Fragment,{children:t.cloneElement(_,pn({inputComponent:L,inputProps:pn({children:i,error:I.error,IconComponent:c,variant:A,type:void 0,multiple:b},v?{id:d}:{autoWidth:o,defaultOpen:s,displayEmpty:u,labelId:m,MenuProps:g,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:pn({id:d},C)},f,{classes:f?tu(P,f.classes):P},p?p.props.inputProps:{})},b&&v&&"outlined"===A?{notched:!0}:{},{ref:k,className:nc(_.props.className,l,D.root)},!p&&{variant:A},R))})}));Bh.muiName="Select";var Wh=Bh,Hh=(e={})=>r.createElement(Kr,{...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.createElement("rect",{stroke:_r.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Vh={MuiAccordion:{styleOverrides:{root:{backgroundColor:_r.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:_r.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:r.createElement(Vr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${_r.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:_r.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${_r.MISC_FOCUS_BORDER}`,borderRadius:Nr,backgroundColor:_r.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${_r.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:_r.WHITE,color:_r.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Nr},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${_r.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:_r.GREYSCALE_0_15,backgroundColor:_r.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:_r.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${_r.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:_r.GREEN_PALE},"&:active":{backgroundColor:_r.GREEN_DARK},"&.Mui-focusVisible":{borderColor:_r.GREEN_PALE,boxShadow:`0 0 0 3px ${Zs(_r.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:_r.BLUE_PALE},"&:active":{backgroundColor:_r.BLUE_DARK},"&.Mui-focusVisible":{borderColor:_r.BLUE_PALE,boxShadow:`0 0 0 3px ${Zs(_r.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Nr,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:_r.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${_r.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:_r.GREYSCALE_0_15,backgroundColor:_r.GREYSCALE_100_60,"&:active":{backgroundColor:_r.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:_r.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${_r.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:_r.PURPLE,"&.Mui-focusVisible":{borderColor:_r.PURPLE,boxShadow:`0 0 0 3px ${Zs(_r.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:_r.GREEN,"&.Mui-focusVisible":{borderColor:_r.GREEN,boxShadow:`0 0 0 3px ${Zs(_r.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:_r.BLUE,"&.Mui-focusVisible":{borderColor:_r.BLUE,boxShadow:`0 0 0 3px ${Zs(_r.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:_r.ORANGE,"&.Mui-focusVisible":{borderColor:_r.ORANGE,boxShadow:`0 0 0 3px ${Zs(_r.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:_r.RED,"&.Mui-focusVisible":{borderColor:_r.RED,boxShadow:`0 0 0 3px ${Zs(_r.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:_r.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:_r.PURPLE_PALE},"&:active":{backgroundColor:_r.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:_r.PURPLE_PALE,boxShadow:`0 0 0 3px ${Zs(_r.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:_r.GREEN_PALE},"&:active":{backgroundColor:_r.GREEN_DARK},"&.Mui-focusVisible":{borderColor:_r.GREEN_PALE,boxShadow:`0 0 0 3px ${Zs(_r.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:_r.BLUE_PALE},"&:active":{backgroundColor:_r.BLUE_DARK},"&.Mui-focusVisible":{borderColor:_r.BLUE_PALE,boxShadow:`0 0 0 3px ${Zs(_r.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:_r.ORANGE_PALE},"&:active":{backgroundColor:_r.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:_r.ORANGE_PALE,boxShadow:`0 0 0 3px ${Zs(_r.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:_r.RED_PALE},"&:active":{backgroundColor:_r.RED_DARK},"&.Mui-focusVisible":{borderColor:_r.RED_PALE,boxShadow:`0 0 0 3px ${Zs(_r.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:_r.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:_r.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Nr,boxShadow:`inset 0 0 0 2px ${_r.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:r.createElement(Ur,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:kr,borderRadius:Nr,color:_r.TEXT_PRIMARY,backgroundColor:_r.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:_r.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${_r.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:_r.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:_r.GREYSCALE_0_05,color:_r.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:_r.GREEN,borderColor:_r.GREEN},"&.MuiChip-outlinedInfo":{color:_r.BLUE,borderColor:_r.BLUE},"&.MuiChip-outlinedWarning":{color:_r.ORANGE,borderColor:_r.ORANGE},"&.MuiChip-outlinedError":{color:_r.RED,borderColor:_r.RED}},outlined:{border:`solid 1px ${_r.GREYSCALE_0_15}`,backgroundColor:_r.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Nr,boxShadow:"none",backgroundColor:_r.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:_r.GREEN,borderColor:_r.GREEN},outlinedSecondary:{color:_r.BLUE,borderColor:_r.BLUE},label:{fontFamily:Gr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:r.createElement(Ur,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:r.createElement(Vr,{"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:Nr},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Nr,fontSize:Tr,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:_r.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${_r.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:_r.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:_r.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:_r.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Nr,border:`solid 1px ${_r.GREYSCALE_0_15}`,color:_r.GREYSCALE_0_60,marginRight:0,width:qr,height:qr},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${_r.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Nr,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:_r.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Tr}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:kr,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:_r.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:_r.GREYSCALE_25,fontSize:kr,fontFamily:Gr.FONT_FAMILY,fontWeight:zr,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:_r.TEXT_PRIMARY},"&.Mui-error":{color:_r.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:_r.TEXT_SECONDARY,content:"'(optional)'",fontWeight:jr,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:_r.TEXT_SECONDARY,content:"'(required)'",fontWeight:jr,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Tr,lineHeight:"16px",backgroundColor:_r.WHITE,borderRadius:Nr,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_r.GREYSCALE_0_05}`,borderColor:_r.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_r.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${_r.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${_r.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_r.RED}`,boxShadow:`0px 0px 0px 1px ${_r.RED}, inset 0 2px 0 0 ${_r.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_r.GREYSCALE_0_10}`,borderColor:_r.GREYSCALE_0_10,backgroundColor:_r.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:_r.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:_r.GREYSCALE_0_15,borderRadius:Nr,boxShadow:`inset 0 2px 0 0 ${_r.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>r.createElement(Vr,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:_r.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:_r.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:_r.GREYSCALE_0_03},"&:active":{backgroundColor:_r.GREYSCALE_0_10},"&:focus":{backgroundColor:_r.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${_r.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${_r.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:_r.GREYSCALE_0_30,"&:hover":{backgroundColor:_r.GREYSCALE_0_0,borderColor:_r.GREYSCALE_0_15},"& ~svg":{color:_r.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${_r.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Nr}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:_r.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${_r.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:_r.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Tr,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:kr,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:kr,fontWeight:zr,color:_r.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:zr}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${_r.GREYSCALE_0_15}, 0px 0px 0px 1px ${_r.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:r.createElement(Zr,null),checkedIcon:r.createElement(Qr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:_r.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${_r.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:_r.GREEN_PALE,boxShadow:`0 0 0 3px ${Zs(_r.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:_r.BLUE_PALE,boxShadow:`0 0 0 3px ${Zs(_r.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:_r.GREYSCALE_0_20}},"&.Mui-disabled":{fill:_r.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:r.createElement(Hh,null),checkedIcon:r.createElement(Xr,null),indeterminateIcon:r.createElement(Jr,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Nr,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:_r.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:_r.GREYSCALE_0_55,color:_r.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:_r.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:_r.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:_r.GREYSCALE_0_55,"&:hover":{color:_r.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:_r.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:_r.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Tr,color:_r.TEXT_PRIMARY,lineHeight:"16px",fontWeight:zr},secondary:{fontSize:kr,color:_r.GREYSCALE_45,fontWeight:jr,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Tr,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Tr,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:_r.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:kr,borderBottom:`solid 1px ${_r.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Tr,color:_r.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:_r.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:_r.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:_r.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('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:_r.RED}}},"&.Mui-focusVisible":{backgroundColor:_r.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:_r.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:_r.GREEN,height:"24px","&.Mui-disabled":{color:_r.GREYSCALE_0_15}},rail:{backgroundColor:_r.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${_r.GREYSCALE_0_05}`,borderRadius:Nr,boxShadow:`inset 0px 0px 0px 1px ${_r.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${_r.GREYSCALE_0_05}`,borderRadius:Nr},thumb:{height:"16px",width:"16px",borderRadius:Nr,backgroundColor:_r.WHITE,boxShadow:`0px 1px 2px 0px ${_r.GREYSCALE_0_15}, 0px 0px 0px 1px ${_r.GREYSCALE_0_05}`,"&:hover":{borderRadius:Nr,boxShadow:`0 2px 4px 0 ${_r.GREYSCALE_0_30}, 0 0 0 1px ${_r.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${_r.GREYSCALE_0_15}, 0 0 0 1px ${_r.GREYSCALE_0_06}, 0 0 0 2px ${_r.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${_r.GREYSCALE_0_15}, 0 0 0 1px ${_r.GREYSCALE_0_06}, 0 0 0 2px ${_r.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:_r.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:_r.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:_r.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:_r.GREYSCALE_0_15},markLabel:{color:_r.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:_r.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:_r.WHITE,color:_r.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:_r.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:_r.GREEN_PALE,boxShadow:`0 0 0 3px ${Zs(_r.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:_r.BLUE_PALE,boxShadow:`0 0 0 3px ${Zs(_r.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:_r.GREYSCALE_0_15,borderRadius:Nr},thumb:{height:"16px",width:"16px",borderRadius:Nr,backgroundColor:_r.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Tr,fontWeight:zr,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${_r.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${_r.MISC_FOCUS_BORDER}`,backgroundColor:_r.GREYSCALE_0_03,borderRadius:Nr},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:_r.GREYSCALE_25,"&.Mui-selected":{color:_r.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Tr,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Nr,"&:hover":{backgroundColor:`${_r.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${_r.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${_r.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Nr,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:_r.GREYSCALE_0_05},"&:hover":{backgroundColor:`${_r.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${_r.GREYSCALE_85}`,borderRight:`1px solid ${_r.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:zr,backgroundColor:_r.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:_r.GREYSCALE_98,borderBottom:`1px solid ${_r.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${_r.GREYSCALE_85}`,borderTop:`1px solid ${_r.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:_r.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:_r.GREYSCALE_0_05,"&:hover":{backgroundColor:_r.GREYSCALE_0_03}},"&&:hover":{backgroundColor:_r.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>r.createElement(en,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${_r.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Tr,borderRadius:Nr,padding:"7px 16px",border:`1px solid ${_r.GREYSCALE_0_15}`,backgroundColor:_r.GREYSCALE_100_60,color:_r.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:_r.GREYSCALE_0_10,border:`1px solid ${_r.GREYSCALE_0_30}`},"&:hover":{backgroundColor:_r.GREYSCALE_0_03,border:`1px solid ${_r.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:_r.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${_r.MISC_FOCUS_BORDER}`,border:`1px solid ${_r.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:_r.GREYSCALE_25,backgroundColor:_r.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:_r.GREYSCALE_0_10,border:`1px solid ${_r.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:kr,height:24,width:24,padding:7},sizeLarge:{fontSize:Or,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Tr,borderRadius:Nr}}},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:_r.GREYSCALE_20},tooltip:{backgroundColor:_r.GREYSCALE_20,fontSize:kr,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Yh={mode:"light",primary:{ultraLight:_r.GREEN_ULTRA_LIGHT,light:_r.GREEN_PALE,main:_r.GREEN,dark:_r.GREEN_DARK,extraDark:_r.GREEN_EXTRA_DARK,contrastText:_r.WHITE},secondary:{ultraLight:_r.BLUE_ULTRA_LIGHT,light:_r.BLUE_PALE,main:_r.BLUE,dark:_r.BLUE_DARK,extraDark:_r.BLUE_EXTRA_DARK,contrastText:_r.WHITE},error:{ultraLight:_r.RED_ULTRA_LIGHT,light:_r.RED_PALE,main:_r.RED,dark:_r.RED_DARK,extraDark:_r.RED_EXTRA_DARK,contrastText:_r.WHITE},warning:{ultraLight:_r.ORANGE_ULTRA_LIGHT,light:_r.ORANGE_PALE,main:_r.ORANGE,dark:_r.ORANGE_DARK,extraDark:_r.ORANGE_EXTRA_DARK,contrastText:_r.WHITE},success:{ultraLight:_r.GREEN_ULTRA_LIGHT,light:_r.GREEN_PALE,main:_r.GREEN,dark:_r.GREEN_DARK,extraDark:_r.GREEN_EXTRA_DARK,contrastText:_r.WHITE},info:{ultraLight:_r.BLUE_ULTRA_LIGHT,light:_r.BLUE_PALE,main:_r.BLUE,dark:_r.BLUE_DARK,extraDark:_r.BLUE_EXTRA_DARK,contrastText:_r.WHITE},text:{primary:_r.TEXT_PRIMARY,secondary:_r.TEXT_SECONDARY,disabled:_r.GREYSCALE_0_30},action:{hover:_r.GREYSCALE_0_03,hoverOpacity:.03,selected:_r.GREYSCALE_0_05,selectedOpacity:.05,focus:_r.MISC_FOCUS_BORDER},amethyst:{ultraLight:_r.WHITE,main:_r.PURPLE,light:_r.PURPLE_PALE,dark:_r.PURPLE_DARK,extraDark:_r.GREYSCALE_0_0,contrastText:_r.WHITE},background:{paper:_r.WHITE,default:_r.GREYSCALE_95},divider:_r.GREYSCALE_0_15},Uh=e=>({components:Vh,palette:Yh,breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Tr,fontWeightLight:Fr,fontWeightRegular:jr,fontWeightMedium:zr,fontWeightBold:$r,htmlFontSize:Tr,fontFamily:Gr.FONT_FAMILY,button:{fontWeight:zr,fontSize:Tr,textTransform:"none"},body1:{fontSize:Or,lineHeight:"24px"},body2:{fontSize:Tr,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:qr,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Or,fontWeight:zr,lineHeight:"16px"},h6:{fontSize:Tr,fontWeight:zr,lineHeight:"16px"},caption:{color:_r.TEXT_SECONDARY},subtitle1:{fontSize:Tr,color:_r.TEXT_SECONDARY},subtitle2:{fontSize:kr,color:_r.TEXT_SECONDARY}},shape:{borderRadius:Nr}}),Kh={...Pr,MISC_FOCUS_BORDER:_r.MISC_FOCUS_BORDER},Xh=Uh().palette,Jh={TEXT:Xh.text.primary,DISABLED:Xh.text.disabled,HOVER:Xh.action.hover,WHITE:Kh.GREYSCALE_100,BORDER_LIGHT:Kh.GREYSCALE_90,BORDER_MEDIUM:Kh.GREYSCALE_85,BORDER_HEAVY:Kh.GREYSCALE_50,DARK_MODE_TEXT:Kh.GREYSCALE_95,DARK_MODE_BORDER:Kh.GREYSCALE_95,DARK_MODE_DISABLED:Kh.GREYSCALE_70,DARK_MODE_BACKGROUND:Kh.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Kh.GREYSCALE_95,SELECTED:Xh.primary.main};function Zh(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function Qh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&Zh(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function em(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(r),!0).forEach((function(t){em(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var nm={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},om="qcm-color";function im(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:om,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},h=0,m=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===om){var v=r[0];h=v.r,m=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=rm({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))h=parseInt(y[1],10),m=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))h=parseInt(y[1],10),m=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,h=parseInt(y[2],10),m=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))h=parseInt(y[1],16),m=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))h=parseInt(y[1]+y[1],16),m=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,h=S[0]+p,m=S[1]+p,g=S[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,h=E[0]+p,m=E[1]+p,g=E[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,h=C[0]+p,m=C[1]+p,g=C[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g),b=1}else if(nm[x.toLowerCase()]){a=x.toLowerCase();var w=nm[a];h=w.r,m=w.g,g=w.b,b="number"==typeof nm[a].a?nm[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,h=(16711680&r[0])>>16,m=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(h=(16711680&r[0])>>16,m=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(h=r[0],m=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+h+m+g+b)&&(f.invalid=!0),f.r=Math.floor(h),f.g=Math.floor(m),f.b=Math.floor(g),f.a=b,f.l=l,f}function am(e){var t,r,n;if(Zh(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?Qh(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}function lm(e){var t,r,n=0,o="string"==typeof e?im(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function sm(e){if(Zh(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?Qh(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function um(e,t){return Zh(e)?"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(", "),")"):um(im(e),t)}function cm(e){return Zh(e)?1===e.a?sm(e):um(e):cm(im(e))}var dm=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function pm(e){return.2126*dm(e.r)+.7152*dm(e.g)+.0722*dm(e.b)}var fm=1/.7;function hm(){var e=im.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?im(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]);return l+=e,l=Math.max(0,Math.min(l,100)),"hsla(".concat(o,", ").concat(i,", ").concat(l,", ").concat(a,")")},o=function(e){return hm(Math.min(t.r*e,255),Math.min(t.g*e,255),Math.min(t.b*e,255),t.a)};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:im(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=im.apply(void 0,arguments);return e.invalid||pm(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=sm(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=um(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=cm(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=am(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?im(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=lm(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=lm(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getShiftedColor:function(e){var r=void 0===e||Number.isNaN(+e)?1:e,o=.299*t.r+.587*t.g+.114*t.b,i=t.g<126?1:1+t.g/512;return hm(n(20*(o*i<220?.8+1/(o+1)*4:-(.8+o/255*1))*r))},getBrightenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return o(Math.pow(fm,e))},getDarkenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return o(Math.pow(.7,e))}}}function mm(e,t){if(e&&t){var r=pm(e),n=pm(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var gm,bm,vm=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],ym=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function xm(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ym:vm}var Sm=function(){if(bm)return gm;bm=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return gm=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(h&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},gm}();function Em(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Cm(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function wm(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Sm);var Rm=1/.7,Lm="\\s*([+-]?\\d+)\\s*",Im="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Am="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mm=/^#([0-9a-f]{3,8})$/,Dm=new RegExp(`^rgb\\(${Lm},${Lm},${Lm}\\)$`),Pm=new RegExp(`^rgb\\(${Am},${Am},${Am}\\)$`),_m=new RegExp(`^rgba\\(${Lm},${Lm},${Lm},${Im}\\)$`),km=new RegExp(`^rgba\\(${Am},${Am},${Am},${Im}\\)$`),Tm=new RegExp(`^hsl\\(${Im},${Am},${Am}\\)$`),Om=new RegExp(`^hsla\\(${Im},${Am},${Am},${Im}\\)$`),qm={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 Nm(){return this.rgb().formatHex()}function Fm(){return this.rgb().formatRgb()}function jm(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Mm.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?zm(t):3===r?new Wm(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?$m(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?$m(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=Dm.exec(e))?new Wm(t[1],t[2],t[3],1):(t=Pm.exec(e))?new Wm(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_m.exec(e))?$m(t[1],t[2],t[3],t[4]):(t=km.exec(e))?$m(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Tm.exec(e))?Xm(t[1],t[2]/100,t[3]/100,1):(t=Om.exec(e))?Xm(t[1],t[2]/100,t[3]/100,t[4]):qm.hasOwnProperty(e)?zm(qm[e]):"transparent"===e?new Wm(NaN,NaN,NaN,0):null}function zm(e){return new Wm(e>>16&255,e>>8&255,255&e,1)}function $m(e,t,r,n){return n<=0&&(e=t=r=NaN),new Wm(e,t,r,n)}function Gm(e){return e instanceof wm||(e=jm(e)),e?new Wm((e=e.rgb()).r,e.g,e.b,e.opacity):new Wm}function Bm(e,t,r,n){return 1===arguments.length?Gm(e):new Wm(e,t,r,null==n?1:n)}function Wm(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Hm(){return`#${Km(this.r)}${Km(this.g)}${Km(this.b)}`}function Vm(){const e=Ym(this.opacity);return`${1===e?"rgb(":"rgba("}${Um(this.r)}, ${Um(this.g)}, ${Um(this.b)}${1===e?")":`, ${e})`}`}function Ym(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Um(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Km(e){return((e=Um(e))<16?"0":"")+e.toString(16)}function Xm(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Zm(e,t,r,n)}function Jm(e){if(e instanceof Zm)return new Zm(e.h,e.s,e.l,e.opacity);if(e instanceof wm||(e=jm(e)),!e)return new Zm;if(e instanceof Zm)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Zm(a,l,s,e.opacity)}function Zm(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Qm(e){return(e=(e||0)%360)<0?e+360:e}function eg(e){return Math.max(0,Math.min(1,e||0))}function tg(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Em(wm,jm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Nm,formatHex:Nm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Jm(this).formatHsl()},formatRgb:Fm,toString:Fm}),Em(Wm,Bm,Cm(wm,{brighter(e){return e=null==e?Rm:Math.pow(Rm,e),new Wm(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Wm(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Wm(Um(this.r),Um(this.g),Um(this.b),Ym(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:Hm,formatHex:Hm,formatHex8:function(){return`#${Km(this.r)}${Km(this.g)}${Km(this.b)}${Km(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Vm,toString:Vm})),Em(Zm,(function(e,t,r,n){return 1===arguments.length?Jm(e):new Zm(e,t,r,null==n?1:n)}),Cm(wm,{brighter(e){return e=null==e?Rm:Math.pow(Rm,e),new Zm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Zm(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 Wm(tg(e>=240?e-240:e+120,o,n),tg(e,o,n),tg(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Zm(Qm(this.h),eg(this.s),eg(this.l),Ym(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=Ym(this.opacity);return`${1===e?"hsl(":"hsla("}${Qm(this.h)}, ${100*eg(this.s)}%, ${100*eg(this.l)}%${1===e?")":`, ${e})`}`}}));const rg=Math.PI/180,ng=180/Math.PI,og=4/29,ig=6/29,ag=3*ig*ig;function lg(e){if(e instanceof sg)return new sg(e.l,e.a,e.b,e.opacity);if(e instanceof fg)return hg(e);e instanceof Wm||(e=Gm(e));var t,r,n=pg(e.r),o=pg(e.g),i=pg(e.b),a=ug((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=ug((.4360747*n+.3850649*o+.1430804*i)/.96422),r=ug((.0139322*n+.0971045*o+.7141733*i)/.82521)),new sg(116*a-16,500*(t-a),200*(a-r),e.opacity)}function sg(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function ug(e){return e>.008856451679035631?Math.pow(e,1/3):e/ag+og}function cg(e){return e>ig?e*e*e:ag*(e-og)}function dg(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function pg(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function fg(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function hg(e){if(isNaN(e.h))return new sg(e.l,0,0,e.opacity);var t=e.h*rg;return new sg(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Em(sg,(function(e,t,r,n){return 1===arguments.length?lg(e):new sg(e,t,r,null==n?1:n)}),Cm(wm,{brighter(e){return new sg(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new sg(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 Wm(dg(3.1338561*(t=.96422*cg(t))-1.6168667*(e=1*cg(e))-.4906146*(r=.82521*cg(r))),dg(-.9787684*t+1.9161415*e+.033454*r),dg(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Em(fg,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof fg)return new fg(e.h,e.c,e.l,e.opacity);if(e instanceof sg||(e=lg(e)),0===e.a&&0===e.b)return new fg(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ng;return new fg(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new fg(e,t,r,null==n?1:n)}),Cm(wm,{brighter(e){return new fg(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new fg(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return hg(this).rgb()}}));var mg=e=>()=>e;function gg(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):mg(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?gg: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):mg(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Bm(e)).r,(t=Bm(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=gg(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 bg,vg="center",yg="bottom";function xg(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 Sg(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 Eg(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wg)):void 0===t&&(t=Cg);for(var r,n,o,i,a,l=new Ig(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Ig(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Lg)}function Cg(e){return e.children}function wg(e){return Array.isArray(e)?e[1]:null}function Rg(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Lg(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ig(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:vg,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:vg,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:vg,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:vg},{key:"DataRangeIncludingZero",alignment:yg},{key:"LimitedData",alignment:yg},{key:"NegativeOrZeroValues",alignment:yg}].reduce((function(e,t){return e[t.key]=t,e}),{}),Ig.prototype=Eg.prototype={constructor:Ig,count:function(){return this.eachAfter(Sg)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Eg(this).eachBefore(Rg)},[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)}},bg=function(e){
|
|
100
|
+
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
101
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},bg({exports:{}});const Ag=(e,t=Jh.TEXT,r=Jh.WHITE)=>{const n=hm(e),o=hm(t),i=hm(r);return n.isInvalid()?t:function(e,t,r){return mm(e,t)>mm(e,r)?t:r}(n,i,o).getRGB()};function Mg(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Dg(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Pg(){}var _g=.7,kg=1/_g,Tg="\\s*([+-]?\\d+)\\s*",Og="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ng=/^#([0-9a-f]{3,8})$/,Fg=new RegExp(`^rgb\\(${Tg},${Tg},${Tg}\\)$`),jg=new RegExp(`^rgb\\(${qg},${qg},${qg}\\)$`),zg=new RegExp(`^rgba\\(${Tg},${Tg},${Tg},${Og}\\)$`),$g=new RegExp(`^rgba\\(${qg},${qg},${qg},${Og}\\)$`),Gg=new RegExp(`^hsl\\(${Og},${qg},${qg}\\)$`),Bg=new RegExp(`^hsla\\(${Og},${qg},${qg},${Og}\\)$`),Wg={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 Hg(){return this.rgb().formatHex()}function Vg(){return this.rgb().formatRgb()}function Yg(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ng.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ug(t):3===r?new Jg(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Kg(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Kg(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=Fg.exec(e))?new Jg(t[1],t[2],t[3],1):(t=jg.exec(e))?new Jg(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=zg.exec(e))?Kg(t[1],t[2],t[3],t[4]):(t=$g.exec(e))?Kg(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Gg.exec(e))?nb(t[1],t[2]/100,t[3]/100,1):(t=Bg.exec(e))?nb(t[1],t[2]/100,t[3]/100,t[4]):Wg.hasOwnProperty(e)?Ug(Wg[e]):"transparent"===e?new Jg(NaN,NaN,NaN,0):null}function Ug(e){return new Jg(e>>16&255,e>>8&255,255&e,1)}function Kg(e,t,r,n){return n<=0&&(e=t=r=NaN),new Jg(e,t,r,n)}function Xg(e){return e instanceof Pg||(e=Yg(e)),e?new Jg((e=e.rgb()).r,e.g,e.b,e.opacity):new Jg}function Jg(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Zg(){return`#${rb(this.r)}${rb(this.g)}${rb(this.b)}`}function Qg(){const e=eb(this.opacity);return`${1===e?"rgb(":"rgba("}${tb(this.r)}, ${tb(this.g)}, ${tb(this.b)}${1===e?")":`, ${e})`}`}function eb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tb(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rb(e){return((e=tb(e))<16?"0":"")+e.toString(16)}function nb(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ib(e,t,r,n)}function ob(e){if(e instanceof ib)return new ib(e.h,e.s,e.l,e.opacity);if(e instanceof Pg||(e=Yg(e)),!e)return new ib;if(e instanceof ib)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new ib(a,l,s,e.opacity)}function ib(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ab(e){return(e=(e||0)%360)<0?e+360:e}function lb(e){return Math.max(0,Math.min(1,e||0))}function sb(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Mg(Pg,Yg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hg,formatHex:Hg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ob(this).formatHsl()},formatRgb:Vg,toString:Vg}),Mg(Jg,(function(e,t,r,n){return 1===arguments.length?Xg(e):new Jg(e,t,r,null==n?1:n)}),Dg(Pg,{brighter(e){return e=null==e?kg:Math.pow(kg,e),new Jg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?_g:Math.pow(_g,e),new Jg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jg(tb(this.r),tb(this.g),tb(this.b),eb(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:Zg,formatHex:Zg,formatHex8:function(){return`#${rb(this.r)}${rb(this.g)}${rb(this.b)}${rb(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Qg,toString:Qg})),Mg(ib,(function(e,t,r,n){return 1===arguments.length?ob(e):new ib(e,t,r,null==n?1:n)}),Dg(Pg,{brighter(e){return e=null==e?kg:Math.pow(kg,e),new ib(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?_g:Math.pow(_g,e),new ib(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 Jg(sb(e>=240?e-240:e+120,o,n),sb(e,o,n),sb(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ib(ab(this.h),lb(this.s),lb(this.l),eb(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=eb(this.opacity);return`${1===e?"hsl(":"hsla("}${ab(this.h)}, ${100*lb(this.s)}%, ${100*lb(this.l)}%${1===e?")":`, ${e})`}`}}));const ub=Math.PI/180,cb=180/Math.PI,db=.96422,pb=.82521,fb=4/29,hb=6/29,mb=3*hb*hb,gb=hb*hb*hb;function bb(e){if(e instanceof vb)return new vb(e.l,e.a,e.b,e.opacity);if(e instanceof wb)return Rb(e);e instanceof Jg||(e=Xg(e));var t,r,n=Eb(e.r),o=Eb(e.g),i=Eb(e.b),a=yb((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=yb((.4360747*n+.3850649*o+.1430804*i)/db),r=yb((.0139322*n+.0971045*o+.7141733*i)/pb)),new vb(116*a-16,500*(t-a),200*(a-r),e.opacity)}function vb(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function yb(e){return e>gb?Math.pow(e,1/3):e/mb+fb}function xb(e){return e>hb?e*e*e:mb*(e-fb)}function Sb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Eb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Cb(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof wb)return new wb(e.h,e.c,e.l,e.opacity);if(e instanceof vb||(e=bb(e)),0===e.a&&0===e.b)return new wb(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*cb;return new wb(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new wb(e,t,r,null==n?1:n)}function wb(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Rb(e){if(isNaN(e.h))return new vb(e.l,0,0,e.opacity);var t=e.h*ub;return new vb(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Mg(vb,(function(e,t,r,n){return 1===arguments.length?bb(e):new vb(e,t,r,null==n?1:n)}),Dg(Pg,{brighter(e){return new vb(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new vb(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 Jg(Sb(3.1338561*(t=db*xb(t))-1.6168667*(e=1*xb(e))-.4906146*(r=pb*xb(r))),Sb(-.9787684*t+1.9161415*e+.033454*r),Sb(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Mg(wb,Cb,Dg(Pg,{brighter(e){return new wb(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new wb(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Rb(this).rgb()}}));const Lb=(e,t)=>{const r=Cb(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()},Ib={background:Jh.SELECTED,color:Jh.WHITE},Ab=({theme:e,flags:t})=>{if(!t.isEnabled("PS_22149_THEME_SELECTION_COLORS"))return Ib;const r=e.getStyle("","","dataColors.selected")||Ib.background,n=function(e,t){var r=hm("#FFFFFF"),n=hm(e),o=hm(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=mm(r,n),a=mm(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(r,Jh.TEXT);return{background:r,color:n}},Mb=e=>!!e&&0===hm(e).a,Db=e=>{const t=hm(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Pb=e=>{e.stopPropagation(),e.preventDefault()},_b=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=r(l,a);return{color:"transparent"===s?"none":s}}}),kb=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},Tb=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>kb(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...xm(n).filter((e=>!s.includes(e))).map((e=>kb(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Ob=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],qb=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>kb(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Ob.filter((e=>!a.includes(e))).map((e=>kb(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),Nb=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Tb({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:qb({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:_b(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:_b(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?Jh.WHITE:Jh.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),Fb=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:_b(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:_b(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),jb=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),zb="12px",$b="Source Sans Pro, sans-serif",Gb="600",Bb=15e3,Wb=4/3;var Hb,Vb;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Hb||(Hb={})),function(e){e.Solid="solid",e.None="none"}(Vb||(Vb={}));const Yb={display:"flex",justifyContent:"center",alignItems:"center"},Ub={borderStyle:"solid"},Kb={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},Xb={lineHeight:Wb,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},Jb=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),Zb=(e,t)=>e>0?`${e}px ${Vb.Solid} ${t}`:Vb.None,Qb=(e,t,r,n)=>{const o=Number(!t||(null==n?void 0:n.right)),i=Number(!e||(null==n?void 0:n.bottom));return{borderRight:Zb(o,r),borderBottom:Zb(i,r),borderLeft:Vb.None,borderTop:Vb.None}},ev=(e,t,r,n,o,i)=>{const a=Qb(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=Zb(2,o)),r||(a.borderLeft=Zb(1,o))),a},tv=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=Zb(1,r)),t&&(n.borderRight=Zb(1,r)),n},rv=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:jb("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?jb("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:_b("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Hb.DividerLight})),divider:_b("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Hb.DividerDark})),background:_b("grid.background","properties.background",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.backgroundColor)&&void 0!==t?t:Hb.Transparent}))}}}}),nv=(e,t,r)=>{var n,o,i,a,l,s;switch(t){case"header":return null==e||null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[r];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[r];default:return}},ov=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:Nb({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:nv}),dimensionValueSection:Nb({section:"dimensionValues",translator:e,flags:t,getThemeValue:nv}),measureValueSection:Nb({section:"measureValues",translator:e,flags:t,getThemeValue:nv}),measureLabelSection:Fb({section:"measureLabels",getThemeValue:nv}),totalValuesSection:Fb({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:nv}),nullValuesSection:Fb({section:"nullValues",fallbackBackground:Hb.NullValueBackground,getThemeValue:nv}),gridSection:rv(t)}}]}),iv=e=>({type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},...e.isEnabled("CLIENT_IM_5975_INDENT_MODE")&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:or.Auto,translation:"Common.Auto"},{value:or.Pixels,translation:"Object.Table.Column.Pixels"},{value:or.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:or.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:nr.PixelsDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===or.Pixels},change:e=>{var t;const r=e.qHyperCubeDef;void 0!==(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(r.indentModeColumnWidth.pixels=Math.max(nr.PixelsMin,Math.min(nr.PixelsMax,r.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:nr.PercentageDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===or.Percentage},change:e=>{var t;const r=e.qHyperCubeDef;void 0!==(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(r.indentModeColumnWidth.percentage=Math.max(nr.PercentageMin,Math.min(nr.PercentageMaxInIndentMode,r.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){var r;const{qIndentMode:n}=t.qHyperCubeDef;return(!n||n&&!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&(null===(r=t.qHyperCubeDef)||void 0===r||null===(r=r.qDimensions)||void 0===r?void 0:r.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)})))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}),av=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[ov(e,t),iv(t)]}}}),lv="auto",sv={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:lv,translation:"Object.Table.SortingInSearch",options:[{value:lv,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function uv(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:yr(e),sorting:sv,addons:Ft,settings:av(t,r)}}}function cv(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:uv(e),importProperties:qt(e),exportProperties:Nt}}const dv="#grid",pv=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},fv=(e,t,r,n,o)=>{const i=pv(".qv-object .qv-inner-object",r),a=pv(".qv-panel-sheet",r),l=pv(dv,r),s=null!=l?l:a,u=(e=>{var t,r,n,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(r=l.bgColor)||void 0===r?void 0:r.colorExpression,u=null==l||null===(n=l.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return Db(s);if("none"===u)return"transparent";if(void 0===u)return;const c=hm(u);return c.setAlpha(null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=Mb(p),h=Ag(f?s:p,Jh.TEXT,Jh.DARK_MODE_TEXT)===sm(Jh.DARK_MODE_TEXT);const m=((e,t,r,n=Jh.WHITE)=>e&&!Mb(e)?e:Mb(t)?r&&!Mb(r)?r:n:t)(u,p,s);return{color:p,headerColor:m,isDark:h}},hv=(e,t,r,n)=>{const o=S(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=y([]);return x((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{var e;null===(e=r)||void 0===e||e.disconnect()}}),[e,t]),r})(null==t?void 0:t.closest(dv),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return E((()=>({...o,background:fv(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function mv(e,t){const r=E((()=>({isLoading:!0})),t),[n,o]=C((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const gv=3;function bv(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function vv({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=gv}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:u}=s((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=xg(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=xg((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=bv(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:u}}var yv,xv=F;yv=xv.createRoot,xv.hydrateRoot;function Sv(e,t){const[r,n]=u(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Ev={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_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 Cv=({translator:e})=>(s((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Ev).forEach((t=>{e.add(Ev[t])}))}}(e)),[e]),e),wv=document.createElement("textarea");function Rv(e){wv.value=e,document.body.appendChild(wv),wv.select(),wv.setSelectionRange(0,wv.value.length),document.execCommand("copy"),document.body.removeChild(wv)}wv.style.position="absolute",wv.style.left="-9999px",wv.setAttribute("readonly","");function Lv(){null==w||w(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${er}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>Rv(r))):Rv(r))})(n)}})}))}var Iv="$$material";const Av=["values","unit","step"];function Mv(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ir(e,Av),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>xr({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return xr({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var Dv={borderRadius:4};function Pv(e,t){return t?la(e,t,{clone:!1}):e}const _v={xs:0,sm:600,md:900,lg:1200,xl:1536},kv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${_v[e]}px)`};function Tv(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||kv;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||kv;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||_v).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Ov(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 qv(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Ov(e,r)||n,t&&(o=t(o,n,e)),o}function Nv(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=Ov(e.theme,n)||{};return Tv(e,i,(e=>{let n=qv(a,o,e);return e===n&&"string"==typeof e&&(n=qv(a,o,`${t}${"default"===e?"":ka(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Fv={m:"margin",p:"padding"},jv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$v=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!zv[e])return[e];e=zv[e]}const[t,r]=e.split(""),n=Fv[t],o=jv[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Gv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Bv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Wv(e,t,r,n){var o;const i=null!=(o=Ov(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 Hv(e){return Wv(e,"spacing",8)}function Vv(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 Yv(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Vv(t,r),e)),{})}($v(r),n);return Tv(e,e[r],o)}function Uv(e,t){const r=Hv(e.theme);return Object.keys(e).map((n=>Yv(e,t,n,r))).reduce(Pv,{})}function Kv(e){return Uv(e,Gv)}function Xv(e){return Uv(e,Bv)}function Jv(...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]?Pv(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Zv(e){return"number"!=typeof e?e:`${e}px solid`}function Qv(e,t){return Nv({prop:e,themeKey:"borders",transform:t})}Kv.propTypes={},Kv.filterProps=Gv,Xv.propTypes={},Xv.filterProps=Bv;const ey=Qv("border",Zv),ty=Qv("borderTop",Zv),ry=Qv("borderRight",Zv),ny=Qv("borderBottom",Zv),oy=Qv("borderLeft",Zv),iy=Qv("borderColor"),ay=Qv("borderTopColor"),ly=Qv("borderRightColor"),sy=Qv("borderBottomColor"),uy=Qv("borderLeftColor"),cy=Qv("outline",Zv),dy=Qv("outlineColor"),py=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Wv(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Vv(t,e)});return Tv(e,e.borderRadius,r)}return null};py.propTypes={},py.filterProps=["borderRadius"],Jv(ey,ty,ry,ny,oy,iy,ay,ly,sy,uy,py,cy,dy);const fy=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Wv(e.theme,"spacing",8),r=e=>({gap:Vv(t,e)});return Tv(e,e.gap,r)}return null};fy.propTypes={},fy.filterProps=["gap"];const hy=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Wv(e.theme,"spacing",8),r=e=>({columnGap:Vv(t,e)});return Tv(e,e.columnGap,r)}return null};hy.propTypes={},hy.filterProps=["columnGap"];const my=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Wv(e.theme,"spacing",8),r=e=>({rowGap:Vv(t,e)});return Tv(e,e.rowGap,r)}return null};my.propTypes={},my.filterProps=["rowGap"];function gy(e,t){return"grey"===t?t:e}Jv(fy,hy,my,Nv({prop:"gridColumn"}),Nv({prop:"gridRow"}),Nv({prop:"gridAutoFlow"}),Nv({prop:"gridAutoColumns"}),Nv({prop:"gridAutoRows"}),Nv({prop:"gridTemplateColumns"}),Nv({prop:"gridTemplateRows"}),Nv({prop:"gridTemplateAreas"}),Nv({prop:"gridArea"}));function by(e){return e<=1&&0!==e?100*e+"%":e}Jv(Nv({prop:"color",themeKey:"palette",transform:gy}),Nv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gy}),Nv({prop:"backgroundColor",themeKey:"palette",transform:gy}));const vy=Nv({prop:"width",transform:by}),yy=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])||_v[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:by(t)}};return Tv(e,e.maxWidth,t)}return null};yy.filterProps=["maxWidth"];const xy=Nv({prop:"minWidth",transform:by}),Sy=Nv({prop:"height",transform:by}),Ey=Nv({prop:"maxHeight",transform:by}),Cy=Nv({prop:"minHeight",transform:by});Nv({prop:"size",cssProperty:"width",transform:by}),Nv({prop:"size",cssProperty:"height",transform:by});Jv(vy,yy,xy,Sy,Ey,Cy,Nv({prop:"boxSizing"}));var wy={border:{themeKey:"borders",transform:Zv},borderTop:{themeKey:"borders",transform:Zv},borderRight:{themeKey:"borders",transform:Zv},borderBottom:{themeKey:"borders",transform:Zv},borderLeft:{themeKey:"borders",transform:Zv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:py},color:{themeKey:"palette",transform:gy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gy},backgroundColor:{themeKey:"palette",transform:gy},p:{style:Xv},pt:{style:Xv},pr:{style:Xv},pb:{style:Xv},pl:{style:Xv},px:{style:Xv},py:{style:Xv},padding:{style:Xv},paddingTop:{style:Xv},paddingRight:{style:Xv},paddingBottom:{style:Xv},paddingLeft:{style:Xv},paddingX:{style:Xv},paddingY:{style:Xv},paddingInline:{style:Xv},paddingInlineStart:{style:Xv},paddingInlineEnd:{style:Xv},paddingBlock:{style:Xv},paddingBlockStart:{style:Xv},paddingBlockEnd:{style:Xv},m:{style:Kv},mt:{style:Kv},mr:{style:Kv},mb:{style:Kv},ml:{style:Kv},mx:{style:Kv},my:{style:Kv},margin:{style:Kv},marginTop:{style:Kv},marginRight:{style:Kv},marginBottom:{style:Kv},marginLeft:{style:Kv},marginX:{style:Kv},marginY:{style:Kv},marginInline:{style:Kv},marginInlineStart:{style:Kv},marginInlineEnd:{style:Kv},marginBlock:{style:Kv},marginBlockStart:{style:Kv},marginBlockEnd:{style:Kv},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:fy},rowGap:{style:my},columnGap:{style:hy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:by},maxWidth:{style:yy},minWidth:{transform:by},height:{transform:by},maxHeight:{transform:by},minHeight:{transform:by},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ry(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Ov(r,l)||{};if(u)return u(o);return Tv(o,t,(t=>{let r=qv(c,s,t);return t===r&&"string"==typeof t&&(r=qv(c,s,`${e}${"default"===t?"":ka(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:wy;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=Pv(s,e(r,o,i,a));else{const e=Tv({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=Pv(s,e):s[r]=t({sx:o,theme:i})}else s=Pv(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Ly=Ry();Ly.filterProps=["sx"];var Iy=Ly;function Ay(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 My=["breakpoints","palette","spacing","shape"];function Dy(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Ir(e,My),l=Mv(r),s=function(e=8){if(e.mui)return e;const t=Hv({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=la({breakpoints:l,direction:"ltr",components:{},palette:xr({mode:"light"},n),spacing:s,shape:xr({},Dv,i)},a);return u.applyStyles=Ay,u=t.reduce(((e,t)=>la(e,t)),u),u.unstable_sxConfig=xr({},wy,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Iy({sx:e,theme:this})},u}var Py=Object.freeze({__proto__:null,default:Dy,private_createBreakpoints:Mv,unstable_applyStyles:Ay});function _y(e=null){const r=t.useContext(Gi);return r&&(n=r,0!==Object.keys(n).length)?r:e;var n}const ky=Dy();function Ty(e=ky){return _y(e)}const Oy=["sx"];function qy(e){const{sx:t}=e,r=Ir(e,Oy),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:wy;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return ia(r)?xr({},n,r):n}:xr({},n,t),xr({},o,{sx:i})}var Ny=Object.freeze({__proto__:null,default:Iy,extendSxProp:qy,unstable_createStyleFunctionSx:Ry,unstable_defaultSxConfig:wy});const Fy=["className","component"];function jy(e){if(e.type)return e;if("#"===e.charAt(0))return jy(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(hn(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(hn(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function zy(e,t){return e=jy(e),t=function(e,t=0,r=1){return cl(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)}var $y=t.createContext(null);function Gy(){return t.useContext($y)}var By="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Wy(e){const{children:r,theme:n}=e,o=Gy(),i=t.useMemo((()=>{const e=null===o?n:function(e,t){if("function"==typeof t)return t(e);return xr({},e,t)}(o,n);return null!=e&&(e[By]=null!==o),e}),[n,o]);return ks.jsx($y.Provider,{value:i,children:r})}const Hy=["value"],Vy=t.createContext();function Yy(e){let{value:t}=e,r=Ir(e,Hy);return ks.jsx(Vy.Provider,xr({value:null==t||t},r))}const Uy=t.createContext(void 0);function Ky({value:e,children:t}){return ks.jsx(Uy.Provider,{value:e,children:t})}function Xy({props:e,name:r}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?nl(o.defaultProps,n):o.styleOverrides||o.variants?n:nl(o,n)}({props:e,name:r,theme:{components:t.useContext(Uy)}})}const Jy={};function Zy(e,r,n,o=!1){return t.useMemo((()=>{const t=e&&r[e]||r;if("function"==typeof n){const i=n(t),a=e?xr({},r,{[e]:i}):i;return o?()=>a:a}return xr({},r,e?{[e]:n}:n)}),[e,r,n,o])}function Qy(e){const{children:t,theme:r,themeId:n}=e,o=_y(Jy),i=Gy()||Jy,a=Zy(n,o,r),l=Zy(n,i,r,!0),s="rtl"===a.direction;return ks.jsx(Wy,{theme:l,children:ks.jsx(Gi.Provider,{value:a,children:ks.jsx(Yy,{value:s,children:ks.jsx(Ky,{value:null==a?void 0:a.components,children:t})})})})}var ex={},tx={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(tx);var rx=tx.exports,nx=B(mn),ox=B(dl),ix=rx;Object.defineProperty(ex,"__esModule",{value:!0});var ax=ex.alpha=yx;ex.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=hx(e),a=hx(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return gx({type:"rgb",values:l})},ex.colorChannel=void 0;var lx=ex.darken=xx;ex.decomposeColor=hx,ex.emphasize=Ex;var sx=ex.getContrastRatio=function(e,t){const r=vx(e),n=vx(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};ex.getLuminance=vx,ex.hexToRgb=fx,ex.hslToRgb=bx;var ux=ex.lighten=Sx;ex.private_safeAlpha=function(e,t,r){try{return yx(e,t)}catch(t){return e}},ex.private_safeColorChannel=void 0,ex.private_safeDarken=function(e,t,r){try{return xx(e,t)}catch(t){return e}},ex.private_safeEmphasize=function(e,t,r){try{return Ex(e,t)}catch(t){return e}},ex.private_safeLighten=function(e,t,r){try{return Sx(e,t)}catch(t){return e}},ex.recomposeColor=gx,ex.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=hx(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 cx=ix(nx),dx=ix(ox);function px(e,t=0,r=1){return(0,dx.default)(e,t,r)}function fx(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 hx(e){if(e.type)return e;if("#"===e.charAt(0))return hx(fx(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,cx.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,cx.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const mx=e=>{const t=hx(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};ex.colorChannel=mx;function gx(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 bx(e){e=hx(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),gx({type:l,values:s})}function vx(e){let t="hsl"===(e=hx(e)).type||"hsla"===e.type?hx(bx(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 yx(e,t){return e=hx(e),t=px(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,gx(e)}function xx(e,t){if(e=hx(e),t=px(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 gx(e)}function Sx(e,t){if(e=hx(e),t=px(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 gx(e)}function Ex(e,t=.15){return vx(e)>.5?xx(e,t):Sx(e,t)}ex.private_safeColorChannel=(e,t)=>{try{return mx(e)}catch(t){return e}};var Cx={black:"#000",white:"#fff"};var wx={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 Rx={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 Lx={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 Ix={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 Ax={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 Mx={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 Dx={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 Px=["mode","contrastThreshold","tonalOffset"],_x={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:Cx.white,default:Cx.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}},kx={text:{primary:Cx.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:Cx.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 Tx(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=ux(e.main,o):"dark"===t&&(e.dark=lx(e.main,i)))}function Ox(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ir(e,Px),i=e.primary||function(e="light"){return"dark"===e?{main:Ax[200],light:Ax[50],dark:Ax[400]}:{main:Ax[700],light:Ax[400],dark:Ax[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Rx[200],light:Rx[50],dark:Rx[400]}:{main:Rx[500],light:Rx[300],dark:Rx[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Lx[500],light:Lx[300],dark:Lx[700]}:{main:Lx[700],light:Lx[400],dark:Lx[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Mx[400],light:Mx[300],dark:Mx[700]}:{main:Mx[700],light:Mx[500],dark:Mx[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Dx[400],light:Dx[300],dark:Dx[700]}:{main:Dx[800],light:Dx[500],dark:Dx[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ix[400],light:Ix[300],dark:Ix[700]}:{main:"#ed6c02",light:Ix[500],dark:Ix[900]}}(t);function d(e){return sx(e,kx.text.primary)>=r?kx.text.primary:_x.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=xr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(hn(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(hn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Tx(e,"light",o,n),Tx(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:kx,light:_x};return la(xr({common:xr({},Cx),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:wx,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const qx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Nx={textTransform:"uppercase"},Fx='"Roboto", "Helvetica", "Arial", sans-serif';function jx(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Fx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Ir(r,qx),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return xr({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Fx?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Nx),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Nx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return la(xr({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function zx(...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 $x=["none",zx(0,2,1,-1,0,1,1,0,0,1,3,0),zx(0,3,1,-2,0,2,2,0,0,1,5,0),zx(0,3,3,-2,0,3,4,0,0,1,8,0),zx(0,2,4,-1,0,4,5,0,0,1,10,0),zx(0,3,5,-1,0,5,8,0,0,1,14,0),zx(0,3,5,-1,0,6,10,0,0,1,18,0),zx(0,4,5,-2,0,7,10,1,0,2,16,1),zx(0,5,5,-3,0,8,10,1,0,3,14,2),zx(0,5,6,-3,0,9,12,1,0,3,16,2),zx(0,6,6,-3,0,10,14,1,0,4,18,3),zx(0,6,7,-4,0,11,15,1,0,4,20,3),zx(0,7,8,-4,0,12,17,2,0,5,22,4),zx(0,7,8,-4,0,13,19,2,0,5,24,4),zx(0,7,9,-4,0,14,21,2,0,5,26,4),zx(0,8,9,-5,0,15,22,2,0,6,28,5),zx(0,8,10,-5,0,16,24,2,0,6,30,5),zx(0,8,11,-5,0,17,26,2,0,6,32,5),zx(0,9,11,-5,0,18,28,2,0,7,34,6),zx(0,9,12,-6,0,19,29,2,0,7,36,6),zx(0,10,13,-6,0,20,31,3,0,8,38,7),zx(0,10,13,-6,0,21,33,3,0,8,40,7),zx(0,10,14,-6,0,22,35,3,0,8,42,7),zx(0,11,14,-7,0,23,36,3,0,9,44,8),zx(0,11,15,-7,0,24,38,3,0,9,46,8)];const Gx=["duration","easing","delay"],Bx={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)"},Wx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Hx(e){return`${Math.round(e)}ms`}function Vx(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Yx(e){const t=xr({},Bx,e.easing),r=xr({},Wx,e.duration);return xr({getAutoHeightDuration:Vx,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Ir(n,Gx),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Hx(o)} ${i} ${"string"==typeof a?a:Hx(a)}`)).join(",")}},e,{easing:t,duration:r})}var Ux={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Kx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Xx(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Ir(e,Kx);if(e.vars)throw new Error(hn(18));const l=Ox(n),s=Dy(e);let u=la(s,{mixins:(c=s.breakpoints,d=r,xr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:$x.slice(),typography:jx(l,i),transitions:Yx(o),zIndex:xr({},Ux)});var c,d;return u=la(u,a),u=t.reduce(((e,t)=>la(e,t)),u),u.unstable_sxConfig=xr({},wy,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Iy({sx:e,theme:this})},u}var Jx=Xx();function Zx(){const e=Ty(Jx);return e[Iv]||e}var Qx,eS={},tS={exports:{}};var rS,nS={exports:{}};var oS=B(oa),iS=B(ua),aS=B(Ta),lS=B(_a),sS=B(Py),uS=B(Ny),cS=rx;Object.defineProperty(eS,"__esModule",{value:!0});var dS=eS.default=function(e={}){const{themeId:t,defaultTheme:r=CS,rootShouldForwardProp:n=ES,slotShouldForwardProp:o=ES}=e,i=e=>(0,bS.default)((0,pS.default)({},e,{theme:RS((0,pS.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,hS.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=LS(wS(s))}=a,p=(0,fS.default)(a,xS),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=ES;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,hS.default)(e,(0,pS.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,mS.isPlainObject)(e)?n=>IS(e,(0,pS.default)({},n,{theme:RS({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=RS((0,pS.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=IS(r,(0,pS.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=RS((0,pS.default)({},e,{defaultTheme:r,themeId:t}));return IS({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,pS.default)({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};eS.shouldForwardProp=ES,eS.systemDefaultTheme=void 0;var pS=cS((Qx||(Qx=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(tS)),tS.exports)),fS=cS((rS||(rS=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(nS)),nS.exports)),hS=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=SS(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}(oS),mS=iS;cS(aS),cS(lS);var gS=cS(sS),bS=cS(uS);const vS=["ownerState"],yS=["variants"],xS=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function SS(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(SS=function(e){return e?r:t})(e)}function ES(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const CS=eS.systemDefaultTheme=(0,gS.default)(),wS=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function RS({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function LS(e){return e?(t,r)=>r[e]:null}function IS(e,t){let{ownerState:r}=t,n=(0,fS.default)(t,vS);const o="function"==typeof e?e((0,pS.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>IS(e,(0,pS.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,fS.default)(o,yS);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,pS.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,pS.default)({ownerState:r},n,r)):e.style))})),t}return o}var AS=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var MS=dS({themeId:Iv,defaultTheme:Jx,rootShouldForwardProp:AS});const DS=["theme"];function PS(e){let{theme:t}=e,r=Ir(e,DS);const n=t[Iv];return ks.jsx(Qy,xr({},r,{themeId:n?Iv:void 0,theme:n||t}))}var _S=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const kS={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},TS={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},OS=ec("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...kS},"&::-moz-range-track":{...kS},"&::-ms-track":{...kS},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...TS},"&::-moz-range-thumb":{...TS},"&::-ms-thumb":{...TS},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),qS=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:d,accessibilityRelatedArgs:p})=>{const f=Cv({translator:p.translator}),h=c({initWidth:e,columnWidth:e,initX:0}),m=n?0:1,g=o&&!d,b={left:g?h.current.columnWidth-m:"100%"},v=t=>{h.current={initWidth:e,columnWidth:e,initX:null!=t?t:h.current.initX}};Sv((()=>g&&v()),[e]);const y=e=>{const t=Math.max(e,nr.PixelsMin);h.current.columnWidth=t,a(t)},x=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:or.Pixels,pixels:h.current.columnWidth};l(e)}else null==u||u(!1)},S=e=>{const t=h.current.initWidth+e.clientX-h.current.initX;y(t)},E=e=>{Pb(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",E),x()},C=e=>{const t=h.current.initWidth+e.touches[0].clientX-h.current.initX;y(t)},w=e=>{Pb(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",w),x()},R=!o&&s?e=>{if(e.key===tr.LEFT||e.key===tr.RIGHT){Pb(e);const t=5,r=e.key===tr.LEFT?-t:t;y(h.current.columnWidth+r)}else e.key===tr.SPACE||e.key===tr.ENTER?(Pb(e),s(e),x()):e.key===tr.ESC&&(Pb(e),s(e),y(h.current.initWidth))}:void 0,L=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(p.columnLabel)]);return r.createElement(OS,{style:b,key:t,hoverColor:i,isLastColumn:n,className:rr,"data-testid":rr,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",S),document.addEventListener("mouseup",E),null==u||u(!0),v(e.clientX)},onDoubleClick:()=>l({type:or.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",C),document.addEventListener("touchend",w),null==u||u(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>v(),type:"range",tabIndex:"-1",max:nr.PixelsMax,"aria-label":L,"aria-valuemin":nr.PixelsMin,"aria-valuemax":nr.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};function NS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const FS=(e,t)=>r.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){NS(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),r.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),jS=d(FS);function zS(){return zS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zS.apply(null,arguments)}const $S=ec(Cp,{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"}))),GS=ec(jS,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),BS=ec(th)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),WS=ec(Yp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),HS=ec(ah)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),VS=ec(ah,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(r?"rgba(0, 0, 0, 0.05)":"transparent")}))),YS=ec("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"}))),US=ec("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),KS=ec(wd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),XS=ec(Af)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function JS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ZS=(e,t)=>r.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){JS(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),r.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),QS=d(ZS);let eE={};const tE=({autoFocus:e,id:t,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:l,isSubMenu:s,isActive:d,handleHeadCellMenuKeyDown:f})=>{const[h,m]=u(!1),g=c(null),b=p((e=>{e.stopPropagation(),m(!1)}),[m]);return r.createElement(r.Fragment,null,r.createElement(VS,{ref:l?g:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),eE={}),null!=l&&l.length&&(m(!0),eE[o]=m))},disabled:!a,autoFocus:e,isSubMenu:!!s,isActive:!!d,onKeyDown:f},d&&r.createElement(YS,null),r.createElement(US,null,r.createElement(XS,null,r.createElement(i,null)),r.createElement(KS,{variant:"body2"},o)),null!=l&&l.length?r.createElement(QS,null):null),(null==l?void 0:l.length)&&r.createElement(oE,{isSubMenu:!0,open:h,anchorEl:g.current,onClose:b,menuGroups:(v=l,y=eE,v.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(y).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:f}));var v,y},rE=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var o;return[[e.groupHeading&&r.createElement(HS,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),null===(o=e.items)||void 0===o?void 0:o.map((e=>r.createElement(tE,zS({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),nE={appear:200,enter:200,exit:100},oE=({anchorEl:e,open:t,onClose:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?r.createElement(BS,zS({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:nE,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((o,i)=>[rE({menuGroup:o,isSubMenu:t,handleHeadCellMenuKeyDown:n}),i<e.length-1?r.createElement(WS,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,iE=(e,t)=>e.some((e=>t[e]>0)),aE={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},lE=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=u(null),[a,l]=u(aE);return Sv((()=>{e||(l(aE),i(null))}),[e]),f((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject.qDimensionInfo;o=c.qInfo.qId,a?s():(i(u),l((e=>({canSelectAll:iE(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:iE(["qSelected"],e),canSelectPossible:iE(["qOption"],e),canSelectAlternative:iE(["qAlternative"],e),canSelectExcluded:iE(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function sE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uE=(e,t)=>r.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){sE(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),r.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"})),cE=d(uE);function dE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pE=(e,t)=>r.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){dE(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),r.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"})),fE=d(pE);function hE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const mE=(e,t)=>r.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){hE(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),r.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"})),gE=d(mE);function bE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vE=(e,t)=>r.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){bE(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),r.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"})),yE=d(vE);function xE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const SE=(e,t)=>r.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){xE(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),r.createElement("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})),EE=d(SE);function CE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wE=(e,t)=>r.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){CE(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),r.createElement("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})),RE=d(wE);function LE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const IE=(e,t)=>r.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){LE(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),r.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"})),AE=d(IE);function ME(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const DE=(e,t)=>r.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){ME(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),r.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"})),PE=d(DE);function _E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kE=(e,t)=>r.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){_E(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),r.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"})),TE=d(kE);function OE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qE=(e,t)=>r.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){OE(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),r.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"})),NE=d(qE);function FE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jE=(e,t)=>r.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){FE(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),r.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"})),zE=d(jE);function $E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const GE=(e,t)=>r.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){$E(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),r.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"})),BE=d(GE);let WE=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const HE="/qListObjectDef",VE=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c,setActiveFieldCallback:d})=>{const p=[];if(r[WE.SORTING]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:cE,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:yE,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:RE,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:EE,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&p.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[WE.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:AE,enabled:!0}]}]),r[WE.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:BE,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(HE))},icon:PE,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(HE))},icon:zE,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(HE))},icon:TE,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectExcluded(HE))},icon:NE,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clearSelections(HE))},icon:fE,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[WE.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:gE,enabled:!0}]}]),p},YE=({open:e,setOpen:t,anchorRef:n,headerData:o,translator:i,interactions:a,handleHeadCellMenuKeyDown:l,menuAvailabilityFlags:s,shouldShowMenuIcon:u=!0,sortRelatedArgs:c,searchRelatedArgs:d,selectionRelatedArgs:f,adjustHeaderSizeRelatedArgs:h,env:m})=>{var g;const b=Cv({translator:i}),{headTextAlign:v,qLibraryId:y,fieldId:x}=o,S=null==f?void 0:f.app,{fieldInstance:E,selectionActionsEnabledStatus:C}=lE({open:e,headerData:o,app:S,qStateName:null==f?void 0:f.qStateName});let w=null;if(m.flags.isEnabled("CLIENT_IM_7107_TABLE_MENU_CYCLIC_DIM")&&S&&o.qLibraryId){const e=o.qLibraryId;w=async t=>{try{const r=await S.getDimension(e);await r.setActiveField(t)}catch(e){console.error(e)}}}const R=p((()=>{const e=y?{qLibraryId:y,type:"dimension"}:x;if(null!=d&&d.embed&&d.listboxRef){const{embed:t,listboxRef:r}=d;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:d.sortCriteria,stateName:null==f?void 0:f.qStateName})}}),[y,x,d,null==f?void 0:f.qStateName]),L=p((e=>{e.stopPropagation(),t(!1)}),[t]);return a.active?r.createElement($S,{rightAligned:"right"===v,shouldShowMenuIcon:u,className:"nebula-table-utils-head-menu-wrapper"},u&&r.createElement(GS,{height:Zt,className:Qt,"data-testid":Qt,isInteractionsActive:null!==(g=a.active)&&void 0!==g&&g},r.createElement(jS,null)),r.createElement(oE,{open:e,anchorEl:n.current,onClose:L,menuGroups:VE({headerData:o,translator:b,menuAvailabilityFlags:s,setOpen:t,...c,embedListbox:R,interactions:a,fieldInstance:E,selectionActionsEnabledStatus:C,anchorRef:n,setFocusOnColumnAdjuster:null==h?void 0:h.setFocusOnColumnAdjuster,setActiveFieldCallback:w}),handleHeadCellMenuKeyDown:l})):null},UE=e=>e.isDark?{background:e.color,borderColor:Jh.DARK_MODE_BORDER,color:Jh.DARK_MODE_TEXT,disabledColor:Jh.DARK_MODE_DISABLED,iconColor:Jh.DARK_MODE_TEXT}:{background:e.color,borderColor:Jh.BORDER_MEDIUM,color:Jh.TEXT,disabledColor:Jh.DISABLED},KE=ec(Cp,{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}`}))),XE=ec(Wh,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),JE=ec(Tp,{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)}))),ZE=ec(wd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),QE=({children:e,footerContainer:t,interactions:n,theme:o,paginationNeeded:i=!0})=>{const a=s((()=>UE(o.background)),[o]);if(!n.active)return null;const l=i?r.createElement(KE,{footerStyle:a},e):null;return t?F.createPortal(e,t):l},eC=h({}),tC=()=>n(eC),rC=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:f,theme:h,interactions:m,rect:g,layout:b})=>{const v=(e=>!e.enabled||e.active)(p)?0:-1,y=s((()=>UE(h.background)),[h]),x=i?i.getBoundingClientRect().width:g.width,S=Cv({translator:f}),E=s((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:S,theme:h,interactions:m,rect:g,layout:b,footerStyle:y,tabIndex:v,width:x})),[t,n,o,i,a,l,u,c,d,p,S,h,m,g,b,y,v,x]);return r.createElement(eC.Provider,{value:E},e)};let nC=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),oC=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 iC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const aC=(e,t)=>r.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){iC(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),r.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),lC=d(aC);function sC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uC=(e,t)=>r.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){sC(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),r.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),cC=d(uC);function dC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pC=(e,t)=>r.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){dC(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),r.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),fC=d(pC),hC={FirstPage:cC,PreviousPage:lC,NextPage:QS,LastPage:fC,FirstPageRTL:fC,PreviousPageRTL:QS,NextPageRTL:lC,LastPageRTL:cC},mC=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=tC(),u=hC[`${r}${"rtl"===n?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},gC=()=>{const{pageInfo:e,width:t}=tC(),n=0===e.page,{IconComponent:o,styledProps:i}=mC({type:nC.FirstPage,disabledCondition:n,pageNumber:0});return t<=oC.FirstPage?null:r.createElement(JE,i,r.createElement(o,{height:Zt}))},bC=(e,t,r=!1)=>{r&&e.key===tr.TAB&&!e.shiftKey&&(Pb(e),((e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)})(e.target,t,!1))},vC=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:o,width:i}=tC(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=mC({type:nC.LastPage,disabledCondition:a,pageNumber:n-1}),u=t.enabled?e=>bC(e,t,o):null;return i<=oC.LastPage?null:r.createElement(JE,zS({},s,{onKeyDown:u}),r.createElement(l,{height:Zt}))},yC=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:o,width:i}=tC(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=mC({type:nC.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>oC.FirstPage&&i>oC.LastPage)&&t.enabled?e=>bC(e,t,o):null;return r.createElement(JE,zS({},s,{onKeyDown:u}),r.createElement(l,{height:Zt}))},xC=()=>{const{pageInfo:e}=tC(),t=0===e.page,{IconComponent:n,styledProps:o}=mC({type:nC.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return r.createElement(JE,o,r.createElement(n,{height:Zt}))},SC=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:o}=tC(),{page:i,rowsPerPage:a}=n;if(t<=oC.DisplayedRowsLabel)return null;const l=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,o)}`,o.toString()]);return r.createElement(ZE,{variant:"caption"},l)},EC=({name:e,value:t,options:n,handleChange:o})=>{const{layout:i,footerStyle:a,translator:l,tabIndex:s}=tC(),u=i.qInfo.qId,c=l.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return r.createElement(r.Fragment,null,r.createElement(ZE,{variant:"caption",id:p},c,":"),r.createElement(XE,{footerStyle:a,size:"small",native:!0,value:t,onChange:o,inputProps:f},n))},CC=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:o,width:i,handleChangeRowsPerPage:a}=tC();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&i>oC.RowsPerPage&&o<=100)||void 0===t.rowsPerPageOptions)return null;const l=r.createElement(r.Fragment,null,t.rowsPerPageOptions.map((e=>r.createElement("option",{key:e,value:e},e))));return r.createElement(EC,{name:"RowsPerPage",value:t.rowsPerPage,options:l,handleChange:e=>{null==a||a(+e.target.value)}})},wC=1e3,RC="…",LC=({totalPages:e,page:t})=>{const n=Math.min(e,wC),o=n<e&&t>500,i=o?Math.min(500+t,e):n,a=o?Math.max(0,i-wC):0,l=Array.from(Array(n).keys()).map((e=>{const t=e+a;return r.createElement("option",{key:t,value:t},t+1)}));return a>0&&l.unshift(r.createElement("option",{key:"startMoreOptions",value:RC,disabled:!0},RC)),i<e-1&&l.push(r.createElement("option",{key:"endMoreOptions",value:RC,disabled:!0},RC)),r.createElement(r.Fragment,null,l)},IC=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:o}=tC(),{page:i}=e;if(t<=oC.SelectPage)return null;const a=r.createElement(LC,{totalPages:n,page:i});return r.createElement(EC,{name:"SelectPage",value:i,options:a,handleChange:e=>o(+e.target.value)})};var AC=m((e=>r.createElement(rC,e,r.createElement(CC,null),r.createElement(IC,null),r.createElement(SC,null),r.createElement(gC,null),r.createElement(xC,null),r.createElement(yC,null),r.createElement(vC,null))));const MC=e=>r.createElement(QE,e,r.createElement(AC,e)),DC=h({}),PC=()=>n(DC),_C=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,children:o})=>{const i=s((()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n})),[e,t,r,n]);return ks.jsx(DC.Provider,{value:i,children:o})},kC=h({}),TC=()=>n(kC),OC=({app:e,model:t,theme:r,embed:n,keyboard:o,translator:i,interactions:a,env:l,children:u})=>{const c=s((()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:o,env:l,translator:i})),[e,a,t,n,r,o,l,i]);return ks.jsx(kC.Provider,{value:c,children:u})},qC=h({}),NC=()=>n(qC),FC=({children:e,...t})=>ks.jsx(qC.Provider,{value:t,children:e}),jC=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:r}=TC(),{layoutService:n}=NC(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:$b;return n.hasData?n.hasLimitedData?{text:r.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:r.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:ks.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:ks.jsx("span",{style:{...Xb,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},zC="/qHyperCubeDef",$C=-1,GC="PSEUDO-DIM",BC=[];for(let e=0;e<256;++e)BC.push((e+256).toString(16).slice(1));let WC;const HC=new Uint8Array(16);function VC(){if(!WC){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");WC=crypto.getRandomValues.bind(crypto)}return WC(HC)}var YC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function UC(e,t,r){if(YC.randomUUID&&!t&&!e)return YC.randomUUID();const n=(e=e||{}).random||(e.rng||VC)();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(BC[e[t+0]]+BC[e[t+1]]+BC[e[t+2]]+BC[e[t+3]]+"-"+BC[e[t+4]]+BC[e[t+5]]+"-"+BC[e[t+6]]+BC[e[t+7]]+"-"+BC[e[t+8]]+BC[e[t+9]]+"-"+BC[e[t+10]]+BC[e[t+11]]+BC[e[t+12]]+BC[e[t+13]]+BC[e[t+14]]+BC[e[t+15]]).toLowerCase()}(n)}const KC=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:UC()},XC=e=>e===$C?GC:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:KC()})(e),JC=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===$C?r.columnWidthLocation=Ut.Measures:r.isLeftDimension?r.columnWidthLocation=Ut.Dimension:t.at(-1)===$C?r.columnWidthLocation=Ut.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=Ut.Pivot))},ZC=(e,t,r)=>{var n;const o=XC(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===$C?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:Ut.Measures,isPivot:!0}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isLocked:null!==(n=t.qLocked)&&void 0!==n&&n,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,isCyclic:t.qGrouping===lr.cyclic,groupDimensionPos:t.qGroupPos,groupDimensionLabels:t.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:Ut.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},QC=({layoutService:e,lastRow:t,lastCol:r})=>{let n=r;var o;t.length>0&&(n=(o=r).at(-1)===$C?o.slice(0,-1):o);const i=n.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,r,n)=>{const o=r===n.length-1;l[i-1][r]=ZC(e,t,o)})),n.forEach(((t,r,n)=>{const o=r===n.length-1;l[r][a-1]=ZC(e,t,o)})),l},ew=(e,t,r)=>{var n,o;const i=((e,t,r)=>{let n;var o;return n=0===t.length||t.includes($C)?QC({layoutService:e,lastRow:r,lastCol:t}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(QC({layoutService:e,lastRow:t,lastCol:r})),e.isIndentModeEnabled&&n[n.length-1].length>1&&(n[n.length-1]=[n.at(-1),...new Array(n[0]?n[0].length-1:0).fill(null)]),n.length&&(null===(o=n.at(-1))||void 0===o||o.forEach(((t,n)=>{if(Array.isArray(t)){const n=t;for(let t=0;t<n.length;t++)JC({layoutService:e,visibleLeftDimensionInfos:r,cell:n[t],colIdx:t})}else JC({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}))),n})(e,t,r);return{data:i,size:{x:null!==(n=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==n?n:0,y:i.length}}};function tw(e){return tw="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},tw(e)}function rw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nw(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 ow(e,t,r){return t&&nw(e.prototype,t),r&&nw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function iw(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&&lw(e,t)}function aw(e){return aw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aw(e)}function lw(e,t){return lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lw(e,t)}function sw(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 uw(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=aw(e);if(t){var o=aw(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return sw(this,r)}}function cw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dw(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 dw(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 dw(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 pw={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:fw(e),value:fw(t),useEqualSign:r}}(r,o,i))}})),t}};function fw(e){try{return decodeURIComponent(e)}catch(t){return e}}function hw(e){if(!(this instanceof hw))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 pw.fromSearchString(t.search)}}})}function mw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}hw.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},hw.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=mw((t=e[n]).key),t.value?r+="=".concat(mw(t.value)):r+=t.useEqualSign?"=":"";return r};var gw,bw=function(){function e(t){rw(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return ow(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}(),vw=function(){function e(){rw(this,e)}return ow(e,[{key:"decode",value:function(e){for(var t,r="",n=new bw(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),yw=function(e){return e>=0&&e<=1114111},xw=function(e){return e.match(/[\s]/)},Sw=function(e){iw(r,e);var t=uw(r);function r(){return rw(this,r),t.apply(this,arguments)}return ow(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())&&!xw(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return yw(a)?String.fromCharCode(a):"�"}}]),r}(vw),Ew=function(){function e(t,r){rw(this,e),this._key=t,this._value=r}return ow(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}(),Cw=function(){function e(){rw(this,e)}return ow(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 Ew.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return Ew.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||Ew.newInstanceIfNeeded(e,t,this._value)}}]),e}(),ww=function(){function e(){rw(this,e),this.clear()}return ow(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 Cw);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),Rw=function(){var e,t,r,n=[],o=[],i=new ww;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}(),Lw=function(e){iw(r,e);var t=uw(r);function r(){return rw(this,r),t.apply(this,arguments)}return ow(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,Rw.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=Rw.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)&&yw(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)&&yw(n)?String.fromCharCode(n):null}}]),r}(vw),Iw=function(e){iw(r,e);var t=uw(r);function r(){return rw(this,r),t.apply(this,arguments)}return ow(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),yw(o))?String.fromCharCode(o):(e.reset(),null)}}]),r}(vw),Aw=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(gw=document.createElement("div"));var Mw=Array.prototype.indexOf,Dw=[",",".","_"," "],Pw=[",",".","-","_"," "],_w={width:["%"],height:["%"]},kw={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Tw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":kw.image,"background-color":kw.color,"border-color":kw.color,"border-image":kw.image,color:kw.color,icon:kw.image,"list-style-image":kw.image,"outline-color":kw.color},Ow={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function qw(e,t,r){var n;if(t){if(Mw)return Mw.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function Nw(e){if(null==e)return"";var t,r=document.createTextNode(e);return gw.appendChild(r),t=gw.innerHTML,gw.removeChild(r),t}function Fw(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=zw(e).toLowerCase(),t=zw(t),qw(e,Ow.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<Ow.attr_val;i++)if(t.toLowerCase().match(Ow.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=_w[e])||(n=Pw),o="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&qw(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function jw(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=zw(e).toLowerCase(),t=zw(t),qw(e,Ow.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<Ow.css_val.length;n++)if(t.toLowerCase().indexOf(Ow.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Tw[e])||(o=kw.default),i="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&qw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function zw(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new Lw,new Iw,new Sw];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var $w=[],Gw=0;Gw<255;Gw++)$w[Gw]=Gw>=48&&Gw<=57||Gw>=65&&Gw<=90||Gw>=97&&Gw<=122?null:Gw.toString(16);var Bw=function(e){return Nw(e.unsafe)},Ww=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]=jw(t,r[t],!0),i+=jw(t,r[t],!0),o[t]=n[t]);return e.map?o:i},Hw=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]=Fw(i,t[i],!0),o+=Fw(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function Vw(e,t){throw new Error(t)}var Yw={canonicalize:zw,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===tw(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?Bw(e):"css"===e.context?(null!=e.map&&"object"!==tw(e.map)&&Vw(this,"Invalid parameter type"),Ww(e)):"attr"===e.context?(null!=e.map&&"object"!==tw(e.map)&&Vw(this,"Invalid parameter type"),Hw(e)):void Vw(this,"Invalid parameter type")},encodeForAttr:Fw,encodeForAttr2:function(e){return Fw("nonsens",e,!0)},encodeForCSS:jw,encodeForHref:function(e){zw(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new hw(e),r=hw.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+hw.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,l;for(t||(t=Dw),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),qw(o,t)>=0||null==$w[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:Nw,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=zw(t).toLowerCase():Vw(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,r=cw(null!==(t=Aw.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const Uw=(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]},Kw=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"}}},Xw=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&Yw.isSafeDataURL(t)?{type:jt.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Kw(n)}:{type:jt.Text,url:void 0,text:e},Jw=(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)===zt.Attribute||null==r?void 0:r.urlLabel},Zw=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:jt.Link,url:Yw.encodeForHref(t),text:e}}catch(t){return{type:jt.Text,url:void 0,text:e}}},Qw=(e,t,r,n,o,i)=>{var a,l,s,u,c,d;const p=$t(t);return p!==jt.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(a=n.anything.sense)&&void 0!==a&&null!==(l=a.isUnsupportedFeature)&&void 0!==l&&l.call(a,"tableImages")?p===jt.Link?((e,t,r)=>{const{urlPosition:n}=null!=t?t:{};if(n===zt.Attribute){var o;const n=Jw(null!==(o=r.url)&&void 0!==o?o:-1,e,t),i=e.qText||n||"";return Zw({text:i,url:n})}if(n===zt.Dimension){var i;const n=Jw(null!==(i=r.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return Zw({text:n,url:e.qText})}return{type:jt.Text,url:void 0,text:e.qText}})(e,t,r):p!==jt.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(s=n.anything.sense)&&void 0!==s&&null!==(u=s.isUnsupportedFeature)&&void 0!==u&&u.call(s,"tableIndicators")?p!==jt.MiniChart||!n.flags.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")||null!==(c=n.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"qMiniChartDef")?{type:jt.Text,url:void 0,text:e.qText}:((e,t,r)=>{var n;if(!e.qMiniChart||!t||!r)return{type:jt.Text,text:e.qText};const o="local"===(null==t||null===(n=t.miniChart)||void 0===n||null===(n=n.yAxis)||void 0===n?void 0:n.scale);return{type:jt.MiniChart,text:e.qText,miniChart:{qMatrix:e.qMiniChart.qMatrix,minY:o?e.qMiniChart.qMin:r.qYMin,maxY:o?e.qMiniChart.qMax:r.qYMax}}})(e,t,i):((e,t,r)=>{const{indicator:n}=null!=t?t:{};return{type:jt.Indicator,url:void 0,text:e.qText,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:r}})(e,t,o):((e,t,r)=>{const{imageSize:n,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=Uw(null!==(s=r.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return Xw({text:t,url:i,imageSize:n,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===r.imageLabel)return Xw({text:a||t||"",url:t,imageSize:n,imagePosition:o});const i=null!==(u=null===(c=Uw(null!==(d=r.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return Xw({text:i,url:t,imageSize:n,imagePosition:o})}return{type:jt.Text,url:void 0,text:e.qText}})(e,t,r)},eR=(e,t)=>{var r,n,o,i;const a=t.qAttrExps,l=null==a||null===(r=a.qValues)||void 0===r||null===(r=r[null!==(n=null==e?void 0:e.cellForegroundColor)&&void 0!==n?n:-1])||void 0===r?void 0:r.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?Db(s):null,c=l?Db(l):null,d=((e,t)=>e||!t?null:Ag(t))(c,u);return{color:null!=d?d:c,background:u}},tR=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:tR(e,t)),e),rR=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:Bb-n;let l=e.qUp+e.qDown;if(o&&0===r){const r=(t+e.qUp)%i.rowsPerPage;l=e.qDown+r}return Math.min(a,tR(l,e))},nR=(e,t)=>{if(e!==$C)return t?{type:jt.Text}:e.representation},oR=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const h=(!c||!u)&&e.qType===cr.NX_DIM_CELL_PSEUDO;let m="";if(u&&e.indentLabel){const{label:t,delimeter:r,suffix:n}=e.indentLabel;m=`${t} ${!n||!t&&n?"":r} ${n}`.trim()}else m=e.qText;const g={id:KC(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:rR(e,o,i,n,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===cr.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===cr.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===cr.NX_DIM_CELL_NULL,isPseudoDimension:h,expressionColor:eR(s,e),selectionCellType:u?ur.NX_CELL_LEFT:ur.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:h?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:Qw({...e,qText:m},nR(l,c),s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},iR=(e,t,r,n,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,h=-1){e[f]||(e[f]={}),s&&h++;const m=o.leftDimensionInfoIndexes.indexOf($C);p.forEach(((p,g)=>{var b;u+=0===g?0:1;const v=r.qTop-n.page*n.rowsPerPage,y=Math.max(0,v+u-p.qUp),x=r.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&h<=m){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===cr.NX_DIM_CELL_NORMAL||p.qType===cr.NX_DIM_CELL_NULL||p.qType===cr.NX_DIM_CELL_TOTAL)h<m&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===cr.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},h=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let L=f;s&&(L=m>=1&&h>=m?h+1:h,0===h&&0===m&&0===p.qSubNodes.length&&(L=0));const I=s&&void 0===(null===(b=e[f][y])||void 0===b?void 0:b.ref.qText)||!e[f][y]?oR({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:h},env:l,pageInfo:n}):e[f][y];if(e[f][y]=I,p.qSubNodes.length){const e=s?0:f+1;t(c||I,I,p.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},aR=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n[r+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},lR=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==r?void 0:r[o],a=n.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},sR=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=iR(e.grid,l,s,r,n,o,i,a);aR(u,r.rowsOnCurrentPage);const c=lR(u,n);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},uR=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===cr.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:KC(),ref:t,isNull:u}}))})),o},cR=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n.length?uR({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},dR=(e,t,r,n,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var h;u+=0===f?0:1;const m=r.qLeft+u-d.qUp,g=null!==(h=e[p][m])&&void 0!==h?h:oR({node:d,parent:c,root:a,x:m,y:p,pageY:p,layoutService:n,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,...n.isIndentModeEnabled&&{isIndentModeEnabled:n.isIndentModeEnabled},env:l,pageInfo:s});e[p][m]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},pR=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=dR(e.grid,s,u,r,n,o,i,a,l);aR(c,r.size.x);const d=lR(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},fR=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),hR=(e,t)=>{const{env:r}=TC(),{layoutService:n}=NC(),{qPivotDataPages:o,pageInfo:i}=PC(),[a,l]=u(null),c=((e,t,r)=>s((()=>({left:e.map(fR),top:t.map(fR),measures:r.map(fR)})),[r,e,t]))(e,t,n.visibleMeasureInfo),d=s((()=>ew(n,t,e)),[n,t,e]),f=p((()=>o.slice(1).reduce(((e,t)=>cR({prevData:e,dataPage:t,pageInfo:i})),((e,t)=>{const{qData:r,qArea:n}=e;return uR({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(o[0],i))),[o,i]),h=p((()=>o.slice(1).reduce(((e,o)=>pR({prevData:e,nextDataPage:o,layoutService:n,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:i})),((e,t,r,n,o,i,a)=>{const{qArea:l,qTop:s}=e,u=dR([],s,l,t,r,n,o,i,a);aR(u,t.size.x);const c=lR(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(o[0],n,t,c.top,d.size.y,r,i))),[o,n,t,c.top,d.size.y,r,i]),m=p((()=>o.slice(1).reduce(((t,o)=>sR({prevData:t,nextDataPage:o,pageInfo:i,layoutService:n,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r})),((e,t,r,n,o,i)=>{const{qArea:a,qLeft:l}=e,s=iR([],l,a,r,t,n,o,i);aR(s,r.rowsOnCurrentPage);const u=lR(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(o[0],n,i,e,c.left,r))),[o,n,i,e,c,r]),[g,b]=u((()=>f())),[v,y]=u((()=>h())),[x,S]=u((()=>m()));Sv((()=>{b(f())}),[f]),Sv((()=>{y(h())}),[h]),Sv((()=>{S(m())}),[m]),Sv((()=>{a&&a.forEach((o=>{b((e=>cR({prevData:e,dataPage:o,pageInfo:i}))),y((e=>pR({prevData:e,nextDataPage:o,layoutService:n,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:i}))),S((t=>sR({prevData:t,nextDataPage:o,pageInfo:i,layoutService:n,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r})))}))}),[a]);const E=p((e=>{l(e)}),[]);return{headersData:d,measureData:g,topDimensionData:v,leftDimensionData:x,attrExprInfoIndexes:c,nextPageHandler:E}},mR=Math.sqrt(1e4),gR=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/nr.PixelsMin)}),bR=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/mR),n=Math.ceil(e.qHeight/mR);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*mR,qTop:e.qTop+r*mR,qWidth:Math.min(mR,e.qWidth-o*mR),qHeight:Math.min(mR,e.qHeight-r*mR)});return t};function vR({nextPageHandler:e}){const{model:t}=TC(),{pageInfo:r}=PC(),{layoutService:n}=NC(),o=(e=>{const t=c(e);return t.current=e,t})(r.page),i=t,a=p((async(e,t)=>{var r;await(null==i||null===(r=i.collapseLeft)||void 0===r?void 0:r.call(i,zC,e,t,!1))}),[i]),l=p((async(e,t)=>{await(null==i?void 0:i.collapseTop(zC,e,t,!1))}),[i]),u=p((async(e,t)=>{await(null==i?void 0:i.expandLeft(zC,e,t,!1))}),[i]),d=p((async(e,t)=>{await(null==i?void 0:i.expandTop(zC,e,t,!1))}),[i]),f=p((async t=>{if(null!=i&&i.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(zC,t.reduce(((e,t)=>[...e,...bR(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),h=p(((e,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case Ut.Dimension:c=[{qPath:`${zC}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case Ut.Measures:if(o)c=l.map(((e,t)=>({qPath:`${zC}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${zC}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Ut.Pivot:c=[{qPath:`${zC}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}}));null==t||t.applyPatches(d,!0)}),[t,n]),m=p((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${zC}/indentModeColumnWidth`,qOp:null!==(t=n.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))}),[i,n]);return s((()=>({collapseLeft:a,collapseTop:l,expandLeft:u,expandTop:d,applyColumnWidth:h,applyIndentModeColumnWidth:m,fetchPages:f})),[a,l,u,d,h,m,f])}const yR=(e,t,r)=>(n,o)=>{if(n===cr.NX_DIM_CELL_PSEUDO)return $C;const i=t[r+o];return e[i]},xR=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},SR=h({}),ER=()=>n(SR),CR=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=NC(),{qPivotDataPages:n}=PC();return s((()=>{var o,i,a,l;const s=xR(null!==(o=null===(i=n[0])||void 0===i?void 0:i.qLeft)&&void 0!==o?o:[]),u=xR(null!==(a=null===(l=n[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(yR(r,t,0)),visibleTopDimensionInfo:u.map(yR(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:l,nextPageHandler:u}=hR(t,r),c=vR({nextPageHandler:u}),d=s((()=>({gridSectionsData:{headersData:n,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:l,dataModel:c})),[t,r,n,o,i,a,l,c]);return ks.jsx(SR.Provider,{value:d,children:e})},wR=18,RR=.75,LR=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===jt.Image},IR=e=>void 0===e?Gb:e,AR=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,MR=e=>AR(e,nr.PixelsDefault),DR=(e,t)=>AR(e,nr.PercentageDefault)*t/100,PR=(e,t,r)=>{switch(null==t?void 0:t.type){case or.Pixels:return MR(t.pixels);case or.Percentage:return DR(t.percentage,e);case or.FitToContent:case or.Auto:default:return r}},_R=({headers:e,layoutService:t,estimateWidthForDimensionValue:r,shouldConsiderCombinatedLength:n,measureTextForHeader:o,longestMeasureValuePossible:i})=>e.reduce(((e,a,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s}},isFullyExpanded:u}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=a;if(!f)return e+0;if(c===GC)return e+0;const h=r(p),m=!u&&f&&d<s-1?21:0;let g=0;if(n&&o&&i){g=o("-")+i}return Math.max(e,24*l+wR+m+h+g)}),0),kR=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*wR;return Math.max(e,o+t(n.qFallbackTitle))}),0),TR=(e,t,r,n)=>{const o=100*e/t,i=n*RR*(o/100),a=r*(o/100);return Math.min(a,i)},OR=(e,t,r,n)=>n*(r/100)*(100*e/t/100),qR=(e,t)=>e.some((e=>e>=t*RR)),NR=({layoutService:e,headersData:t,columnWidths:r,tableWidth:n,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:s})=>{let u=[];const c=n*RR,d=t.data[t.data.length-1][0],p=Math.min(c,r.at(-1)),f=Math.min(c,_R({headers:d,layoutService:e,estimateWidthForDimensionValue:a})),h=Math.min(c,kR(e.visibleMeasureInfo,i));let m=0;const g=d.findIndex((e=>e.id===GC)),b=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===or.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+wR+16:24})({layoutService:e,measureTextForHeader:i,translator:s,headersData:t});if(e.hasPseudoDimOnLeft)if(0===g){const e=Math.max(p,f,h);u=[Math.max(b,e-p),p]}else{const t=Math.min(c,kR(e.visibleMeasureInfo,l,!0));m=Math.min(c,_R({headers:d.slice(0,g),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const r=Math.max(p,f,m);u=[Math.max(b,r-p),p]}else u=[Math.max(b,f-p),p];const v=Math.min(c,u.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:y}=e;o&&o<=c&&(y.type=or.Pixels,y.pixels=o);return[or.Pixels,or.Percentage].includes(y.type)||qR(u,n)?((e,t,r,n)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=qR(e,r);s===or.Auto&&d&&(o>i?o-=i:i-=o),s===or.Pixels&&u&&(o=TR(e[0],l,u,r),i=TR(e[1],l,u,r)),s===or.Percentage&&c&&(o=OR(e[0],l,c,r),i=OR(e[1],l,c,r));let p=0;i<=n&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-n,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(u,y,n,p):{leftGridWidth:v,leftGridColumnWidths:u,leftGridFullWidth:v}};function FR({tableWidth:e}){const t=e*RR,{styleService:r,layoutService:n}=NC(),{translator:o}=TC(),{gridSectionsData:{headersData:i}}=ER(),{measureText:a}=vv(r.header),{estimateWidth:l,measureText:s}=vv({...r.dimensionValues,fontWeight:IR(r.dimensionValues.fontWeight)}),{measureText:c}=vv({...r.dimensionValues,...r.measureLabels}),d=p(((r,u)=>{const{layout:{qHyperCube:{qNoOfLeftDims:d,topHeadersColumnWidth:p}},visibleMeasureInfo:f,isFullyExpanded:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=n,b=(t=0)=>f.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=c(n)+wR,a=Math.max(i,t);return Math.max(r,m?a:PR(e,o,a))}),0),v=e=>i.data.reduce(((t,r)=>{const n=r[e];if(!n)return t;if(n.id===GC)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?20:0;return wR+a(t)+20+n})(n);return Math.max(o,t)}),0);let y=0,x=i.data.at(-1);m&&i.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((o,a)=>{let s=wR;if((!m||m&&1===i.size.x)&&r&&void 0!==u&&u===o.colIdx)s=m?Math.min(t,r):r;else{let t;o.columnWidthLocation===Ut.Pivot?t=m?void 0:p:o.columnWidthLocation===Ut.Dimension&&({columnWidth:t}=o);let r=0;if(o.isLeftDimension)if(o.id===GC)r=b();else{const e=v(a),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=e,a=n.getDimensionInfo(i);if(LR(a))return nr.PixelsDefault;const s=!h&&o&&t<d-1?21:0;return wR+l(r)+s})(o,a);r=Math.max(e,t),m&&!g&&a+1===d&&o.columnWidthLocation===Ut.Dimension&&i.size.x>1&&(r=e)}else o.isLeftDimension||(r=v(a),o.columnWidthLocation===Ut.Measures&&(r=b(r)));m&&1===i.size.x&&(t=n.indentModeColumnWidth),s=m&&!g&&i.size.x>1?r:PR(e,t,r)}return y+=s,s}));return m&&i.size.x>1?NR({layoutService:n,headersData:i,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:o}):{leftGridWidth:Math.min(t,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[e,i,n,t,a,c,l,s,o]),[f,h]=u(d);Sv((()=>{h(d())}),[d]);const m=p(((e,t)=>{h(d(e,t))}),[d]);return{...f,overrideLeftGridWidth:m}}function jR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=NC(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=ER(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:l}},size:u,visibleMeasureInfo:c}=o,{estimateWidth:d,measureText:f}=vv(n.measureValues),{estimateWidth:h}=vv({...n.dimensionValues,fontWeight:IR(n.dimensionValues.fontWeight)}),m=e-r-1,g=i.at(-1),b=g===$C,v=l.length-a>i.length?21:0,y=s((()=>{const e=b?c:[g],t=u.x/e.length,r=[],n=[];let o=m;const i=(e,n)=>{r[e]=Math.min(nr.PixelsMax,Math.max(nr.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:s}=e;switch(r){case or.Pixels:i(t,MR(o));break;case or.Percentage:i(t,DR(a,m));break;case or.FitToContent:i(t,((e,t,r)=>r?nr.PixelsDefault:wR+(b?Math.max(d(e),f(t)):Math.max(Math.max(...c.map((e=>d(e.qApprMaxGlyphCount)))),h(e)+v)))(l,s,LR(e)));break;case or.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(nr.AutoMinPivot,i)}))}return r}),[b,c,g,u.x,m,d,f,h,v]),x=s((()=>{if(b){return c.reduce(((e,t,r)=>e+y[r]),0)/c.length}return y[0]}),[b,y,c]),S=parseFloat((t/o.size.x).toFixed(12)),E=p((e=>(b&&void 0!==e?y[o.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S),[b,y,o,x,S]),C=u.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,m),getRightGridColumnWidth:E}}const zR=`scrollable-container--${Xt.TOP_GRID}`,$R=`scrollable-container--${Xt.LEFT_GRID}`,GR=`scrollable-container--${Xt.DATA_GRID}`,BR=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},WR=(e,t)=>e>t?Jt.Forward:e<t?Jt.Backward:Jt.None,HR=()=>{const{layoutService:e}=NC(),t=c(null),r=c(null),n=c(null),o=c(null),i=c([]),a=c([]),l=c(null),{scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:d},resetHorizontalScrollbarHeight:h}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=u(0),[i,a]=u(0);return g((()=>{(e.current||r.current)&&o(Math.max(BR(e.current).width,BR(r.current).width))})),g((()=>{(t.current||r.current)&&a(Math.max(BR(t.current).height,BR(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>a(0)}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:l}=PC(),{downloadService:s,viewService:u,layoutService:c}=NC(),d=p((()=>{var o,i,a,l;const s={left:0,top:0};null===(o=e.current)||void 0===o||o.scrollTo(s),null===(i=t.current)||void 0===i||i.scrollTo(s),null===(a=r.current)||void 0===a||a.scrollTo(s),null===(l=n.current)||void 0===l||l.scrollTo(s)}),[e,t,r,n]);g((()=>{d()}),[l.page,d]),g((()=>{c.triggerdByExpandOrCollapse||d()}),[c,d]),g((()=>{if(c.triggerdByExpandOrCollapse){var e,t,r,l,s,u,d;const c=null!==(e=null===(t=n.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0,p=null!==(r=null===(l=n.current)||void 0===l?void 0:l.scrollTop)&&void 0!==r?r:0;null===(s=i.current)||void 0===s||s.forEach((e=>null==e?void 0:e.scrollTo(p))),null===(u=o.current)||void 0===u||u.forEach((e=>null==e?void 0:e.scrollTo(c))),null===(d=a.current)||void 0===d||d.scrollTo({scrollTop:p,scrollLeft:c})}}),[c,n,a,i,o]),g((()=>{(s.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,s,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l}});const{trackScrollDirection:m,scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v}}=(()=>{const e=c(Jt.None),t=c(Jt.None),r=c({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:p((n=>{if(n instanceof WheelEvent&&(e.current=WR(n.deltaY,0),t.current=WR(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=WR(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=WR(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=NC();return p((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===$R&&(e.leftGridScrollLeft=n.scrollLeft),o===GR&&(e.scrollLeft=n.scrollLeft),o===zR&&(e.topGridScrollTop=n.scrollTop),o!==$R&&o!==GR||(e.scrollTop=n.scrollTop)}),[e])})(),x={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},getWrapperElements:p((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:o.current})),[t,r,n,o]),updateViewService:y,trackScrollDirection:m,isSnapshotMode:e.isSnapshot};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,isSnapshotMode:a})=>{f((()=>{const{headerGridWrapperElement:o,topGridWrapperElement:l,leftGridWrapperElement:s,dataGridWrapperElement:u}=n(),c=e=>{o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,s.scrollLeft=o.scrollLeft,l.scrollTop=o.scrollTop,i(e)},d=e=>{var n,a;s.scrollTop+=e.deltaY,null===(n=t.current)||void 0===n||n.forEach((e=>null==e?void 0:e.scrollTo(s.scrollTop))),o.scrollLeft+=e.deltaX,s.scrollLeft=o.scrollLeft,u.scrollTop=s.scrollTop,null===(a=r.current)||void 0===a||a.scrollTo({scrollTop:s.scrollTop}),i(e)},p=t=>{var n,a;l.scrollLeft+=t.deltaX,null===(n=e.current)||void 0===n||n.forEach((e=>null==e?void 0:e.scrollTo(l.scrollLeft))),o.scrollTop+=t.deltaY,l.scrollTop=o.scrollTop,u.scrollLeft=l.scrollLeft,null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:l.scrollLeft}),i(t)},f=n=>{var o,a,c;u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,null===(o=r.current)||void 0===o||o.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),l.scrollLeft=u.scrollLeft,null===(a=e.current)||void 0===a||a.forEach((e=>null==e?void 0:e.scrollTo(u.scrollLeft))),s.scrollTop=u.scrollTop,null===(c=t.current)||void 0===c||c.forEach((e=>null==e?void 0:e.scrollTo(u.scrollTop))),i(n)};return o.addEventListener("wheel",c),s.addEventListener("wheel",d),l.addEventListener("wheel",p),u.addEventListener("wheel",f),a&&setTimeout((()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[i,o,a,e,t,r,n])})(x),(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,isSnapshotMode:a})=>{f((()=>{const{headerGridWrapperElement:l,topGridWrapperElement:s,leftGridWrapperElement:u,dataGridWrapperElement:c}=n(),d=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,i(e),null==o||o(e)},p=e=>{const t=e.target;l.scrollTop=t.scrollTop,i(e),null==o||o(e)},f=n=>{var a,l,d;const p=n.target;null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:p.scrollLeft,scrollTop:p.scrollTop}),s.scrollLeft=c.scrollLeft,null===(l=e.current)||void 0===l||l.forEach((e=>null==e?void 0:e.scrollTo(p.scrollLeft))),u.scrollTop=c.scrollTop,null===(d=t.current)||void 0===d||d.forEach((e=>null==e?void 0:e.scrollTo(p.scrollTop))),i(n),null==o||o(n)};return u.addEventListener("scroll",d),s.addEventListener("scroll",p),c.addEventListener("scroll",f),a&&setTimeout((()=>{u.removeEventListener("scroll",d),s.removeEventListener("scroll",p),c.removeEventListener("scroll",f)}),0),()=>{u.removeEventListener("scroll",d),s.removeEventListener("scroll",p),c.removeEventListener("scroll",f)}}),[i,o,a,e,t,r,n])})(x),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:d,resetHorizontalScrollbarHeight:h}}},VR=()=>{const{layoutService:e}=NC(),{rect:t,pageInfo:r}=PC();return s((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},YR=({children:e,style:t})=>ks.jsx("div",{"data-testid":"fullSize",style:t,children:e}),UR=({children:e,style:t})=>ks.jsx("div",{"data-section-id":"GRID",style:{display:"grid",...t},children:e}),KR=e=>e&&`scrollable-container--${e}`,XR=({children:e,style:t,origin:r},n)=>{const{interactions:o}=TC(),i=o.active?t:{overflow:"hidden"};return ks.jsx("div",{"data-testid":"scrollable","data-key":KR(r),style:i,ref:n,children:e})};var JR=r.forwardRef(XR);const ZR=({children:e,style:t})=>ks.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,left:0,...t},children:e});var QR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function eL(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||QR(n)&&QR(o)))return!1;var n,o;return!0}function tL(e,t){var r;void 0===t&&(t=eL);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var rL="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function nL(e){cancelAnimationFrame(e.id)}function oL(e,t){var r=rL();var n={id:requestAnimationFrame((function o(){rL()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var iL=-1;function aL(e){if(void 0===e&&(e=!1),-1===iL||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),iL=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return iL}var lL=null;function sL(e){if(void 0===e&&(e=!1),null===lL||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?lL="positive-descending":(t.scrollLeft=1,lL=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),lL}return lL}var uL=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function cL(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,l=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Dr(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Dr(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=tL((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=tL((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,i=n.props,l=i.columnWidth,s=i.direction,u=i.rowHeight,c=n._getItemStyleCache(g&&l,g&&s,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))o=c[f];else{var h=r(n.props,t,n._instanceProps),m="rtl"===s;c[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:a(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=tL((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(sL()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&nL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=oL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Mr(t,e),t.getDerivedStateFromProps=function(e,t){return dL(e,t),v(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,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=aL();void 0!==n&&(n=Math.max(0,Math.min(n,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=l(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?u(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(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(sL()){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&&nL(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,i=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?uL:f,m=e.outerElementType,g=e.outerTagName,b=e.rowCount,v=e.style,y=e.useIsScrolling,x=e.width,S=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],R=this._getVerticalRangeToRender(),L=R[0],I=R[1],A=[];if(n>0&&b)for(var M=L;M<=I;M++)for(var D=C;D<=w;D++)A.push(o(t,{columnIndex:D,data:p,isScrolling:y?S:void 0,key:h({columnIndex:D,data:p,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,D)}));var P=l(this.props,this._instanceProps),_=s(this.props,this._instanceProps);return o(m||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:xr({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},o(c||d||"div",{children:A,ref:u,style:{height:P,pointerEvents:S?"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],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||o||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=i(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=h(this.props,d,u,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var dL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},pL=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},fL=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},hL=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},mL=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?gL(e,t,r,i,0,n):bL(e,t,r,Math.max(0,i),n)},gL=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=hL(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},bL=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&hL(e,t,n,r).offset<o;)n+=a,a*=2;return gL(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},vL=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=hL(e,t,r,i),u="column"===e?fL(t,i):pL(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},yL=cL({getColumnOffset:function(e,t,r){return hL("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return mL("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=hL("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=hL("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:pL,getEstimatedTotalWidth:fL,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return vL("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return vL("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return hL("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return mL("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=hL("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=hL("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}}),xL=function(e,t){return e};function SL(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,Dr(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Dr(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=tL((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=tL((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,l=o.itemSize,s=o.layout,u=n._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=tL((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(sL()){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&&nL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=oL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Mr(t,e),t.getDerivedStateFromProps=function(e,t){return EL(e,t),d(e),null};var p=t.prototype;return p.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)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?aL():0:s.scrollHeight>s.clientHeight?aL():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,l))},p.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()},p.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(sL()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&nL(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,r=e.className,i=e.direction,a=e.height,l=e.innerRef,s=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?xL:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===h,E=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],R=C[1],L=[];if(c>0)for(var I=w;I<=R;I++)L.push(o(t,{data:d,key:f(I,d),index:I,isScrolling:v?x:void 0,style:this._getItemStyle(I)}));var A=n(this.props,this._instanceProps);return o(m||g||"div",{className:r,onScroll:E,ref:this._outerRefSetter,style:xr({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},o(s||u||"div",{children:L,ref:l,style:{height:S?"100%":A,pointerEvents:x?"none":void 0,width:S?A:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var u=l(this.props,a,this._instanceProps),c=s(this.props,u,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var EL=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},CL=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},wL=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=CL(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},RL=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&CL(e,r,t).offset<n;)r+=i,i*=2;return wL(e,t,Math.min(r,o-1),Math.floor(r/2),n)},LL=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},IL=SL({getItemOffset:function(e,t,r){return CL(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:LL,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=CL(e,t,o),p=LL(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?wL(e,t,o,0,r):RL(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=CL(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=CL(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 AL(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 ML=["style"],DL=["style"];function PL(e,t){var r=e.style,n=Ir(e,ML),o=t.style,i=Ir(t,DL);return!AL(r,o)&&!AL(n,i)}const _L=10,kL=(e,t)=>e.current===Jt.Backward?t:0,TL=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e[o];if(void 0===r||void 0===r[t])return!0}return!1},OL=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,qL=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(TL(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&OL(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},NL=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===Jt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return qL({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},FL=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=kL(r,_L),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+_L,l-u),pageTop:o,qHeight:a}})(n,o,r),u=qL({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...NL({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},jL=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},zL=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,$L=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(jL(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&zL(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},GL=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=kL(r,_L),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+_L,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=$L({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===Jt.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=$L({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},BL=async(e,t,r,n,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Jt.None&&(p=GL({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==Jt.None&&(f=FL({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===Jt.None&&a.current===Jt.None&&(p=$L({measureData:r,pageInfo:n,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(h)},WL=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];r=l;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(BL,100),HL=Et(BL,75),VL=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),YL=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{styleService:{grid:{border:l,divider:s}}}=NC();return ks.jsx("div",{style:{...e,...Kb,...Qb(r,n,l,o),...tv({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},UL=({children:e,verticalAlign:t,width:r,right:n})=>ks.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,alignSelf:t},children:e}),KL=e=>{const{type:t,imageSize:r}=e;return t!==jt.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"},XL=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function JL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ZL=(e,t)=>r.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){JL(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),r.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})),QL=d(ZL);function eI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tI=(e,t)=>r.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){eI(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),r.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})),rI=d(tI),nI=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(rr)},oI=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),o=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:n,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:o}=e,i=new Map(o);for(let e=r;e<=n;e++){const r=t(e);(null==r?void 0:r.ref.qType)===cr.NX_DIM_CELL_NORMAL&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}};const iI=h({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),aI=()=>n(iI),lI=({children:e,selections:t})=>{const r=function(e){var t,r,n;const{env:o}=TC(),{updatePageInfo:i}=PC(),a=e.isActive(),[l,u]=v(oI,{engineSelectedCells:null,selectedField:null,activeSelection:null});f((()=>{const t=()=>{u({type:"clearSelections"})},r=()=>{t(),i({page:0})};return e.on("deactivated",t),e.on("canceled",t),e.on("confirmed",r),e.on("cleared",t),()=>{e.removeListener("deactivated",t),e.removeListener("canceled",t),e.removeListener("confirmed",r),e.removeListener("cleared",t)}}),[e,i]);const c=p((async()=>{var t,r,n;if(!l.activeSelection)return;1===l.activeSelection.clientSelectedCells.size&&(r=l.engineSelectedCells,(n=l.activeSelection).clientSelectedCells.forEach(((e,t)=>{null!=r&&r.has(t)&&(n.clientSelectedCells.delete(t),r.delete(t))})));const o=new Map([...null!==(t=l.engineSelectedCells)&&void 0!==t?t:new Map,...l.activeSelection.clientSelectedCells]);try{u({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[zC,Array.from(o,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),u({type:"mouseup",payload:{engineSelectedCells:l.engineSelectedCells}})}}),[l,e]);f((()=>{if(l.activeSelection)return document.addEventListener("mouseup",c),()=>{document.removeEventListener("mouseup",c)}}),[c,l.activeSelection]);const d=p(((e,t)=>r=>{if(r.target!==r.currentTarget)return;const n=t(e);!nI(r)&&!(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(r)&&(e=>1===e.buttons)(r)&&n&&u({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(n.ref.qElemNo,n)},selectedField:{selectionCellType:n.selectionCellType,index:n.selectionCellType===ur.NX_CELL_LEFT?n.x:n.y}}})}),[]),h=p((t=>o.flags.isEnabled("CLIENT_IM_6223_PIVOT_RANGE_SELECTION")?async()=>{l.activeSelection&&(e.isActive()||await e.begin([zC]),u({type:"mouseover",payload:{index:t}}))}:void 0),[l.activeSelection,e,o]),m=p((e=>{var t,r;return!(!(null!==(t=l.engineSelectedCells)&&void 0!==t&&t.size||null!==(r=l.activeSelection)&&void 0!==r&&r.clientSelectedCells.size)||!l.selectedField||e.selectionCellType===l.selectedField.selectionCellType&&(e.selectionCellType===ur.NX_CELL_LEFT?l.selectedField.index===e.x:l.selectedField.index===e.y))}),[null===(t=l.activeSelection)||void 0===t?void 0:t.clientSelectedCells.size,null===(r=l.engineSelectedCells)||void 0===r?void 0:r.size,l.selectedField]),g=p((e=>{var t,r;return!m(e)&&((null===(t=l.engineSelectedCells)||void 0===t?void 0:t.has(e.ref.qElemNo))||!(null===(r=l.activeSelection)||void 0===r||!r.clientSelectedCells.has(e.ref.qElemNo)))}),[m,null===(n=l.activeSelection)||void 0===n?void 0:n.clientSelectedCells,l.engineSelectedCells]);return s((()=>({isSelected:g,isActive:a,isLocked:m,createMouseDownHandler:d,createMouseOverHandler:h})),[g,a,m,d,h])}(t);return ks.jsx(iI.Provider,{value:r,children:e})};var sI;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(sI||(sI={}));const uI={brighter:.5,darker:.3,opacity:.03},cI=(e,{cell:t,styleService:r})=>{if(e===sI.Background||e===sI.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},dI=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=cI(sI.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?cI(sI.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Lb(i=o,uI)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},pI=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:cI(sI.Color,{cell:e,styleService:t}),fI=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=cI(sI.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?Gb:o},hI=({cell:e,styleService:t})=>cI(sI.FontStyle,{cell:e,styleService:t}),mI=({cell:e,styleService:t})=>cI(sI.TextDecoration,{cell:e,styleService:t}),gI=e=>e?"pointer":"default",bI=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},vI=(e,t)=>{if(!e.isLeftColumn||e.representation.type===jt.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},yI=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n}=NC(),{interactions:o}=TC(),{isActive:i}=aI(),{dataModel:a}=ER();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!o.active||i||!a,s=pI({cell:e,styleService:n,isCellSelected:r}),u=i?.4:1,c=e.ref.qCanExpand?rI:QL;let d;return d=e.ref.qCanExpand?t?null==a?void 0:a.expandLeft:null==a?void 0:a.expandTop:t?null==a?void 0:a.collapseLeft:null==a?void 0:a.collapseTop,ks.jsx(c,{opacity:u,color:s,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...vI(e,n)},onClick:l?void 0:bI({cell:e,expandOrCollapse:d})})},xI=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},SI=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},EI=({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o})=>{const i=`calc(100% - ${r?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==n?a*Math.max(n,1):a;switch(e.imageSize){case"originalSize":return{maxWidth:i,maxHeight:l};case"fitWidth":return{width:i,maxHeight:l};case"fitHeight":return{height:l,maxWidth:i};case"fill":return{height:l,width:i};default:return{width:i,height:a}}},CI=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},wI=e=>{if("alwaysFit"===e)return"contain"},RI=({representation:e,styleService:t,textStyle:r,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=NC(),t=c(null),{promise:r,resolve:n}=s((()=>XL()),[]);return f((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(r),null!==(o=t.current)&&void 0!==o&&o.complete&&n()),()=>n()}),[t,e,r,n]),{onLoad:p((()=>{n()}),[n]),imageRef:t}})(),{url:u,text:d,imageSize:h,resolvedImagePosition:m}=e,{overflow:g,...b}=r;return ks.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==m?void 0:m.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...EI({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})},children:ks.jsx("img",{src:u,alt:d,style:{width:SI(h),height:xI(h),objectFit:wI(h),objectPosition:CI(h,m),...b},onLoad:l,ref:a})})},LI=(e,t)=>{if(null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},II={display:"flex",flexDirection:"row",alignItems:"center"},AI={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},MI=(e,t,r,n)=>t?{...AI,...e.nullValues}:r?{...II,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...II,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},DI=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...Xb,...!r&&Jb(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?Gb:s,fontStyle:u,textDecoration:c}},PI=(e,t,r,n)=>{const{textAlign:o}=t,i=n?"flex-end":"center";var a,l;return e.isNull||r.type!==jt.Image?LI(o,i):null!==(a=null===(l=r.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:"center"},_I=({cell:e,representation:t,color:r,isNumeric:n,isTotalValueCell:o})=>{const{layoutService:i,styleService:a}=NC(),l=e.isNull?i.getNullValueText():t.text,s=DI(a,r,n,o,e.isNull);return t.type!==jt.Image||e.isNull?ks.jsx("span",{style:{padding:4,...s},children:l}):ks.jsx(RI,{representation:t,styleService:a,textStyle:s,isLeftColumn:!0})},kI=(e,t)=>{var r,n;return null!==(r=null==e||null===(n=e[t])||void 0===n?void 0:n.visibleMeasureInfoIndex)&&void 0!==r?r:0},TI="flex-start",OI=(e,t)=>{return e.isNull?TI:t.type===jt.Image&&"fill"!==t.imageSize?null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.vertical:TI;var r},qI=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const{env:i}=TC(),{pageInfo:a}=PC(),{styleService:l,layoutService:s}=NC(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:f},visibleDimensionsInfo:{visibleLeftDimensionInfo:h,visibleTopDimensionInfo:m}}=ER(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=NC(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=ER(),i=n.length,a=o.length;return p(((n,o)=>{var l,s;return!!(null!==(l=r.grid.at(a-1))&&void 0!==l&&null!==(l=l[n])&&void 0!==l&&l.isTotal||null!==(s=t.grid.at(e?0:i-1))&&void 0!==s&&null!==(s=s[o])&&void 0!==s&&s.isTotal)}),[r,t,i,a,e])})(),b=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=ER(),r=t.length;return p((t=>{var n;const o=null===(n=e.grid.at(r-1))||void 0===n?void 0:n[t];return VL(o,e.totalDividerIndex)}),[e,r])})(),v=(()=>{const{layoutService:{isIndentModeEnabled:e}}=NC(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=ER(),n=r.length;return p((r=>{var o;const i=e?0:n-1,a=null===(o=t.grid.at(i))||void 0===o?void 0:o[r];return VL(a,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:y}=n,x=f.grid.at(m.length-1),S=d.grid.at(h.length-1),{background:E}=l.measureValues,C=null===(o=c[t])||void 0===o?void 0:o[e],w=t===a.rowsOnCurrentPage-1,R=e===s.size.x-1;if(!C)return ks.jsx(YL,{style:{...r,background:E},isLastRow:w,isLastColumn:R,showLastBorder:y,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const L=s.hasPseudoDimOnLeft?kI(S,t):kI(x,e),I=s.visibleMeasureInfo[L],A=Qw(C.ref,s.isIndentModeEnabled?{type:jt.Text}:I.representation,u.measures[L],i),M=!C.isNull&&g(e,t),D=C.isNull?s.getNullValueText():A.text,P=!C.isNull||!Number.isNaN(+D),_=eR(u.measures[L],C.ref),k={...MI(l,C.isNull,M,_.background),...Qb(w,R,l.grid.border,y),...tv({bottomDivider:v(t),rightDivider:b(e),borderColor:l.grid.divider}),...Kb,padding:"0px 4px",display:"flex",justifyContent:PI(C,I,A,P)};return ks.jsx("div",{className:er,title:D,style:{...k,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:ks.jsx(UL,{width:KL(A),verticalAlign:OI(C,A),children:ks.jsx(_I,{cell:C,representation:A,isNumeric:P,isTotalValueCell:M,color:_.color})})})};var NI=r.memo(qI,PL);const FI=(e,t)=>{var r,n;return null!==(r=null===(n=t.list[e])||void 0===n?void 0:n.id)&&void 0!==r?r:e.toString()},jI=({columnIndex:e,rowIndex:t,data:r})=>{var n,o;return null!==(n=null===(o=r.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==n?n:`${t}-${e}`},zI={...Ub,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},$I=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:l})=>{const{pageInfo:s}=PC(),{layoutService:u,styleService:{grid:{divider:c},contentCellHeight:d}}=NC(),{dataModel:f,gridSectionsData:{measureData:h}}=ER(),m={...zI,borderColor:c,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},b=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=PC(),{downloadService:n,viewService:o,layoutService:i}=NC(),{dataModel:a,gridSectionsData:{leftDimensionData:l,topDimensionData:s,measureData:u}}=ER(),c=l.columnCount,d=s.rowCount;return p((async({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=l,o.gridRowStartIndex=p,o.gridWidth=s-l+1,o.gridHeight=f-p+1;const h=o.gridWidth+c+(t.current===Jt.None?0:_L),m=o.gridHeight+d+(e.current===Jt.None?0:_L);let g=WL;m*h>1500&&(g=HL),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:l});return Sv((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,f,h]),g((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,d]),0===u.size.x?null:ks.jsx(yL,{"data-section-id":"DATA_GRID",ref:e,style:m,columnCount:u.size.x,columnWidth:i,height:t,rowCount:s.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:o,grid:h},onItemsRendered:b,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:jI,children:NI})};var GI=m($I);function BI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const WI=(e,t)=>r.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){BI(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),r.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"}),r.createElement("use",{fillRule:"evenodd"})),HI=d(WI),VI=e=>{const[t,r]=u(!1);return Sv((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},YI=()=>{const[e,t]=u(!1),{dataModel:r}=ER(),{interactions:n}=TC(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=VI([r]);return{open:e,setOpen:t,handleOpenMenu:e=>n.active&&!nI(e)&&!o&&t(!0),setIsAdjustingWidth:i}};function UI(e,t){var r,n;const o=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,i=t.isLeftColumn?e.header.background:o,a=i===Hb.Transparent?Jh.WHITE:i,l=xe(e.grid.border),s=xe(a);return s.isInvalid()||l.isInvalid()||1===l.a?e.grid.border:function(e,t,r){return xe(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(s,l,l.a).getRGB()}const KI=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{var l;const{interactions:s,translator:c}=TC(),{isActive:d}=aI(),{dataModel:p}=ER(),{styleService:f}=NC(),[,h]=u({});if(!(e.canBeResized&&!!s.active&&!d))return null;const m=UI(f,e);return ks.jsx(qS,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:m,updateWidthCallback:t=>{h({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{var r;i?null==p||p.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=a?a:0)*RR,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==p||p.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:c,columnLabel:null!==(l=e.label)&&void 0!==l?l:""}})};function XI(e){return Xy(e)}const JI=e=>e.scrollTop;function ZI(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 QI(e){return sl("MuiPaper",e)}ul("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 eA=["className","component","elevation","square","variant"],tA=MS("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 xr({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&&xr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ax("#fff",_S(t.elevation))}, ${ax("#fff",_S(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var rA=t.forwardRef((function(e,t){const r=XI({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Ir(r,eA),u=xr({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return ol({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},QI,o)})(u);return ks.jsx(tA,xr({as:o,ownerState:u,className:hl(c.root,n),ref:t},s))}));var nA=ul("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const oA=["center","classes","className"];let iA,aA,lA,sA,uA=e=>e;const cA=Zi(iA||(iA=uA`
|
|
102
102
|
0% {
|
|
103
103
|
transform: scale(0);
|
|
104
104
|
opacity: 0.1;
|
|
@@ -108,7 +108,7 @@ function cs(e,t){let r;return r=t?os(e).withConfig({displayName:t.label,shouldFo
|
|
|
108
108
|
transform: scale(1);
|
|
109
109
|
opacity: 0.3;
|
|
110
110
|
}
|
|
111
|
-
`)),
|
|
111
|
+
`)),dA=Zi(aA||(aA=uA`
|
|
112
112
|
0% {
|
|
113
113
|
opacity: 1;
|
|
114
114
|
}
|
|
@@ -116,7 +116,7 @@ function cs(e,t){let r;return r=t?os(e).withConfig({displayName:t.label,shouldFo
|
|
|
116
116
|
100% {
|
|
117
117
|
opacity: 0;
|
|
118
118
|
}
|
|
119
|
-
`)),
|
|
119
|
+
`)),pA=Zi(lA||(lA=uA`
|
|
120
120
|
0% {
|
|
121
121
|
transform: scale(1);
|
|
122
122
|
}
|
|
@@ -128,7 +128,7 @@ function cs(e,t){let r;return r=t?os(e).withConfig({displayName:t.label,shouldFo
|
|
|
128
128
|
100% {
|
|
129
129
|
transform: scale(1);
|
|
130
130
|
}
|
|
131
|
-
`)),
|
|
131
|
+
`)),fA=MS("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),hA=MS((function(e){const{className:r,classes:n,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:u,timeout:c}=e,[d,p]=t.useState(!1),f=hl(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:l,height:l,top:-l/2+a,left:-l/2+i},m=hl(n.child,d&&n.childLeaving,o&&n.childPulsate);return s||d||p(!0),t.useEffect((()=>{if(!s&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,s,c]),ks.jsx("span",{className:f,style:h,children:ks.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(sA||(sA=uA`
|
|
132
132
|
opacity: 0;
|
|
133
133
|
position: absolute;
|
|
134
134
|
|
|
@@ -171,4 +171,4 @@ function cs(e,t){let r;return r=t?os(e).withConfig({displayName:t.label,shouldFo
|
|
|
171
171
|
animation-iteration-count: infinite;
|
|
172
172
|
animation-delay: 200ms;
|
|
173
173
|
}
|
|
174
|
-
`),rA.rippleVisible,uA,550,(({theme:e})=>e.transitions.easing.easeInOut),rA.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),rA.child,rA.childLeaving,cA,550,(({theme:e})=>e.transitions.easing.easeInOut),rA.childPulsate,dA,(({theme:e})=>e.transitions.easing.easeInOut));var hA=x.forwardRef((function(e,t){const r=KI({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=No(r,nA),[l,s]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=x.useRef(!1),p=eu(),f=x.useRef(null),h=x.useRef(null),m=x.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,$c.jsx(fA,{classes:{ripple:Eu(o.ripple,rA.ripple),rippleVisible:Eu(o.rippleVisible,rA.rippleVisible),ripplePulsate:Eu(o.ripplePulsate,rA.ripplePulsate),child:Eu(o.child,rA.child),childLeaving:Eu(o.childLeaving,rA.childLeaving),childPulsate:Eu(o.childPulsate,rA.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=x.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m,p]),b=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.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,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return x.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),$c.jsx(pA,Do({className:Eu(rA.root,o.root,i),ref:h},a,{children:$c.jsx(Kp,{component:null,exit:!0,children:l})}))}));function mA(e){return gu("MuiButtonBase",e)}var gA=bu("MuiButtonBase",["root","disabled","focusVisible"]);const bA=["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"],vA=AS("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"},[`&.${gA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yA=x.forwardRef((function(e,t){const r=KI({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:I,tabIndex:A=0,TouchRippleProps:M,touchRippleRef:D,type:P}=r,_=No(r,bA),k=x.useRef(null),T=x.useRef(null),O=Xs(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=uu(),[z,$]=x.useState(!1);s&&z&&$(!1),x.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),k.current.focus()}})),[]);const[G,B]=x.useState(!1);x.useEffect((()=>{B(!0)}),[]);const W=G&&!u&&!s;function H(e,t,r=c){return Ks((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}x.useEffect((()=>{z&&d&&!u&&G&&T.current.pulsate()}),[u,d,z,G]);const V=H("start",E),Y=H("stop",m),U=H("stop",g),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",I),Z=H("stop",R),Q=H("stop",L),ee=H("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Ks((e=>{k.current||(k.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=k.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=Ks((e=>{d&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=Ks((e=>{d&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Xs(t,j,k),ue=Do({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=pu({root:["root",t&&"disabled",r&&"focusVisible"]},mA,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return $c.jsxs(vA,Do({as:ae,className:Eu(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:A,type:P},le,_,{children:[i,W?$c.jsx(hA,Do({ref:O,center:o},M)):null]}))}));var xA=yA;var SA=x.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=x.useState(null),l=Xs(x.isValidElement(r)?r.ref:null,t);if(Us((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Us((()=>{if(i&&!o)return Ys(t,i),()=>{Ys(t,null)}}),[t,i,o]),o){if(x.isValidElement(r)){const e={ref:l};return x.cloneElement(r,e)}return $c.jsx(x.Fragment,{children:r})}return $c.jsx(x.Fragment,{children:i?j.createPortal(r,i):i})}));const EA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],CA={entering:{opacity:1},entered:{opacity:1}},wA=x.forwardRef((function(e,t){const r=Jx(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=Bp}=e,v=No(e,EA),y=x.useRef(null),S=Xs(y,a.ref,t),E=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{XI(e);const n=JI({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),L=E(h),I=E((e=>{const t=JI({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),A=E(f);return $c.jsx(b,Do({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:A,onExiting:L,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,Do({style:Do({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},CA[e],m,a.props.style),ref:S},t))}))}));var RA=wA;function LA(e){return gu("MuiBackdrop",e)}bu("MuiBackdrop",["root","invisible"]);const IA=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],AA=AS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Do({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"}))),MA=x.forwardRef((function(e,t){var r,n,o;const i=KI({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=RA,transitionDuration:g}=i,b=No(i,IA),v=Do({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return pu({root:["root",r&&"invisible"]},LA,t)})(v),x=null!=(r=f.root)?r:c.root;return $c.jsx(m,Do({in:p,timeout:g},b,{children:$c.jsx(AA,Do({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:s,className:Eu(y.root,l,null==x?void 0:x.className),ownerState:Do({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var DA=MA;var PA=bu("MuiBox",["root"]);const _A=Kx(),kA=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=cs("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ly);return x.forwardRef((function(e,a){const l=ky(r),s=Oy(e),{className:u,component:c="div"}=s,d=No(s,Ny);return $c.jsx(i,Do({as:c,ref:a,className:Eu(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:Lv,defaultTheme:_A,defaultClassName:PA.root,generateClassName:hu.generate});var TA=kA;function OA(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function qA(e){return parseInt(Vs(e).getComputedStyle(e).paddingRight,10)||0}function NA(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&&OA(e,o)}))}function FA(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function jA(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Hs(e);return t.body===e?Vs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=cu(Hs(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${qA(n)+e}px`;const t=Hs(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${qA(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Hs(n).body;else{const t=n.parentElement,r=Vs(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 zA=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $A(e){const t=[],r=[];return Array.from(e.querySelectorAll(zA)).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 GA(){return!0}function BA(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=$A,isEnabled:a=GA,open:l}=e,s=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=Xs(t.ref,h),g=x.useRef(null);x.useEffect((()=>{l&&h.current&&(f.current=!r)}),[r,l]),x.useEffect((()=>{if(!l||!h.current)return;const e=Hs(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),x.useEffect((()=>{if(!l||!h.current)return;const e=Hs(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return $c.jsxs(x.Fragment,{children:[$c.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),$c.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const WA=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&&OA(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);NA(t,e.mount,e.modalRef,n,!0);const o=FA(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=FA(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=jA(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=FA(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&&OA(e.modalRef,t),NA(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&&OA(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function HA(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=WA,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=Xs(h,d),[g,b]=x.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=Ks((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Hs(f.current).body;o.add(S(),e),h.current&&E()})),w=x.useCallback((()=>o.isTopModal(S())),[o]),R=Ks((e=>{f.current=e,e&&(c&&w()?E():h.current&&OA(h.current,y))})),L=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{L()}),[L]),x.useEffect((()=>{c?C():v&&i||L()}),[c,L,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")))},A=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Cu(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Do({},r,t);return Do({role:"presentation"},n,{onKeyDown:I(n),ref:m})},getBackdropProps:(e={})=>Do({"aria-hidden":!0},e,{onClick:A(e),open:c}),getTransitionProps:()=>({onEnter:Bs((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Bs((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}function VA(e){return gu("MuiModal",e)}bu("MuiModal",["root","hidden","backdrop"]);const YA=["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"],UA=AS("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})=>Do({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),KA=AS(DA,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),XA=x.forwardRef((function(e,t){var r,n,o,i,a,l;const s=KI({name:"MuiModal",props:e}),{BackdropComponent:u=KA,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:I,open:A,slotProps:M,slots:D}=s,P=No(s,YA),_=Do({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:k,getBackdropProps:T,getTransitionProps:O,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=HA(Do({},_,{rootRef:t})),z=Do({},_,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return pu({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},VA,n)})(z),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),j){const{onEnter:e,onExited:t}=O();G.onEnter=e,G.onExited=t}const B=null!=(r=null!=(n=null==D?void 0:D.root)?n:g.Root)?r:UA,W=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,H=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,Y=Lu({elementType:B,externalSlotProps:H,externalForwardedProps:P,getSlotProps:k,additionalProps:{ref:t,as:m},ownerState:z,className:Eu(d,null==H?void 0:H.className,null==$?void 0:$.root,!z.open&&z.exited&&(null==$?void 0:$.hidden))}),U=Lu({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(Do({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Eu(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:z});return L||A||j&&!F?$c.jsx(SA,{ref:q,container:h,disablePortal:E,children:$c.jsxs(B,Do({},Y,{children:[!R&&u?$c.jsx(W,Do({},U)):null,$c.jsx(BA,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:A,children:x.cloneElement(f,G)})]}))}):null}));var JA=XA;var ZA=bu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const QA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function eM(e){return`scale(${e}, ${e**2})`}const tM={entering:{opacity:1,transform:eM(1)},entered:{opacity:1,transform:"none"}},rM="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),nM=x.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Bp}=e,g=No(e,QA),b=eu(),v=x.useRef(),y=Jx(),S=x.useRef(null),E=Xs(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)=>{XI(e);const{duration:r,delay:n,easing:o}=JI({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:rM?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),L=C(s),I=C(p),A=C((e=>{const{duration:t,delay:r,easing:n}=JI({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:rM?o:.666*o,delay:rM?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=eM(.75),c&&c(e)})),M=C(d);return $c.jsx(m,Do({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:A,onExited:M,onExiting:I,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,Do({style:Do({opacity:0,transform:eM(.75),visibility:"exited"!==e||a?void 0:"hidden"},tM[e],f,o.props.style),ref:E},t))}))}));nM.muiSupportAuto=!0;var oM=nM;var iM=x.createContext({});function aM(e){return gu("MuiList",e)}bu("MuiList",["root","padding","dense","subheader"]);const lM=["children","className","component","dense","disablePadding","subheader"],sM=AS("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})=>Do({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var uM=x.forwardRef((function(e,t){const r=KI({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=No(r,lM),c=x.useMemo((()=>({dense:a})),[a]),d=Do({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return pu({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},aM,t)})(d);return $c.jsx(iM.Provider,{value:c,children:$c.jsxs(sM,Do({as:i,className:Eu(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));var cM=bu("MuiListItemIcon",["root","alignItemsFlexStart"]);var dM=bu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const pM=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function fM(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function hM(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function mM(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 gM(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&mM(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var bM=x.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=No(e,pM),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Us((()=>{n&&p.current.focus()}),[n]),x.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${cu(Hs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=Xs(p,t);let m=-1;x.Children.forEach(i,((e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=x.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),x.cloneElement(e,t)}return e}));return $c.jsx(uM,Do({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Hs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),gM(t,n,s,l,fM);else if("ArrowUp"===r)e.preventDefault(),gM(t,n,s,l,hM);else if("Home"===r)e.preventDefault(),gM(t,null,s,l,fM);else if("End"===r)e.preventDefault(),gM(t,null,s,l,hM);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&mM(n,o);o.previousKeyMatched&&(s||gM(t,n,!1,l,fM,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function vM(e){return gu("MuiPopover",e)}bu("MuiPopover",["root","paper"]);const yM=["onEntering"],xM=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],SM=["slotProps"];function EM(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function CM(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function wM(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function RM(e){return"function"==typeof e?e():e}const LM=AS(JA,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IM=AS(tA,{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 AM=x.forwardRef((function(e,t){var r,n,o;const i=KI({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=oM,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=No(i.TransitionProps,yM),I=No(i,xM),A=null!=(r=null==y?void 0:y.paper)?r:b,M=x.useRef(),D=Xs(M,A.ref),P=Do({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return pu({root:["root"],paper:["paper"]},vM,t)})(P),k=x.useCallback((()=>{if("anchorPosition"===c)return u;const e=RM(l),t=(e&&1===e.nodeType?e:Hs(M.current).body).getBoundingClientRect();return{top:t.top+EM(t,s.vertical),left:t.left+CM(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=x.useCallback((e=>({vertical:EM(e,S.vertical),horizontal:CM(e,S.horizontal)})),[S.horizontal,S.vertical]),O=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===c)return{top:null,left:null,transformOrigin:wM(r)};const n=k();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Vs(RM(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:wM(r)}}),[l,c,k,T,m]),[q,N]=x.useState(g),F=x.useCallback((()=>{const e=M.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]);x.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);x.useEffect((()=>{g&&F()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),x.useEffect((()=>{if(!g)return;const e=Ws((()=>{F()})),t=Vs(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=f||(l?Hs(RM(l)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:LM,G=null!=(o=null==v?void 0:v.paper)?o:IM,B=Lu({elementType:G,externalSlotProps:Do({},A,{style:q?A.style:Do({},A.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:Eu(_.paper,null==A?void 0:A.className)}),W=Lu({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:P,className:Eu(_.root,p)}),{slotProps:H}=W,V=No(W,SM);return $c.jsx($,Do({},V,!xu($)&&{slotProps:H,disableScrollLock:R},{children:$c.jsx(E,Do({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:$c.jsx(G,Do({},B,{children:d}))}))}))}));function MM(e){return gu("MuiMenu",e)}bu("MuiMenu",["root","paper","list"]);const DM=["onEntering"],PM=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],_M={vertical:"top",horizontal:"right"},kM={vertical:"top",horizontal:"left"},TM=AS(AM,{shouldForwardProp:e=>IS(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),OM=AS(IM,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qM=AS(bM,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var NM=x.forwardRef((function(e,t){var r,n;const o=KI({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=No(o.TransitionProps,DM),S=No(o,PM),E=(()=>{const e=x.useContext(Hy);return null!=e&&e})(),C=Do({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return pu({root:["root"],paper:["paper"],list:["list"]},MM,t)})(C),R=i&&!s&&d,L=x.useRef(null);let I=-1;x.Children.map(a,((e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const A=null!=(r=b.paper)?r:OM,M=null!=(n=v.paper)?n:p,D=Lu({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,l]}),P=Lu({elementType:A,externalSlotProps:M,ownerState:C,className:w.paper});return $c.jsx(TM,Do({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?_M:kM,slots:{paper:A,root:b.root},slotProps:{root:D,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:Do({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:C},S,{classes:f,children:$c.jsx(qM,Do({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===I||s),autoFocusItem:R,variant:g},u,{className:Eu(w.list,u.className),children:a}))}))}));function FM(e){return gu("MuiMenuItem",e)}var jM=bu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const zM=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],$M=AS(xA,{shouldForwardProp:e=>IS(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})=>Do({},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"}},[`&.${jM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ix(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${jM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ix(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${jM.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ix(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})`:ix(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${jM.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${jM.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ZA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ZA.inset}`]:{marginLeft:52},[`& .${dM.root}`]:{marginTop:0,marginBottom:0},[`& .${dM.inset}`]:{paddingLeft:36},[`& .${cM.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Do({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${cM.root} svg`]:{fontSize:"1.25rem"}}))));var GM=x.forwardRef((function(e,t){const r=KI({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=No(r,zM),f=x.useContext(iM),h=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=x.useRef(null);Us((()=>{n&&m.current&&m.current.focus()}),[n]);const g=Do({},r,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Do({},a,pu({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},FM,a))})(r),v=Xs(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),$c.jsx(iM.Provider,{value:h,children:$c.jsx($M,Do({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Eu(b.focusVisible,s),className:Eu(b.root,d)},p,{ownerState:g,classes:b}))})}));const BM=AS(TA,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),WM=AS("div")({position:"absolute",left:0,bottom:0}),HM=AS("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...po,justifyContent:null!=e?e:po.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),VM=AS("div")((()=>({...po}))),YM=AS("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),UM=AS(NM)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),KM=AS(GM,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:`${e.spacing(.5)}`,margin:`${e.spacing(.25,.5)}`,padding:`${e.spacing(1,1.5)}`,display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:""+(t?"rgba(0, 0, 0, 0.05)":"transparent"),"&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),XM=AS("span")({textOverflow:"ellipsis",overflow:"hidden"}),JM=AS("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),ZM={[BE.SORTING]:!0,[BE.SELECTIONS]:!0,[BE.SEARCHING]:!0},QM=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:l,overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:u,tableWidth:c})=>{var d;const p=M(null),{styleService:f,layoutService:h}=qC(),{app:m,interactions:g,embed:b,translator:v,env:y}=kC(),{fontSize:x,fontFamily:S,fontStyle:E,fontWeight:C,textDecoration:w,color:R,background:L,hoverBackground:I,activeBackground:A}=f.header,D=M(null),{shouldShowLockIcon:P,shouldShowMenuIcon:_}=a,{open:k,setOpen:T,handleOpenMenu:O,setIsAdjustingWidth:q}=VI(),N={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},F={embed:b,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?h.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},j={app:m,qStateName:h.layout.qStateName},{labelTextAlign:z}=null!==(d=h.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==d?d:{},$=RI(z,"flex-start");return $c.jsxs(BM,{className:er,title:e.label,interactions:g,background:k?A:L,hoverBackground:I,shouldShowMenuIcon:_,isDimension:e.isDim,style:{...t,...ho,...yo(e,o,r,n,f.grid.border),color:R},"data-testid":"title-cell",onClick:O,children:[$c.jsxs(HM,{children:[P&&$c.jsx(VM,{children:$c.jsx(WI,{height:12})}),$c.jsx(YM,{fontFamily:S,fontSize:x,fontStyle:E,fontWeight:C,textDecoration:w,justifyContent:$,children:$c.jsx("span",{style:mo,children:e.label})})]}),e.isDim&&$c.jsxs($c.Fragment,{children:[$c.jsx(VE,{headerData:e,translator:v,anchorRef:D,open:k,setOpen:T,interactions:g,menuAvailabilityFlags:ZM,sortRelatedArgs:N,searchRelatedArgs:F,selectionRelatedArgs:j,shouldShowMenuIcon:_,env:y}),$c.jsx(WM,{ref:p}),$c.jsx(WM,{ref:D})]}),$c.jsx(UI,{cellInfo:{...e,isLeftColumn:!0},columnWidth:l,isLastColumn:n,overrideLeftGridWidth:s,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:u,tableWidth:c})]})},eD=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=qC();return e>0&&t>0?$c.jsx("div",{style:{...fo,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null};function tD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rD=(e,t)=>S.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){tD(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),S.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),nD=D(rD);function oD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const iD=(e,t)=>S.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){oD(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),S.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),S.createElement("use",{fillRule:"evenodd"})),aD=D(iD),lD=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{styleService:n}=qC(),{interactions:o,translator:i}=kC(),{isActive:a}=iI(),{dataModel:l}=SR(),{setIsAdjustingWidth:s}=HI([l]);if(!(!!o.active&&!a))return null;const u=YI(n,{isLeftColumn:!0});return $c.jsx(OS,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:u,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*wR))},confirmWidthCallback:n=>{var o;if(n.type===or.FitToContent)return void l.applyIndentModeColumnWidth({type:or.Auto});const i=Math.min(null!==(o=n.pixels)&&void 0!==o?o:t,e*wR);r(i),l.applyIndentModeColumnWidth({type:or.Pixels,pixels:i})},setIsAdjustingWidth:s,accessibilityRelatedArgs:{translator:i,columnLabel:i.get("SNPivotTable.IndentMode.Rows")}})};function sD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uD=(e,t)=>S.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){sD(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),S.createElement("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})),cD=D(uD),dD=({cell:e,changeSortOrder:t})=>{const r=M(null),n=M(null),{app:o,interactions:i,embed:a,translator:l,env:s}=kC(),{layoutService:u}=qC(),{open:c,setOpen:d,handleOpenMenu:p}=VI();return $c.jsxs(KM,{component:"div",onClick:p,isActive:c,children:[$c.jsx(XM,{children:e.label}),$c.jsxs(JM,{className:"indent-mode-dropdown-more",visible:c,children:[$c.jsx(cD,{}),e.isDim&&$c.jsxs($c.Fragment,{children:[$c.jsx(VE,{headerData:e,translator:l,anchorRef:r,open:c,setOpen:d,interactions:i,menuAvailabilityFlags:ZM,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:u.layout.qStateName},shouldShowMenuIcon:!1,env:s}),$c.jsx(WM,{ref:n}),$c.jsx(WM,{ref:r})]})]})]})},pD=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{var o,i;const a=(null===(o=r.at(-1))||void 0===o?void 0:o.id)===$C,l=e+1<r.length&&(null===(i=r[e+1])||void 0===i?void 0:i.id)===$C;return!(n&&a&&l)&&((null==t?void 0:t.id)!==$C&&e<r.length-1)},fD=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=qC(),{interactions:a,translator:l}=kC(),{dataModel:s,gridSectionsData:{headersData:u}}=SR(),[c,d]=A(!1),p=M(null),{headerCellHeight:f}=i,{color:h,background:m,hoverBackground:g,activeBackground:b,fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=i.header,{isAdjustingWidth:C}=HI([s]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${u.size.x}`,gridRow:u.size.y,zIndex:u.size.x-0};return $c.jsxs(BM,{isDimension:!0,background:c?b:m,interactions:a,hoverBackground:g,style:{...R,...ho,color:h},onClick:e=>a.active&&!rI(e)&&!C&&d(!c),"data-testid":"indentModeHeaderCellWrapper",children:[$c.jsxs(HM,{justifyContent:"flex-start",children:[$c.jsx(YM,{fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:$c.jsx("span",{style:mo,children:l.get("SNPivotTable.IndentMode.Rows")})}),c?$c.jsx(aD,{}):$c.jsx(nD,{}),$c.jsx(WM,{ref:p})]}),$c.jsx(UM,{open:c,anchorEl:p.current,children:e.map(((r,n)=>[r&&(null==r?void 0:r.id)!==$C&&$c.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:$c.jsx(dD,{cell:r,changeSortOrder:t})}),pD({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===u.size.y})&&$c.jsx(BS,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),$c.jsx(lD,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},hD={display:"grid",width:"fit-content"},mD=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:l})=>{const{layoutService:s}=qC(),{gridSectionsData:{headersData:u}}=SR();return $c.jsxs("div",{"data-testid":"HEADER_GRID",style:{...hD,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&$c.jsx(eD,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(s.isIndentModeEnabled&&u.size.x>1&&c+1===u.size.y){const r=u.data.at(-1);return d.push($c.jsx(fD,{menuItems:r[0],changeSortOrder:o,overrideLeftGridWidth:l,leftGridWidth:t,tableWidth:e},r[0][0].id)),d}return d=a.reduce(((t,a,d)=>{if(a){const p=i(d,a.isLocked,a.label),f=s.isIndentModeEnabled&&1===u.size.x;t.push($c.jsx(QM,{style:{width:r[d],height:n,gridColumn:s.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var gD=T(mD);const bD=(e,t,r,n)=>{const{layoutService:o}=qC();O((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},vD=(e,t)=>{xv((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},yD=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},xD=(e,t,r)=>{var n;const o=r?"flex-start":"center";var i,a;if(e.representation.type===jt.Image)return null!==(i=null===(a=e.representation.resolvedImagePosition)||void 0===a?void 0:a.horizontal)&&void 0!==i?i:o;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var l;const{labelTextAlign:r}=null!==(l=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==l?l:{};return RI(r,o)}const{textAlign:s}=null!==(n=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==n?n:{};return RI(s,o)},SD=()=>{},ED=({children:e,text:t,reactWindowStyle:r,cell:n,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c,index:d})=>{var p;const{styleService:f,layoutService:h}=qC(),{interactions:m}=kC(),{isLocked:g,createMouseDownHandler:b,createMouseOverHandler:v}=iI(),{showLastBorder:y}=o,x=g(n)||n.isLockedByDimension,S=!(x||!m.active||!m.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||c),E=S?b(d,(e=>yD(e,o))):void 0,C=S?v(d):void 0;return $c.jsx("div",{className:er,title:m.passive?t:void 0,style:{...r,...vo(a,l,f.grid.border,y),...xo({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:f.grid.divider}),...ho,padding:"0px 4px",cursor:mI(S),background:cI({styleService:f,isCellSelected:u,cell:n,isCellLocked:x}),zIndex:s?void 0:h.size.x-n.x,justifyContent:xD(n,h,s),display:"flex",...h.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(p=n.indentLevel)&&void 0!==p?p:0))}},"aria-hidden":"true",onMouseDown:E,onMouseOver:C,onKeyUp:SD,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,children:e})},CD=e=>e.stopPropagation(),wD=({href:e,text:t,interactions:r,color:n})=>S.createElement(Lm,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:CD,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t),RD=null==$?void 0:$();null==RD||RD.use(z),null==RD||RD.renderer.prio(["canvas"]);const LD=({children:e,textStyle:t})=>$c.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),ID=({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>{const{isActive:o}=iI(),{interactions:i}=kC();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...mo,...go(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:dI({cell:e,styleService:t,isCellSelected:r}),fontWeight:pI({cell:e,styleService:t}),fontStyle:fI({cell:e,styleService:t}),textDecoration:hI({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n});return e.representation.type!==jt.Image||e.isTotal?(e.representation.type!==jt.Link||o||e.isTotal||(a=$c.jsx(wD,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),$c.jsx(LD,{textStyle:l,children:a})):$c.jsx(wI,{representation:e.representation,isLeftColumn:n,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},AD=e=>{const t=e.isLeftColumn?"flex-start":"center";var r;return e.representation.type!==jt.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical},MD=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=qC(),{isSelected:i}=iI(),{isLeftColumn:a=!1,showLastBorder:l,itemCount:s,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=HI([r]),f=yD(e,r),h=a?e===s-1:u,m=a?u:e===s-1,g=HL(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return $c.jsx(VL,{style:{...t,background:r},index:e,isLastRow:h,isLastColumn:m,showLastBorder:l,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return $c.jsxs(ED,{text:f.representation.text,reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[$c.jsxs(YL,{verticalAlign:AD(f),width:UL(f.representation),right:f.isLeftColumn?void 0:4,children:[$c.jsx(vI,{isLeftColumn:a,isCellSelected:b,cell:f}),$c.jsx(ID,{isLeftColumn:a,isCellSelected:b,cell:f,styleService:n})]}),$c.jsx(UI,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Ut.Measures:Ut.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var DD=S.memo(MD,DL);const PD=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*n():r||void 0===a?n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*n()},_D=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},kD=(e,t)=>r=>{e.current&&(e.current[t]=r)},TD={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...fo},OD={overflow:"hidden",willChange:"auto",flexShrink:0},qD=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i}=DC(),{layoutService:a,styleService:{contentCellHeight:l,grid:{divider:s}}}=qC(),{qSize:u}=a.layout.qHyperCube,{gridSectionsData:{leftDimensionData:c},visibleDimensionsInfo:{visibleLeftDimensionInfo:d}}=SR();vD(e,c),bD(e,t,r,l);const p=i.rowsOnCurrentPage*l,f={...TD,borderColor:s,width:n.reduce(((e,t)=>e+t),0)};return $c.jsx("div",{style:f,"data-section-id":"LEFT_GRID",children:c.grid.map(((t,s)=>{const f=s===c.columnCount-1,h=KC(d[s]),{itemCount:m,estimatedItemSize:g,listValues:b}=_D(t,p,i.rowsOnCurrentPage,f),v=a.isIndentModeEnabled?()=>l:((e,t,r,n,o)=>i=>{const a=n?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,b,l,f,u.qcy);return $c.jsx(LL,{ref:kD(e,s),style:{...OD,flexGrow:f?1:0},height:r,width:n[s],itemCount:m,itemSize:v,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:f,itemCount:m,showLastBorder:o,listValues:b,totalDividerIndex:c.totalDividerIndex},itemKey:NI,estimatedItemSize:g,children:DD},h)}))})};var ND=T(qD);const FD={overflow:"hidden",willChange:"auto"},jD={...fo,borderWidth:"0px 0px 0px 1px"},zD=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{layoutService:a,styleService:{grid:{divider:l},headerCellHeight:s}}=qC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=SR(),d={...jD,borderColor:l,height:n};vD(e,c),bD(e,r,n,s);const p=a.size.x*i();return 0===c.rowCount?$c.jsx("div",{style:{width:r,height:n,...jD}}):$c.jsx("div",{style:d,"data-section-id":"TOP_GRID",children:c.grid.map(((n,l)=>{const s=l===c.rowCount-1,{itemCount:d,estimatedItemSize:f,listValues:h}=_D(n,p,a.size.x,s),m=(({layoutService:e,headersData:t,topRowIndex:r})=>{var n;const o=t.data[r],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y?null===(n=o[0][i])||void 0===n?void 0:n.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:a,headersData:u,topRowIndex:l}),g=m?KC(m):`empty ${l}`;return $c.jsx(LL,{ref:kD(e,l),style:FD,height:t(),width:r,itemCount:d,itemSize:PD({list:n,listValues:h,isLastRow:s,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:s,itemCount:d,showLastBorder:o,listValues:h,totalDividerIndex:c.totalDividerIndex},itemKey:NI,estimatedItemSize:f,children:DD},g)}))})};var $D=T(zD);const GD=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=qC(),r=HR(),n=(()=>{const{model:e}=kC(),t=P((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:l},gridRefs:{topGridRef:s,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:p},scrollbarsDimensions:{verticalScrollbarWidth:f,horizontalScrollbarHeight:h,resetHorizontalScrollbarHeight:m}}=WR(),{leftGridWidth:g,leftGridFullWidth:b,leftGridColumnWidths:v,rightGridFullWidth:y,showLastRightBorder:x,getRightGridColumnWidth:S,getHeaderCellsIconsVisibilityStatus:E,overrideLeftGridWidth:C}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=qC(),{gridSectionsData:{headersData:i}}=SR(),{measureText:a}=bv(o.header),l=NR({tableWidth:e}),s=FR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:l.leftGridWidth}),u=l.leftGridWidth+s.rightGridFullWidth+1<e,c=P(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const s=l.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+CR;return t&&d+20<=s&&(c=!0,d+=20),d+20<=s&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[l.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return _((()=>{const e=l.leftGridWidth===l.leftGridFullWidth,t=s.rightGridWidth===s.rightGridFullWidth;e&&t&&r()}),[r,l.leftGridWidth,l.leftGridFullWidth,s.rightGridWidth,s.rightGridFullWidth]),{...l,...s,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:f,resetHorizontalScrollbarHeight:m}),{gridScaffoldDimensions:w,headerGridDims:R,topGridDims:L,leftGridDims:I,dataGridDims:A,metadata:{everyThingFitsInTableRectHeight:M,scrollbarsVisibilityStatus:D}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const l=HR(),{pageInfo:s}=DC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=SR(),d=Math.min(l.height*wR,Math.max(l.height*wR-25,l.height-t-a)),p=l.width*wR,f=s.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,b=Math.min(p,r),v=l.width-p,y=Math.max(v,l.width-b),x=Math.min(d,m,g),{availableHeight:S,everyThingFitsInTableRectHeight:E,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=l.width,o=e+1+f+a,s=o-l.height<a||o<=l.height;return{availableHeight:s?o:l.height,everyThingFitsInTableRectHeight:s,everyThingFitsInTableRectWidth:n}})(x,b,y),w=S-d,R=Math.max(w,S-x),L=Math.min(R,f),I=Math.min(R,f),A=m+1+f,{visibilityStatus:M,metadata:{hasLeftGridOverflowX:D,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:l,bottomSectionFullHeight:s}}}=e,u=l>n,c=i>t,d=a>r,p=s>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:R}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:A-g}}});return{gridScaffoldDimensions:{width:l.width,height:l.height,gridTemplateColumns:`${b}px ${y}px`,gridTemplateRows:`${x}px ${R}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:y-1-i,height:-1},self:{width:Math.min(o,y)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:A-g+(!D&&P?a:0)},stickyWrapper:{width:b,height:R-1-a},self:{width:b,height:Math.max(t,L-(E?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:A-g+(!P&&D?a:0)},stickyWrapper:{width:y-1-i,height:R-1-a},self:{width:Math.min(o,y)-(C?1:0)-i,height:Math.max(t,I-(E?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:E,scrollbarsVisibilityStatus:M}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:g,leftGridOriginalWidth:b,rightGridOriginalWidth:y},scrollBarsDimensions:{verticalScrollbarWidth:f,horizontalScrollbarHeight:h}}),k=P((()=>e),[e]),T=P((()=>t),[t]);return(()=>{const{downloadService:e}=qC();_((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),$c.jsxs(YR,{style:w,children:[$c.jsx("div",{style:{overflow:"hidden"},ref:o,children:$c.jsx(gD,{tableWidth:r.width,leftGridWidth:g,columnWidths:v,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:R.height,changeSortOrder:n,overrideLeftGridWidth:C})}),$c.jsx(XR,{style:D.topGrid,origin:Xt.TOP_GRID,ref:i,children:$c.jsx(VR,{style:L.fullSizeWrapper,children:$c.jsx(JR,{style:L.stickyWrapper,children:$c.jsx($D,{topGridRef:s,rowHightCallback:k,...L.self,showLastBorder:{right:x,bottom:!1},getRightGridColumnWidth:S})})})}),$c.jsx(XR,{style:D.leftGrid,origin:Xt.LEFT_GRID,ref:a,children:$c.jsx(VR,{style:I.fullSizeWrapper,children:$c.jsx(JR,{style:I.stickyWrapper,children:$c.jsx(ND,{leftGridRef:u,...I.self,columnWidths:v,showLastBorder:{right:!1,bottom:M}})})})}),$c.jsx(XR,{style:D.dataGrid,origin:Xt.DATA_GRID,ref:l,children:$c.jsx(VR,{style:A.fullSizeWrapper,children:$c.jsx(JR,{style:A.stickyWrapper,children:$c.jsx($I,{dataGridRef:c,rowHightCallback:T,...A.self,showLastBorder:{right:x,bottom:M},getRightGridColumnWidth:S,verticalScrollDirection:d,horizontalScrollDirection:p})})})})]})},BD=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=kC(),{pageInfo:o,updatePageInfo:i,rect:a}=DC(),{layoutService:l}=qC(),{layout:s,hasData:u}=l;return $c.jsxs($c.Fragment,{children:[u&&$c.jsx(GD,{}),$c.jsx(FC,{}),$c.jsx(AC,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>i({page:e}),pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:s})]})},WD={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",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},HD=12,VD=14,YD=16,UD=24,KD=3,XD=300,JD=400,ZD=600,QD=700,eP={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};qo(WD.GREYSCALE_0,.05),qo(WD.GREEN_PALE,.5),qo(WD.BLUE_PALE,.5),qo(WD.GREEN_PALE,.5),qo(WD.BLUE_PALE,.5),qo(WD.GREEN_PALE,.5),qo(WD.BLUE_PALE,.5);var tP;function rP(){return rP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rP.apply(null,arguments)}qo(WD.GREEN_PALE,.5),qo(WD.BLUE_PALE,.5),qo(WD.GREEN_PALE,.5),qo(WD.BLUE_PALE,.5);var nP,oP=function(e){return x.createElement("svg",rP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),tP||(tP=x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function iP(){return iP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iP.apply(null,arguments)}var aP=function(e){return x.createElement("svg",iP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),nP||(nP=x.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 lP({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return S.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 sP=(e={})=>S.createElement(lP,{...e},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},S.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),S.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"}))),uP=(e={})=>S.createElement(lP,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),S.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),cP=(e={})=>S.createElement(lP,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},S.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),dP=(e={})=>S.createElement(lP,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),S.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"}))),pP=({className:e})=>S.createElement(lP,{fontSize:"small",className:e},S.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},S.createElement("g",{transform:"translate(4.324187, 1.300372)"},S.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"}),S.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"})))))),fP=(e={})=>S.createElement(lP,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:WD.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const hP={MuiAccordion:{styleOverrides:{root:{backgroundColor:WD.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:WD.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(oP,{"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 ${WD.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:WD.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${WD.MISC_FOCUS_BORDER}`,borderRadius:KD,backgroundColor:WD.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 ${WD.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:WD.WHITE,color:WD.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:KD},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${WD.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:WD.GREYSCALE_0_15,backgroundColor:WD.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:WD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${WD.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:WD.GREEN_PALE},"&:active":{backgroundColor:WD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:WD.GREEN_PALE,boxShadow:`0 0 0 3px ${jy(WD.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:WD.BLUE_PALE},"&:active":{backgroundColor:WD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:WD.BLUE_PALE,boxShadow:`0 0 0 3px ${jy(WD.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:KD,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:WD.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${WD.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:WD.GREYSCALE_0_15,backgroundColor:WD.GREYSCALE_100_60,"&:active":{backgroundColor:WD.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:WD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${WD.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:WD.PURPLE,"&.Mui-focusVisible":{borderColor:WD.PURPLE,boxShadow:`0 0 0 3px ${jy(WD.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:WD.GREEN,"&.Mui-focusVisible":{borderColor:WD.GREEN,boxShadow:`0 0 0 3px ${jy(WD.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:WD.BLUE,"&.Mui-focusVisible":{borderColor:WD.BLUE,boxShadow:`0 0 0 3px ${jy(WD.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:WD.ORANGE,"&.Mui-focusVisible":{borderColor:WD.ORANGE,boxShadow:`0 0 0 3px ${jy(WD.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:WD.RED,"&.Mui-focusVisible":{borderColor:WD.RED,boxShadow:`0 0 0 3px ${jy(WD.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:WD.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:WD.PURPLE_PALE},"&:active":{backgroundColor:WD.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:WD.PURPLE_PALE,boxShadow:`0 0 0 3px ${jy(WD.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:WD.GREEN_PALE},"&:active":{backgroundColor:WD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:WD.GREEN_PALE,boxShadow:`0 0 0 3px ${jy(WD.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:WD.BLUE_PALE},"&:active":{backgroundColor:WD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:WD.BLUE_PALE,boxShadow:`0 0 0 3px ${jy(WD.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:WD.ORANGE_PALE},"&:active":{backgroundColor:WD.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:WD.ORANGE_PALE,boxShadow:`0 0 0 3px ${jy(WD.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:WD.RED_PALE},"&:active":{backgroundColor:WD.RED_DARK},"&.Mui-focusVisible":{borderColor:WD.RED_PALE,boxShadow:`0 0 0 3px ${jy(WD.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:WD.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:WD.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:KD,boxShadow:`inset 0 0 0 2px ${WD.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(aP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:HD,borderRadius:KD,color:WD.TEXT_PRIMARY,backgroundColor:WD.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:WD.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${WD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:WD.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:WD.GREYSCALE_0_05,color:WD.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:WD.GREEN,borderColor:WD.GREEN},"&.MuiChip-outlinedInfo":{color:WD.BLUE,borderColor:WD.BLUE},"&.MuiChip-outlinedWarning":{color:WD.ORANGE,borderColor:WD.ORANGE},"&.MuiChip-outlinedError":{color:WD.RED,borderColor:WD.RED}},outlined:{border:`solid 1px ${WD.GREYSCALE_0_15}`,backgroundColor:WD.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:KD,boxShadow:"none",backgroundColor:WD.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:WD.GREEN,borderColor:WD.GREEN},outlinedSecondary:{color:WD.BLUE,borderColor:WD.BLUE},label:{fontFamily:eP.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(aP,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(oP,{"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:KD},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:KD,fontSize:VD,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:WD.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${WD.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:WD.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:WD.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:WD.GREYSCALE_0_05}}},popupIndicator:{borderRadius:KD,border:`solid 1px ${WD.GREYSCALE_0_15}`,color:WD.GREYSCALE_0_60,marginRight:0,width:UD,height:UD},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${WD.GREYSCALE_0_15}`},clearIndicator:{borderRadius:KD,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:WD.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:VD}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:HD,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:WD.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:WD.GREYSCALE_25,fontSize:HD,fontFamily:eP.FONT_FAMILY,fontWeight:ZD,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:WD.TEXT_PRIMARY},"&.Mui-error":{color:WD.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:WD.TEXT_SECONDARY,content:"'(optional)'",fontWeight:JD,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:WD.TEXT_SECONDARY,content:"'(required)'",fontWeight:JD,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:VD,lineHeight:"16px",backgroundColor:WD.WHITE,borderRadius:KD,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${WD.GREYSCALE_0_05}`,borderColor:WD.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${WD.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${WD.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${WD.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${WD.RED}`,boxShadow:`0px 0px 0px 1px ${WD.RED}, inset 0 2px 0 0 ${WD.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${WD.GREYSCALE_0_10}`,borderColor:WD.GREYSCALE_0_10,backgroundColor:WD.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:WD.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:WD.GREYSCALE_0_15,borderRadius:KD,boxShadow:`inset 0 2px 0 0 ${WD.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(oP,{...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:WD.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:WD.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:WD.GREYSCALE_0_03},"&:active":{backgroundColor:WD.GREYSCALE_0_10},"&:focus":{backgroundColor:WD.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${WD.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${WD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:WD.GREYSCALE_0_30,"&:hover":{backgroundColor:WD.GREYSCALE_0_0,borderColor:WD.GREYSCALE_0_15},"& ~svg":{color:WD.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${WD.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:KD}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:WD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${WD.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:WD.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:VD,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:HD,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:HD,fontWeight:ZD,color:WD.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:ZD}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${WD.GREYSCALE_0_15}, 0px 0px 0px 1px ${WD.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(cP,null),checkedIcon:S.createElement(dP,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:WD.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${WD.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:WD.GREEN_PALE,boxShadow:`0 0 0 3px ${jy(WD.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:WD.BLUE_PALE,boxShadow:`0 0 0 3px ${jy(WD.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:WD.GREYSCALE_0_20}},"&.Mui-disabled":{fill:WD.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(fP,null),checkedIcon:S.createElement(sP,null),indeterminateIcon:S.createElement(uP,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:KD,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:WD.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:WD.GREYSCALE_0_55,color:WD.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:WD.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:WD.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:WD.GREYSCALE_0_55,"&:hover":{color:WD.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:WD.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:WD.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:VD,color:WD.TEXT_PRIMARY,lineHeight:"16px",fontWeight:ZD},secondary:{fontSize:HD,color:WD.GREYSCALE_45,fontWeight:JD,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:VD,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:VD,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:WD.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:HD,borderBottom:`solid 1px ${WD.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:VD,color:WD.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:WD.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:WD.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:WD.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:WD.RED}}},"&.Mui-focusVisible":{backgroundColor:WD.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:WD.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:WD.GREEN,height:"24px","&.Mui-disabled":{color:WD.GREYSCALE_0_15}},rail:{backgroundColor:WD.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${WD.GREYSCALE_0_05}`,borderRadius:KD,boxShadow:`inset 0px 0px 0px 1px ${WD.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${WD.GREYSCALE_0_05}`,borderRadius:KD},thumb:{height:"16px",width:"16px",borderRadius:KD,backgroundColor:WD.WHITE,boxShadow:`0px 1px 2px 0px ${WD.GREYSCALE_0_15}, 0px 0px 0px 1px ${WD.GREYSCALE_0_05}`,"&:hover":{borderRadius:KD,boxShadow:`0 2px 4px 0 ${WD.GREYSCALE_0_30}, 0 0 0 1px ${WD.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${WD.GREYSCALE_0_15}, 0 0 0 1px ${WD.GREYSCALE_0_06}, 0 0 0 2px ${WD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${WD.GREYSCALE_0_15}, 0 0 0 1px ${WD.GREYSCALE_0_06}, 0 0 0 2px ${WD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:WD.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:WD.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:WD.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:WD.GREYSCALE_0_15},markLabel:{color:WD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:WD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:WD.WHITE,color:WD.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:WD.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:WD.GREEN_PALE,boxShadow:`0 0 0 3px ${jy(WD.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:WD.BLUE_PALE,boxShadow:`0 0 0 3px ${jy(WD.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:WD.GREYSCALE_0_15,borderRadius:KD},thumb:{height:"16px",width:"16px",borderRadius:KD,backgroundColor:WD.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:VD,fontWeight:ZD,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${WD.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${WD.MISC_FOCUS_BORDER}`,backgroundColor:WD.GREYSCALE_0_03,borderRadius:KD},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:WD.GREYSCALE_25,"&.Mui-selected":{color:WD.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:VD,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:KD,"&:hover":{backgroundColor:`${WD.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${WD.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${WD.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:KD,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:WD.GREYSCALE_0_05},"&:hover":{backgroundColor:`${WD.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${WD.GREYSCALE_85}`,borderRight:`1px solid ${WD.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:ZD,backgroundColor:WD.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:WD.GREYSCALE_98,borderBottom:`1px solid ${WD.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${WD.GREYSCALE_85}`,borderTop:`1px solid ${WD.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:WD.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:WD.GREYSCALE_0_05,"&:hover":{backgroundColor:WD.GREYSCALE_0_03}},"&&:hover":{backgroundColor:WD.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(pP,{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 ${WD.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:VD,borderRadius:KD,padding:"7px 16px",border:`1px solid ${WD.GREYSCALE_0_15}`,backgroundColor:WD.GREYSCALE_100_60,color:WD.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:WD.GREYSCALE_0_10,border:`1px solid ${WD.GREYSCALE_0_30}`},"&:hover":{backgroundColor:WD.GREYSCALE_0_03,border:`1px solid ${WD.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:WD.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${WD.MISC_FOCUS_BORDER}`,border:`1px solid ${WD.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:WD.GREYSCALE_25,backgroundColor:WD.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:WD.GREYSCALE_0_10,border:`1px solid ${WD.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:HD,height:24,width:24,padding:7},sizeLarge:{fontSize:YD,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:VD,borderRadius:KD}}},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:WD.GREYSCALE_20},tooltip:{backgroundColor:WD.GREYSCALE_20,fontSize:HD,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var mP=e=>hP;const gP={mode:"light",primary:{ultraLight:WD.GREEN_ULTRA_LIGHT,light:WD.GREEN_PALE,main:WD.GREEN,dark:WD.GREEN_DARK,extraDark:WD.GREEN_EXTRA_DARK,contrastText:WD.WHITE},secondary:{ultraLight:WD.BLUE_ULTRA_LIGHT,light:WD.BLUE_PALE,main:WD.BLUE,dark:WD.BLUE_DARK,extraDark:WD.BLUE_EXTRA_DARK,contrastText:WD.WHITE},error:{ultraLight:WD.RED_ULTRA_LIGHT,light:WD.RED_PALE,main:WD.RED,dark:WD.RED_DARK,extraDark:WD.RED_EXTRA_DARK,contrastText:WD.WHITE},warning:{ultraLight:WD.ORANGE_ULTRA_LIGHT,light:WD.ORANGE_PALE,main:WD.ORANGE,dark:WD.ORANGE_DARK,extraDark:WD.ORANGE_EXTRA_DARK,contrastText:WD.WHITE},success:{ultraLight:WD.GREEN_ULTRA_LIGHT,light:WD.GREEN_PALE,main:WD.GREEN,dark:WD.GREEN_DARK,extraDark:WD.GREEN_EXTRA_DARK,contrastText:WD.WHITE},info:{ultraLight:WD.BLUE_ULTRA_LIGHT,light:WD.BLUE_PALE,main:WD.BLUE,dark:WD.BLUE_DARK,extraDark:WD.BLUE_EXTRA_DARK,contrastText:WD.WHITE},text:{primary:WD.TEXT_PRIMARY,secondary:WD.TEXT_SECONDARY,disabled:WD.GREYSCALE_0_30},action:{hover:WD.GREYSCALE_0_03,hoverOpacity:.03,selected:WD.GREYSCALE_0_05,selectedOpacity:.05,focus:WD.MISC_FOCUS_BORDER},amethyst:{ultraLight:WD.WHITE,main:WD.PURPLE,light:WD.PURPLE_PALE,dark:WD.PURPLE_DARK,extraDark:WD.GREYSCALE_0_0,contrastText:WD.WHITE},background:{paper:WD.WHITE,default:WD.GREYSCALE_95},divider:WD.GREYSCALE_0_15},bP=e=>gP,vP=(e="light")=>({components:mP(),palette:bP(),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:VD,fontWeightLight:XD,fontWeightRegular:JD,fontWeightMedium:ZD,fontWeightBold:QD,htmlFontSize:VD,fontFamily:eP.FONT_FAMILY,button:{fontWeight:ZD,fontSize:VD,textTransform:"none"},body1:{fontSize:YD,lineHeight:"24px"},body2:{fontSize:VD,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:UD,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:YD,fontWeight:ZD,lineHeight:"16px"},h6:{fontSize:VD,fontWeight:ZD,lineHeight:"16px"},caption:{color:WD.TEXT_SECONDARY},subtitle1:{fontSize:VD,color:WD.TEXT_SECONDARY},subtitle2:{fontSize:HD,color:WD.TEXT_SECONDARY}},shape:{borderRadius:KD}});const yP=(e,{selections:t,baseObjects:r,coreServices:n,nebulaObjects:o})=>{const i=function(e){var t;const r=vP();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),Kx({...r,direction:e})}("ltr");e.render($c.jsx(S.StrictMode,{children:$c.jsx(DS,{theme:i,children:$c.jsx(TC,{...o,children:$c.jsx(PC,{...r,children:$c.jsx(aI,{selections:t,children:$c.jsx(NC,{...n,children:$c.jsx(ER,{children:$c.jsx(BD,{})})})})})})})}))};var xP,SP,EP,CP;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(xP||(xP={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(SP||(SP={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(EP||(EP={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(CP||(CP={}));const wP=e=>e?`${parseInt(e,10)}px`:void 0,RP=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?uo.Transparent:r}},LP=(e,t)=>+(parseInt(e,10)*so*t+8).toFixed(2),IP=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ao:"normal",AP=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",MP=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function DP(e,t){return o((()=>e),t)}const PP={},_P=e=>{const t=o((()=>({current:PP})),[]);return t.current=t.current===PP?e:t.current,t},kP=({fontStyle:e,fontWeight:t,fontSize:r,fontFamily:n})=>t?`${e} ${t} ${r} ${n}`:`${e} ${r} ${n}`,TP=(e,t,r)=>{var n,i;const a=null!==(n=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==n&&n,l=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i,s=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(null==r?void 0:r.qHyperCubeDef.qSortbyYValue),u=o((()=>{var e;return null==r||null===(e=r.qHyperCubeDef.qDimensions)||void 0===e?void 0:e.map((e=>e.qDef.qSortCriterias))}),[r]);return o((()=>(({layout:e,flags:t,qShowTotalsAbove:r,qAlwaysFullyExpanded:n,isSortedByFirstMeasure:o,qSortCriterias:i})=>{var a,l,s,u;const{qHyperCube:c,nullValueRepresentation:d,snapshotData:p}=e,{qNoOfLeftDims:f,qEffectiveInterColumnSortOrder:h,qMeasureInfo:m,qDimensionInfo:g}=c,b=!!p,v=null!==(a=null==p||null===(l=p.content)||void 0===l?void 0:l.rowsPerPage)&&void 0!==a?a:15e3,y={x:Math.min(e.qHyperCube.qSize.qcx,lo),y:Math.min(e.qHyperCube.qSize.qcy,v)},x=h.slice(0,f),S=e=>x.some((t=>t===e)),E=S(zC),C=new Map(h.map((e=>{var t;return[null!==(t=g[e])&&void 0!==t?t:zC,e]}))),w=m.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==d?void 0:d.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(E)return 0;const r=e%w.length;return t?r:m.findIndex((e=>e===w[r]))},getDimensionInfo:e=>e===zC?zC:g[e],getDimensionInfoIndex:e=>{var t;return null!==(t=C.get(e))&&void 0!==t?t:-1},getSortCriteriaForDimension:e=>null==i?void 0:i[e],size:y,isSnapshot:b,hasLimitedData:!b&&y.x<e.qHyperCube.qSize.qcx,hasData:y.x>0&&y.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:r,hasPseudoDimOnLeft:E,leftDimensionInfoIndexes:x,isLeftDimension:S,isFullyExpanded:n,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:w,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(s=e.qHyperCube.indentModeColumnWidth)&&void 0!==s?s:{type:or.Auto,pixels:nr.PixelsDefault,percentage:nr.PercentageDefault},isSortedByFirstMeasure:o,searchSortFromDimension:"inherit"===(null===(u=e.search)||void 0===u?void 0:u.sorting)}})({layout:e,flags:t,qShowTotalsAbove:a,qAlwaysFullyExpanded:l,isSortedByFirstMeasure:s,qSortCriterias:u})),[e,a,l,s,t,u])},OP=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=_P(e);return t.current=e,t})(mR(o));return hv((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,u,c)||((e,t,r,n)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(n,l.qcx)||c<Math.min(r,l.qcy)})(i,n,u,c))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,l=Math.min(a+n.rowsPerPage,r.qcy),s=Math.min(lo,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),r>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,r,i.qHyperCube.qSize,n,u,c);return t?e.getHyperCubePivotData(jC,gR(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},qP=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),NP=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:qP({rowsPerPage:r,totalRowCount:e,page:t})}),FP=15,jP=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{var i;return s((async e=>{if(!e.snapshotData||!n||e.snapshotData.content)return e;if(null!=n&&n.getHyperCubePivotData){const{scrollTop:i,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(n-FP,0),u=Math.max(l+o-FP,l,0),c=lo-s,d=l+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=mR(r);return{qLeft:s,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:s,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=gR(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(jC,[d,...c]),scrollTop:i,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s,page:o.page,rowsPerPage:o.rowsPerPage},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),u((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var zP={SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const $P=()=>{const e=c(),t=e.language();return o((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(zP).forEach((t=>{e.add(zP[t])}))}}(e)),[e]),{translator:e,language:t}},GP=e=>{const{flags:n}=e,a=d(),s=(e=>{const t=o((()=>vv(e)),[e]);return r((()=>()=>t.unmount()),[t]),t})(a),u=p(),c=f(),x=h(),S=m(),E=g(),C=b(),w=(()=>{const{viewState:e}=l(),t=_P(new Set),r=void 0!==e,{promise:n,resolve:a}=o((()=>KL()),[]),s=DP((e=>{t.current.add(e)}),[t]),u=DP(Et((async()=>{await Promise.all(t.current),a()}),1e3),[a,t]);return i((async()=>{r&&await n}),[n,r]),o((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:u,waitForPromise:s})),[u,r,e,s])})(),[R,L]=((e,t)=>hv((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(c,u),I=TP(u,n,R),A=v(),M=fv(u,a),{translator:D,language:P}=$P(),{pageInfo:_,updatePageInfo:k}=((e,n)=>{const{size:o,layout:{qHyperCube:{qSize:i}}}=e,a=n.isDownloadedAsPDForImage||e.isSnapshot,l=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[s,u]=t((()=>{const t=((e,t)=>{var r,n,o,i;return t.isDownloadedAsPDForImage?null!==(r=null===(n=t.viewState)||void 0===n?void 0:n.renderPage)&&void 0!==r?r:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,n);return{page:t,shouldShowPagination:i.qcy>o.y&&!a,...NP(i.qcy,t,l)}}));return r((()=>{u((t=>({...t,...NP(e.layout.qHyperCube.qSize.qcy,t.page,l),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y&&!a})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,u,a,l]),r((()=>{const{page:e,totalPages:t}=s;if(e+1>t){const e=t-1,r=qP({...s,page:e});u({...s,page:e,rowsOnCurrentPage:r})}}),[s]),{pageInfo:s,updatePageInfo:e=>u({...s,...e,rowsOnCurrentPage:qP({...s,...e})})}})(I,w),T=((e,t,r)=>o((()=>((e,t)=>{var r,n,o,i,a,l,s,u;if(e.isDownloadedAsPDForImage){var c,d,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(c=null==t?void 0:t.scrollTop)&&void 0!==c?c:0,scrollLeft:null!==(d=null==t?void 0:t.scrollLeft)&&void 0!==d?d:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.scrollTop)&&void 0!==r?r:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(s=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==s?s:0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(_,u,w),O=jP({rect:y(),layoutService:I,viewService:T,model:c,pageInfo:_}),[q,N]=OP({model:c,layoutService:I,viewService:T,pageInfo:_,rect:O}),F=o((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,I,A,M,D,P,_,k,T,O,q,N,F,j,z,$,G,B,W,H,V,Y,U,K;const X=null===(n=t.layout.components)||void 0===n?void 0:n.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,re=null==X?void 0:X.nullValues,ne=null==X?void 0:X.grid,oe=(t,r,n)=>e.getStyle(t,r,n),ie=+(null!==(o=null!==(i=null==ne?void 0:ne[xP.LineClamp])&&void 0!==i?i:oe(SP.Grid,EP.Grid,CP.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==ne?void 0:ne[xP.ColumnLineClamp])&&void 0!==l?l:oe(SP.Grid,EP.Grid,CP.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=RP(e,null==J?void 0:J[xP.Background]))&&void 0!==u?u:oe(SP.Dimension,EP.LabelName,CP.BackgroundColor))&&void 0!==s?s:uo.Transparent,se={header:{fontSize:null!==(c=null!==(d=wP(null==J?void 0:J[xP.FontSize]))&&void 0!==d?d:oe(SP.Dimension,EP.LabelName,CP.FontSize))&&void 0!==c?c:oo,fontFamily:null!==(p=null!==(f=null==J?void 0:J[xP.FontFamily])&&void 0!==f?f:oe(SP.Dimension,EP.LabelName,CP.FontFamily))&&void 0!==p?p:io,fontWeight:IP(null==J?void 0:J[xP.FontStyle],ao),fontStyle:AP(null==J?void 0:J[xP.FontStyle]),textDecoration:MP(null==J?void 0:J[xP.FontStyle]),color:null!==(h=null!==(m=RP(e,null==J?void 0:J[xP.FontColor]))&&void 0!==m?m:oe(SP.Dimension,EP.LabelName,CP.Color))&&void 0!==h?h:ib.TEXT,background:le,hoverBackground:ov(le,ir),activeBackground:ov(le,ar)},dimensionValues:{fontSize:null!==(g=null!==(b=wP(null==Z?void 0:Z[xP.FontSize]))&&void 0!==b?b:oe(SP.Dimension,EP.LabelValue,CP.FontSize))&&void 0!==g?g:oo,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[xP.FontFamily])&&void 0!==y?y:oe(SP.Dimension,EP.LabelValue,CP.FontFamily))&&void 0!==v?v:io,fontWeight:IP(null==Z?void 0:Z[xP.FontStyle],void 0),fontStyle:AP(null==Z?void 0:Z[xP.FontStyle]),textDecoration:MP(null==Z?void 0:Z[xP.FontStyle]),color:null!==(x=null!==(S=RP(e,null==Z?void 0:Z[xP.FontColor]))&&void 0!==S?S:oe(SP.Dimension,EP.LabelValue,CP.Color))&&void 0!==x?x:ib.TEXT,background:null!==(E=null!==(C=RP(e,null==Z?void 0:Z[xP.Background]))&&void 0!==C?C:oe(SP.Dimension,EP.LabelValue,CP.BackgroundColor))&&void 0!==E?E:uo.Transparent},measureValues:{fontSize:null!==(w=null!==(R=wP(null==Q?void 0:Q[xP.FontSize]))&&void 0!==R?R:oe(SP.Measure,EP.LabelValue,CP.FontSize))&&void 0!==w?w:oo,fontFamily:null!==(L=null!==(I=null==Q?void 0:Q[xP.FontFamily])&&void 0!==I?I:oe(SP.Measure,EP.LabelValue,CP.FontFamily))&&void 0!==L?L:io,fontWeight:IP(null==Q?void 0:Q[xP.FontStyle],"normal"),fontStyle:AP(null==Q?void 0:Q[xP.FontStyle]),textDecoration:MP(null==Q?void 0:Q[xP.FontStyle]),color:null!==(A=null!==(M=RP(e,null==Q?void 0:Q[xP.FontColor]))&&void 0!==M?M:oe(SP.Measure,EP.LabelValue,CP.Color))&&void 0!==A?A:uo.FontSecondary,background:null!==(D=null!==(P=RP(e,null==Q?void 0:Q[xP.Background]))&&void 0!==P?P:oe(SP.Measure,EP.LabelValue,CP.BackgroundColor))&&void 0!==D?D:uo.Transparent},measureLabels:{fontWeight:IP(null==ee?void 0:ee[xP.FontStyle],"normal"),fontStyle:AP(null==ee?void 0:ee[xP.FontStyle]),textDecoration:MP(null==ee?void 0:ee[xP.FontStyle]),color:null!==(_=null!==(k=RP(e,null==ee?void 0:ee[xP.FontColor]))&&void 0!==k?k:oe(SP.Measure,EP.LabelName,CP.Color))&&void 0!==_?_:uo.FontSecondary,background:null!==(T=null!==(O=RP(e,null==ee?void 0:ee[xP.Background]))&&void 0!==O?O:oe(SP.Measure,EP.LabelName,CP.BackgroundColor))&&void 0!==T?T:uo.Transparent},totalValues:{fontWeight:IP(null==te?void 0:te[xP.FontStyle],ao),fontStyle:AP(null==te?void 0:te[xP.FontStyle]),textDecoration:MP(null==te?void 0:te[xP.FontStyle]),color:null!==(q=null!==(N=RP(e,null==te?void 0:te[xP.FontColor]))&&void 0!==N?N:oe(SP.Total,EP.LabelValue,CP.Color))&&void 0!==q?q:ib.TEXT,background:null!==(F=null!==(j=RP(e,null==te?void 0:te[xP.Background]))&&void 0!==j?j:oe(SP.Total,EP.LabelValue,CP.BackgroundColor))&&void 0!==F?F:uo.Transparent},nullValues:{fontWeight:IP(null==re?void 0:re[xP.FontStyle],"normal"),fontStyle:AP(null==re?void 0:re[xP.FontStyle]),textDecoration:MP(null==re?void 0:re[xP.FontStyle]),color:null!==(z=null!==($=RP(e,null==re?void 0:re[xP.FontColor]))&&void 0!==$?$:oe(SP.Null,EP.LabelValue,CP.Color))&&void 0!==z?z:ib.TEXT,background:null!==(G=null!==(B=RP(e,null==re?void 0:re[xP.Background]))&&void 0!==B?B:oe(SP.Null,EP.LabelValue,CP.BackgroundColor))&&void 0!==G?G:uo.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(H=RP(e,null==ne?void 0:ne[xP.Border]))&&void 0!==H?H:oe(SP.Grid,EP.Grid,CP.BorderColor))&&void 0!==W?W:uo.DividerLight,divider:null!==(V=null!==(Y=RP(e,null==ne?void 0:ne[xP.Divider]))&&void 0!==Y?Y:oe(SP.Grid,EP.Divider,CP.BorderColor))&&void 0!==V?V:uo.DividerDark,background:null!==(U=null!==(K=RP(e,null==ne?void 0:ne[xP.Background]))&&void 0!==K?K:oe(SP.Grid,EP.Grid,CP.BackgroundColor))&&void 0!==U?U:uo.Transparent}};return se.headerCellHeight=Math.max(LP(se.header.fontSize,ae),LP(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(LP(se.measureValues.fontSize,ie),LP(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=LP(se.dimensionValues.fontSize,1),se.selectedColors=av({desiredColor:se.dimensionValues.color,theme:e,flags:r}),se})(M,I,n)),[M,I,n]),j=(e=>o((()=>[...new Set([kP(e.header),kP(e.dimensionValues),kP({...e.dimensionValues,...e.measureLabels}),kP({...e.dimensionValues,...e.nullValues}),kP({...e.dimensionValues,...e.totalValues}),kP(e.measureValues),kP({...e.measureValues,...e.nullValues}),kP({...e.measureValues,...e.totalValues})])]),[e]))(F),z=(e=>{const[t,r]=i((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return r?(console.warn("Failed to load font:",r),!0):!!t})(j);Rv(),r((()=>{!N&&c&&O&&A&&T&&I&&F&&!!q&&!L&&z&&yP(s,{selections:A,baseObjects:{rect:O,pageInfo:_,qPivotDataPages:q,updatePageInfo:k},nebulaObjects:{env:e,app:x,model:c,embed:S,theme:M,keyboard:E,translator:D,interactions:C},coreServices:{styleService:F,viewService:T,layoutService:I,downloadService:w}})}),[c,x,O,C,A,T,I,w,N,q,F,s,z,D,P,_,k,R,L,S,E,M,e])},BP={version:"3.15.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},WP=()=>({...BP,qHyperCubeDef:{...BP.qHyperCubeDef,qIndentMode:!1}})}}}));
|
|
174
|
+
`),nA.rippleVisible,cA,550,(({theme:e})=>e.transitions.easing.easeInOut),nA.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),nA.child,nA.childLeaving,dA,550,(({theme:e})=>e.transitions.easing.easeInOut),nA.childPulsate,pA,(({theme:e})=>e.transitions.easing.easeInOut));var mA=t.forwardRef((function(e,r){const n=XI({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Ir(n,oA),[s,u]=t.useState([]),c=t.useRef(0),d=t.useRef(null);t.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=t.useRef(!1),f=Va(),h=t.useRef(null),m=t.useRef(null),g=t.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,ks.jsx(hA,{classes:{ripple:hl(i.ripple,nA.ripple),rippleVisible:hl(i.rippleVisible,nA.rippleVisible),ripplePulsate:hl(i.ripplePulsate,nA.ripplePulsate),child:hl(i.child,nA.child),childLeaving:hl(i.childLeaving,nA.childLeaving),childPulsate:hl(i.childPulsate,nA.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=t.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g,f]),v=t.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=t.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{y(e,t)}));h.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return t.useImperativeHandle(r,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),ks.jsx(fA,xr({className:hl(nA.root,i.root,a),ref:m},l,{children:ks.jsx($c,{component:null,exit:!0,children:s})}))}));function gA(e){return sl("MuiButtonBase",e)}var bA=ul("MuiButtonBase",["root","disabled","focusVisible"]);const vA=["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"],yA=MS("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"},[`&.${bA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xA=t.forwardRef((function(e,r){const n=XI({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:I,tabIndex:A=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=Ir(n,vA),k=t.useRef(null),T=t.useRef(null),O=Ga(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=tl(),[z,$]=t.useState(!1);u&&z&&$(!1),t.useImperativeHandle(o,(()=>({focusVisible:()=>{$(!0),k.current.focus()}})),[]);const[G,B]=t.useState(!1);t.useEffect((()=>{B(!0)}),[]);const W=G&&!c&&!u;function H(e,t,r=d){return $a((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}t.useEffect((()=>{z&&p&&!c&&G&&T.current.pulsate()}),[c,p,z,G]);const V=H("start",E),Y=H("stop",g),U=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",I),Z=H("stop",R),Q=H("stop",L),ee=H("stop",(e=>{F(e),!1===q.current&&$(!1),h&&h(e)}),!1),te=$a((e=>{k.current||(k.current=e.currentTarget),N(e),!0===q.current&&($(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=k.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=t.useRef(!1),oe=$a((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))})),ie=$a((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.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=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(_.href||_.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=Ga(r,j,k),ue=xr({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:A,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=ol({root:["root",t&&"disabled",r&&"focusVisible"]},gA,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ks.jsxs(yA,xr({as:ae,className:hl(ce.root,l),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:A,type:P},le,_,{children:[a,W?ks.jsx(mA,xr({ref:O,center:i},M)):null]}))}));var SA=xA;var EA=t.forwardRef((function(e,r){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=t.useState(null),s=Ga(t.isValidElement(n)?n.ref:null,r);if(za((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),za((()=>{if(a&&!i)return ja(r,a),()=>{ja(r,null)}}),[r,a,i]),i){if(t.isValidElement(n)){const e={ref:s};return t.cloneElement(n,e)}return ks.jsx(t.Fragment,{children:n})}return ks.jsx(t.Fragment,{children:a?j.createPortal(n,a):a})}));const CA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],wA={entering:{opacity:1},entered:{opacity:1}},RA=t.forwardRef((function(e,r){const n=Zx(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:b=o,TransitionComponent:v=Oc}=e,y=Ir(e,CA),x=t.useRef(null),S=Ga(x,l.ref,r),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{JI(e);const r=ZI({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),L=E(m),I=E((e=>{const t=ZI({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),A=E(h);return ks.jsx(v,xr({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:A,onExiting:L,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,r)=>t.cloneElement(l,xr({style:xr({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},wA[e],g,l.props.style),ref:S},r))}))}));var LA=RA;function IA(e){return sl("MuiBackdrop",e)}ul("MuiBackdrop",["root","invisible"]);const AA=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],MA=MS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>xr({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"}))),DA=t.forwardRef((function(e,t){var r,n,o;const i=XI({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=LA,transitionDuration:g}=i,b=Ir(i,AA),v=xr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return ol({root:["root",r&&"invisible"]},IA,t)})(v),x=null!=(r=f.root)?r:c.root;return ks.jsx(m,xr({in:p,timeout:g},b,{children:ks.jsx(MA,xr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:s,className:hl(y.root,l,null==x?void 0:x.className),ownerState:xr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var PA=DA;var _A=ul("MuiBox",["root"]);const kA=Xx(),TA=function(e={}){const{themeId:r,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=ra("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Iy);return t.forwardRef((function(e,t){const l=Ty(n),s=qy(e),{className:u,component:c="div"}=s,d=Ir(s,Fy);return ks.jsx(a,xr({as:c,ref:t,className:hl(u,i?i(o):o),theme:r&&l[r]||l},d))}))}({themeId:Iv,defaultTheme:kA,defaultClassName:_A.root,generateClassName:al.generate});var OA=TA;function qA(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function NA(e){return parseInt(Fa(e).getComputedStyle(e).paddingRight,10)||0}function FA(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&&qA(e,o)}))}function jA(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function zA(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Na(e);return t.body===e?Fa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=rl(Na(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${NA(n)+e}px`;const t=Na(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${NA(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Na(n).body;else{const t=n.parentElement,r=Fa(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 $A=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function GA(e){const t=[],r=[];return Array.from(e.querySelectorAll($A)).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 BA(){return!0}function WA(e){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=GA,isEnabled:l=BA,open:s}=e,u=t.useRef(!1),c=t.useRef(null),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),h=t.useRef(!1),m=t.useRef(null),g=Ga(r.ref,m),b=t.useRef(null);t.useEffect((()=>{s&&m.current&&(h.current=!n)}),[n,s]),t.useEffect((()=>{if(!s||!m.current)return;const e=Na(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),t.useEffect((()=>{if(!s||!m.current)return;const e=Na(m.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(m.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return ks.jsxs(t.Fragment,{children:[ks.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),t.cloneElement(r,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const t=r.props.onFocus;t&&t(e)}}),ks.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const HA=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&&qA(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);FA(t,e.mount,e.modalRef,n,!0);const o=jA(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=jA(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=zA(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=jA(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&&qA(e.modalRef,t),FA(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&&qA(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function VA(e){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=HA,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=t.useRef({}),h=t.useRef(null),m=t.useRef(null),g=Ga(m,p),[b,v]=t.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},C=$a((()=>{const e=function(e){return"function"==typeof e?e():e}(r)||Na(h.current).body;i.add(S(),e),m.current&&E()})),w=t.useCallback((()=>i.isTopModal(S())),[i]),R=$a((e=>{h.current=e,e&&(d&&w()?E():m.current&&qA(m.current,x))})),L=t.useCallback((()=>{i.remove(S(),x)}),[x,i]);t.useEffect((()=>()=>{L()}),[L]),t.useEffect((()=>{d?C():y&&a||L()}),[d,L,y,a,C]);const I=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},A=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=ml(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=xr({},r,t);return xr({role:"presentation"},n,{onKeyDown:I(n),ref:g})},getBackdropProps:(e={})=>xr({"aria-hidden":!0},e,{onClick:A(e),open:d}),getTransitionProps:()=>({onEnter:Oa((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Oa((()=>{v(!0),s&&s(),a&&L()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function YA(e){return sl("MuiModal",e)}ul("MuiModal",["root","hidden","backdrop"]);const UA=["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"],KA=MS("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})=>xr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),XA=MS(PA,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),JA=t.forwardRef((function(e,r){var n,o,i,a,l,s;const u=XI({name:"MuiModal",props:e}),{BackdropComponent:c=XA,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:I,open:A,slotProps:M,slots:D}=u,P=Ir(u,UA),_=xr({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:k,getBackdropProps:T,getTransitionProps:O,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=VA(xr({},_,{rootRef:r})),z=xr({},_,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return ol({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},YA,n)})(z),G={};if(void 0===h.props.tabIndex&&(G.tabIndex="-1"),j){const{onEnter:e,onExited:t}=O();G.onEnter=e,G.onExited=t}const B=null!=(n=null!=(o=null==D?void 0:D.root)?o:b.Root)?n:KA,W=null!=(i=null!=(a=null==D?void 0:D.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==M?void 0:M.root)?l:v.root,V=null!=(s=null==M?void 0:M.backdrop)?s:v.backdrop,Y=vl({elementType:B,externalSlotProps:H,externalForwardedProps:P,getSlotProps:k,additionalProps:{ref:r,as:g},ownerState:z,className:hl(p,null==H?void 0:H.className,null==$?void 0:$.root,!z.open&&z.exited&&(null==$?void 0:$.hidden))}),U=vl({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(xr({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:hl(null==V?void 0:V.className,null==d?void 0:d.className,null==$?void 0:$.backdrop),ownerState:z});return L||A||j&&!F?ks.jsx(EA,{ref:q,container:m,disablePortal:E,children:ks.jsxs(B,xr({},Y,{children:[!R&&c?ks.jsx(W,xr({},U)):null,ks.jsx(WA,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:A,children:t.cloneElement(h,G)})]}))}):null}));var ZA=JA;var QA=ul("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const eM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function tM(e){return`scale(${e}, ${e**2})`}const rM={entering:{opacity:1,transform:tM(1)},entered:{opacity:1,transform:"none"}},nM="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),oM=t.forwardRef((function(e,r){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Oc}=e,b=Ir(e,eM),v=Va(),y=t.useRef(),x=Zx(),S=t.useRef(null),E=Ga(S,i.ref,r),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{JI(e);const{duration:r,delay:n,easing:o}=ZI({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:nM?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),L=C(u),I=C(f),A=C((e=>{const{duration:t,delay:r,easing:n}=ZI({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:nM?o:.666*o,delay:nM?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=tM(.75),d&&d(e)})),M=C(p);return ks.jsx(g,xr({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:A,onExited:M,onExiting:I,addEndListener:e=>{"auto"===m&&v.start(y.current||0,e),n&&n(S.current,e)},timeout:"auto"===m?null:m},b,{children:(e,r)=>t.cloneElement(i,xr({style:xr({opacity:0,transform:tM(.75),visibility:"exited"!==e||l?void 0:"hidden"},rM[e],h,i.props.style),ref:E},r))}))}));oM.muiSupportAuto=!0;var iM=oM;var aM=t.createContext({});function lM(e){return sl("MuiList",e)}ul("MuiList",["root","padding","dense","subheader"]);const sM=["children","className","component","dense","disablePadding","subheader"],uM=MS("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})=>xr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var cM=t.forwardRef((function(e,r){const n=XI({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Ir(n,sM),d=t.useMemo((()=>({dense:l})),[l]),p=xr({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ol({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},lM,t)})(p);return ks.jsx(aM.Provider,{value:d,children:ks.jsxs(uM,xr({as:a,className:hl(f.root,i),ref:r,ownerState:p},c,{children:[u,o]}))})}));var dM=ul("MuiListItemIcon",["root","alignItemsFlexStart"]);var pM=ul("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const fM=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function hM(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function mM(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function gM(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 bM(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&gM(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var vM=t.forwardRef((function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Ir(e,fM),f=t.useRef(null),h=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});za((()=>{o&&f.current.focus()}),[o]),t.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${rl(Na(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const m=Ga(f,r);let g=-1;t.Children.forEach(a,((e,r)=>{t.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=r),g===r&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===r&&(g+=1,g>=a.length&&(g=-1))}));const b=t.Children.map(a,((e,r)=>{if(r===g){const r={};return i&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(r.tabIndex=0),t.cloneElement(e,r)}return e}));return ks.jsx(cM,xr({role:"menu",ref:m,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Na(t).activeElement;if("ArrowDown"===r)e.preventDefault(),bM(t,n,u,s,hM);else if("ArrowUp"===r)e.preventDefault(),bM(t,n,u,s,mM);else if("Home"===r)e.preventDefault(),bM(t,null,u,s,hM);else if("End"===r)e.preventDefault(),bM(t,null,u,s,mM);else if(1===r.length){const o=h.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&&gM(n,o);o.previousKeyMatched&&(l||bM(t,n,!1,s,hM,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function yM(e){return sl("MuiPopover",e)}ul("MuiPopover",["root","paper"]);const xM=["onEntering"],SM=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],EM=["slotProps"];function CM(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function wM(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function RM(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function LM(e){return"function"==typeof e?e():e}const IM=MS(ZA,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AM=MS(rA,{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 MM=t.forwardRef((function(e,r){var n,o,i;const a=XI({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=iM,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,L=Ir(a.TransitionProps,xM),I=Ir(a,SM),A=null!=(n=null==x?void 0:x.paper)?n:v,M=t.useRef(),D=Ga(M,A.ref),P=xr({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return ol({root:["root"],paper:["paper"]},yM,t)})(P),k=t.useCallback((()=>{if("anchorPosition"===d)return c;const e=LM(s),t=(e&&1===e.nodeType?e:Na(M.current).body).getBoundingClientRect();return{top:t.top+CM(t,u.vertical),left:t.left+wM(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=t.useCallback((e=>({vertical:CM(e,S.vertical),horizontal:wM(e,S.horizontal)})),[S.horizontal,S.vertical]),O=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:RM(r)};const n=k();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Fa(LM(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;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:RM(r)}}),[s,d,k,T,g]),[q,N]=t.useState(b),F=t.useCallback((()=>{const e=M.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]);t.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);t.useEffect((()=>{b&&F()})),t.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),t.useEffect((()=>{if(!b)return;const e=qa((()=>{F()})),t=Fa(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=h||(s?Na(LM(s)).body:void 0),$=null!=(o=null==y?void 0:y.root)?o:IM,G=null!=(i=null==y?void 0:y.paper)?i:AM,B=vl({elementType:G,externalSlotProps:xr({},A,{style:q?A.style:xr({},A.style,{opacity:0})}),additionalProps:{elevation:m,ref:D},ownerState:P,className:hl(_.paper,null==A?void 0:A.className)}),W=vl({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:hl(_.root,f)}),{slotProps:H}=W,V=Ir(W,EM);return ks.jsx($,xr({},V,!pl($)&&{slotProps:H,disableScrollLock:R},{children:ks.jsx(E,xr({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:ks.jsx(G,xr({},B,{children:p}))}))}))}));function DM(e){return sl("MuiMenu",e)}ul("MuiMenu",["root","paper","list"]);const PM=["onEntering"],_M=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],kM={vertical:"top",horizontal:"right"},TM={vertical:"top",horizontal:"left"},OM=MS(MM,{shouldForwardProp:e=>AS(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qM=MS(AM,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),NM=MS(vM,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var FM=t.forwardRef((function(e,r){var n,o;const i=XI({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Ir(i.TransitionProps,PM),S=Ir(i,_M),E=(()=>{const e=t.useContext(Vy);return null!=e&&e})(),C=xr({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return ol({root:["root"],paper:["paper"],list:["list"]},DM,t)})(C),R=a&&!u&&p,L=t.useRef(null);let I=-1;t.Children.map(l,((e,r)=>{t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===I)&&(I=r))}));const A=null!=(n=v.paper)?n:qM,M=null!=(o=y.paper)?o:f,D=vl({elementType:v.root,externalSlotProps:y.root,ownerState:C,className:[w.root,s]}),P=vl({elementType:A,externalSlotProps:M,ownerState:C,className:w.paper});return ks.jsx(OM,xr({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?kM:TM,slots:{paper:A,root:v.root},slotProps:{root:D,paper:P},open:p,ref:r,transitionDuration:m,TransitionProps:xr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:h,children:ks.jsx(NM,xr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:L,autoFocus:a&&(-1===I||u),autoFocusItem:R,variant:b},c,{className:hl(w.list,c.className),children:l}))}))}));function jM(e){return sl("MuiMenuItem",e)}var zM=ul("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const $M=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],GM=MS(SA,{shouldForwardProp:e=>AS(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})=>xr({},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"}},[`&.${zM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ax(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ax(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zM.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ax(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})`:ax(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${zM.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zM.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${QA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${QA.inset}`]:{marginLeft:52},[`& .${pM.root}`]:{marginTop:0,marginBottom:0},[`& .${pM.inset}`]:{paddingLeft:36},[`& .${dM.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&xr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${dM.root} svg`]:{fontSize:"1.25rem"}}))));var BM=t.forwardRef((function(e,r){const n=XI({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=Ir(n,$M),h=t.useContext(aM),m=t.useMemo((()=>({dense:a||h.dense||!1,disableGutters:s})),[h.dense,a,s]),g=t.useRef(null);za((()=>{o&&g.current&&g.current.focus()}),[o]);const b=xr({},n,{dense:m.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return xr({},a,ol({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},jM,a))})(n),y=Ga(g,r);let x;return n.disabled||(x=void 0!==d?d:-1),ks.jsx(aM.Provider,{value:m,children:ks.jsx(GM,xr({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:hl(v.focusVisible,u),className:hl(v.root,p)},f,{ownerState:b,classes:v}))})}));const WM=MS(OA,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),HM=MS("div")({position:"absolute",left:0,bottom:0}),VM=MS("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...Yb,justifyContent:null!=e?e:Yb.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),YM=MS("div")((()=>({...Yb}))),UM=MS("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),KM=MS(FM)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),XM=MS(BM,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:`${e.spacing(.5)}`,margin:`${e.spacing(.25,.5)}`,padding:`${e.spacing(1,1.5)}`,display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:""+(t?"rgba(0, 0, 0, 0.05)":"transparent"),"&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),JM=MS("span")({textOverflow:"ellipsis",overflow:"hidden"}),ZM=MS("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),QM={[WE.SORTING]:!0,[WE.SELECTIONS]:!0,[WE.SEARCHING]:!0},eD=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:l,overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:u,tableWidth:d})=>{var p;const f=c(null),{styleService:h,layoutService:m}=NC(),{app:g,interactions:b,embed:v,translator:y,env:x}=TC(),{fontSize:S,fontFamily:E,fontStyle:C,fontWeight:w,textDecoration:R,color:L,background:I,hoverBackground:A,activeBackground:M}=h.header,D=c(null),{shouldShowLockIcon:P,shouldShowMenuIcon:_}=a,{open:k,setOpen:T,handleOpenMenu:O,setIsAdjustingWidth:q}=YI(),N={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},F={embed:v,listboxRef:f,sortCriteria:m.searchSortFromDimension&&e.isDim?m.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},j={app:g,qStateName:m.layout.qStateName},{labelTextAlign:z}=null!==(p=m.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==p?p:{},$=LI(z,"flex-start");return ks.jsxs(WM,{className:er,title:e.label,interactions:b,background:k?M:I,hoverBackground:A,shouldShowMenuIcon:_,isDimension:e.isDim,style:{...t,...Kb,...ev(e,o,r,n,h.grid.border),color:L},"data-testid":"title-cell",onClick:O,children:[ks.jsxs(VM,{children:[P&&ks.jsx(YM,{children:ks.jsx(HI,{height:12})}),ks.jsx(UM,{fontFamily:E,fontSize:S,fontStyle:C,fontWeight:w,textDecoration:R,justifyContent:$,children:ks.jsx("span",{style:Xb,children:e.label})})]}),e.isDim&&ks.jsxs(ks.Fragment,{children:[ks.jsx(YE,{headerData:e,translator:y,anchorRef:D,open:k,setOpen:T,interactions:b,menuAvailabilityFlags:QM,sortRelatedArgs:N,searchRelatedArgs:F,selectionRelatedArgs:j,shouldShowMenuIcon:_,env:x}),ks.jsx(HM,{ref:f}),ks.jsx(HM,{ref:D})]}),ks.jsx(KI,{cellInfo:{...e,isLeftColumn:!0},columnWidth:l,isLastColumn:n,overrideLeftGridWidth:s,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:u,tableWidth:d})]})},tD=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=NC();return e>0&&t>0?ks.jsx("div",{style:{...Ub,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null};function rD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nD=(e,t)=>r.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){rD(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),r.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),oD=d(nD);function iD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const aD=(e,t)=>r.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){iD(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),r.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),r.createElement("use",{fillRule:"evenodd"})),lD=d(aD),sD=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{styleService:n}=NC(),{interactions:o,translator:i}=TC(),{isActive:a}=aI(),{dataModel:l}=ER(),{setIsAdjustingWidth:s}=VI([l]);if(!(!!o.active&&!a))return null;const u=UI(n,{isLeftColumn:!0});return ks.jsx(qS,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:u,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*RR))},confirmWidthCallback:n=>{var o;if(n.type===or.FitToContent)return void l.applyIndentModeColumnWidth({type:or.Auto});const i=Math.min(null!==(o=n.pixels)&&void 0!==o?o:t,e*RR);r(i),l.applyIndentModeColumnWidth({type:or.Pixels,pixels:i})},setIsAdjustingWidth:s,accessibilityRelatedArgs:{translator:i,columnLabel:i.get("SNPivotTable.IndentMode.Rows")}})};function uD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const cD=(e,t)=>r.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){uD(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),r.createElement("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})),dD=d(cD),pD=({cell:e,changeSortOrder:t})=>{const r=c(null),n=c(null),{app:o,interactions:i,embed:a,translator:l,env:s}=TC(),{layoutService:u}=NC(),{open:d,setOpen:p,handleOpenMenu:f}=YI();return ks.jsxs(XM,{component:"div",onClick:f,isActive:d,children:[ks.jsx(JM,{children:e.label}),ks.jsxs(ZM,{className:"indent-mode-dropdown-more",visible:d,children:[ks.jsx(dD,{}),e.isDim&&ks.jsxs(ks.Fragment,{children:[ks.jsx(YE,{headerData:e,translator:l,anchorRef:r,open:d,setOpen:p,interactions:i,menuAvailabilityFlags:QM,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:u.layout.qStateName},shouldShowMenuIcon:!1,env:s}),ks.jsx(HM,{ref:n}),ks.jsx(HM,{ref:r})]})]})]})},fD=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{var o,i;const a=(null===(o=r.at(-1))||void 0===o?void 0:o.id)===GC,l=e+1<r.length&&(null===(i=r[e+1])||void 0===i?void 0:i.id)===GC;return!(n&&a&&l)&&((null==t?void 0:t.id)!==GC&&e<r.length-1)},hD=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=NC(),{interactions:a,translator:l}=TC(),{dataModel:s,gridSectionsData:{headersData:d}}=ER(),[p,f]=u(!1),h=c(null),{headerCellHeight:m}=i,{color:g,background:b,hoverBackground:v,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w}=i.header,{isAdjustingWidth:R}=VI([s]),L=e=>e.stopPropagation(),I={height:m,gridColumn:`1 / span ${d.size.x}`,gridRow:d.size.y,zIndex:d.size.x-0};return ks.jsxs(WM,{isDimension:!0,background:p?y:b,interactions:a,hoverBackground:v,style:{...I,...Kb,color:g},onClick:e=>a.active&&!nI(e)&&!R&&f(!p),"data-testid":"indentModeHeaderCellWrapper",children:[ks.jsxs(VM,{justifyContent:"flex-start",children:[ks.jsx(UM,{fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w,justifyContent:"flex-start",children:ks.jsx("span",{style:Xb,children:l.get("SNPivotTable.IndentMode.Rows")})}),p?ks.jsx(lD,{}):ks.jsx(oD,{}),ks.jsx(HM,{ref:h})]}),ks.jsx(KM,{open:p,anchorEl:h.current,children:e.map(((r,n)=>[r&&(null==r?void 0:r.id)!==GC&&ks.jsx("li",{role:"presentation",onClick:L,onKeyDown:L,children:ks.jsx(pD,{cell:r,changeSortOrder:t})}),fD({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===d.size.y})&&ks.jsx(WS,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),ks.jsx(sD,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},mD={display:"grid",width:"fit-content"},gD=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:l})=>{const{layoutService:s}=NC(),{gridSectionsData:{headersData:u}}=ER();return ks.jsxs("div",{"data-testid":"HEADER_GRID",style:{...mD,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&ks.jsx(tD,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(s.isIndentModeEnabled&&u.size.x>1&&c+1===u.size.y){const r=u.data.at(-1);return d.push(ks.jsx(hD,{menuItems:r[0],changeSortOrder:o,overrideLeftGridWidth:l,leftGridWidth:t,tableWidth:e},r[0][0].id)),d}return d=a.reduce(((t,a,d)=>{if(a){const p=i(d,a.isLocked,a.label),f=s.isIndentModeEnabled&&1===u.size.x;t.push(ks.jsx(eD,{style:{width:r[d],height:n,gridColumn:s.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var bD=m(gD);const vD=(e,t,r,n)=>{const{layoutService:o}=NC();g((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},yD=(e,t)=>{Sv((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},xD=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},SD=(e,t,r)=>{var n;const o=r?"flex-start":"center";var i,a;if(e.representation.type===jt.Image)return null!==(i=null===(a=e.representation.resolvedImagePosition)||void 0===a?void 0:a.horizontal)&&void 0!==i?i:o;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var l;const{labelTextAlign:r}=null!==(l=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==l?l:{};return LI(r,o)}const{textAlign:s}=null!==(n=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==n?n:{};return LI(s,o)},ED=()=>{},CD=({children:e,text:t,reactWindowStyle:r,cell:n,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c,index:d})=>{var p;const{styleService:f,layoutService:h}=NC(),{interactions:m}=TC(),{isLocked:g,createMouseDownHandler:b,createMouseOverHandler:v}=aI(),{showLastBorder:y}=o,x=g(n)||n.isLockedByDimension,S=!(x||!m.active||!m.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||c),E=S?b(d,(e=>xD(e,o))):void 0,C=S?v(d):void 0;return ks.jsx("div",{className:er,title:m.passive?t:void 0,style:{...r,...Qb(a,l,f.grid.border,y),...tv({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:f.grid.divider}),...Kb,padding:"0px 4px",cursor:gI(S),background:dI({styleService:f,isCellSelected:u,cell:n,isCellLocked:x}),zIndex:s?void 0:h.size.x-n.x,justifyContent:SD(n,h,s),display:"flex",...h.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(p=n.indentLevel)&&void 0!==p?p:0))}},"aria-hidden":"true",onMouseDown:E,onMouseOver:C,onKeyUp:ED,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,children:e})},wD=e=>e.stopPropagation(),RD=({href:e,text:t,interactions:n,color:o})=>r.createElement(vf,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:wD,style:{pointerEvents:n.active?"auto":"none",color:null!=o?o:void 0,opacity:n.active&&n.passive||o?void 0:.4}},t),LD=null==$?void 0:$();null==LD||LD.use(z),null==LD||LD.renderer.prio(["canvas"]);const ID=({children:e,textStyle:t})=>ks.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),AD=({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>{const{isActive:o}=aI(),{interactions:i}=TC();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...Xb,...Jb(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:pI({cell:e,styleService:t,isCellSelected:r}),fontWeight:fI({cell:e,styleService:t}),fontStyle:hI({cell:e,styleService:t}),textDecoration:mI({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n});return e.representation.type!==jt.Image||e.isTotal?(e.representation.type!==jt.Link||o||e.isTotal||(a=ks.jsx(RD,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),ks.jsx(ID,{textStyle:l,children:a})):ks.jsx(RI,{representation:e.representation,isLeftColumn:n,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},MD=e=>{const t=e.isLeftColumn?"flex-start":"center";var r;return e.representation.type!==jt.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical},DD=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=NC(),{isSelected:i}=aI(),{isLeftColumn:a=!1,showLastBorder:l,itemCount:s,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=VI([r]),f=xD(e,r),h=a?e===s-1:u,m=a?u:e===s-1,g=VL(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return ks.jsx(YL,{style:{...t,background:r},index:e,isLastRow:h,isLastColumn:m,showLastBorder:l,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return ks.jsxs(CD,{text:f.representation.text,reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[ks.jsxs(UL,{verticalAlign:MD(f),width:KL(f.representation),right:f.isLeftColumn?void 0:4,children:[ks.jsx(yI,{isLeftColumn:a,isCellSelected:b,cell:f}),ks.jsx(AD,{isLeftColumn:a,isCellSelected:b,cell:f,styleService:n})]}),ks.jsx(KI,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Ut.Measures:Ut.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var PD=r.memo(DD,PL);const _D=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*n():r||void 0===a?n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*n()},kD=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},TD=(e,t)=>r=>{e.current&&(e.current[t]=r)},OD={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Ub},qD={overflow:"hidden",willChange:"auto",flexShrink:0},ND=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i}=PC(),{layoutService:a,styleService:{contentCellHeight:l,grid:{divider:s}}}=NC(),{qSize:u}=a.layout.qHyperCube,{gridSectionsData:{leftDimensionData:c},visibleDimensionsInfo:{visibleLeftDimensionInfo:d}}=ER();yD(e,c),vD(e,t,r,l);const p=i.rowsOnCurrentPage*l,f={...OD,borderColor:s,width:n.reduce(((e,t)=>e+t),0)};return ks.jsx("div",{style:f,"data-section-id":"LEFT_GRID",children:c.grid.map(((t,s)=>{const f=s===c.columnCount-1,h=XC(d[s]),{itemCount:m,estimatedItemSize:g,listValues:b}=kD(t,p,i.rowsOnCurrentPage,f),v=a.isIndentModeEnabled?()=>l:((e,t,r,n,o)=>i=>{const a=n?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,b,l,f,u.qcy);return ks.jsx(IL,{ref:TD(e,s),style:{...qD,flexGrow:f?1:0},height:r,width:n[s],itemCount:m,itemSize:v,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:f,itemCount:m,showLastBorder:o,listValues:b,totalDividerIndex:c.totalDividerIndex},itemKey:FI,estimatedItemSize:g,children:PD},h)}))})};var FD=m(ND);const jD={overflow:"hidden",willChange:"auto"},zD={...Ub,borderWidth:"0px 0px 0px 1px"},$D=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{layoutService:a,styleService:{grid:{divider:l},headerCellHeight:s}}=NC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=ER(),d={...zD,borderColor:l,height:n};yD(e,c),vD(e,r,n,s);const p=a.size.x*i();return 0===c.rowCount?ks.jsx("div",{style:{width:r,height:n,...zD}}):ks.jsx("div",{style:d,"data-section-id":"TOP_GRID",children:c.grid.map(((n,l)=>{const s=l===c.rowCount-1,{itemCount:d,estimatedItemSize:f,listValues:h}=kD(n,p,a.size.x,s),m=(({layoutService:e,headersData:t,topRowIndex:r})=>{var n;const o=t.data[r],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y?null===(n=o[0][i])||void 0===n?void 0:n.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:a,headersData:u,topRowIndex:l}),g=m?XC(m):`empty ${l}`;return ks.jsx(IL,{ref:TD(e,l),style:jD,height:t(),width:r,itemCount:d,itemSize:_D({list:n,listValues:h,isLastRow:s,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:s,itemCount:d,showLastBorder:o,listValues:h,totalDividerIndex:c.totalDividerIndex},itemKey:FI,estimatedItemSize:f,children:PD},g)}))})};var GD=m($D);const BD=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=NC(),r=VR(),n=(()=>{const{model:e}=TC(),t=p((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:l},gridRefs:{topGridRef:s,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:h},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=HR(),{leftGridWidth:v,leftGridFullWidth:y,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:E,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:w,overrideLeftGridWidth:R}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=NC(),{gridSectionsData:{headersData:i}}=ER(),{measureText:a}=vv(o.header),l=FR({tableWidth:e}),s=jR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:l.leftGridWidth}),u=l.leftGridWidth+s.rightGridFullWidth+1<e,c=p(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const s=l.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+wR;return t&&d+20<=s&&(c=!0,d+=20),d+20<=s&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[l.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return f((()=>{const e=l.leftGridWidth===l.leftGridFullWidth,t=s.rightGridWidth===s.rightGridFullWidth;e&&t&&r()}),[r,l.leftGridWidth,l.leftGridFullWidth,s.rightGridWidth,s.rightGridFullWidth]),{...l,...s,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:L,headerGridDims:I,topGridDims:A,leftGridDims:M,dataGridDims:D,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:_}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const l=VR(),{pageInfo:s}=PC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=ER(),d=Math.min(l.height*RR,Math.max(l.height*RR-25,l.height-t-a)),p=l.width*RR,f=s.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,b=Math.min(p,r),v=l.width-p,y=Math.max(v,l.width-b),x=Math.min(d,m,g),{availableHeight:S,everyThingFitsInTableRectHeight:E,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=l.width,o=e+1+f+a,s=o-l.height<a||o<=l.height;return{availableHeight:s?o:l.height,everyThingFitsInTableRectHeight:s,everyThingFitsInTableRectWidth:n}})(x,b,y),w=S-d,R=Math.max(w,S-x),L=Math.min(R,f),I=Math.min(R,f),A=m+1+f,{visibilityStatus:M,metadata:{hasLeftGridOverflowX:D,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:l,bottomSectionFullHeight:s}}}=e,u=l>n,c=i>t,d=a>r,p=s>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:R}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:A-g}}});return{gridScaffoldDimensions:{width:l.width,height:l.height,gridTemplateColumns:`${b}px ${y}px`,gridTemplateRows:`${x}px ${R}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:y-1-i,height:-1},self:{width:Math.min(o,y)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:A-g+(!D&&P?a:0)},stickyWrapper:{width:b,height:R-1-a},self:{width:b,height:Math.max(t,L-(E?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:A-g+(!P&&D?a:0)},stickyWrapper:{width:y-1-i,height:R-1-a},self:{width:Math.min(o,y)-(C?1:0)-i,height:Math.max(t,I-(E?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:E,scrollbarsVisibilityStatus:M}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:v,leftGridOriginalWidth:y,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),k=p((()=>e),[e]),T=p((()=>t),[t]);return(()=>{const{downloadService:e}=NC();f((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),ks.jsxs(UR,{style:L,children:[ks.jsx("div",{style:{overflow:"hidden"},ref:o,children:ks.jsx(bD,{tableWidth:r.width,leftGridWidth:v,columnWidths:x,getHeaderCellsIconsVisibilityStatus:w,rowHight:e,height:I.height,changeSortOrder:n,overrideLeftGridWidth:R})}),ks.jsx(JR,{style:_.topGrid,origin:Xt.TOP_GRID,ref:i,children:ks.jsx(YR,{style:A.fullSizeWrapper,children:ks.jsx(ZR,{style:A.stickyWrapper,children:ks.jsx(GD,{topGridRef:s,rowHightCallback:k,...A.self,showLastBorder:{right:E,bottom:!1},getRightGridColumnWidth:C})})})}),ks.jsx(JR,{style:_.leftGrid,origin:Xt.LEFT_GRID,ref:a,children:ks.jsx(YR,{style:M.fullSizeWrapper,children:ks.jsx(ZR,{style:M.stickyWrapper,children:ks.jsx(FD,{leftGridRef:u,...M.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),ks.jsx(JR,{style:_.dataGrid,origin:Xt.DATA_GRID,ref:l,children:ks.jsx(YR,{style:D.fullSizeWrapper,children:ks.jsx(ZR,{style:D.stickyWrapper,children:ks.jsx(GI,{dataGridRef:c,rowHightCallback:T,...D.self,showLastBorder:{right:E,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:h})})})})]})},WD=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=TC(),{pageInfo:o,updatePageInfo:i,rect:a}=PC(),{layoutService:l}=NC(),{layout:s,hasData:u}=l;return ks.jsxs(ks.Fragment,{children:[u&&ks.jsx(BD,{}),ks.jsx(jC,{}),ks.jsx(MC,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>i({page:e}),pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:s})]})},HD={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",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},VD=12,YD=14,UD=16,KD=24,XD=3,JD=300,ZD=400,QD=600,eP=700,tP={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Lr(HD.GREYSCALE_0,.05),Lr(HD.GREEN_PALE,.5),Lr(HD.BLUE_PALE,.5),Lr(HD.GREEN_PALE,.5),Lr(HD.BLUE_PALE,.5),Lr(HD.GREEN_PALE,.5),Lr(HD.BLUE_PALE,.5);var rP;function nP(){return nP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nP.apply(null,arguments)}Lr(HD.GREEN_PALE,.5),Lr(HD.BLUE_PALE,.5),Lr(HD.GREEN_PALE,.5),Lr(HD.BLUE_PALE,.5);var oP,iP=function(e){return t.createElement("svg",nP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),rP||(rP=t.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function aP(){return aP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aP.apply(null,arguments)}var lP=function(e){return t.createElement("svg",aP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),oP||(oP=t.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 sP({fontSize:e="medium",children:t=null,className:n=""}={}){const o="small"===e?"16px":"20px",i="small"===e?"-2px 0":void 0;return r.createElement("i",{style:{fontSize:o,margin:i,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var uP=(e={})=>r.createElement(sP,{...e},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},r.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),r.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"}))),cP=(e={})=>r.createElement(sP,{...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),r.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),dP=(e={})=>r.createElement(sP,{fontSize:"medium",...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},r.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),pP=(e={})=>r.createElement(sP,{fontSize:"medium",...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),r.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"}))),fP=({className:e})=>r.createElement(sP,{fontSize:"small",className:e},r.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},r.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},r.createElement("g",{transform:"translate(4.324187, 1.300372)"},r.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"}),r.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"})))))),hP=(e={})=>r.createElement(sP,{...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.createElement("rect",{stroke:HD.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const mP={MuiAccordion:{styleOverrides:{root:{backgroundColor:HD.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:HD.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:r.createElement(iP,{"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 ${HD.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:HD.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${HD.MISC_FOCUS_BORDER}`,borderRadius:XD,backgroundColor:HD.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 ${HD.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:HD.WHITE,color:HD.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:XD},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${HD.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:HD.GREYSCALE_0_15,backgroundColor:HD.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:HD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${HD.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:HD.GREEN_PALE},"&:active":{backgroundColor:HD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:HD.GREEN_PALE,boxShadow:`0 0 0 3px ${zy(HD.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:HD.BLUE_PALE},"&:active":{backgroundColor:HD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:HD.BLUE_PALE,boxShadow:`0 0 0 3px ${zy(HD.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:XD,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:HD.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${HD.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:HD.GREYSCALE_0_15,backgroundColor:HD.GREYSCALE_100_60,"&:active":{backgroundColor:HD.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:HD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${HD.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:HD.PURPLE,"&.Mui-focusVisible":{borderColor:HD.PURPLE,boxShadow:`0 0 0 3px ${zy(HD.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:HD.GREEN,"&.Mui-focusVisible":{borderColor:HD.GREEN,boxShadow:`0 0 0 3px ${zy(HD.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:HD.BLUE,"&.Mui-focusVisible":{borderColor:HD.BLUE,boxShadow:`0 0 0 3px ${zy(HD.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:HD.ORANGE,"&.Mui-focusVisible":{borderColor:HD.ORANGE,boxShadow:`0 0 0 3px ${zy(HD.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:HD.RED,"&.Mui-focusVisible":{borderColor:HD.RED,boxShadow:`0 0 0 3px ${zy(HD.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:HD.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:HD.PURPLE_PALE},"&:active":{backgroundColor:HD.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:HD.PURPLE_PALE,boxShadow:`0 0 0 3px ${zy(HD.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:HD.GREEN_PALE},"&:active":{backgroundColor:HD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:HD.GREEN_PALE,boxShadow:`0 0 0 3px ${zy(HD.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:HD.BLUE_PALE},"&:active":{backgroundColor:HD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:HD.BLUE_PALE,boxShadow:`0 0 0 3px ${zy(HD.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:HD.ORANGE_PALE},"&:active":{backgroundColor:HD.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:HD.ORANGE_PALE,boxShadow:`0 0 0 3px ${zy(HD.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:HD.RED_PALE},"&:active":{backgroundColor:HD.RED_DARK},"&.Mui-focusVisible":{borderColor:HD.RED_PALE,boxShadow:`0 0 0 3px ${zy(HD.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:HD.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:HD.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:XD,boxShadow:`inset 0 0 0 2px ${HD.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:r.createElement(lP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:VD,borderRadius:XD,color:HD.TEXT_PRIMARY,backgroundColor:HD.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:HD.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${HD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:HD.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:HD.GREYSCALE_0_05,color:HD.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:HD.GREEN,borderColor:HD.GREEN},"&.MuiChip-outlinedInfo":{color:HD.BLUE,borderColor:HD.BLUE},"&.MuiChip-outlinedWarning":{color:HD.ORANGE,borderColor:HD.ORANGE},"&.MuiChip-outlinedError":{color:HD.RED,borderColor:HD.RED}},outlined:{border:`solid 1px ${HD.GREYSCALE_0_15}`,backgroundColor:HD.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:XD,boxShadow:"none",backgroundColor:HD.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:HD.GREEN,borderColor:HD.GREEN},outlinedSecondary:{color:HD.BLUE,borderColor:HD.BLUE},label:{fontFamily:tP.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:r.createElement(lP,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:r.createElement(iP,{"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:XD},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:XD,fontSize:YD,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:HD.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${HD.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:HD.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:HD.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:HD.GREYSCALE_0_05}}},popupIndicator:{borderRadius:XD,border:`solid 1px ${HD.GREYSCALE_0_15}`,color:HD.GREYSCALE_0_60,marginRight:0,width:KD,height:KD},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${HD.GREYSCALE_0_15}`},clearIndicator:{borderRadius:XD,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:HD.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:YD}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:VD,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:HD.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:HD.GREYSCALE_25,fontSize:VD,fontFamily:tP.FONT_FAMILY,fontWeight:QD,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:HD.TEXT_PRIMARY},"&.Mui-error":{color:HD.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:HD.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ZD,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:HD.TEXT_SECONDARY,content:"'(required)'",fontWeight:ZD,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:YD,lineHeight:"16px",backgroundColor:HD.WHITE,borderRadius:XD,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${HD.GREYSCALE_0_05}`,borderColor:HD.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${HD.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${HD.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${HD.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${HD.RED}`,boxShadow:`0px 0px 0px 1px ${HD.RED}, inset 0 2px 0 0 ${HD.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${HD.GREYSCALE_0_10}`,borderColor:HD.GREYSCALE_0_10,backgroundColor:HD.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:HD.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:HD.GREYSCALE_0_15,borderRadius:XD,boxShadow:`inset 0 2px 0 0 ${HD.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>r.createElement(iP,{...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:HD.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:HD.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:HD.GREYSCALE_0_03},"&:active":{backgroundColor:HD.GREYSCALE_0_10},"&:focus":{backgroundColor:HD.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${HD.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${HD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:HD.GREYSCALE_0_30,"&:hover":{backgroundColor:HD.GREYSCALE_0_0,borderColor:HD.GREYSCALE_0_15},"& ~svg":{color:HD.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${HD.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:XD}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:HD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${HD.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:HD.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:YD,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:VD,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:VD,fontWeight:QD,color:HD.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:QD}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${HD.GREYSCALE_0_15}, 0px 0px 0px 1px ${HD.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:r.createElement(dP,null),checkedIcon:r.createElement(pP,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:HD.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${HD.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:HD.GREEN_PALE,boxShadow:`0 0 0 3px ${zy(HD.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:HD.BLUE_PALE,boxShadow:`0 0 0 3px ${zy(HD.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:HD.GREYSCALE_0_20}},"&.Mui-disabled":{fill:HD.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:r.createElement(hP,null),checkedIcon:r.createElement(uP,null),indeterminateIcon:r.createElement(cP,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:XD,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:HD.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:HD.GREYSCALE_0_55,color:HD.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:HD.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:HD.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:HD.GREYSCALE_0_55,"&:hover":{color:HD.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:HD.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:HD.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:YD,color:HD.TEXT_PRIMARY,lineHeight:"16px",fontWeight:QD},secondary:{fontSize:VD,color:HD.GREYSCALE_45,fontWeight:ZD,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:YD,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:YD,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:HD.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:VD,borderBottom:`solid 1px ${HD.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:YD,color:HD.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:HD.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:HD.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:HD.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:HD.RED}}},"&.Mui-focusVisible":{backgroundColor:HD.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:HD.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:HD.GREEN,height:"24px","&.Mui-disabled":{color:HD.GREYSCALE_0_15}},rail:{backgroundColor:HD.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${HD.GREYSCALE_0_05}`,borderRadius:XD,boxShadow:`inset 0px 0px 0px 1px ${HD.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${HD.GREYSCALE_0_05}`,borderRadius:XD},thumb:{height:"16px",width:"16px",borderRadius:XD,backgroundColor:HD.WHITE,boxShadow:`0px 1px 2px 0px ${HD.GREYSCALE_0_15}, 0px 0px 0px 1px ${HD.GREYSCALE_0_05}`,"&:hover":{borderRadius:XD,boxShadow:`0 2px 4px 0 ${HD.GREYSCALE_0_30}, 0 0 0 1px ${HD.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${HD.GREYSCALE_0_15}, 0 0 0 1px ${HD.GREYSCALE_0_06}, 0 0 0 2px ${HD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${HD.GREYSCALE_0_15}, 0 0 0 1px ${HD.GREYSCALE_0_06}, 0 0 0 2px ${HD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:HD.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:HD.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:HD.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:HD.GREYSCALE_0_15},markLabel:{color:HD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:HD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:HD.WHITE,color:HD.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:HD.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:HD.GREEN_PALE,boxShadow:`0 0 0 3px ${zy(HD.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:HD.BLUE_PALE,boxShadow:`0 0 0 3px ${zy(HD.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:HD.GREYSCALE_0_15,borderRadius:XD},thumb:{height:"16px",width:"16px",borderRadius:XD,backgroundColor:HD.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:YD,fontWeight:QD,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${HD.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${HD.MISC_FOCUS_BORDER}`,backgroundColor:HD.GREYSCALE_0_03,borderRadius:XD},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:HD.GREYSCALE_25,"&.Mui-selected":{color:HD.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:YD,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:XD,"&:hover":{backgroundColor:`${HD.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${HD.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${HD.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:XD,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:HD.GREYSCALE_0_05},"&:hover":{backgroundColor:`${HD.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${HD.GREYSCALE_85}`,borderRight:`1px solid ${HD.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:QD,backgroundColor:HD.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:HD.GREYSCALE_98,borderBottom:`1px solid ${HD.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${HD.GREYSCALE_85}`,borderTop:`1px solid ${HD.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:HD.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:HD.GREYSCALE_0_05,"&:hover":{backgroundColor:HD.GREYSCALE_0_03}},"&&:hover":{backgroundColor:HD.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>r.createElement(fP,{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 ${HD.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:YD,borderRadius:XD,padding:"7px 16px",border:`1px solid ${HD.GREYSCALE_0_15}`,backgroundColor:HD.GREYSCALE_100_60,color:HD.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:HD.GREYSCALE_0_10,border:`1px solid ${HD.GREYSCALE_0_30}`},"&:hover":{backgroundColor:HD.GREYSCALE_0_03,border:`1px solid ${HD.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:HD.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${HD.MISC_FOCUS_BORDER}`,border:`1px solid ${HD.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:HD.GREYSCALE_25,backgroundColor:HD.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:HD.GREYSCALE_0_10,border:`1px solid ${HD.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:VD,height:24,width:24,padding:7},sizeLarge:{fontSize:UD,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:YD,borderRadius:XD}}},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:HD.GREYSCALE_20},tooltip:{backgroundColor:HD.GREYSCALE_20,fontSize:VD,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var gP=e=>mP;const bP={mode:"light",primary:{ultraLight:HD.GREEN_ULTRA_LIGHT,light:HD.GREEN_PALE,main:HD.GREEN,dark:HD.GREEN_DARK,extraDark:HD.GREEN_EXTRA_DARK,contrastText:HD.WHITE},secondary:{ultraLight:HD.BLUE_ULTRA_LIGHT,light:HD.BLUE_PALE,main:HD.BLUE,dark:HD.BLUE_DARK,extraDark:HD.BLUE_EXTRA_DARK,contrastText:HD.WHITE},error:{ultraLight:HD.RED_ULTRA_LIGHT,light:HD.RED_PALE,main:HD.RED,dark:HD.RED_DARK,extraDark:HD.RED_EXTRA_DARK,contrastText:HD.WHITE},warning:{ultraLight:HD.ORANGE_ULTRA_LIGHT,light:HD.ORANGE_PALE,main:HD.ORANGE,dark:HD.ORANGE_DARK,extraDark:HD.ORANGE_EXTRA_DARK,contrastText:HD.WHITE},success:{ultraLight:HD.GREEN_ULTRA_LIGHT,light:HD.GREEN_PALE,main:HD.GREEN,dark:HD.GREEN_DARK,extraDark:HD.GREEN_EXTRA_DARK,contrastText:HD.WHITE},info:{ultraLight:HD.BLUE_ULTRA_LIGHT,light:HD.BLUE_PALE,main:HD.BLUE,dark:HD.BLUE_DARK,extraDark:HD.BLUE_EXTRA_DARK,contrastText:HD.WHITE},text:{primary:HD.TEXT_PRIMARY,secondary:HD.TEXT_SECONDARY,disabled:HD.GREYSCALE_0_30},action:{hover:HD.GREYSCALE_0_03,hoverOpacity:.03,selected:HD.GREYSCALE_0_05,selectedOpacity:.05,focus:HD.MISC_FOCUS_BORDER},amethyst:{ultraLight:HD.WHITE,main:HD.PURPLE,light:HD.PURPLE_PALE,dark:HD.PURPLE_DARK,extraDark:HD.GREYSCALE_0_0,contrastText:HD.WHITE},background:{paper:HD.WHITE,default:HD.GREYSCALE_95},divider:HD.GREYSCALE_0_15},vP=e=>bP,yP=(e="light")=>({components:gP(),palette:vP(),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:YD,fontWeightLight:JD,fontWeightRegular:ZD,fontWeightMedium:QD,fontWeightBold:eP,htmlFontSize:YD,fontFamily:tP.FONT_FAMILY,button:{fontWeight:QD,fontSize:YD,textTransform:"none"},body1:{fontSize:UD,lineHeight:"24px"},body2:{fontSize:YD,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:KD,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:UD,fontWeight:QD,lineHeight:"16px"},h6:{fontSize:YD,fontWeight:QD,lineHeight:"16px"},caption:{color:HD.TEXT_SECONDARY},subtitle1:{fontSize:YD,color:HD.TEXT_SECONDARY},subtitle2:{fontSize:VD,color:HD.TEXT_SECONDARY}},shape:{borderRadius:XD}});const xP=(e,{selections:t,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){var t;const r=yP();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),Xx({...r,direction:e})}("ltr");e.render(ks.jsx(r.StrictMode,{children:ks.jsx(PS,{theme:a,children:ks.jsx(OC,{...i,children:ks.jsx(_C,{...n,children:ks.jsx(lI,{selections:t,children:ks.jsx(FC,{...o,children:ks.jsx(CR,{children:ks.jsx(WD,{})})})})})})})}))};var SP,EP,CP,wP;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(SP||(SP={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(EP||(EP={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(CP||(CP={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(wP||(wP={}));const RP=e=>e?`${parseInt(e,10)}px`:void 0,LP=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?Hb.Transparent:r}},IP=(e,t)=>+(parseInt(e,10)*Wb*t+8).toFixed(2),AP=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?Gb:"normal",MP=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",DP=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function PP(e,t){return E((()=>e),t)}const _P={},kP=e=>{const t=E((()=>({current:_P})),[]);return t.current=t.current===_P?e:t.current,t},TP=({fontStyle:e,fontWeight:t,fontSize:r,fontFamily:n})=>t?`${e} ${t} ${r} ${n}`:`${e} ${r} ${n}`,OP=(e,t,r)=>{var n,o;const i=null!==(n=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==n&&n,a=null!==(o=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==o&&o,l=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(null==r?void 0:r.qHyperCubeDef.qSortbyYValue),s=E((()=>{var e;return null==r||null===(e=r.qHyperCubeDef.qDimensions)||void 0===e?void 0:e.map((e=>e.qDef.qSortCriterias))}),[r]);return E((()=>(({layout:e,flags:t,qShowTotalsAbove:r,qAlwaysFullyExpanded:n,isSortedByFirstMeasure:o,qSortCriterias:i})=>{var a,l,s,u;const{qHyperCube:c,nullValueRepresentation:d,snapshotData:p}=e,{qNoOfLeftDims:f,qEffectiveInterColumnSortOrder:h,qMeasureInfo:m,qDimensionInfo:g}=c,b=!!p,v=null!==(a=null==p||null===(l=p.content)||void 0===l?void 0:l.rowsPerPage)&&void 0!==a?a:15e3,y={x:Math.min(e.qHyperCube.qSize.qcx,Bb),y:Math.min(e.qHyperCube.qSize.qcy,v)},x=h.slice(0,f),S=e=>x.some((t=>t===e)),E=S($C),C=new Map(h.map((e=>{var t;return[null!==(t=g[e])&&void 0!==t?t:$C,e]}))),w=m.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==d?void 0:d.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(E)return 0;const r=e%w.length;return t?r:m.findIndex((e=>e===w[r]))},getDimensionInfo:e=>e===$C?$C:g[e],getDimensionInfoIndex:e=>{var t;return null!==(t=C.get(e))&&void 0!==t?t:-1},getSortCriteriaForDimension:e=>null==i?void 0:i[e],size:y,isSnapshot:b,hasLimitedData:!b&&y.x<e.qHyperCube.qSize.qcx,hasData:y.x>0&&y.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:r,hasPseudoDimOnLeft:E,leftDimensionInfoIndexes:x,isLeftDimension:S,isFullyExpanded:n,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:w,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(s=e.qHyperCube.indentModeColumnWidth)&&void 0!==s?s:{type:or.Auto,pixels:nr.PixelsDefault,percentage:nr.PercentageDefault},isSortedByFirstMeasure:o,searchSortFromDimension:"inherit"===(null===(u=e.search)||void 0===u?void 0:u.sorting)}})({layout:e,flags:t,qShowTotalsAbove:i,qAlwaysFullyExpanded:a,isSortedByFirstMeasure:l,qSortCriterias:s})),[e,i,a,l,t,s])},qP=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=kP(e);return t.current=e,t})(gR(o));return mv((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,u,c)||((e,t,r,n)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(n,l.qcx)||c<Math.min(r,l.qcy)})(i,n,u,c))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,l=Math.min(a+n.rowsPerPage,r.qcy),s=Math.min(Bb,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),r>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,r,i.qHyperCube.qSize,n,u,c);return t?e.getHyperCubePivotData(zC,bR(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},NP=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),FP=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:NP({rowsPerPage:r,totalRowCount:e,page:t})}),jP=15,zP=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{var i;return L((async e=>{if(!e.snapshotData||!n||e.snapshotData.content)return e;if(null!=n&&n.getHyperCubePivotData){const{scrollTop:i,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(n-jP,0),u=Math.max(l+o-jP,l,0),c=Bb-s,d=l+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=gR(r);return{qLeft:s,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:s,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=bR(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(zC,[d,...c]),scrollTop:i,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s,page:o.page,rowsPerPage:o.rowsPerPage},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),I((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var $P={SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const GP=()=>{const e=A(),t=e.language();return E((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys($P).forEach((t=>{e.add($P[t])}))}}(e)),[e]),{translator:e,language:t}},BP=e=>{const{flags:t}=e,r=M(),n=(e=>{const t=E((()=>yv(e)),[e]);return x((()=>()=>t.unmount()),[t]),t})(r),o=D(),i=P(),a=_(),l=k(),s=T(),u=O(),c=(()=>{const{viewState:e}=R(),t=kP(new Set),r=void 0!==e,{promise:n,resolve:o}=E((()=>XL()),[]),i=PP((e=>{t.current.add(e)}),[t]),a=PP(Et((async()=>{await Promise.all(t.current),o()}),1e3),[o,t]);return C((async()=>{r&&await n}),[n,r]),E((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])})(),[d,p]=((e,t)=>mv((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(i,o),f=OP(o,t,d),h=q(),m=hv(o,r),{translator:g,language:b}=GP(),{pageInfo:v,updatePageInfo:S}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[a,l]=y((()=>{const a=((e,t)=>{var r,n,o,i;return t.isDownloadedAsPDForImage?null!==(r=null===(n=t.viewState)||void 0===n?void 0:n.renderPage)&&void 0!==r?r:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,...FP(n.qcy,a,i)}}));return x((()=>{l((t=>({...t,...FP(e.layout.qHyperCube.qSize.qcy,t.page,i),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y&&!o})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,l,o,i]),x((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=NP({...a,page:e});l({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>l({...a,...e,rowsOnCurrentPage:NP({...a,...e})})}})(f,c),w=((e,t,r)=>E((()=>((e,t)=>{var r,n,o,i,a,l,s,u;if(e.isDownloadedAsPDForImage){var c,d,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(c=null==t?void 0:t.scrollTop)&&void 0!==c?c:0,scrollLeft:null!==(d=null==t?void 0:t.scrollLeft)&&void 0!==d?d:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.scrollTop)&&void 0!==r?r:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(s=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==s?s:0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(v,o,c),L=zP({rect:N(),layoutService:f,viewService:w,model:i,pageInfo:v}),[I,A]=qP({model:i,layoutService:f,viewService:w,pageInfo:v,rect:L}),F=E((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,I,A,M,D,P,_,k,T,O,q,N,F,j,z,$,G,B,W,H,V,Y,U,K;const X=null===(n=t.layout.components)||void 0===n?void 0:n.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,re=null==X?void 0:X.nullValues,ne=null==X?void 0:X.grid,oe=(t,r,n)=>e.getStyle(t,r,n),ie=+(null!==(o=null!==(i=null==ne?void 0:ne[SP.LineClamp])&&void 0!==i?i:oe(EP.Grid,CP.Grid,wP.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==ne?void 0:ne[SP.ColumnLineClamp])&&void 0!==l?l:oe(EP.Grid,CP.Grid,wP.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=LP(e,null==J?void 0:J[SP.Background]))&&void 0!==u?u:oe(EP.Dimension,CP.LabelName,wP.BackgroundColor))&&void 0!==s?s:Hb.Transparent,se={header:{fontSize:null!==(c=null!==(d=RP(null==J?void 0:J[SP.FontSize]))&&void 0!==d?d:oe(EP.Dimension,CP.LabelName,wP.FontSize))&&void 0!==c?c:zb,fontFamily:null!==(p=null!==(f=null==J?void 0:J[SP.FontFamily])&&void 0!==f?f:oe(EP.Dimension,CP.LabelName,wP.FontFamily))&&void 0!==p?p:$b,fontWeight:AP(null==J?void 0:J[SP.FontStyle],Gb),fontStyle:MP(null==J?void 0:J[SP.FontStyle]),textDecoration:DP(null==J?void 0:J[SP.FontStyle]),color:null!==(h=null!==(m=LP(e,null==J?void 0:J[SP.FontColor]))&&void 0!==m?m:oe(EP.Dimension,CP.LabelName,wP.Color))&&void 0!==h?h:Jh.TEXT,background:le,hoverBackground:Lb(le,ir),activeBackground:Lb(le,ar)},dimensionValues:{fontSize:null!==(g=null!==(b=RP(null==Z?void 0:Z[SP.FontSize]))&&void 0!==b?b:oe(EP.Dimension,CP.LabelValue,wP.FontSize))&&void 0!==g?g:zb,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[SP.FontFamily])&&void 0!==y?y:oe(EP.Dimension,CP.LabelValue,wP.FontFamily))&&void 0!==v?v:$b,fontWeight:AP(null==Z?void 0:Z[SP.FontStyle],void 0),fontStyle:MP(null==Z?void 0:Z[SP.FontStyle]),textDecoration:DP(null==Z?void 0:Z[SP.FontStyle]),color:null!==(x=null!==(S=LP(e,null==Z?void 0:Z[SP.FontColor]))&&void 0!==S?S:oe(EP.Dimension,CP.LabelValue,wP.Color))&&void 0!==x?x:Jh.TEXT,background:null!==(E=null!==(C=LP(e,null==Z?void 0:Z[SP.Background]))&&void 0!==C?C:oe(EP.Dimension,CP.LabelValue,wP.BackgroundColor))&&void 0!==E?E:Hb.Transparent},measureValues:{fontSize:null!==(w=null!==(R=RP(null==Q?void 0:Q[SP.FontSize]))&&void 0!==R?R:oe(EP.Measure,CP.LabelValue,wP.FontSize))&&void 0!==w?w:zb,fontFamily:null!==(L=null!==(I=null==Q?void 0:Q[SP.FontFamily])&&void 0!==I?I:oe(EP.Measure,CP.LabelValue,wP.FontFamily))&&void 0!==L?L:$b,fontWeight:AP(null==Q?void 0:Q[SP.FontStyle],"normal"),fontStyle:MP(null==Q?void 0:Q[SP.FontStyle]),textDecoration:DP(null==Q?void 0:Q[SP.FontStyle]),color:null!==(A=null!==(M=LP(e,null==Q?void 0:Q[SP.FontColor]))&&void 0!==M?M:oe(EP.Measure,CP.LabelValue,wP.Color))&&void 0!==A?A:Hb.FontSecondary,background:null!==(D=null!==(P=LP(e,null==Q?void 0:Q[SP.Background]))&&void 0!==P?P:oe(EP.Measure,CP.LabelValue,wP.BackgroundColor))&&void 0!==D?D:Hb.Transparent},measureLabels:{fontWeight:AP(null==ee?void 0:ee[SP.FontStyle],"normal"),fontStyle:MP(null==ee?void 0:ee[SP.FontStyle]),textDecoration:DP(null==ee?void 0:ee[SP.FontStyle]),color:null!==(_=null!==(k=LP(e,null==ee?void 0:ee[SP.FontColor]))&&void 0!==k?k:oe(EP.Measure,CP.LabelName,wP.Color))&&void 0!==_?_:Hb.FontSecondary,background:null!==(T=null!==(O=LP(e,null==ee?void 0:ee[SP.Background]))&&void 0!==O?O:oe(EP.Measure,CP.LabelName,wP.BackgroundColor))&&void 0!==T?T:Hb.Transparent},totalValues:{fontWeight:AP(null==te?void 0:te[SP.FontStyle],Gb),fontStyle:MP(null==te?void 0:te[SP.FontStyle]),textDecoration:DP(null==te?void 0:te[SP.FontStyle]),color:null!==(q=null!==(N=LP(e,null==te?void 0:te[SP.FontColor]))&&void 0!==N?N:oe(EP.Total,CP.LabelValue,wP.Color))&&void 0!==q?q:Jh.TEXT,background:null!==(F=null!==(j=LP(e,null==te?void 0:te[SP.Background]))&&void 0!==j?j:oe(EP.Total,CP.LabelValue,wP.BackgroundColor))&&void 0!==F?F:Hb.Transparent},nullValues:{fontWeight:AP(null==re?void 0:re[SP.FontStyle],"normal"),fontStyle:MP(null==re?void 0:re[SP.FontStyle]),textDecoration:DP(null==re?void 0:re[SP.FontStyle]),color:null!==(z=null!==($=LP(e,null==re?void 0:re[SP.FontColor]))&&void 0!==$?$:oe(EP.Null,CP.LabelValue,wP.Color))&&void 0!==z?z:Jh.TEXT,background:null!==(G=null!==(B=LP(e,null==re?void 0:re[SP.Background]))&&void 0!==B?B:oe(EP.Null,CP.LabelValue,wP.BackgroundColor))&&void 0!==G?G:Hb.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(H=LP(e,null==ne?void 0:ne[SP.Border]))&&void 0!==H?H:oe(EP.Grid,CP.Grid,wP.BorderColor))&&void 0!==W?W:Hb.DividerLight,divider:null!==(V=null!==(Y=LP(e,null==ne?void 0:ne[SP.Divider]))&&void 0!==Y?Y:oe(EP.Grid,CP.Divider,wP.BorderColor))&&void 0!==V?V:Hb.DividerDark,background:null!==(U=null!==(K=LP(e,null==ne?void 0:ne[SP.Background]))&&void 0!==K?K:oe(EP.Grid,CP.Grid,wP.BackgroundColor))&&void 0!==U?U:Hb.Transparent}};return se.headerCellHeight=Math.max(IP(se.header.fontSize,ae),IP(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(IP(se.measureValues.fontSize,ie),IP(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=IP(se.dimensionValues.fontSize,1),se.selectedColors=Ab({desiredColor:se.dimensionValues.color,theme:e,flags:r}),se})(m,f,t)),[m,f,t]),j=(e=>E((()=>[...new Set([TP(e.header),TP(e.dimensionValues),TP({...e.dimensionValues,...e.measureLabels}),TP({...e.dimensionValues,...e.nullValues}),TP({...e.dimensionValues,...e.totalValues}),TP(e.measureValues),TP({...e.measureValues,...e.nullValues}),TP({...e.measureValues,...e.totalValues})])]),[e]))(F),z=(e=>{const[t,r]=C((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return r?(console.warn("Failed to load font:",r),!0):!!t})(j);Lv(),x((()=>{!A&&i&&L&&h&&w&&f&&F&&!!I&&!p&&z&&xP(n,{selections:h,baseObjects:{rect:L,pageInfo:v,qPivotDataPages:I,updatePageInfo:S},nebulaObjects:{env:e,app:a,model:i,embed:l,theme:m,keyboard:s,translator:g,interactions:u},coreServices:{styleService:F,viewService:w,layoutService:f,downloadService:c}})}),[i,a,L,u,h,w,f,c,A,I,F,n,z,g,b,v,S,d,p,l,s,m,e])},WP={version:"3.15.1",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},HP=()=>({...WP,qHyperCubeDef:{...WP.qHyperCubeDef,qIndentMode:!1}})}}}));
|