@nebula.js/sn-pivot-table 3.17.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v3.17.0
2
+ * @nebula.js/sn-pivot-table v4.0.0
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
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,m,h,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;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,m=e.createContext,h=e.memo,g=e.useLayoutEffect,b=e.PureComponent,v=e.useReducer},function(e){y=e.useMemo,x=e.useOptions,S=e.usePromise,E=e.useState,C=e.useEffect,w=e.useTheme,R=e.onContextMenu,L=e.onTakeSnapshot,I=e.useImperativeHandle,A=e.useTranslator,M=e.useElement,D=e.useStaleLayout,P=e.useModel,k=e.useApp,T=e.useEmbed,O=e.useKeyboard,_=e.useInteractionState,q=e.useSelections,N=e.useRect},function(e){F=e.default,j=e},function(e){z=e.default},function(e){G=e.default}],execute:function(){function $(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:dP()},data:At(e)},ext:cb(e),component(){uP(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,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>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 m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},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 k(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){k(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}L.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);k(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(k(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 T=L,O=function(e,r,n){if(!e)return Promise.resolve();var o=T.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)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===_)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 m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function G(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 $(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),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat($(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat($(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=G(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=G(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return 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=G(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),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",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:Te,applyModifiers:Oe,cleanUpMeasure:_e,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[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 ke={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===Me(n))return Oe({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ye({modifiers: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);$e(n);var o=Qe(n);return Ue({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;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}),Oe({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 _e(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Oe(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),$e(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,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 _e(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)):_e(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 _e(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 Ge(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&Ge(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]&&Ge(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):O(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===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)?(ke[t.id].masterItemSubscriber=ke[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 Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>$e});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function 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},k=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},O=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,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)}},_=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=[]))},G=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)}))}},$=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=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?k():w,L=s.defaultMeasure,I=void 0===L?T():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}),O({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),$({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),h.qProperty=g;var A=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:A}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function U(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(Y(a,t,n,o),U(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},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},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=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",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",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",ke="measures",Te="qHyperCubeDef.qDimensions",Oe="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const Ge={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:ke,itemPath:je}),we({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Oe,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:ke,itemPath:je}),Re({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Oe,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},$e={hypercube:H,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:Ge}})(),n.default})();var H=$(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:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},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:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===ue){var v=r[0];m=v.r,h=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))m=parseInt(y[1],10),h=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))m=parseInt(y[1],10),h=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,m=parseInt(y[2],10),h=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))m=parseInt(y[1],16),h=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))m=parseInt(y[1]+y[1],16),h=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,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),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,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),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,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(se[x.toLowerCase()]){a=x.toLowerCase();var w=se[a];m=w.r,h=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,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),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 me(e){return oe(e)?1===e.a?pe(e):fe(e):me(ce(e))}var he,ge,be=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ve(){var e=ce.apply(void 0,arguments);return e.invalid||function(e){return.2126*be(e.r)+.7152*be(e.g)+.0722*be(e.b)}(e)<.4}function ye(){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]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(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 ve(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=me(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(", "),")")},getBrightenedColor:function(){return ye(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return ye(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}var xe=function(){if(ge)return he;ge=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 he=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},he}();function Se(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ee(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ce(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(xe);var we=1/.7,Re="\\s*([+-]?\\d+)\\s*",Le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ae=/^#([0-9a-f]{3,8})$/,Me=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),De=new RegExp(`^rgb\\(${Ie},${Ie},${Ie}\\)$`),Pe=new RegExp(`^rgba\\(${Re},${Re},${Re},${Le}\\)$`),ke=new RegExp(`^rgba\\(${Ie},${Ie},${Ie},${Le}\\)$`),Te=new RegExp(`^hsl\\(${Le},${Ie},${Ie}\\)$`),Oe=new RegExp(`^hsla\\(${Le},${Ie},${Ie},${Le}\\)$`),_e={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 qe(){return this.rgb().formatHex()}function Ne(){return this.rgb().formatRgb()}function Fe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ae.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?je(t):3===r?new Be(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ze(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=Me.exec(e))?new Be(t[1],t[2],t[3],1):(t=De.exec(e))?new Be(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Pe.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=ke.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Te.exec(e))?Ke(t[1],t[2]/100,t[3]/100,1):(t=Oe.exec(e))?Ke(t[1],t[2]/100,t[3]/100,t[4]):_e.hasOwnProperty(e)?je(_e[e]):"transparent"===e?new Be(NaN,NaN,NaN,0):null}function je(e){return new Be(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,r,n){return n<=0&&(e=t=r=NaN),new Be(e,t,r,n)}function Ge(e){return e instanceof Ce||(e=Fe(e)),e?new Be((e=e.rgb()).r,e.g,e.b,e.opacity):new Be}function $e(e,t,r,n){return 1===arguments.length?Ge(e):new Be(e,t,r,null==n?1:n)}function Be(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function We(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}`}function He(){const e=Ve(this.opacity);return`${1===e?"rgb(":"rgba("}${Ye(this.r)}, ${Ye(this.g)}, ${Ye(this.b)}${1===e?")":`, ${e})`}`}function Ve(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ye(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ue(e){return((e=Ye(e))<16?"0":"")+e.toString(16)}function Ke(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Je(e,t,r,n)}function Xe(e){if(e instanceof Je)return new Je(e.h,e.s,e.l,e.opacity);if(e instanceof Ce||(e=Fe(e)),!e)return new Je;if(e instanceof Je)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 Je(a,l,s,e.opacity)}function Je(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Ze(e){return(e=(e||0)%360)<0?e+360:e}function Qe(e){return Math.max(0,Math.min(1,e||0))}function et(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Se(Ce,Fe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:Ne,toString:Ne}),Se(Be,$e,Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new Be(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Be(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Be(Ye(this.r),Ye(this.g),Ye(this.b),Ve(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:We,formatHex:We,formatHex8:function(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}${Ue(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:He,toString:He})),Se(Je,(function(e,t,r,n){return 1===arguments.length?Xe(e):new Je(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new Je(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Je(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 Be(et(e>=240?e-240:e+120,o,n),et(e,o,n),et(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Je(Ze(this.h),Qe(this.s),Qe(this.l),Ve(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=Ve(this.opacity);return`${1===e?"hsl(":"hsla("}${Ze(this.h)}, ${100*Qe(this.s)}%, ${100*Qe(this.l)}%${1===e?")":`, ${e})`}`}}));const tt=Math.PI/180,rt=180/Math.PI,nt=4/29,ot=6/29,it=3*ot*ot;function at(e){if(e instanceof lt)return new lt(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return ft(e);e instanceof Be||(e=Ge(e));var t,r,n=dt(e.r),o=dt(e.g),i=dt(e.b),a=st((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=st((.4360747*n+.3850649*o+.1430804*i)/.96422),r=st((.0139322*n+.0971045*o+.7141733*i)/.82521)),new lt(116*a-16,500*(t-a),200*(a-r),e.opacity)}function lt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function st(e){return e>.008856451679035631?Math.pow(e,1/3):e/it+nt}function ut(e){return e>ot?e*e*e:it*(e-nt)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ft(e){if(isNaN(e.h))return new lt(e.l,0,0,e.opacity);var t=e.h*tt;return new lt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Se(lt,(function(e,t,r,n){return 1===arguments.length?at(e):new lt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new lt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new lt(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 Be(ct(3.1338561*(t=.96422*ut(t))-1.6168667*(e=1*ut(e))-.4906146*(r=.82521*ut(r))),ct(-.9787684*t+1.9161415*e+.033454*r),ct(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Se(pt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof lt||(e=at(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rt;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ft(this).rgb()}}));var mt=e=>()=>e;function ht(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)?ht: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=$e(e)).r,(t=$e(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=ht(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 gt="center",bt="bottom";[{key:"NoDataExist",alignment:gt,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:gt,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:gt,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:gt},{key:"DataRangeIncludingZero",alignment:bt},{key:"LimitedData",alignment:bt},{key:"NegativeOrZeroValues",alignment:bt}].reduce((function(e,t){return e[t.key]=t,e}),{});var vt,yt=["__proto__","constructor"];function xt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!yt.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 St(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Et(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wt)):void 0===t&&(t=Ct);for(var r,n,o,i,a,l=new It(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 It(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Lt)}function Ct(e){return e.children}function wt(e){return Array.isArray(e)?e[1]:null}function Rt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Lt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function It(e){this.data=e,this.depth=this.height=0,this.parent=null}function At(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")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}It.prototype=Et.prototype={constructor:It,count:function(){return this.eachAfter(St)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],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 Et(this).eachBefore(Rt)},[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)}},vt=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,m,h,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;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,m=e.createContext,h=e.memo,g=e.useLayoutEffect,b=e.PureComponent,v=e.useReducer},function(e){y=e.useMemo,x=e.useOptions,S=e.usePromise,E=e.useState,C=e.useEffect,w=e.useTheme,R=e.onContextMenu,L=e.onTakeSnapshot,I=e.useImperativeHandle,A=e.useTranslator,M=e.useElement,D=e.useStaleLayout,P=e.useModel,k=e.useApp,T=e.useEmbed,O=e.useKeyboard,_=e.useInteractionState,q=e.useSelections,N=e.useRect},function(e){F=e.default,j=e},function(e){z=e.default},function(e){G=e.default}],execute:function(){function $(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:uP()},data:At(e)},ext:sb(e),component(){lP(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,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>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 m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},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 k(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){k(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}L.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);k(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(k(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 T=L,O=function(e,r,n){if(!e)return Promise.resolve();var o=T.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)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===_)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 m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function G(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 $(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),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat($(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat($(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=G(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=G(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return 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=G(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),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",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:Te,applyModifiers:Oe,cleanUpMeasure:_e,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[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 ke={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===Me(n))return Oe({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ye({modifiers: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);$e(n);var o=Qe(n);return Ue({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;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}),Oe({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 _e(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Oe(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),$e(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,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 _e(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)):_e(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 _e(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 Ge(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&Ge(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]&&Ge(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):O(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===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)?(ke[t.id].masterItemSubscriber=ke[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 Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>$e});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function 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},k=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},O=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,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)}},_=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=[]))},G=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)}))}},$=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=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?k():w,L=s.defaultMeasure,I=void 0===L?T():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}),O({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),$({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),h.qProperty=g;var A=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:A}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function U(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(Y(a,t,n,o),U(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},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},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=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",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",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",ke="measures",Te="qHyperCubeDef.qDimensions",Oe="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const Ge={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:ke,itemPath:je}),we({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Oe,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:ke,itemPath:je}),Re({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Oe,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},$e={hypercube:H,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:Ge}})(),n.default})();var H=$(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:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},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:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===ue){var v=r[0];m=v.r,h=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))m=parseInt(y[1],10),h=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))m=parseInt(y[1],10),h=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,m=parseInt(y[2],10),h=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))m=parseInt(y[1],16),h=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))m=parseInt(y[1]+y[1],16),h=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,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),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,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),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,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(se[x.toLowerCase()]){a=x.toLowerCase();var w=se[a];m=w.r,h=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,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),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 me(e){return oe(e)?1===e.a?pe(e):fe(e):me(ce(e))}var he,ge,be=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ve(){var e=ce.apply(void 0,arguments);return e.invalid||function(e){return.2126*be(e.r)+.7152*be(e.g)+.0722*be(e.b)}(e)<.4}function ye(){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]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(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 ve(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=me(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(", "),")")},getBrightenedColor:function(){return ye(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return ye(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}var xe=function(){if(ge)return he;ge=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 he=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},he}();function Se(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ee(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ce(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(xe);var we=1/.7,Re="\\s*([+-]?\\d+)\\s*",Le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ae=/^#([0-9a-f]{3,8})$/,Me=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),De=new RegExp(`^rgb\\(${Ie},${Ie},${Ie}\\)$`),Pe=new RegExp(`^rgba\\(${Re},${Re},${Re},${Le}\\)$`),ke=new RegExp(`^rgba\\(${Ie},${Ie},${Ie},${Le}\\)$`),Te=new RegExp(`^hsl\\(${Le},${Ie},${Ie}\\)$`),Oe=new RegExp(`^hsla\\(${Le},${Ie},${Ie},${Le}\\)$`),_e={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 qe(){return this.rgb().formatHex()}function Ne(){return this.rgb().formatRgb()}function Fe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ae.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?je(t):3===r?new Be(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ze(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=Me.exec(e))?new Be(t[1],t[2],t[3],1):(t=De.exec(e))?new Be(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Pe.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=ke.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Te.exec(e))?Ke(t[1],t[2]/100,t[3]/100,1):(t=Oe.exec(e))?Ke(t[1],t[2]/100,t[3]/100,t[4]):_e.hasOwnProperty(e)?je(_e[e]):"transparent"===e?new Be(NaN,NaN,NaN,0):null}function je(e){return new Be(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,r,n){return n<=0&&(e=t=r=NaN),new Be(e,t,r,n)}function Ge(e){return e instanceof Ce||(e=Fe(e)),e?new Be((e=e.rgb()).r,e.g,e.b,e.opacity):new Be}function $e(e,t,r,n){return 1===arguments.length?Ge(e):new Be(e,t,r,null==n?1:n)}function Be(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function We(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}`}function He(){const e=Ve(this.opacity);return`${1===e?"rgb(":"rgba("}${Ye(this.r)}, ${Ye(this.g)}, ${Ye(this.b)}${1===e?")":`, ${e})`}`}function Ve(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ye(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ue(e){return((e=Ye(e))<16?"0":"")+e.toString(16)}function Ke(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Je(e,t,r,n)}function Xe(e){if(e instanceof Je)return new Je(e.h,e.s,e.l,e.opacity);if(e instanceof Ce||(e=Fe(e)),!e)return new Je;if(e instanceof Je)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 Je(a,l,s,e.opacity)}function Je(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Ze(e){return(e=(e||0)%360)<0?e+360:e}function Qe(e){return Math.max(0,Math.min(1,e||0))}function et(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Se(Ce,Fe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:Ne,toString:Ne}),Se(Be,$e,Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new Be(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Be(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Be(Ye(this.r),Ye(this.g),Ye(this.b),Ve(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:We,formatHex:We,formatHex8:function(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}${Ue(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:He,toString:He})),Se(Je,(function(e,t,r,n){return 1===arguments.length?Xe(e):new Je(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new Je(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Je(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 Be(et(e>=240?e-240:e+120,o,n),et(e,o,n),et(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Je(Ze(this.h),Qe(this.s),Qe(this.l),Ve(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=Ve(this.opacity);return`${1===e?"hsl(":"hsla("}${Ze(this.h)}, ${100*Qe(this.s)}%, ${100*Qe(this.l)}%${1===e?")":`, ${e})`}`}}));const tt=Math.PI/180,rt=180/Math.PI,nt=4/29,ot=6/29,it=3*ot*ot;function at(e){if(e instanceof lt)return new lt(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return ft(e);e instanceof Be||(e=Ge(e));var t,r,n=dt(e.r),o=dt(e.g),i=dt(e.b),a=st((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=st((.4360747*n+.3850649*o+.1430804*i)/.96422),r=st((.0139322*n+.0971045*o+.7141733*i)/.82521)),new lt(116*a-16,500*(t-a),200*(a-r),e.opacity)}function lt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function st(e){return e>.008856451679035631?Math.pow(e,1/3):e/it+nt}function ut(e){return e>ot?e*e*e:it*(e-nt)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ft(e){if(isNaN(e.h))return new lt(e.l,0,0,e.opacity);var t=e.h*tt;return new lt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Se(lt,(function(e,t,r,n){return 1===arguments.length?at(e):new lt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new lt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new lt(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 Be(ct(3.1338561*(t=.96422*ut(t))-1.6168667*(e=1*ut(e))-.4906146*(r=.82521*ut(r))),ct(-.9787684*t+1.9161415*e+.033454*r),ct(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Se(pt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof lt||(e=at(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rt;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ft(this).rgb()}}));var mt=e=>()=>e;function ht(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)?ht: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=$e(e)).r,(t=$e(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=ht(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 gt="center",bt="bottom";[{key:"NoDataExist",alignment:gt,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:gt,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:gt,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:gt},{key:"DataRangeIncludingZero",alignment:bt},{key:"LimitedData",alignment:bt},{key:"NegativeOrZeroValues",alignment:bt}].reduce((function(e,t){return e[t.key]=t,e}),{});var vt,yt=["__proto__","constructor"];function xt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!yt.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 St(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Et(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wt)):void 0===t&&(t=Ct);for(var r,n,o,i,a,l=new It(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 It(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Lt)}function Ct(e){return e.children}function wt(e){return Array.isArray(e)?e[1]:null}function Rt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Lt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function It(e){this.data=e,this.depth=this.height=0,this.parent=null}function At(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")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}It.prototype=Et.prototype={constructor:It,count:function(){return this.eachAfter(St)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],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 Et(this).eachBefore(Rt)},[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)}},vt=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},vt({exports:{}});const Mt="qHyperCubeDef.qDimensions",Dt="dimensions",Pt="qOtherTotalSpec.qTotalMode",kt="totalMode",Tt={quarantine(e){H.quarantineArrayProp({properties:e,arrayPath:Mt,quarantineName:kt,arrayName:Dt,itemPath:Pt})},unquarantine(e){H.unquarantineArrayProp({properties:e,arrayPath:Mt,quarantineName:kt,arrayName:Dt,itemPath:Pt})}};function Ot(e){const t=At(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 m,h=(null===(l=d.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l?void 0:l.qInterColumnSortOrder)||[],g=!0;p+f===h.length&&xt(d,"qProperty.qLayoutExclude.quarantine.interColSortOrder",h.concat());const b=(null==d||null===(s=d.qProperty)||void 0===s||null===(s=s.qLayoutExclude)||void 0===s||null===(s=s.quarantine)||void 0===s?void 0:s.pivotInterColSortOrder)||void 0;b?(h=b,m=[...b],xt(d,"qProperty.qHyperCubeDef.qInterColumnSortOrder",h),delete d.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):h.length=0;const v=+(h.indexOf(-1)>-1),y=p+v;if(y>h.length)for(let e=h.length;e<y;e++)h.indexOf(e)<0&&h.push(e-v);for(let e=h.length-1;e>=0;e--)h[e]>=p&&h.splice(e,1);f>1&&h.indexOf(-1)<0?h.push(-1):f<2&&h.indexOf(-1)>-1&&h.splice(h.indexOf(-1),1);const x=null!==(u=null==d||null===(c=d.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qNoOfLeftDims)&&void 0!==u?u:-1;if(p>0&&-1===x&&xt(d,"qProperty.qHyperCubeDef.qNoOfLeftDims",p),m&&h&&m.length===h.length){for(let e=0;e<m.length;e++)if(m[e]!==h[e]){g=!1;break}g&&H.unquarantineProperty(d.qProperty,"noOfLeftDims")}return H.conditionalShow.unquarantine(d.qProperty),Tt.unquarantine(d.qProperty),re(d.qProperty),H.unquarantineProperty(d.qProperty,"pivotTableIndentMode"),d}}function _t(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;xt(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,xt(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),xt(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),Tt.quarantine(s.properties),ne(s.properties),s}const qt={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let Nt=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e}({}),Ft=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const jt=e=>{switch(null==e?void 0:e.type){case"url":return Nt.Link;case"image":return Nt.Image;case"indicator":return Nt.Indicator;case"miniChart":return Nt.MiniChart;default:return Nt.Text}},zt=({args:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}={}})=>!e.properties.qHyperCubeDef.qIndentMode||(!(!r&&!n)||!t),Gt=({isImagesEnabled:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:r})=>{const{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}=null!=r?r:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,r,i)=>zt({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}}},$t=(e,t)=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(r,n,o)=>jt(r.qDef.representation)===Nt.Link&&zt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(r,n,o)=>{var i;return jt(r.qDef.representation)===Nt.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===Ft.Dimension&&zt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(r,n,o)=>{var i;return jt(r.qDef.representation)===Nt.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===Ft.Attribute&&zt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}}}),Bt=(e,t,r)=>{if(e||r)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,o)=>jt(e.qDef.representation)===Nt.Image&&zt({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"}]}}}}},Wt=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:Gt({isImagesEnabled:s,isIndentModeEnabled:i,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:a,isImagesSupportedInIndentMode:l}}),...$t(i,a),...Bt(s,i,l)}},Ht=(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===Nt.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===Nt.MiniChart)),c=n.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=i&&i("tableIndicators"))&&t.some((e=>e===Nt.Indicator));return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>zt({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)=>jt(e.qDef.representation)===Nt.Image&&zt({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 Vt,Yt,Ut,Kt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Vt||(Vt={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Yt||(Yt={})),function(e){e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid"}(Ut||(Ut={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Kt||(Kt={}));const Xt="12px",Jt="nebula-table-utils-head-menu-button",Zt="sn-copy-cell";let Qt=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e}({});const er="nebula-table-utils-column-adjuster";let tr=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}({}),rr=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const nr={darker:.15,brighter:.3,opacity:.03},or={darker:.3,brighter:.5,opacity:.05};let ir=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({});var ar,lr;!function(e){e.Value="V",e.Empty="E",e.Normal="N",e.Total="T",e.Other="O",e.Aggr="A",e.Pseudo="P",e.Root="R",e.Null="U",e.Generated="G"}(ar||(ar={})),function(e){e.Data="D",e.Top="T",e.Left="L"}(lr||(lr={}));var sr=ar;const ur="image",cr=(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},dr=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:rr.Auto,translation:"Common.Auto"},{value:rr.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:rr.Pixels,translation:"Object.Table.Column.Pixels"},{value:rr.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:rr.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tr.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===rr.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(tr.PixelsMin,Math.min(tr.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tr.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===rr.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(tr.PercentageMin,Math.min(tr.PercentageMax,e.qDef.columnWidth.percentage)))}}}),pr=({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)!==ur}},[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)!==ur)}}}},fr="TOTAL_OFF",mr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Yt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Yt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},hr="TOTAL_OFF",gr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Yt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Yt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},br=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:fr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:fr,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&cr},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)!==fr&&cr(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:mr,...pr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...pr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Wt(e),...dr()}}}},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:mr,...pr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...pr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ht(e,[Nt.Image]),...dr()}}}}}}})(e),l=i.isEnabled("IM_6843_FILTER_ADVANCED_MODE");return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.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:hr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:hr,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&cr},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)!==hr&&cr(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:gr,...pr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...pr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Wt(e),...dr()}},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:gr,...pr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...pr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ht(e,[Nt.Image]),...dr()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,show:l,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}};function vr(){return vr=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},vr.apply(null,arguments)}var yr={exports:{}};function xr(){}function Sr(){}Sr.resetWarningCache=xr;yr.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:Sr,resetWarningCache:xr};return r.PropTypes=r,r}();var Er=$(yr.exports);function Cr(e){if(e.type)return e;if("#"===e.charAt(0))return Cr(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 wr(e,t){return e=Cr(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 Rr(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 Lr(e,t){return Lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lr(e,t)}function Ir(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lr(e,t)}function Ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Mr={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"},Dr={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",...Mr,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)"},Pr=12,kr=14,Tr=16,Or=24,_r=3,qr=300,Nr=400,Fr=600,jr=700,zr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};wr(Dr.GREYSCALE_0,.05),wr(Dr.GREEN_PALE,.5),wr(Dr.BLUE_PALE,.5),wr(Dr.GREEN_PALE,.5),wr(Dr.BLUE_PALE,.5),wr(Dr.GREEN_PALE,.5),wr(Dr.BLUE_PALE,.5);var Gr;function $r(){return $r=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},$r.apply(null,arguments)}wr(Dr.GREEN_PALE,.5),wr(Dr.BLUE_PALE,.5),wr(Dr.GREEN_PALE,.5),wr(Dr.BLUE_PALE,.5);var Br,Wr=function(e){return t.createElement("svg",$r({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Gr||(Gr=t.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Hr(){return Hr=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},Hr.apply(null,arguments)}var Vr=function(e){return t.createElement("svg",Hr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Br||(Br=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 Yr({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 Ur=(e={})=>r.createElement(Yr,{...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"}))),Kr=(e={})=>r.createElement(Yr,{...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"})))),Xr=(e={})=>r.createElement(Yr,{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"})))),Jr=(e={})=>r.createElement(Yr,{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"}))),Zr=({className:e})=>r.createElement(Yr,{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 Qr={black:"#000",white:"#fff"};var en={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 tn={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 rn={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 nn={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 on={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 an={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 ln={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 sn(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 un="$$material";function cn(){return cn=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},cn.apply(this,arguments)}function dn(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 pn(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 fn=Object.freeze({__proto__:null,default:pn}),mn=function(){return mn=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},mn.apply(this,arguments)};function hn(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 gn="-ms-",bn="-moz-",vn="-webkit-",yn="comm",xn="rule",Sn="decl",En="@keyframes",Cn=Math.abs,wn=String.fromCharCode,Rn=Object.assign;function Ln(e){return e.trim()}function In(e,t){return(e=t.exec(e))?e[0]:e}function An(e,t,r){return e.replace(t,r)}function Mn(e,t,r){return e.indexOf(t,r)}function Dn(e,t){return 0|e.charCodeAt(t)}function Pn(e,t,r){return e.slice(t,r)}function kn(e){return e.length}function Tn(e){return e.length}function On(e,t){return t.push(e),e}function _n(e,t){return e.filter((function(e){return!In(e,t)}))}var qn=1,Nn=1,Fn=0,jn=0,zn=0,Gn="";function $n(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:qn,column:Nn,length:a,return:"",siblings:l}}function Bn(e,t){return Rn($n("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Wn(e){for(;e.root;)e=Bn(e.root,{children:[e]});On(e,e.siblings)}function Hn(){return zn=jn>0?Dn(Gn,--jn):0,Nn--,10===zn&&(Nn=1,qn--),zn}function Vn(){return zn=jn<Fn?Dn(Gn,jn++):0,Nn++,10===zn&&(Nn=1,qn++),zn}function Yn(){return Dn(Gn,jn)}function Un(){return jn}function Kn(e,t){return Pn(Gn,e,t)}function Xn(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 Jn(e){return Ln(Kn(jn-1,eo(91===e?e+2:40===e?e+1:e)))}function Zn(e){for(;(zn=Yn())&&zn<33;)Vn();return Xn(e)>2||Xn(zn)>3?"":" "}function Qn(e,t){for(;--t&&Vn()&&!(zn<48||zn>102||zn>57&&zn<65||zn>70&&zn<97););return Kn(e,Un()+(t<6&&32==Yn()&&32==Vn()))}function eo(e){for(;Vn();)switch(zn){case e:return jn;case 34:case 39:34!==e&&39!==e&&eo(zn);break;case 40:41===e&&eo(e);break;case 92:Vn()}return jn}function to(e,t){for(;Vn()&&e+zn!==57&&(e+zn!==84||47!==Yn()););return"/*"+Kn(t,jn-1)+"*"+wn(47===e?e:Vn())}function ro(e){for(;!Xn(Yn());)Vn();return Kn(e,jn)}function no(e){return function(e){return Gn="",e}(oo("",null,null,null,[""],e=function(e){return qn=Nn=1,Fn=kn(Gn=e),jn=0,[]}(e),0,[0],e))}function oo(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=Vn()){case 40:if(108!=m&&58==Dn(C,d-1)){-1!=Mn(C+=An(Jn(v),"&","&\f"),"&\f",Cn(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Jn(v);break;case 9:case 10:case 13:case 32:C+=Zn(m);break;case 92:C+=Qn(Un()-1,7);continue;case 47:switch(Yn()){case 42:case 47:On(ao(to(Vn(),Un()),t,r,s),s);break;default:C+="/"}break;case 123*h:l[u++]=kn(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=An(C,/\f/g,"")),f>0&&kn(C)-d&&On(f>32?lo(C+";",n,r,d-1,s):lo(An(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(On(E=io(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)oo(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Dn(C,3)?100:p){case 100:case 108:case 109:case 115:oo(e,E,E,n&&On(io(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:oo(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+kn(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Hn())continue;switch(C+=wn(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(kn(C)-1)*b,b=1;break;case 64:45===Yn()&&(C+=Jn(Vn())),p=Yn(),c=d=kn(y=C+=ro(Un())),v++;break;case 45:45===m&&2==kn(C)&&(h=0)}}return i}function io(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Tn(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=Pn(e,p+1,p=Cn(g=a[h])),x=e;v<m;++v)(x=Ln(g>0?f[v]+" "+y:An(y,/&\f/g,f[v])))&&(s[b++]=x);return $n(e,t,r,0===o?xn:l,s,u,c,d)}function ao(e,t,r,n){return $n(e,t,r,yn,wn(zn),Pn(e,2,-2),0,n)}function lo(e,t,r,n,o){return $n(e,t,r,Sn,Pn(e,0,n),Pn(e,n+1,-1),n,o)}function so(e,t,r){switch(function(e,t){return 45^Dn(e,0)?(((t<<2^Dn(e,0))<<2^Dn(e,1))<<2^Dn(e,2))<<2^Dn(e,3):0}(e,t)){case 5103:return vn+"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 vn+e+e;case 4789:return bn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return vn+e+bn+e+gn+e+e;case 5936:switch(Dn(e,t+11)){case 114:return vn+e+gn+An(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vn+e+gn+An(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vn+e+gn+An(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return vn+e+gn+e+e;case 6165:return vn+e+gn+"flex-"+e+e;case 5187:return vn+e+An(e,/(\w+).+(:[^]+)/,vn+"box-$1$2"+gn+"flex-$1$2")+e;case 5443:return vn+e+gn+"flex-item-"+An(e,/flex-|-self/g,"")+(In(e,/flex-|baseline/)?"":gn+"grid-row-"+An(e,/flex-|-self/g,""))+e;case 4675:return vn+e+gn+"flex-line-pack"+An(e,/align-content|flex-|-self/g,"")+e;case 5548:return vn+e+gn+An(e,"shrink","negative")+e;case 5292:return vn+e+gn+An(e,"basis","preferred-size")+e;case 6060:return vn+"box-"+An(e,"-grow","")+vn+e+gn+An(e,"grow","positive")+e;case 4554:return vn+An(e,/([^-])(transform)/g,"$1"+vn+"$2")+e;case 6187:return An(An(An(e,/(zoom-|grab)/,vn+"$1"),/(image-set)/,vn+"$1"),e,"")+e;case 5495:case 3959:return An(e,/(image-set\([^]*)/,vn+"$1$`$1");case 4968:return An(An(e,/(.+:)(flex-)?(.*)/,vn+"box-pack:$3"+gn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+vn+e+e;case 4200:if(!In(e,/flex-|baseline/))return gn+"grid-column-align"+Pn(e,t)+e;break;case 2592:case 3360:return gn+An(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,In(e.props,/grid-\w+-end/)}))?~Mn(e+(r=r[t].value),"span",0)?e:gn+An(e,"-start","")+e+gn+"grid-row-span:"+(~Mn(r,"span",0)?In(r,/\d+/):+In(r,/\d+/)-+In(e,/\d+/))+";":gn+An(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return In(e.props,/grid-\w+-start/)}))?e:gn+An(An(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return An(e,/(.+)-inline(.+)/,vn+"$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(kn(e)-1-t>6)switch(Dn(e,t+1)){case 109:if(45!==Dn(e,t+4))break;case 102:return An(e,/(.+:)(.+)-([^]+)/,"$1"+vn+"$2-$3$1"+bn+(108==Dn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Mn(e,"stretch",0)?so(An(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return An(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return gn+r+":"+n+l+(o?gn+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===Dn(e,t+6))return An(e,":",":"+vn)+e;break;case 6444:switch(Dn(e,45===Dn(e,14)?18:11)){case 120:return An(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+vn+(45===Dn(e,14)?"inline-":"")+"box$3$1"+vn+"$2$3$1"+gn+"$2box$3")+e;case 100:return An(e,":",":"+gn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return An(e,"scroll-","scroll-snap-")+e}return e}function uo(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function co(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Sn:return e.return=e.return||e.value;case yn:return"";case En:return e.return=e.value+"{"+uo(e.children,n)+"}";case xn:if(!kn(e.value=e.props.join(",")))return""}return kn(r=uo(e.children,n))?e.return=e.value+"{"+r+"}":""}function po(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Sn:return void(e.return=so(e.value,e.length,r));case En:return uo([Bn(e,{value:An(e.value,"@","@"+vn)})],n);case xn:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(In(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Wn(Bn(e,{props:[An(t,/:(read-\w+)/,":-moz-$1")]})),Wn(Bn(e,{props:[t]})),Rn(e,{props:_n(r,n)});break;case"::placeholder":Wn(Bn(e,{props:[An(t,/:(plac\w+)/,":"+vn+"input-$1")]})),Wn(Bn(e,{props:[An(t,/:(plac\w+)/,":-moz-$1")]})),Wn(Bn(e,{props:[An(t,/:(plac\w+)/,gn+"input-$1")]})),Wn(Bn(e,{props:[t]})),Rn(e,{props:_n(r,n)})}return""}))}}var fo={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},mo="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ho="active",go="data-styled-version",bo="6.1.13",vo="/*!sc*/\n",yo="undefined"!=typeof window&&"HTMLElement"in window,xo=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)),So={},Eo=Object.freeze([]),Co=Object.freeze({});function wo(e,t,r){return void 0===r&&(r=Co),e.theme!==r.theme&&e.theme||t||r.theme}var Ro=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"]),Lo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Io=/(^-|-$)/g;function Ao(e){return e.replace(Lo,"-").replace(Io,"")}var Mo=/(a)(d)/gi,Do=function(e){return String.fromCharCode(e+(e>25?39:97))};function Po(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Do(t%52)+r;return(Do(t%52)+r).replace(Mo,"$1-$2")}var ko,To=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Oo=function(e){return To(5381,e)};function _o(e){return Po(Oo(e)>>>0)}function qo(e){return"string"==typeof e&&!0}var No="function"==typeof Symbol&&Symbol.for,Fo=No?Symbol.for("react.memo"):60115,jo=No?Symbol.for("react.forward_ref"):60112,zo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Go={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},$o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bo=((ko={})[jo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ko[Fo]=$o,ko);function Wo(e){return("type"in(t=e)&&t.type.$$typeof)===Fo?$o:"$$typeof"in e?Bo[e.$$typeof]:zo;var t}var Ho=Object.defineProperty,Vo=Object.getOwnPropertyNames,Yo=Object.getOwnPropertySymbols,Uo=Object.getOwnPropertyDescriptor,Ko=Object.getPrototypeOf,Xo=Object.prototype;function Jo(e,t,r){if("string"!=typeof t){if(Xo){var n=Ko(t);n&&n!==Xo&&Jo(e,n,r)}var o=Vo(t);Yo&&(o=o.concat(Yo(t)));for(var i=Wo(e),a=Wo(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Go||r&&r[s]||a&&s in a||i&&s in i)){var u=Uo(t,s);try{Ho(e,s,u)}catch(e){}}}}return e}function Zo(e){return"function"==typeof e}function Qo(e){return"object"==typeof e&&"styledComponentId"in e}function ei(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ti(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 ri(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ni(e,t,r){if(void 0===r&&(r=!1),!r&&!ri(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ni(e[n],t[n]);else if(ri(t))for(var n in t)e[n]=ni(e[n],t[n]);return e}function oi(e,t){Object.defineProperty(e,"toString",{value:t})}function ii(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 ai=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 ii(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(vo);return t},e}(),li=new Map,si=new Map,ui=1,ci=function(e){if(li.has(e))return li.get(e);for(;si.has(ui);)ui++;var t=ui++;return li.set(e,t),si.set(t,e),t},di=function(e,t){ui=t+1,li.set(e,t),si.set(t,e)},pi="style[".concat(mo,"][").concat(go,'="').concat(bo,'"]'),fi=new RegExp("^".concat(mo,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),mi=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},hi=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(vo),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(fi);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(di(c,u),mi(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},gi=function(e){for(var t=document.querySelectorAll(pi),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(mo)!==ho&&(hi(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var bi=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(mo,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(mo,ho),n.setAttribute(go,bo);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},vi=function(){function e(e){this.element=bi(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 ii(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}(),yi=function(){function e(e){this.element=bi(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}(),xi=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Si=yo,Ei={isServer:!yo,useCSSOMInjection:!xo},Ci=function(){function e(e,t,r){void 0===e&&(e=Co),void 0===t&&(t={});var n=this;this.options=mn(mn({},Ei),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&yo&&Si&&(Si=!1,gi(this)),oi(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return si.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(mo,".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(vo)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return ci(e)},e.prototype.rehydrate=function(){!this.server&&yo&&gi(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(mn(mn({},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 xi(r):t?new vi(r):new yi(r)}(this.options),new ai(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(ci(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(ci(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(ci(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),wi=/&/g,Ri=/^\s*\/\/.*$/gm;function Li(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=Li(e.children,t)),e}))}var Ii=new Ci,Ai=function(e){var t,r,n,o=void 0===e?Co:e,i=o.options,a=void 0===i?Co:i,l=o.plugins,s=void 0===l?Eo: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===xn&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(wi,r).replace(n,u))})),a.prefix&&c.push(po),c.push(co);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(Ri,""),u=no(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Li(u,a.namespace));var d,p=[];return uo(u,function(e){var t=Tn(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||ii(15),To(e,t.name)}),5381).toString():"",d}(),Mi=r.createContext({shouldForwardProp:void 0,styleSheet:Ii,stylis:Ai});function Di(){return n(Mi)}Mi.Consumer;var Pi=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Ai);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,oi(this,(function(){throw ii(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ai),this.name+e.hash},e}(),ki=function(e){return e>="A"&&e<="Z"};function Ti(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;ki(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Oi=function(e){return null==e||!1===e||""===e},_i=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Oi(i)&&(Array.isArray(i)&&i.isCss||Zo(i)?n.push("".concat(Ti(o),":"),i,";"):ri(i)?n.push.apply(n,hn(hn(["".concat(o," {")],_i(i),!1),["}"],!1)):n.push("".concat(Ti(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in fo||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function qi(e,t,r,n){return Oi(e)?[]:Qo(e)?[".".concat(e.styledComponentId)]:Zo(e)?!Zo(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:qi(e(t),t,r,n):e instanceof Pi?r?(e.inject(r,n),[e.getName(n)]):[e]:ri(e)?_i(e):Array.isArray(e)?Array.prototype.concat.apply(Eo,e.map((function(e){return qi(e,t,r,n)}))):[e.toString()];var o}function Ni(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Zo(r)&&!Qo(r))return!1}return!0}var Fi=Oo(bo),ji=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Ni(e),this.componentId=t,this.baseHash=To(Fi,t),this.baseStyle=r,Ci.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=ei(n,this.staticRulesId);else{var o=ti(qi(this.rules,e,t,r)),i=Po(To(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=ei(n,i),this.staticRulesId=i}else{for(var l=To(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=ti(qi(c,e,t,r));l=To(l,d+u),s+=d}}if(s){var p=Po(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=ei(n,p)}}return n},e}(),zi=r.createContext(void 0);zi.Consumer;var Gi={};new Set;function $i(e,t,n){var i=Qo(e),a=e,l=!qo(e),s=t.attrs,u=void 0===s?Eo:s,c=t.componentId,d=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Ao(e);Gi[r]=(Gi[r]||0)+1;var n="".concat(r,"-").concat(_o(bo+r+Gi[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,p=t.displayName,f=void 0===p?function(e){return qo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,m=t.displayName&&t.componentId?"".concat(Ao(t.displayName),"-").concat(t.componentId):t.componentId||d,h=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 ji(n,m,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(zi),p=Di(),f=e.shouldForwardProp||p.shouldForwardProp,m=wo(t,d,l)||Co,h=function(e,t,r){for(var n,o=mn(mn({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Zo(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?ei(o[l],a[l]):"style"===l?mn(mn({},o[l]),a[l]):a[l]}return t.className&&(o.className=ei(o.className,t.className)),o}(i,t,m),g=h.as||c,b={};for(var v in h)void 0===h[v]||"$"===v[0]||"as"===v||"theme"===v&&h.theme===m||("forwardedAs"===v?b.as=h.forwardedAs:f&&!f(v,g)||(b[v]=h[v]));var y=function(e,t){var r=Di();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,h),x=ei(s,u);return y&&(x+=" "+y),h.className&&(x+=" "+h.className),b[qo(g)&&!Ro.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=h,S.componentStyle=y,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=i?ei(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=m,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++)ni(e,o[n],!0);return e}({},a.defaultProps,e):e}}),oi(S,(function(){return".".concat(S.styledComponentId)})),l&&Jo(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Bi(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 Wi=function(e){return Object.assign(e,{isCss:!0})};function Hi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Zo(e)||ri(e))return Wi(qi(Bi(Eo,hn([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?qi(n):Wi(qi(Bi(n,t)))}function Vi(e,t,r){if(void 0===r&&(r=Co),!t)throw ii(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Hi.apply(void 0,hn([n],o,!1)))};return n.attrs=function(n){return Vi(e,t,mn(mn({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Vi(e,t,mn(mn({},r),n))},n}var Yi=function(e){return Vi($i,e)},Ui=Yi;Ro.forEach((function(e){Ui[e]=Yi(e)}));var Ki=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ni(e),Ci.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(ti(qi(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&Ci.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Xi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=ti(Hi.apply(void 0,hn([e],t,!1))),o=_o(n);return new Pi(o,n)}function Ji(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}Ji.propTypes={children:Er.node,injectFirst:Er.bool};const Zi=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Hi.apply(void 0,hn([e],t,!1)),i="sc-global-".concat(_o(JSON.stringify(o))),a=new Ki(o,i),l=function(e){var t=Di(),n=r.useContext(zi),o=r.useRef(t.styleSheet.allocateGSInstance(i)).current;return t.styleSheet.server&&s(o,e,t.styleSheet,n,t.stylis),r.useLayoutEffect((function(){if(!t.styleSheet.server)return s(o,e,t.styleSheet,n,t.stylis),function(){return a.removeStyles(o,t.styleSheet)}}),[o,e,t.styleSheet,n,t.stylis]),null};function s(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,So,r,o);else{var i=mn(mn({},t),{theme:wo(t,n,l.defaultProps)});a.renderStyles(e,i,r,o)}}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 Qi=Zi;
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},vt({exports:{}});const Mt="qHyperCubeDef.qDimensions",Dt="dimensions",Pt="qOtherTotalSpec.qTotalMode",kt="totalMode",Tt={quarantine(e){H.quarantineArrayProp({properties:e,arrayPath:Mt,quarantineName:kt,arrayName:Dt,itemPath:Pt})},unquarantine(e){H.unquarantineArrayProp({properties:e,arrayPath:Mt,quarantineName:kt,arrayName:Dt,itemPath:Pt})}};function Ot(e){const t=At(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 m,h=(null===(l=d.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l?void 0:l.qInterColumnSortOrder)||[],g=!0;p+f===h.length&&xt(d,"qProperty.qLayoutExclude.quarantine.interColSortOrder",h.concat());const b=(null==d||null===(s=d.qProperty)||void 0===s||null===(s=s.qLayoutExclude)||void 0===s||null===(s=s.quarantine)||void 0===s?void 0:s.pivotInterColSortOrder)||void 0;b?(h=b,m=[...b],xt(d,"qProperty.qHyperCubeDef.qInterColumnSortOrder",h),delete d.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):h.length=0;const v=+(h.indexOf(-1)>-1),y=p+v;if(y>h.length)for(let e=h.length;e<y;e++)h.indexOf(e)<0&&h.push(e-v);for(let e=h.length-1;e>=0;e--)h[e]>=p&&h.splice(e,1);f>1&&h.indexOf(-1)<0?h.push(-1):f<2&&h.indexOf(-1)>-1&&h.splice(h.indexOf(-1),1);const x=null!==(u=null==d||null===(c=d.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qNoOfLeftDims)&&void 0!==u?u:-1;if(p>0&&-1===x&&xt(d,"qProperty.qHyperCubeDef.qNoOfLeftDims",p),m&&h&&m.length===h.length){for(let e=0;e<m.length;e++)if(m[e]!==h[e]){g=!1;break}g&&H.unquarantineProperty(d.qProperty,"noOfLeftDims")}return H.conditionalShow.unquarantine(d.qProperty),Tt.unquarantine(d.qProperty),re(d.qProperty),H.unquarantineProperty(d.qProperty,"pivotTableIndentMode"),d}}function _t(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;xt(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,xt(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),xt(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),Tt.quarantine(s.properties),ne(s.properties),s}const qt={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let Nt=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e}({}),Ft=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const jt=e=>{switch(null==e?void 0:e.type){case"url":return Nt.Link;case"image":return Nt.Image;case"indicator":return Nt.Indicator;case"miniChart":return Nt.MiniChart;default:return Nt.Text}},zt=({args:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}={}})=>!e.properties.qHyperCubeDef.qIndentMode||(!(!r&&!n)||!t),Gt=({isImagesEnabled:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:r})=>{const{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}=null!=r?r:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,r,i)=>zt({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}}},$t=(e,t)=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(r,n,o)=>jt(r.qDef.representation)===Nt.Link&&zt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(r,n,o)=>{var i;return jt(r.qDef.representation)===Nt.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===Ft.Dimension&&zt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(r,n,o)=>{var i;return jt(r.qDef.representation)===Nt.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===Ft.Attribute&&zt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}}}),Bt=(e,t,r)=>{if(e||r)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,o)=>jt(e.qDef.representation)===Nt.Image&&zt({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"}]}}}}},Wt=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:Gt({isImagesEnabled:s,isIndentModeEnabled:i,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:a,isImagesSupportedInIndentMode:l}}),...$t(i,a),...Bt(s,i,l)}},Ht=(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===Nt.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===Nt.MiniChart)),c=n.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=i&&i("tableIndicators"))&&t.some((e=>e===Nt.Indicator));return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>zt({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)=>jt(e.qDef.representation)===Nt.Image&&zt({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 Vt,Yt,Ut,Kt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Vt||(Vt={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Yt||(Yt={})),function(e){e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid"}(Ut||(Ut={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Kt||(Kt={}));const Xt="12px",Jt="nebula-table-utils-head-menu-button",Zt="sn-copy-cell";let Qt=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e}({});const er="nebula-table-utils-column-adjuster";let tr=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}({}),rr=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const nr={darker:.15,brighter:.3,opacity:.03},or={darker:.3,brighter:.5,opacity:.05};let ir=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({});var ar;!function(e){e.Data="D",e.Top="T",e.Left="L"}(ar||(ar={}));const lr="image",sr=(e,t,r)=>{var n,o,i,a,l,s;if(null===(n=r.properties.qHyperCubeDef)||void 0===n||!n.qIndentMode)return!0;const u=null!==(o=null===(i=r.properties.qHyperCubeDef)||void 0===i||null===(i=i.qInterColumnSortOrder)||void 0===i?void 0:i.indexOf(-1))&&void 0!==o?o:-1;let c=null!==(a=r.properties.qHyperCubeDef.qNoOfLeftDims)&&void 0!==a?a:-1;u>-1&&u<c&&(c-=1);const d=null!==(l=null===(s=r.properties.qHyperCubeDef)||void 0===s||null===(s=s.qDimensions)||void 0===s?void 0:s.indexOf(e))&&void 0!==l?l:-1;return 0===d||d>=c},ur=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:rr.Auto,translation:"Common.Auto"},{value:rr.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:rr.Pixels,translation:"Object.Table.Column.Pixels"},{value:rr.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:rr.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tr.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===rr.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(tr.PixelsMin,Math.min(tr.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tr.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===rr.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(tr.PercentageMin,Math.min(tr.PercentageMax,e.qDef.columnWidth.percentage)))}}}),cr=({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)!==lr}},[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)!==lr)}}}},dr="TOTAL_OFF",pr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Yt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Yt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},fr="TOTAL_OFF",mr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Yt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Yt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},hr=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:dr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:dr,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&sr},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)!==dr&&sr(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:pr,...cr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...cr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Wt(e),...ur()}}}},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:pr,...cr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...cr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ht(e,[Nt.Image]),...ur()}}}}}}})(e),l=i.isEnabled("IM_6843_FILTER_ADVANCED_MODE");return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.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:fr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:fr,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&sr},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)!==fr&&sr(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:mr,...cr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...cr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Wt(e),...ur()}},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:mr,...cr({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...cr({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ht(e,[Nt.Image]),...ur()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,show:l,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}};function gr(){return gr=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},gr.apply(null,arguments)}var br={exports:{}};function vr(){}function yr(){}yr.resetWarningCache=vr;br.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:yr,resetWarningCache:vr};return r.PropTypes=r,r}();var xr=$(br.exports);function Sr(e){if(e.type)return e;if("#"===e.charAt(0))return Sr(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 Er(e,t){return e=Sr(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 Cr(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 wr(e,t){return wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wr(e,t)}function Rr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wr(e,t)}function Lr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Ir={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"},Ar={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",...Ir,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)"},Mr=12,Dr=14,Pr=16,kr=24,Tr=3,Or=300,_r=400,qr=600,Nr=700,Fr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Er(Ar.GREYSCALE_0,.05),Er(Ar.GREEN_PALE,.5),Er(Ar.BLUE_PALE,.5),Er(Ar.GREEN_PALE,.5),Er(Ar.BLUE_PALE,.5),Er(Ar.GREEN_PALE,.5),Er(Ar.BLUE_PALE,.5);var jr;function zr(){return zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zr.apply(null,arguments)}Er(Ar.GREEN_PALE,.5),Er(Ar.BLUE_PALE,.5),Er(Ar.GREEN_PALE,.5),Er(Ar.BLUE_PALE,.5);var Gr,$r=function(e){return t.createElement("svg",zr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),jr||(jr=t.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Br(){return Br=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},Br.apply(null,arguments)}var Wr=function(e){return t.createElement("svg",Br({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Gr||(Gr=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 Hr({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 Vr=(e={})=>r.createElement(Hr,{...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"}))),Yr=(e={})=>r.createElement(Hr,{...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"})))),Ur=(e={})=>r.createElement(Hr,{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"})))),Kr=(e={})=>r.createElement(Hr,{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"}))),Xr=({className:e})=>r.createElement(Hr,{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 Jr={black:"#000",white:"#fff"};var Zr={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 Qr={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 en={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 tn={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 rn={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 nn={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 on={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 an(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 ln="$$material";function sn(){return sn=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},sn.apply(this,arguments)}function un(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 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=Object.freeze({__proto__:null,default:cn}),pn=function(){return pn=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},pn.apply(this,arguments)};function fn(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 mn="-ms-",hn="-moz-",gn="-webkit-",bn="comm",vn="rule",yn="decl",xn="@keyframes",Sn=Math.abs,En=String.fromCharCode,Cn=Object.assign;function wn(e){return e.trim()}function Rn(e,t){return(e=t.exec(e))?e[0]:e}function Ln(e,t,r){return e.replace(t,r)}function In(e,t,r){return e.indexOf(t,r)}function An(e,t){return 0|e.charCodeAt(t)}function Mn(e,t,r){return e.slice(t,r)}function Dn(e){return e.length}function Pn(e){return e.length}function kn(e,t){return t.push(e),e}function Tn(e,t){return e.filter((function(e){return!Rn(e,t)}))}var On=1,_n=1,qn=0,Nn=0,Fn=0,jn="";function zn(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:On,column:_n,length:a,return:"",siblings:l}}function Gn(e,t){return Cn(zn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function $n(e){for(;e.root;)e=Gn(e.root,{children:[e]});kn(e,e.siblings)}function Bn(){return Fn=Nn>0?An(jn,--Nn):0,_n--,10===Fn&&(_n=1,On--),Fn}function Wn(){return Fn=Nn<qn?An(jn,Nn++):0,_n++,10===Fn&&(_n=1,On++),Fn}function Hn(){return An(jn,Nn)}function Vn(){return Nn}function Yn(e,t){return Mn(jn,e,t)}function Un(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 Kn(e){return wn(Yn(Nn-1,Zn(91===e?e+2:40===e?e+1:e)))}function Xn(e){for(;(Fn=Hn())&&Fn<33;)Wn();return Un(e)>2||Un(Fn)>3?"":" "}function Jn(e,t){for(;--t&&Wn()&&!(Fn<48||Fn>102||Fn>57&&Fn<65||Fn>70&&Fn<97););return Yn(e,Vn()+(t<6&&32==Hn()&&32==Wn()))}function Zn(e){for(;Wn();)switch(Fn){case e:return Nn;case 34:case 39:34!==e&&39!==e&&Zn(Fn);break;case 40:41===e&&Zn(e);break;case 92:Wn()}return Nn}function Qn(e,t){for(;Wn()&&e+Fn!==57&&(e+Fn!==84||47!==Hn()););return"/*"+Yn(t,Nn-1)+"*"+En(47===e?e:Wn())}function eo(e){for(;!Un(Hn());)Wn();return Yn(e,Nn)}function to(e){return function(e){return jn="",e}(ro("",null,null,null,[""],e=function(e){return On=_n=1,qn=Dn(jn=e),Nn=0,[]}(e),0,[0],e))}function ro(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=Wn()){case 40:if(108!=m&&58==An(C,d-1)){-1!=In(C+=Ln(Kn(v),"&","&\f"),"&\f",Sn(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Kn(v);break;case 9:case 10:case 13:case 32:C+=Xn(m);break;case 92:C+=Jn(Vn()-1,7);continue;case 47:switch(Hn()){case 42:case 47:kn(oo(Qn(Wn(),Vn()),t,r,s),s);break;default:C+="/"}break;case 123*h:l[u++]=Dn(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Ln(C,/\f/g,"")),f>0&&Dn(C)-d&&kn(f>32?io(C+";",n,r,d-1,s):io(Ln(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(kn(E=no(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)ro(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===An(C,3)?100:p){case 100:case 108:case 109:case 115:ro(e,E,E,n&&kn(no(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:ro(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+Dn(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Bn())continue;switch(C+=En(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Dn(C)-1)*b,b=1;break;case 64:45===Hn()&&(C+=Kn(Wn())),p=Hn(),c=d=Dn(y=C+=eo(Vn())),v++;break;case 45:45===m&&2==Dn(C)&&(h=0)}}return i}function no(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Pn(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=Mn(e,p+1,p=Sn(g=a[h])),x=e;v<m;++v)(x=wn(g>0?f[v]+" "+y:Ln(y,/&\f/g,f[v])))&&(s[b++]=x);return zn(e,t,r,0===o?vn:l,s,u,c,d)}function oo(e,t,r,n){return zn(e,t,r,bn,En(Fn),Mn(e,2,-2),0,n)}function io(e,t,r,n,o){return zn(e,t,r,yn,Mn(e,0,n),Mn(e,n+1,-1),n,o)}function ao(e,t,r){switch(function(e,t){return 45^An(e,0)?(((t<<2^An(e,0))<<2^An(e,1))<<2^An(e,2))<<2^An(e,3):0}(e,t)){case 5103:return gn+"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 gn+e+e;case 4789:return hn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gn+e+hn+e+mn+e+e;case 5936:switch(An(e,t+11)){case 114:return gn+e+mn+Ln(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gn+e+mn+Ln(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gn+e+mn+Ln(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return gn+e+mn+e+e;case 6165:return gn+e+mn+"flex-"+e+e;case 5187:return gn+e+Ln(e,/(\w+).+(:[^]+)/,gn+"box-$1$2"+mn+"flex-$1$2")+e;case 5443:return gn+e+mn+"flex-item-"+Ln(e,/flex-|-self/g,"")+(Rn(e,/flex-|baseline/)?"":mn+"grid-row-"+Ln(e,/flex-|-self/g,""))+e;case 4675:return gn+e+mn+"flex-line-pack"+Ln(e,/align-content|flex-|-self/g,"")+e;case 5548:return gn+e+mn+Ln(e,"shrink","negative")+e;case 5292:return gn+e+mn+Ln(e,"basis","preferred-size")+e;case 6060:return gn+"box-"+Ln(e,"-grow","")+gn+e+mn+Ln(e,"grow","positive")+e;case 4554:return gn+Ln(e,/([^-])(transform)/g,"$1"+gn+"$2")+e;case 6187:return Ln(Ln(Ln(e,/(zoom-|grab)/,gn+"$1"),/(image-set)/,gn+"$1"),e,"")+e;case 5495:case 3959:return Ln(e,/(image-set\([^]*)/,gn+"$1$`$1");case 4968:return Ln(Ln(e,/(.+:)(flex-)?(.*)/,gn+"box-pack:$3"+mn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gn+e+e;case 4200:if(!Rn(e,/flex-|baseline/))return mn+"grid-column-align"+Mn(e,t)+e;break;case 2592:case 3360:return mn+Ln(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Rn(e.props,/grid-\w+-end/)}))?~In(e+(r=r[t].value),"span",0)?e:mn+Ln(e,"-start","")+e+mn+"grid-row-span:"+(~In(r,"span",0)?Rn(r,/\d+/):+Rn(r,/\d+/)-+Rn(e,/\d+/))+";":mn+Ln(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Rn(e.props,/grid-\w+-start/)}))?e:mn+Ln(Ln(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ln(e,/(.+)-inline(.+)/,gn+"$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(Dn(e)-1-t>6)switch(An(e,t+1)){case 109:if(45!==An(e,t+4))break;case 102:return Ln(e,/(.+:)(.+)-([^]+)/,"$1"+gn+"$2-$3$1"+hn+(108==An(e,t+3)?"$3":"$2-$3"))+e;case 115:return~In(e,"stretch",0)?ao(Ln(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ln(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return mn+r+":"+n+l+(o?mn+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===An(e,t+6))return Ln(e,":",":"+gn)+e;break;case 6444:switch(An(e,45===An(e,14)?18:11)){case 120:return Ln(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+gn+(45===An(e,14)?"inline-":"")+"box$3$1"+gn+"$2$3$1"+mn+"$2box$3")+e;case 100:return Ln(e,":",":"+mn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ln(e,"scroll-","scroll-snap-")+e}return e}function lo(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function so(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case yn:return e.return=e.return||e.value;case bn:return"";case xn:return e.return=e.value+"{"+lo(e.children,n)+"}";case vn:if(!Dn(e.value=e.props.join(",")))return""}return Dn(r=lo(e.children,n))?e.return=e.value+"{"+r+"}":""}function uo(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case yn:return void(e.return=ao(e.value,e.length,r));case xn:return lo([Gn(e,{value:Ln(e.value,"@","@"+gn)})],n);case vn:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Rn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":$n(Gn(e,{props:[Ln(t,/:(read-\w+)/,":-moz-$1")]})),$n(Gn(e,{props:[t]})),Cn(e,{props:Tn(r,n)});break;case"::placeholder":$n(Gn(e,{props:[Ln(t,/:(plac\w+)/,":"+gn+"input-$1")]})),$n(Gn(e,{props:[Ln(t,/:(plac\w+)/,":-moz-$1")]})),$n(Gn(e,{props:[Ln(t,/:(plac\w+)/,mn+"input-$1")]})),$n(Gn(e,{props:[t]})),Cn(e,{props:Tn(r,n)})}return""}))}}var co={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},po="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",fo="active",mo="data-styled-version",ho="6.1.13",go="/*!sc*/\n",bo="undefined"!=typeof window&&"HTMLElement"in window,vo=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)),yo={},xo=Object.freeze([]),So=Object.freeze({});function Eo(e,t,r){return void 0===r&&(r=So),e.theme!==r.theme&&e.theme||t||r.theme}var Co=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"]),wo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ro=/(^-|-$)/g;function Lo(e){return e.replace(wo,"-").replace(Ro,"")}var Io=/(a)(d)/gi,Ao=function(e){return String.fromCharCode(e+(e>25?39:97))};function Mo(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Ao(t%52)+r;return(Ao(t%52)+r).replace(Io,"$1-$2")}var Do,Po=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ko=function(e){return Po(5381,e)};function To(e){return Mo(ko(e)>>>0)}function Oo(e){return"string"==typeof e&&!0}var _o="function"==typeof Symbol&&Symbol.for,qo=_o?Symbol.for("react.memo"):60115,No=_o?Symbol.for("react.forward_ref"):60112,Fo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},jo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},zo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Go=((Do={})[No]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Do[qo]=zo,Do);function $o(e){return("type"in(t=e)&&t.type.$$typeof)===qo?zo:"$$typeof"in e?Go[e.$$typeof]:Fo;var t}var Bo=Object.defineProperty,Wo=Object.getOwnPropertyNames,Ho=Object.getOwnPropertySymbols,Vo=Object.getOwnPropertyDescriptor,Yo=Object.getPrototypeOf,Uo=Object.prototype;function Ko(e,t,r){if("string"!=typeof t){if(Uo){var n=Yo(t);n&&n!==Uo&&Ko(e,n,r)}var o=Wo(t);Ho&&(o=o.concat(Ho(t)));for(var i=$o(e),a=$o(t),l=0;l<o.length;++l){var s=o[l];if(!(s in jo||r&&r[s]||a&&s in a||i&&s in i)){var u=Vo(t,s);try{Bo(e,s,u)}catch(e){}}}}return e}function Xo(e){return"function"==typeof e}function Jo(e){return"object"==typeof e&&"styledComponentId"in e}function Zo(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Qo(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 ei(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ti(e,t,r){if(void 0===r&&(r=!1),!r&&!ei(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ti(e[n],t[n]);else if(ei(t))for(var n in t)e[n]=ti(e[n],t[n]);return e}function ri(e,t){Object.defineProperty(e,"toString",{value:t})}function ni(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 oi=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 ni(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(go);return t},e}(),ii=new Map,ai=new Map,li=1,si=function(e){if(ii.has(e))return ii.get(e);for(;ai.has(li);)li++;var t=li++;return ii.set(e,t),ai.set(t,e),t},ui=function(e,t){li=t+1,ii.set(e,t),ai.set(t,e)},ci="style[".concat(po,"][").concat(mo,'="').concat(ho,'"]'),di=new RegExp("^".concat(po,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),pi=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)},fi=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(go),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(di);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(ui(c,u),pi(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},mi=function(e){for(var t=document.querySelectorAll(ci),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(po)!==fo&&(fi(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var hi=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(po,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(po,fo),n.setAttribute(mo,ho);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},gi=function(){function e(e){this.element=hi(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 ni(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}(),bi=function(){function e(e){this.element=hi(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}(),vi=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}(),yi=bo,xi={isServer:!bo,useCSSOMInjection:!vo},Si=function(){function e(e,t,r){void 0===e&&(e=So),void 0===t&&(t={});var n=this;this.options=pn(pn({},xi),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&bo&&yi&&(yi=!1,mi(this)),ri(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return ai.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(po,".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(go)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return si(e)},e.prototype.rehydrate=function(){!this.server&&bo&&mi(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(pn(pn({},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 vi(r):t?new gi(r):new bi(r)}(this.options),new oi(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(si(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(si(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(si(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Ei=/&/g,Ci=/^\s*\/\/.*$/gm;function wi(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=wi(e.children,t)),e}))}var Ri=new Si,Li=function(e){var t,r,n,o=void 0===e?So:e,i=o.options,a=void 0===i?So:i,l=o.plugins,s=void 0===l?xo: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===vn&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Ei,r).replace(n,u))})),a.prefix&&c.push(uo),c.push(so);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(Ci,""),u=to(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=wi(u,a.namespace));var d,p=[];return lo(u,function(e){var t=Pn(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||ni(15),Po(e,t.name)}),5381).toString():"",d}(),Ii=r.createContext({shouldForwardProp:void 0,styleSheet:Ri,stylis:Li});function Ai(){return n(Ii)}Ii.Consumer;var Mi=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Li);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,ri(this,(function(){throw ni(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Li),this.name+e.hash},e}(),Di=function(e){return e>="A"&&e<="Z"};function Pi(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Di(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var ki=function(e){return null==e||!1===e||""===e},Ti=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!ki(i)&&(Array.isArray(i)&&i.isCss||Xo(i)?n.push("".concat(Pi(o),":"),i,";"):ei(i)?n.push.apply(n,fn(fn(["".concat(o," {")],Ti(i),!1),["}"],!1)):n.push("".concat(Pi(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in co||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Oi(e,t,r,n){return ki(e)?[]:Jo(e)?[".".concat(e.styledComponentId)]:Xo(e)?!Xo(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Oi(e(t),t,r,n):e instanceof Mi?r?(e.inject(r,n),[e.getName(n)]):[e]:ei(e)?Ti(e):Array.isArray(e)?Array.prototype.concat.apply(xo,e.map((function(e){return Oi(e,t,r,n)}))):[e.toString()];var o}function _i(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Xo(r)&&!Jo(r))return!1}return!0}var qi=ko(ho),Ni=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&_i(e),this.componentId=t,this.baseHash=Po(qi,t),this.baseStyle=r,Si.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=Zo(n,this.staticRulesId);else{var o=Qo(Oi(this.rules,e,t,r)),i=Mo(Po(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=Zo(n,i),this.staticRulesId=i}else{for(var l=Po(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=Qo(Oi(c,e,t,r));l=Po(l,d+u),s+=d}}if(s){var p=Mo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=Zo(n,p)}}return n},e}(),Fi=r.createContext(void 0);Fi.Consumer;var ji={};new Set;function zi(e,t,n){var i=Jo(e),a=e,l=!Oo(e),s=t.attrs,u=void 0===s?xo:s,c=t.componentId,d=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Lo(e);ji[r]=(ji[r]||0)+1;var n="".concat(r,"-").concat(To(ho+r+ji[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,p=t.displayName,f=void 0===p?function(e){return Oo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,m=t.displayName&&t.componentId?"".concat(Lo(t.displayName),"-").concat(t.componentId):t.componentId||d,h=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 Ni(n,m,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(Fi),p=Ai(),f=e.shouldForwardProp||p.shouldForwardProp,m=Eo(t,d,l)||So,h=function(e,t,r){for(var n,o=pn(pn({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Xo(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?Zo(o[l],a[l]):"style"===l?pn(pn({},o[l]),a[l]):a[l]}return t.className&&(o.className=Zo(o.className,t.className)),o}(i,t,m),g=h.as||c,b={};for(var v in h)void 0===h[v]||"$"===v[0]||"as"===v||"theme"===v&&h.theme===m||("forwardedAs"===v?b.as=h.forwardedAs:f&&!f(v,g)||(b[v]=h[v]));var y=function(e,t){var r=Ai();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,h),x=Zo(s,u);return y&&(x+=" "+y),h.className&&(x+=" "+h.className),b[Oo(g)&&!Co.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=h,S.componentStyle=y,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=i?Zo(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=m,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++)ti(e,o[n],!0);return e}({},a.defaultProps,e):e}}),ri(S,(function(){return".".concat(S.styledComponentId)})),l&&Ko(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Gi(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 $i=function(e){return Object.assign(e,{isCss:!0})};function Bi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Xo(e)||ei(e))return $i(Oi(Gi(xo,fn([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Oi(n):$i(Oi(Gi(n,t)))}function Wi(e,t,r){if(void 0===r&&(r=So),!t)throw ni(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Bi.apply(void 0,fn([n],o,!1)))};return n.attrs=function(n){return Wi(e,t,pn(pn({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Wi(e,t,pn(pn({},r),n))},n}var Hi=function(e){return Wi(zi,e)},Vi=Hi;Co.forEach((function(e){Vi[e]=Hi(e)}));var Yi=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=_i(e),Si.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Qo(Oi(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&&Si.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Ui(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Qo(Bi.apply(void 0,fn([e],t,!1))),o=To(n);return new Mi(o,n)}function Ki(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}Ki.propTypes={children:xr.node,injectFirst:xr.bool};const Xi=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Bi.apply(void 0,fn([e],t,!1)),i="sc-global-".concat(To(JSON.stringify(o))),a=new Yi(o,i),l=function(e){var t=Ai(),n=r.useContext(Fi),o=r.useRef(t.styleSheet.allocateGSInstance(i)).current;return t.styleSheet.server&&s(o,e,t.styleSheet,n,t.stylis),r.useLayoutEffect((function(){if(!t.styleSheet.server)return s(o,e,t.styleSheet,n,t.stylis),function(){return a.removeStyles(o,t.styleSheet)}}),[o,e,t.styleSheet,n,t.stylis]),null};function s(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,yo,r,o);else{var i=pn(pn({},t),{theme:Eo(t,n,l.defaultProps)});a.renderStyles(e,i,r,o)}}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 Ji=Xi;
10
10
  /**
11
11
  * @mui/styled-engine-sc v6.0.0-alpha.24
12
12
  *
@@ -14,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
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- function ea(e,t){let r;return r=t?Ui(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ui(e),r}Zi.propTypes={defaultTheme:Er.object,styles:Er.oneOfType([Er.array,Er.string,Er.object,Er.func])};const ta=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var ra=Object.freeze({__proto__:null,GlobalStyles:Qi,StyledEngineProvider:Ji,ThemeContext:zi,css:Hi,default:ea,internal_processStyles:ta,keyframes:Xi});function na(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 oa(e){if(!na(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=oa(e[r])})),t}function ia(e,t,r={clone:!0}){const n=r.clone?vr({},e):e;return na(e)&&na(t)&&Object.keys(t).forEach((o=>{na(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&na(e[o])?n[o]=ia(e[o],t[o],r):r.clone?n[o]=na(t[o])?oa(t[o]):t[o]:n[o]=t[o]})),n}var aa,la=Object.freeze({__proto__:null,default:ia,isPlainObject:na}),sa={exports:{}},ua={},ca=Symbol.for("react.element"),da=Symbol.for("react.portal"),pa=Symbol.for("react.fragment"),fa=Symbol.for("react.strict_mode"),ma=Symbol.for("react.profiler"),ha=Symbol.for("react.provider"),ga=Symbol.for("react.context"),ba=Symbol.for("react.server_context"),va=Symbol.for("react.forward_ref"),ya=Symbol.for("react.suspense"),xa=Symbol.for("react.suspense_list"),Sa=Symbol.for("react.memo"),Ea=Symbol.for("react.lazy"),Ca=Symbol.for("react.offscreen");function wa(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ca:switch(e=e.type){case pa:case ma:case fa:case ya:case xa:return e;default:switch(e=e&&e.$$typeof){case ba:case ga:case va:case Ea:case Sa:case ha:return e;default:return t}}case da:return t}}}aa=Symbol.for("react.module.reference"),ua.ContextConsumer=ga,ua.ContextProvider=ha,ua.Element=ca,ua.ForwardRef=va,ua.Fragment=pa,ua.Lazy=Ea,ua.Memo=Sa,ua.Portal=da,ua.Profiler=ma,ua.StrictMode=fa,ua.Suspense=ya,ua.SuspenseList=xa,ua.isAsyncMode=function(){return!1},ua.isConcurrentMode=function(){return!1},ua.isContextConsumer=function(e){return wa(e)===ga},ua.isContextProvider=function(e){return wa(e)===ha},ua.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ca},ua.isForwardRef=function(e){return wa(e)===va},ua.isFragment=function(e){return wa(e)===pa},ua.isLazy=function(e){return wa(e)===Ea},ua.isMemo=function(e){return wa(e)===Sa},ua.isPortal=function(e){return wa(e)===da},ua.isProfiler=function(e){return wa(e)===ma},ua.isStrictMode=function(e){return wa(e)===fa},ua.isSuspense=function(e){return wa(e)===ya},ua.isSuspenseList=function(e){return wa(e)===xa},ua.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===pa||e===ma||e===fa||e===ya||e===xa||e===Ca||"object"==typeof e&&null!==e&&(e.$$typeof===Ea||e.$$typeof===Sa||e.$$typeof===ha||e.$$typeof===ga||e.$$typeof===va||e.$$typeof===aa||void 0!==e.getModuleId)},ua.typeOf=wa,sa.exports=ua;var Ra=sa.exports;const La=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ia(e){const t=`${e}`.match(La);return t&&t[1]||""}function Aa(e,t=""){return e.displayName||e.name||Ia(e)||t}function Ma(e,t,r){const n=Aa(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Da=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Aa(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ra.ForwardRef:return Ma(e,e.render,"ForwardRef");case Ra.Memo:return Ma(e,e.type,"memo");default:return}}},getFunctionName:Ia});function Pa(e){if("string"!=typeof e)throw new Error(pn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ka=Object.freeze({__proto__:null,default:Pa});function Ta(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Oa(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function _a(e){return e&&e.ownerDocument||document}function qa(e){return _a(e).defaultView||window}function Na(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Fa="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function ja(e){const r=t.useRef(e);return Fa((()=>{r.current=e})),t.useRef(((...e)=>(0,r.current)(...e))).current}function za(...e){return t.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Na(e,t)}))}),e)}const Ga={};const $a=[];let Ba=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 Wa(){const e=function(e,r){const n=t.useRef(Ga);return n.current===Ga&&(n.current=e(r)),n}(Ba.create).current;return function(e){t.useEffect(e,$a)}(e.disposeEffect),e}let Ha=!0,Va=!1;const Ya=new Ba,Ua={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 Ka(e){e.metaKey||e.altKey||e.ctrlKey||(Ha=!0)}function Xa(){Ha=!1}function Ja(){"hidden"===this.visibilityState&&Va&&(Ha=!0)}function Za(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ha||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Ua[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Qa(){const e=t.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ka,!0),t.addEventListener("mousedown",Xa,!0),t.addEventListener("pointerdown",Xa,!0),t.addEventListener("touchstart",Xa,!0),t.addEventListener("visibilitychange",Ja,!0))}),[]),r=t.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!Za(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(Va=!0,Ya.start(100,(()=>{Va=!1})),r.current=!1,!0)},ref:e}}function el(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function tl(e,t){const r=vr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=vr({},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]=vr({},i),Object.keys(o).forEach((e=>{r[n][e]=tl(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function rl(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 nl=e=>e;var ol=(()=>{let e=nl;return{configure(t){e=t},generate:t=>e(t),reset(){e=nl}}})();const il={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 al(e,t,r="Mui"){const n=il[t];return n?`${r}-${n}`:`${ol.generate(e)}-${t}`}function ll(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=al(e,t,r)})),n}function sl(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var ul=Object.freeze({__proto__:null,default:sl});function cl(e){return"string"==typeof e}function dl(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=dl(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function pl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=dl(e))&&(n&&(n+=" "),n+=t);return n}function fl(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 ml(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 hl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function gl(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Rr(e,hl),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=pl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=vr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=vr({},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=fl(vr({},o,n)),l=ml(n),s=ml(o),u=t(a),c=pl(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=vr({},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=vr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(vr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||cl(e)?t:vr({},t,{ownerState:vr({},t.ownerState,r)})}(r,vr({},s,{ref:za(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const bl=["values","unit","step"];function vl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Rr(e,bl),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)=>vr({},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 vr({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 yl={borderRadius:4};function xl(e,t){return t?ia(e,t,{clone:!1}):e}const Sl={xs:0,sm:600,md:900,lg:1200,xl:1536},El={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Sl[e]}px)`};function Cl(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||El;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||El;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Sl).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function wl(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 Rl(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:wl(e,r)||n,t&&(o=t(o,n,e)),o}function Ll(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=wl(e.theme,n)||{};return Cl(e,i,(e=>{let n=Rl(a,o,e);return e===n&&"string"==typeof e&&(n=Rl(a,o,`${t}${"default"===e?"":Pa(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Il={m:"margin",p:"padding"},Al={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ml={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Dl=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Ml[e])return[e];e=Ml[e]}const[t,r]=e.split(""),n=Il[t],o=Al[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Pl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],kl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Tl(e,t,r,n){var o;const i=null!=(o=wl(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 Ol(e){return Tl(e,"spacing",8)}function _l(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 ql(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=_l(t,r),e)),{})}(Dl(r),n);return Cl(e,e[r],o)}function Nl(e,t){const r=Ol(e.theme);return Object.keys(e).map((n=>ql(e,t,n,r))).reduce(xl,{})}function Fl(e){return Nl(e,Pl)}function jl(e){return Nl(e,kl)}function zl(...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]?xl(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Gl(e){return"number"!=typeof e?e:`${e}px solid`}function $l(e,t){return Ll({prop:e,themeKey:"borders",transform:t})}Fl.propTypes={},Fl.filterProps=Pl,jl.propTypes={},jl.filterProps=kl;const Bl=$l("border",Gl),Wl=$l("borderTop",Gl),Hl=$l("borderRight",Gl),Vl=$l("borderBottom",Gl),Yl=$l("borderLeft",Gl),Ul=$l("borderColor"),Kl=$l("borderTopColor"),Xl=$l("borderRightColor"),Jl=$l("borderBottomColor"),Zl=$l("borderLeftColor"),Ql=$l("outline",Gl),es=$l("outlineColor"),ts=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Tl(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:_l(t,e)});return Cl(e,e.borderRadius,r)}return null};ts.propTypes={},ts.filterProps=["borderRadius"],zl(Bl,Wl,Hl,Vl,Yl,Ul,Kl,Xl,Jl,Zl,ts,Ql,es);const rs=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Tl(e.theme,"spacing",8),r=e=>({gap:_l(t,e)});return Cl(e,e.gap,r)}return null};rs.propTypes={},rs.filterProps=["gap"];const ns=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Tl(e.theme,"spacing",8),r=e=>({columnGap:_l(t,e)});return Cl(e,e.columnGap,r)}return null};ns.propTypes={},ns.filterProps=["columnGap"];const os=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Tl(e.theme,"spacing",8),r=e=>({rowGap:_l(t,e)});return Cl(e,e.rowGap,r)}return null};os.propTypes={},os.filterProps=["rowGap"];function is(e,t){return"grey"===t?t:e}zl(rs,ns,os,Ll({prop:"gridColumn"}),Ll({prop:"gridRow"}),Ll({prop:"gridAutoFlow"}),Ll({prop:"gridAutoColumns"}),Ll({prop:"gridAutoRows"}),Ll({prop:"gridTemplateColumns"}),Ll({prop:"gridTemplateRows"}),Ll({prop:"gridTemplateAreas"}),Ll({prop:"gridArea"}));function as(e){return e<=1&&0!==e?100*e+"%":e}zl(Ll({prop:"color",themeKey:"palette",transform:is}),Ll({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:is}),Ll({prop:"backgroundColor",themeKey:"palette",transform:is}));const ls=Ll({prop:"width",transform:as}),ss=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])||Sl[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:as(t)}};return Cl(e,e.maxWidth,t)}return null};ss.filterProps=["maxWidth"];const us=Ll({prop:"minWidth",transform:as}),cs=Ll({prop:"height",transform:as}),ds=Ll({prop:"maxHeight",transform:as}),ps=Ll({prop:"minHeight",transform:as});Ll({prop:"size",cssProperty:"width",transform:as}),Ll({prop:"size",cssProperty:"height",transform:as});zl(ls,ss,us,cs,ds,ps,Ll({prop:"boxSizing"}));var fs={border:{themeKey:"borders",transform:Gl},borderTop:{themeKey:"borders",transform:Gl},borderRight:{themeKey:"borders",transform:Gl},borderBottom:{themeKey:"borders",transform:Gl},borderLeft:{themeKey:"borders",transform:Gl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ts},color:{themeKey:"palette",transform:is},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:is},backgroundColor:{themeKey:"palette",transform:is},p:{style:jl},pt:{style:jl},pr:{style:jl},pb:{style:jl},pl:{style:jl},px:{style:jl},py:{style:jl},padding:{style:jl},paddingTop:{style:jl},paddingRight:{style:jl},paddingBottom:{style:jl},paddingLeft:{style:jl},paddingX:{style:jl},paddingY:{style:jl},paddingInline:{style:jl},paddingInlineStart:{style:jl},paddingInlineEnd:{style:jl},paddingBlock:{style:jl},paddingBlockStart:{style:jl},paddingBlockEnd:{style:jl},m:{style:Fl},mt:{style:Fl},mr:{style:Fl},mb:{style:Fl},ml:{style:Fl},mx:{style:Fl},my:{style:Fl},margin:{style:Fl},marginTop:{style:Fl},marginRight:{style:Fl},marginBottom:{style:Fl},marginLeft:{style:Fl},marginX:{style:Fl},marginY:{style:Fl},marginInline:{style:Fl},marginInlineStart:{style:Fl},marginInlineEnd:{style:Fl},marginBlock:{style:Fl},marginBlockStart:{style:Fl},marginBlockEnd:{style:Fl},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:rs},rowGap:{style:os},columnGap:{style:ns},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:as},maxWidth:{style:ss},minWidth:{transform:as},height:{transform:as},maxHeight:{transform:as},minHeight:{transform:as},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const ms=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=wl(r,l)||{};if(u)return u(o);return Cl(o,t,(t=>{let r=Rl(c,s,t);return t===r&&"string"==typeof t&&(r=Rl(c,s,`${e}${"default"===t?"":Pa(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:fs;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=xl(s,e(r,o,i,a));else{const e=Cl({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=xl(s,e):s[r]=t({sx:o,theme:i})}else s=xl(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)}}();ms.filterProps=["sx"];var hs=ms;function gs(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 bs=["breakpoints","palette","spacing","shape"];function vs(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Rr(e,bs),l=vl(r),s=function(e=8){if(e.mui)return e;const t=Ol({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=ia({breakpoints:l,direction:"ltr",components:{},palette:vr({mode:"light"},n),spacing:s,shape:vr({},yl,i)},a);return u.applyStyles=gs,u=t.reduce(((e,t)=>ia(e,t)),u),u.unstable_sxConfig=vr({},fs,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return hs({sx:e,theme:this})},u}function ys(e=null){const r=t.useContext(zi);return r&&(n=r,0!==Object.keys(n).length)?r:e;var n}const xs=vs();function Ss(e=xs){return ys(e)}var Es={exports:{}},Cs={},ws=r,Rs=Symbol.for("react.element"),Ls=Symbol.for("react.fragment"),Is=Object.prototype.hasOwnProperty,As=ws.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ms={key:!0,ref:!0,__self:!0,__source:!0};function Ds(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)Is.call(t,n)&&!Ms.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:Rs,type:e,key:i,ref:a,props:o,_owner:As.current}}Cs.Fragment=Ls,Cs.jsx=Ds,Cs.jsxs=Ds,Es.exports=Cs;var Ps=Es.exports;function ks({styles:e,themeId:t,defaultTheme:r={}}){const n=Ss(r),o="function"==typeof e?e(t&&n[t]||n):e;return Ps.jsx(Qi,{styles:o})}const Ts=["sx"];function Os(e){const{sx:t}=e,r=Rr(e,Ts),{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:fs;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 na(r)?vr({},n,r):n}:vr({},n,t),vr({},o,{sx:i})}const _s=["className","component"];const qs=["ownerState"],Ns=["variants"],Fs=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function js(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const zs=vs(),Gs=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function $s({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Bs(e){return e?(t,r)=>r[e]:null}function Ws(e,t){let{ownerState:r}=t,n=Rr(t,qs);const o="function"==typeof e?e(vr({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Ws(e,vr({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Rr(o,Ns);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(vr({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(vr({ownerState:r},n)):e.style))})),t}return o}function Hs({props:e,name:t,defaultTheme:r,themeId:n}){let o=Ss(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?tl(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function Vs(e,t=0,r=1){return sl(e,t,r)}function Ys(e){if(e.type)return e;if("#"===e.charAt(0))return Ys(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(pn(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(pn(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Us(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 Ks(e){let t="hsl"===(e=Ys(e)).type||"hsla"===e.type?Ys(function(e){e=Ys(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])),Us({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 Xs(e,t){return e=Ys(e),t=Vs(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Us(e)}function Js(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 Zs(e){if(!Js(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Zs(e[r])})),t}function Qs(e,t,r={clone:!0}){const n=r.clone?vr({},e):e;return Js(e)&&Js(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Js(t[o])&&o in e&&Js(e[o])?n[o]=Qs(e[o],t[o],r):r.clone?n[o]=Js(t[o])?Zs(t[o]):t[o]:n[o]=t[o])})),n}function eu(e){if("string"!=typeof e)throw new Error(sn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function tu(e){return e&&e.ownerDocument||document}function ru(e){return tu(e).defaultView||window}var nu="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;let ou=0;const iu=t["useId".toString()];function au(e){if(void 0!==iu){const t=iu();return null!=e?e:t}return function(e){const[r,n]=t.useState(e),o=e||r;return t.useEffect((()=>{null==r&&(ou+=1,n(`mui-${ou}`))}),[r]),o}(e)}function lu({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 su(e){const r=t.useRef(e);return nu((()=>{r.current=e})),t.useRef(((...e)=>(0,r.current)(...e))).current}function uu(...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 cu{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new cu}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let du=!0,pu=!1;const fu=new cu,mu={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 hu(e){e.metaKey||e.altKey||e.ctrlKey||(du=!0)}function gu(){du=!1}function bu(){"hidden"===this.visibilityState&&pu&&(du=!0)}function vu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return du||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!mu[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function yu(){const e=t.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",hu,!0),t.addEventListener("mousedown",gu,!0),t.addEventListener("pointerdown",gu,!0),t.addEventListener("touchstart",gu,!0),t.addEventListener("visibilitychange",bu,!0))}),[]),r=t.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!vu(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(pu=!0,fu.start(100,(()=>{pu=!1})),r.current=!1,!0)},ref:e}}function xu(e,t){const r=vr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=vr({},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]=vr({},i),Object.keys(o).forEach((e=>{r[n][e]=xu(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Su=e=>e;var Eu=(()=>{let e=Su;return{configure(t){e=t},generate:t=>e(t),reset(){e=Su}}})();const Cu={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 wu(e,t,r="Mui"){const n=Cu[t];return n?`${r}-${n}`:`${Eu.generate(e)}-${t}`}function Ru(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=wu(e,t,r)})),n}const Lu=["mode","contrastThreshold","tonalOffset"],Iu={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:Qr.white,default:Qr.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}},Au={text:{primary:Qr.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:Qr.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 Mu(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=Ys(e),t=Vs(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 Us(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Ys(e),t=Vs(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 Us(e)}(e.main,i)))}function Du(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=dn(e,Lu),i=e.primary||function(e="light"){return"dark"===e?{main:rn[200],light:rn[50],dark:rn[400]}:{main:rn[700],light:rn[400],dark:rn[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:tn[200],light:tn[50],dark:tn[400]}:{main:tn[500],light:tn[300],dark:tn[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:en[500],light:en[300],dark:en[700]}:{main:en[700],light:en[400],dark:en[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:nn[400],light:nn[300],dark:nn[700]}:{main:nn[700],light:nn[500],dark:nn[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:on[400],light:on[300],dark:on[700]}:{main:on[800],light:on[500],dark:on[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:an[400],light:an[300],dark:an[700]}:{main:"#ed6c02",light:an[500],dark:an[900]}}(t);function d(e){const t=function(e,t){const r=Ks(e),n=Ks(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Au.text.primary)>=r?Au.text.primary:Iu.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=cn({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(sn(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(sn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Mu(e,"light",o,n),Mu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Au,light:Iu};return Qs(cn({common:cn({},Qr),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:ln,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Pu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ku={textTransform:"uppercase"},Tu='"Roboto", "Helvetica", "Arial", sans-serif';function Ou(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Tu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=dn(r,Pu),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return cn({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Tu?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,ku),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,ku),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qs(cn({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function _u(...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 qu=["none",_u(0,2,1,-1,0,1,1,0,0,1,3,0),_u(0,3,1,-2,0,2,2,0,0,1,5,0),_u(0,3,3,-2,0,3,4,0,0,1,8,0),_u(0,2,4,-1,0,4,5,0,0,1,10,0),_u(0,3,5,-1,0,5,8,0,0,1,14,0),_u(0,3,5,-1,0,6,10,0,0,1,18,0),_u(0,4,5,-2,0,7,10,1,0,2,16,1),_u(0,5,5,-3,0,8,10,1,0,3,14,2),_u(0,5,6,-3,0,9,12,1,0,3,16,2),_u(0,6,6,-3,0,10,14,1,0,4,18,3),_u(0,6,7,-4,0,11,15,1,0,4,20,3),_u(0,7,8,-4,0,12,17,2,0,5,22,4),_u(0,7,8,-4,0,13,19,2,0,5,24,4),_u(0,7,9,-4,0,14,21,2,0,5,26,4),_u(0,8,9,-5,0,15,22,2,0,6,28,5),_u(0,8,10,-5,0,16,24,2,0,6,30,5),_u(0,8,11,-5,0,17,26,2,0,6,32,5),_u(0,9,11,-5,0,18,28,2,0,7,34,6),_u(0,9,12,-6,0,19,29,2,0,7,36,6),_u(0,10,13,-6,0,20,31,3,0,8,38,7),_u(0,10,13,-6,0,21,33,3,0,8,40,7),_u(0,10,14,-6,0,22,35,3,0,8,42,7),_u(0,11,14,-7,0,23,36,3,0,9,44,8),_u(0,11,15,-7,0,24,38,3,0,9,46,8)];const Nu=["duration","easing","delay"],Fu={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)"},ju={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zu(e){return`${Math.round(e)}ms`}function Gu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function $u(e){const t=cn({},Fu,e.easing),r=cn({},ju,e.duration);return cn({getAutoHeightDuration:Gu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return dn(n,Nu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:zu(o)} ${i} ${"string"==typeof a?a:zu(a)}`)).join(",")}},e,{easing:t,duration:r})}var Bu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Wu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Hu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=dn(e,Wu);if(e.vars)throw new Error(sn(18));const l=Du(n),s=vs(e);let u=Qs(s,{mixins:(c=s.breakpoints,d=r,cn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:qu.slice(),typography:Ou(l,i),transitions:$u(o),zIndex:cn({},Bu),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=Qs(u,a),u=t.reduce(((e,t)=>Qs(e,t)),u),u.unstable_sxConfig=cn({},fs,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return hs({sx:e,theme:this})},u}var Vu=Hu();function Yu(){const e=Ss(Vu);return e[un]||e}function Uu({props:e,name:t}){return Hs({props:e,name:t,defaultTheme:Vu,themeId:un})}const Ku=e=>js(e)&&"classes"!==e,Xu=js,Ju=function(e={}){const{themeId:t,defaultTheme:r=zs,rootShouldForwardProp:n=js,slotShouldForwardProp:o=js}=e,i=e=>hs(vr({},e,{theme:$s(vr({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ta(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Bs(Gs(s))}=a,p=Rr(a,Fs),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=js;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=ea(e,vr({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||na(e)?n=>Ws(e,vr({},n,{theme:$s({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=$s(vr({},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]=Ws(r,vr({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=$s(vr({},e,{defaultTheme:r,themeId:t}));return Ws({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},vr({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:un,defaultTheme:Vu,rootShouldForwardProp:Ku});var Zu=Ju;var Qu=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ec(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=ec(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function tc(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ec(e))&&(n&&(n+=" "),n+=t);return n}function rc(e){return wu("MuiSvgIcon",e)}Ru("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],oc=Zu("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${eu(r.color)}`],t[`fontSize${eu(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),ic=t.forwardRef((function(e,r){const n=Uu({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=dn(n,nc),m=t.isValidElement(o)&&"svg"===o.type,h=cn({},n,{color:a,component:l,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),g={};c||(g.viewBox=p);const b=(e=>{const{color:t,fontSize:r,classes:n}=e;return rl({root:["root","inherit"!==t&&`color${eu(t)}`,`fontSize${eu(r)}`]},rc,n)})(h);return Ps.jsxs(oc,cn({as:l,className:tc(b.root,i),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:r},g,f,m&&o.props,{ownerState:h,children:[m?o.props.children:o,d?Ps.jsx("title",{children:d}):null]}))}));ic.muiName="SvgIcon";var ac=ic;var lc,sc={},uc=Symbol.for("react.element"),cc=Symbol.for("react.portal"),dc=Symbol.for("react.fragment"),pc=Symbol.for("react.strict_mode"),fc=Symbol.for("react.profiler"),mc=Symbol.for("react.provider"),hc=Symbol.for("react.context"),gc=Symbol.for("react.server_context"),bc=Symbol.for("react.forward_ref"),vc=Symbol.for("react.suspense"),yc=Symbol.for("react.suspense_list"),xc=Symbol.for("react.memo"),Sc=Symbol.for("react.lazy"),Ec=Symbol.for("react.offscreen");
17
+ function Zi(e,t){let r;return r=t?Vi(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Vi(e),r}Xi.propTypes={defaultTheme:xr.object,styles:xr.oneOfType([xr.array,xr.string,xr.object,xr.func])};const Qi=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var ea=Object.freeze({__proto__:null,GlobalStyles:Ji,StyledEngineProvider:Ki,ThemeContext:Fi,css:Bi,default:Zi,internal_processStyles:Qi,keyframes:Ui});function ta(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 ra(e){if(!ta(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=ra(e[r])})),t}function na(e,t,r={clone:!0}){const n=r.clone?gr({},e):e;return ta(e)&&ta(t)&&Object.keys(t).forEach((o=>{ta(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ta(e[o])?n[o]=na(e[o],t[o],r):r.clone?n[o]=ta(t[o])?ra(t[o]):t[o]:n[o]=t[o]})),n}var oa,ia=Object.freeze({__proto__:null,default:na,isPlainObject:ta}),aa={exports:{}},la={},sa=Symbol.for("react.element"),ua=Symbol.for("react.portal"),ca=Symbol.for("react.fragment"),da=Symbol.for("react.strict_mode"),pa=Symbol.for("react.profiler"),fa=Symbol.for("react.provider"),ma=Symbol.for("react.context"),ha=Symbol.for("react.server_context"),ga=Symbol.for("react.forward_ref"),ba=Symbol.for("react.suspense"),va=Symbol.for("react.suspense_list"),ya=Symbol.for("react.memo"),xa=Symbol.for("react.lazy"),Sa=Symbol.for("react.offscreen");function Ea(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case sa:switch(e=e.type){case ca:case pa:case da:case ba:case va:return e;default:switch(e=e&&e.$$typeof){case ha:case ma:case ga:case xa:case ya:case fa:return e;default:return t}}case ua:return t}}}oa=Symbol.for("react.module.reference"),la.ContextConsumer=ma,la.ContextProvider=fa,la.Element=sa,la.ForwardRef=ga,la.Fragment=ca,la.Lazy=xa,la.Memo=ya,la.Portal=ua,la.Profiler=pa,la.StrictMode=da,la.Suspense=ba,la.SuspenseList=va,la.isAsyncMode=function(){return!1},la.isConcurrentMode=function(){return!1},la.isContextConsumer=function(e){return Ea(e)===ma},la.isContextProvider=function(e){return Ea(e)===fa},la.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===sa},la.isForwardRef=function(e){return Ea(e)===ga},la.isFragment=function(e){return Ea(e)===ca},la.isLazy=function(e){return Ea(e)===xa},la.isMemo=function(e){return Ea(e)===ya},la.isPortal=function(e){return Ea(e)===ua},la.isProfiler=function(e){return Ea(e)===pa},la.isStrictMode=function(e){return Ea(e)===da},la.isSuspense=function(e){return Ea(e)===ba},la.isSuspenseList=function(e){return Ea(e)===va},la.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ca||e===pa||e===da||e===ba||e===va||e===Sa||"object"==typeof e&&null!==e&&(e.$$typeof===xa||e.$$typeof===ya||e.$$typeof===fa||e.$$typeof===ma||e.$$typeof===ga||e.$$typeof===oa||void 0!==e.getModuleId)},la.typeOf=Ea,aa.exports=la;var Ca=aa.exports;const wa=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ra(e){const t=`${e}`.match(wa);return t&&t[1]||""}function La(e,t=""){return e.displayName||e.name||Ra(e)||t}function Ia(e,t,r){const n=La(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Aa=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return La(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ca.ForwardRef:return Ia(e,e.render,"ForwardRef");case Ca.Memo:return Ia(e,e.type,"memo");default:return}}},getFunctionName:Ra});function Ma(e){if("string"!=typeof e)throw new Error(cn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Da=Object.freeze({__proto__:null,default:Ma});function Pa(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function ka(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Ta(e){return e&&e.ownerDocument||document}function Oa(e){return Ta(e).defaultView||window}function _a(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var qa="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function Na(e){const r=t.useRef(e);return qa((()=>{r.current=e})),t.useRef(((...e)=>(0,r.current)(...e))).current}function Fa(...e){return t.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{_a(e,t)}))}),e)}const ja={};const za=[];let Ga=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 $a(){const e=function(e,r){const n=t.useRef(ja);return n.current===ja&&(n.current=e(r)),n}(Ga.create).current;return function(e){t.useEffect(e,za)}(e.disposeEffect),e}let Ba=!0,Wa=!1;const Ha=new Ga,Va={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 Ya(e){e.metaKey||e.altKey||e.ctrlKey||(Ba=!0)}function Ua(){Ba=!1}function Ka(){"hidden"===this.visibilityState&&Wa&&(Ba=!0)}function Xa(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ba||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Va[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Ja(){const e=t.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ya,!0),t.addEventListener("mousedown",Ua,!0),t.addEventListener("pointerdown",Ua,!0),t.addEventListener("touchstart",Ua,!0),t.addEventListener("visibilitychange",Ka,!0))}),[]),r=t.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!Xa(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(Wa=!0,Ha.start(100,(()=>{Wa=!1})),r.current=!1,!0)},ref:e}}function Za(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Qa(e,t){const r=gr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=gr({},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]=gr({},i),Object.keys(o).forEach((e=>{r[n][e]=Qa(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function el(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 tl=e=>e;var rl=(()=>{let e=tl;return{configure(t){e=t},generate:t=>e(t),reset(){e=tl}}})();const nl={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 ol(e,t,r="Mui"){const n=nl[t];return n?`${r}-${n}`:`${rl.generate(e)}-${t}`}function il(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ol(e,t,r)})),n}function al(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var ll=Object.freeze({__proto__:null,default:al});function sl(e){return"string"==typeof e}function ul(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=ul(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function cl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ul(e))&&(n&&(n+=" "),n+=t);return n}function dl(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 pl(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 fl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ml(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Cr(e,fl),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=cl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=gr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=gr({},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=dl(gr({},o,n)),l=pl(n),s=pl(o),u=t(a),c=cl(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=gr({},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=gr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(gr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||sl(e)?t:gr({},t,{ownerState:gr({},t.ownerState,r)})}(r,gr({},s,{ref:Fa(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const hl=["values","unit","step"];function gl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Cr(e,hl),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)=>gr({},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 gr({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 bl={borderRadius:4};function vl(e,t){return t?na(e,t,{clone:!1}):e}const yl={xs:0,sm:600,md:900,lg:1200,xl:1536},xl={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${yl[e]}px)`};function Sl(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||xl;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||xl;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||yl).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function El(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 Cl(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:El(e,r)||n,t&&(o=t(o,n,e)),o}function wl(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=El(e.theme,n)||{};return Sl(e,i,(e=>{let n=Cl(a,o,e);return e===n&&"string"==typeof e&&(n=Cl(a,o,`${t}${"default"===e?"":Ma(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Rl={m:"margin",p:"padding"},Ll={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Il={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Al=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Il[e])return[e];e=Il[e]}const[t,r]=e.split(""),n=Rl[t],o=Ll[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Ml=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Dl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Pl(e,t,r,n){var o;const i=null!=(o=El(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 kl(e){return Pl(e,"spacing",8)}function Tl(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 Ol(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Tl(t,r),e)),{})}(Al(r),n);return Sl(e,e[r],o)}function _l(e,t){const r=kl(e.theme);return Object.keys(e).map((n=>Ol(e,t,n,r))).reduce(vl,{})}function ql(e){return _l(e,Ml)}function Nl(e){return _l(e,Dl)}function Fl(...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]?vl(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function jl(e){return"number"!=typeof e?e:`${e}px solid`}function zl(e,t){return wl({prop:e,themeKey:"borders",transform:t})}ql.propTypes={},ql.filterProps=Ml,Nl.propTypes={},Nl.filterProps=Dl;const Gl=zl("border",jl),$l=zl("borderTop",jl),Bl=zl("borderRight",jl),Wl=zl("borderBottom",jl),Hl=zl("borderLeft",jl),Vl=zl("borderColor"),Yl=zl("borderTopColor"),Ul=zl("borderRightColor"),Kl=zl("borderBottomColor"),Xl=zl("borderLeftColor"),Jl=zl("outline",jl),Zl=zl("outlineColor"),Ql=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Pl(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Tl(t,e)});return Sl(e,e.borderRadius,r)}return null};Ql.propTypes={},Ql.filterProps=["borderRadius"],Fl(Gl,$l,Bl,Wl,Hl,Vl,Yl,Ul,Kl,Xl,Ql,Jl,Zl);const es=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Pl(e.theme,"spacing",8),r=e=>({gap:Tl(t,e)});return Sl(e,e.gap,r)}return null};es.propTypes={},es.filterProps=["gap"];const ts=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Pl(e.theme,"spacing",8),r=e=>({columnGap:Tl(t,e)});return Sl(e,e.columnGap,r)}return null};ts.propTypes={},ts.filterProps=["columnGap"];const rs=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Pl(e.theme,"spacing",8),r=e=>({rowGap:Tl(t,e)});return Sl(e,e.rowGap,r)}return null};rs.propTypes={},rs.filterProps=["rowGap"];function ns(e,t){return"grey"===t?t:e}Fl(es,ts,rs,wl({prop:"gridColumn"}),wl({prop:"gridRow"}),wl({prop:"gridAutoFlow"}),wl({prop:"gridAutoColumns"}),wl({prop:"gridAutoRows"}),wl({prop:"gridTemplateColumns"}),wl({prop:"gridTemplateRows"}),wl({prop:"gridTemplateAreas"}),wl({prop:"gridArea"}));function os(e){return e<=1&&0!==e?100*e+"%":e}Fl(wl({prop:"color",themeKey:"palette",transform:ns}),wl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ns}),wl({prop:"backgroundColor",themeKey:"palette",transform:ns}));const is=wl({prop:"width",transform:os}),as=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])||yl[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:os(t)}};return Sl(e,e.maxWidth,t)}return null};as.filterProps=["maxWidth"];const ls=wl({prop:"minWidth",transform:os}),ss=wl({prop:"height",transform:os}),us=wl({prop:"maxHeight",transform:os}),cs=wl({prop:"minHeight",transform:os});wl({prop:"size",cssProperty:"width",transform:os}),wl({prop:"size",cssProperty:"height",transform:os});Fl(is,as,ls,ss,us,cs,wl({prop:"boxSizing"}));var ds={border:{themeKey:"borders",transform:jl},borderTop:{themeKey:"borders",transform:jl},borderRight:{themeKey:"borders",transform:jl},borderBottom:{themeKey:"borders",transform:jl},borderLeft:{themeKey:"borders",transform:jl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ql},color:{themeKey:"palette",transform:ns},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ns},backgroundColor:{themeKey:"palette",transform:ns},p:{style:Nl},pt:{style:Nl},pr:{style:Nl},pb:{style:Nl},pl:{style:Nl},px:{style:Nl},py:{style:Nl},padding:{style:Nl},paddingTop:{style:Nl},paddingRight:{style:Nl},paddingBottom:{style:Nl},paddingLeft:{style:Nl},paddingX:{style:Nl},paddingY:{style:Nl},paddingInline:{style:Nl},paddingInlineStart:{style:Nl},paddingInlineEnd:{style:Nl},paddingBlock:{style:Nl},paddingBlockStart:{style:Nl},paddingBlockEnd:{style:Nl},m:{style:ql},mt:{style:ql},mr:{style:ql},mb:{style:ql},ml:{style:ql},mx:{style:ql},my:{style:ql},margin:{style:ql},marginTop:{style:ql},marginRight:{style:ql},marginBottom:{style:ql},marginLeft:{style:ql},marginX:{style:ql},marginY:{style:ql},marginInline:{style:ql},marginInlineStart:{style:ql},marginInlineEnd:{style:ql},marginBlock:{style:ql},marginBlockStart:{style:ql},marginBlockEnd:{style:ql},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:es},rowGap:{style:rs},columnGap:{style:ts},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:os},maxWidth:{style:as},minWidth:{transform:os},height:{transform:os},maxHeight:{transform:os},minHeight:{transform:os},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const ps=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=El(r,l)||{};if(u)return u(o);return Sl(o,t,(t=>{let r=Cl(c,s,t);return t===r&&"string"==typeof t&&(r=Cl(c,s,`${e}${"default"===t?"":Ma(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:ds;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=vl(s,e(r,o,i,a));else{const e=Sl({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=vl(s,e):s[r]=t({sx:o,theme:i})}else s=vl(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)}}();ps.filterProps=["sx"];var fs=ps;function ms(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 hs=["breakpoints","palette","spacing","shape"];function gs(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Cr(e,hs),l=gl(r),s=function(e=8){if(e.mui)return e;const t=kl({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=na({breakpoints:l,direction:"ltr",components:{},palette:gr({mode:"light"},n),spacing:s,shape:gr({},bl,i)},a);return u.applyStyles=ms,u=t.reduce(((e,t)=>na(e,t)),u),u.unstable_sxConfig=gr({},ds,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return fs({sx:e,theme:this})},u}function bs(e=null){const r=t.useContext(Fi);return r&&(n=r,0!==Object.keys(n).length)?r:e;var n}const vs=gs();function ys(e=vs){return bs(e)}var xs={exports:{}},Ss={},Es=r,Cs=Symbol.for("react.element"),ws=Symbol.for("react.fragment"),Rs=Object.prototype.hasOwnProperty,Ls=Es.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Is={key:!0,ref:!0,__self:!0,__source:!0};function As(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)Rs.call(t,n)&&!Is.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:Cs,type:e,key:i,ref:a,props:o,_owner:Ls.current}}Ss.Fragment=ws,Ss.jsx=As,Ss.jsxs=As,xs.exports=Ss;var Ms=xs.exports;function Ds({styles:e,themeId:t,defaultTheme:r={}}){const n=ys(r),o="function"==typeof e?e(t&&n[t]||n):e;return Ms.jsx(Ji,{styles:o})}const Ps=["sx"];function ks(e){const{sx:t}=e,r=Cr(e,Ps),{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:ds;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 ta(r)?gr({},n,r):n}:gr({},n,t),gr({},o,{sx:i})}const Ts=["className","component"];const Os=["ownerState"],_s=["variants"],qs=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ns(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Fs=gs(),js=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function zs({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Gs(e){return e?(t,r)=>r[e]:null}function $s(e,t){let{ownerState:r}=t,n=Cr(t,Os);const o="function"==typeof e?e(gr({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>$s(e,gr({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Cr(o,_s);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(gr({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(gr({ownerState:r},n)):e.style))})),t}return o}function Bs({props:e,name:t,defaultTheme:r,themeId:n}){let o=ys(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?Qa(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function Ws(e,t=0,r=1){return al(e,t,r)}function Hs(e){if(e.type)return e;if("#"===e.charAt(0))return Hs(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(cn(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(cn(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Vs(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 Ys(e){let t="hsl"===(e=Hs(e)).type||"hsla"===e.type?Hs(function(e){e=Hs(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])),Vs({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 Us(e,t){return e=Hs(e),t=Ws(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Vs(e)}function Ks(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 Xs(e){if(!Ks(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Xs(e[r])})),t}function Js(e,t,r={clone:!0}){const n=r.clone?gr({},e):e;return Ks(e)&&Ks(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Ks(t[o])&&o in e&&Ks(e[o])?n[o]=Js(e[o],t[o],r):r.clone?n[o]=Ks(t[o])?Xs(t[o]):t[o]:n[o]=t[o])})),n}function Zs(e){if("string"!=typeof e)throw new Error(an(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Qs(e){return e&&e.ownerDocument||document}function eu(e){return Qs(e).defaultView||window}var tu="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;let ru=0;const nu=t["useId".toString()];function ou(e){if(void 0!==nu){const t=nu();return null!=e?e:t}return function(e){const[r,n]=t.useState(e),o=e||r;return t.useEffect((()=>{null==r&&(ru+=1,n(`mui-${ru}`))}),[r]),o}(e)}function iu({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 au(e){const r=t.useRef(e);return tu((()=>{r.current=e})),t.useRef(((...e)=>(0,r.current)(...e))).current}function lu(...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 su{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new su}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let uu=!0,cu=!1;const du=new su,pu={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 fu(e){e.metaKey||e.altKey||e.ctrlKey||(uu=!0)}function mu(){uu=!1}function hu(){"hidden"===this.visibilityState&&cu&&(uu=!0)}function gu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return uu||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!pu[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function bu(){const e=t.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",fu,!0),t.addEventListener("mousedown",mu,!0),t.addEventListener("pointerdown",mu,!0),t.addEventListener("touchstart",mu,!0),t.addEventListener("visibilitychange",hu,!0))}),[]),r=t.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!gu(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(cu=!0,du.start(100,(()=>{cu=!1})),r.current=!1,!0)},ref:e}}function vu(e,t){const r=gr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=gr({},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]=gr({},i),Object.keys(o).forEach((e=>{r[n][e]=vu(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const yu=e=>e;var xu=(()=>{let e=yu;return{configure(t){e=t},generate:t=>e(t),reset(){e=yu}}})();const Su={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 Eu(e,t,r="Mui"){const n=Su[t];return n?`${r}-${n}`:`${xu.generate(e)}-${t}`}function Cu(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Eu(e,t,r)})),n}const wu=["mode","contrastThreshold","tonalOffset"],Ru={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:Jr.white,default:Jr.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}},Lu={text:{primary:Jr.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:Jr.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 Iu(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=Hs(e),t=Ws(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 Vs(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Hs(e),t=Ws(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 Vs(e)}(e.main,i)))}function Au(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=un(e,wu),i=e.primary||function(e="light"){return"dark"===e?{main:en[200],light:en[50],dark:en[400]}:{main:en[700],light:en[400],dark:en[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Qr[200],light:Qr[50],dark:Qr[400]}:{main:Qr[500],light:Qr[300],dark:Qr[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Zr[500],light:Zr[300],dark:Zr[700]}:{main:Zr[700],light:Zr[400],dark:Zr[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:tn[400],light:tn[300],dark:tn[700]}:{main:tn[700],light:tn[500],dark:tn[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:rn[400],light:rn[300],dark:rn[700]}:{main:rn[800],light:rn[500],dark:rn[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:nn[400],light:nn[300],dark:nn[700]}:{main:"#ed6c02",light:nn[500],dark:nn[900]}}(t);function d(e){const t=function(e,t){const r=Ys(e),n=Ys(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Lu.text.primary)>=r?Lu.text.primary:Ru.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=sn({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(an(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(an(12,t?` (${t})`:"",JSON.stringify(e.main)));return Iu(e,"light",o,n),Iu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Lu,light:Ru};return Js(sn({common:sn({},Jr),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:on,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Mu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Du={textTransform:"uppercase"},Pu='"Roboto", "Helvetica", "Arial", sans-serif';function ku(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Pu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=un(r,Mu),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return sn({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Pu?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Du),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Du),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Js(sn({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Tu(...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 Ou=["none",Tu(0,2,1,-1,0,1,1,0,0,1,3,0),Tu(0,3,1,-2,0,2,2,0,0,1,5,0),Tu(0,3,3,-2,0,3,4,0,0,1,8,0),Tu(0,2,4,-1,0,4,5,0,0,1,10,0),Tu(0,3,5,-1,0,5,8,0,0,1,14,0),Tu(0,3,5,-1,0,6,10,0,0,1,18,0),Tu(0,4,5,-2,0,7,10,1,0,2,16,1),Tu(0,5,5,-3,0,8,10,1,0,3,14,2),Tu(0,5,6,-3,0,9,12,1,0,3,16,2),Tu(0,6,6,-3,0,10,14,1,0,4,18,3),Tu(0,6,7,-4,0,11,15,1,0,4,20,3),Tu(0,7,8,-4,0,12,17,2,0,5,22,4),Tu(0,7,8,-4,0,13,19,2,0,5,24,4),Tu(0,7,9,-4,0,14,21,2,0,5,26,4),Tu(0,8,9,-5,0,15,22,2,0,6,28,5),Tu(0,8,10,-5,0,16,24,2,0,6,30,5),Tu(0,8,11,-5,0,17,26,2,0,6,32,5),Tu(0,9,11,-5,0,18,28,2,0,7,34,6),Tu(0,9,12,-6,0,19,29,2,0,7,36,6),Tu(0,10,13,-6,0,20,31,3,0,8,38,7),Tu(0,10,13,-6,0,21,33,3,0,8,40,7),Tu(0,10,14,-6,0,22,35,3,0,8,42,7),Tu(0,11,14,-7,0,23,36,3,0,9,44,8),Tu(0,11,15,-7,0,24,38,3,0,9,46,8)];const _u=["duration","easing","delay"],qu={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)"},Nu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Fu(e){return`${Math.round(e)}ms`}function ju(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function zu(e){const t=sn({},qu,e.easing),r=sn({},Nu,e.duration);return sn({getAutoHeightDuration:ju,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return un(n,_u),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Fu(o)} ${i} ${"string"==typeof a?a:Fu(a)}`)).join(",")}},e,{easing:t,duration:r})}var Gu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const $u=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Bu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=un(e,$u);if(e.vars)throw new Error(an(18));const l=Au(n),s=gs(e);let u=Js(s,{mixins:(c=s.breakpoints,d=r,sn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Ou.slice(),typography:ku(l,i),transitions:zu(o),zIndex:sn({},Gu),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=Js(u,a),u=t.reduce(((e,t)=>Js(e,t)),u),u.unstable_sxConfig=sn({},ds,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return fs({sx:e,theme:this})},u}var Wu=Bu();function Hu(){const e=ys(Wu);return e[ln]||e}function Vu({props:e,name:t}){return Bs({props:e,name:t,defaultTheme:Wu,themeId:ln})}const Yu=e=>Ns(e)&&"classes"!==e,Uu=Ns,Ku=function(e={}){const{themeId:t,defaultTheme:r=Fs,rootShouldForwardProp:n=Ns,slotShouldForwardProp:o=Ns}=e,i=e=>fs(gr({},e,{theme:zs(gr({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{Qi(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Gs(js(s))}=a,p=Cr(a,qs),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Ns;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Zi(e,gr({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||ta(e)?n=>$s(e,gr({},n,{theme:zs({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=zs(gr({},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]=$s(r,gr({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=zs(gr({},e,{defaultTheme:r,themeId:t}));return $s({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},gr({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:ln,defaultTheme:Wu,rootShouldForwardProp:Yu});var Xu=Ku;var Ju=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Zu(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=Zu(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Qu(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zu(e))&&(n&&(n+=" "),n+=t);return n}function ec(e){return Eu("MuiSvgIcon",e)}Cu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],rc=Xu("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Zs(r.color)}`],t[`fontSize${Zs(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),nc=t.forwardRef((function(e,r){const n=Vu({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=un(n,tc),m=t.isValidElement(o)&&"svg"===o.type,h=sn({},n,{color:a,component:l,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),g={};c||(g.viewBox=p);const b=(e=>{const{color:t,fontSize:r,classes:n}=e;return el({root:["root","inherit"!==t&&`color${Zs(t)}`,`fontSize${Zs(r)}`]},ec,n)})(h);return Ms.jsxs(rc,sn({as:l,className:Qu(b.root,i),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:r},g,f,m&&o.props,{ownerState:h,children:[m?o.props.children:o,d?Ms.jsx("title",{children:d}):null]}))}));nc.muiName="SvgIcon";var oc=nc;var ic,ac={},lc=Symbol.for("react.element"),sc=Symbol.for("react.portal"),uc=Symbol.for("react.fragment"),cc=Symbol.for("react.strict_mode"),dc=Symbol.for("react.profiler"),pc=Symbol.for("react.provider"),fc=Symbol.for("react.context"),mc=Symbol.for("react.server_context"),hc=Symbol.for("react.forward_ref"),gc=Symbol.for("react.suspense"),bc=Symbol.for("react.suspense_list"),vc=Symbol.for("react.memo"),yc=Symbol.for("react.lazy"),xc=Symbol.for("react.offscreen");
18
18
  /**
19
19
  * @license React
20
20
  * react-is.production.min.js
@@ -23,7 +23,7 @@ function ea(e,t){let r;return r=t?Ui(e).withConfig({displayName:t.label,shouldFo
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */function Cc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case uc:switch(e=e.type){case dc:case fc:case pc:case vc:case yc:return e;default:switch(e=e&&e.$$typeof){case gc:case hc:case bc:case Sc:case xc:case mc:return e;default:return t}}case cc:return t}}}lc=Symbol.for("react.module.reference"),sc.ContextConsumer=hc,sc.ContextProvider=mc,sc.Element=uc,sc.ForwardRef=bc,sc.Fragment=dc,sc.Lazy=Sc,sc.Memo=xc,sc.Portal=cc,sc.Profiler=fc,sc.StrictMode=pc,sc.Suspense=vc,sc.SuspenseList=yc,sc.isAsyncMode=function(){return!1},sc.isConcurrentMode=function(){return!1},sc.isContextConsumer=function(e){return Cc(e)===hc},sc.isContextProvider=function(e){return Cc(e)===mc},sc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===uc},sc.isForwardRef=function(e){return Cc(e)===bc},sc.isFragment=function(e){return Cc(e)===dc},sc.isLazy=function(e){return Cc(e)===Sc},sc.isMemo=function(e){return Cc(e)===xc},sc.isPortal=function(e){return Cc(e)===cc},sc.isProfiler=function(e){return Cc(e)===fc},sc.isStrictMode=function(e){return Cc(e)===pc},sc.isSuspense=function(e){return Cc(e)===vc},sc.isSuspenseList=function(e){return Cc(e)===yc},sc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===dc||e===fc||e===pc||e===vc||e===yc||e===Ec||"object"==typeof e&&null!==e&&(e.$$typeof===Sc||e.$$typeof===xc||e.$$typeof===mc||e.$$typeof===hc||e.$$typeof===bc||e.$$typeof===lc||void 0!==e.getModuleId)},sc.typeOf=Cc;var wc=!1,Rc=r.createContext(null),Lc="unmounted",Ic="exited",Ac="entering",Mc="entered",Dc="exiting",Pc=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=Ic,n.appearStatus=Ac):o=Mc:o=t.unmountOnExit||t.mountOnEnter?Lc:Ic,n.state={status:o},n.nextCallback=null,n}Ir(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Lc?{status:Ic}: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!==Ac&&r!==Mc&&(t=Ac):r!==Ac&&r!==Mc||(t=Dc)}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===Ac){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===Ic&&this.setState({status:Lc})},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||wc?this.safeSetState({status:Mc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Ac},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Mc},(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&&!wc?(this.props.onExit(n),this.safeSetState({status:Dc},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Ic},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Ic},(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===Lc)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=Rr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(Rc.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function kc(){}Pc.contextType=Rc,Pc.propTypes={},Pc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:kc,onEntering:kc,onEntered:kc,onExit:kc,onExiting:kc,onExited:kc},Pc.UNMOUNTED=Lc,Pc.EXITED=Ic,Pc.ENTERING=Ac,Pc.ENTERED=Mc,Pc.EXITING=Dc;var Tc=Pc;function Oc(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 _c(e,t,r){return null!=r[t]?r[t]:e.props[t]}function qc(e,t,r){var n=Oc(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:_c(s,"exit",e),enter:_c(s,"enter",e)})):o[i]=l(s,{in:!1}):o[i]=l(s,{onExited:r.bind(null,s),in:!0,exit:_c(s,"exit",e),enter:_c(s,"enter",e)})}})),o}var Nc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Fc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Ar(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Ir(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,Oc(r.children,(function(e){return l(e,{onExited:n.bind(null,e),in:!0,appear:_c(e,"appear",r),enter:_c(e,"enter",r),exit:_c(e,"exit",r)})}))):qc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var r=Oc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=vr({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=Rr(e,["component","childFactory"]),i=this.state.contextValue,a=Nc(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(Rc.Provider,{value:i},a):r.createElement(Rc.Provider,{value:i},r.createElement(t,o,a))},t}(r.Component);Fc.propTypes={},Fc.defaultProps={component:"div",childFactory:function(e){return e}};var jc=Fc;const zc=e=>e.scrollTop;function Gc(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 $c(e){return wu("MuiPaper",e)}Ru("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 Bc=["className","component","elevation","square","variant"],Wc=Zu("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 cn({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&&cn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Xs("#fff",Qu(t.elevation))}, ${Xs("#fff",Qu(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var Hc=t.forwardRef((function(e,t){const r=Uu({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=dn(r,Bc),u=cn({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return rl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},$c,o)})(u);return Ps.jsx(Wc,cn({as:o,ownerState:u,className:tc(c.root,n),ref:t},s))}));function Vc(e){return"string"==typeof e}function Yc(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 Uc(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 Kc=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Xc(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Rr(e,Kc),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=pl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=vr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=vr({},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=Yc(vr({},o,n)),l=Uc(n),s=Uc(o),u=t(a),c=pl(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=vr({},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=vr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(vr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Vc(e)?t:vr({},t,{ownerState:vr({},t.ownerState,r)})}(r,vr({},s,{ref:za(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Jc=Ru("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Zc=["center","classes","className"];let Qc,ed,td,rd,nd=e=>e;const od=Xi(Qc||(Qc=nd`
26
+ */function Sc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case lc:switch(e=e.type){case uc:case dc:case cc:case gc:case bc:return e;default:switch(e=e&&e.$$typeof){case mc:case fc:case hc:case yc:case vc:case pc:return e;default:return t}}case sc:return t}}}ic=Symbol.for("react.module.reference"),ac.ContextConsumer=fc,ac.ContextProvider=pc,ac.Element=lc,ac.ForwardRef=hc,ac.Fragment=uc,ac.Lazy=yc,ac.Memo=vc,ac.Portal=sc,ac.Profiler=dc,ac.StrictMode=cc,ac.Suspense=gc,ac.SuspenseList=bc,ac.isAsyncMode=function(){return!1},ac.isConcurrentMode=function(){return!1},ac.isContextConsumer=function(e){return Sc(e)===fc},ac.isContextProvider=function(e){return Sc(e)===pc},ac.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===lc},ac.isForwardRef=function(e){return Sc(e)===hc},ac.isFragment=function(e){return Sc(e)===uc},ac.isLazy=function(e){return Sc(e)===yc},ac.isMemo=function(e){return Sc(e)===vc},ac.isPortal=function(e){return Sc(e)===sc},ac.isProfiler=function(e){return Sc(e)===dc},ac.isStrictMode=function(e){return Sc(e)===cc},ac.isSuspense=function(e){return Sc(e)===gc},ac.isSuspenseList=function(e){return Sc(e)===bc},ac.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===uc||e===dc||e===cc||e===gc||e===bc||e===xc||"object"==typeof e&&null!==e&&(e.$$typeof===yc||e.$$typeof===vc||e.$$typeof===pc||e.$$typeof===fc||e.$$typeof===hc||e.$$typeof===ic||void 0!==e.getModuleId)},ac.typeOf=Sc;var Ec=!1,Cc=r.createContext(null),wc="unmounted",Rc="exited",Lc="entering",Ic="entered",Ac="exiting",Mc=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=Rc,n.appearStatus=Lc):o=Ic:o=t.unmountOnExit||t.mountOnEnter?wc:Rc,n.state={status:o},n.nextCallback=null,n}Rr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===wc?{status:Rc}: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!==Lc&&r!==Ic&&(t=Lc):r!==Lc&&r!==Ic||(t=Ac)}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===Lc){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===Rc&&this.setState({status:wc})},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||Ec?this.safeSetState({status:Ic},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Lc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Ic},(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&&!Ec?(this.props.onExit(n),this.safeSetState({status:Ac},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Rc},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Rc},(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===wc)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=Cr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(Cc.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function Dc(){}Mc.contextType=Cc,Mc.propTypes={},Mc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Dc,onEntering:Dc,onEntered:Dc,onExit:Dc,onExiting:Dc,onExited:Dc},Mc.UNMOUNTED=wc,Mc.EXITED=Rc,Mc.ENTERING=Lc,Mc.ENTERED=Ic,Mc.EXITING=Ac;var Pc=Mc;function kc(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 Tc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Oc(e,t,r){var n=kc(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:Tc(s,"exit",e),enter:Tc(s,"enter",e)})):o[i]=l(s,{in:!1}):o[i]=l(s,{onExited:r.bind(null,s),in:!0,exit:Tc(s,"exit",e),enter:Tc(s,"enter",e)})}})),o}var _c=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},qc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Lr(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Rr(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,kc(r.children,(function(e){return l(e,{onExited:n.bind(null,e),in:!0,appear:Tc(e,"appear",r),enter:Tc(e,"enter",r),exit:Tc(e,"exit",r)})}))):Oc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var r=kc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=gr({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=Cr(e,["component","childFactory"]),i=this.state.contextValue,a=_c(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(Cc.Provider,{value:i},a):r.createElement(Cc.Provider,{value:i},r.createElement(t,o,a))},t}(r.Component);qc.propTypes={},qc.defaultProps={component:"div",childFactory:function(e){return e}};var Nc=qc;const Fc=e=>e.scrollTop;function jc(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 zc(e){return Eu("MuiPaper",e)}Cu("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 Gc=["className","component","elevation","square","variant"],$c=Xu("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 sn({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&&sn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Us("#fff",Ju(t.elevation))}, ${Us("#fff",Ju(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var Bc=t.forwardRef((function(e,t){const r=Vu({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=un(r,Gc),u=sn({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return el({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},zc,o)})(u);return Ms.jsx($c,sn({as:o,ownerState:u,className:Qu(c.root,n),ref:t},s))}));function Wc(e){return"string"==typeof e}function Hc(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 Vc(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 Yc=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Uc(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Cr(e,Yc),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=cl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=gr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=gr({},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=Hc(gr({},o,n)),l=Vc(n),s=Vc(o),u=t(a),c=cl(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=gr({},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=gr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(gr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Wc(e)?t:gr({},t,{ownerState:gr({},t.ownerState,r)})}(r,gr({},s,{ref:Fa(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Kc=Cu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Xc=["center","classes","className"];let Jc,Zc,Qc,ed,td=e=>e;const rd=Ui(Jc||(Jc=td`
27
27
  0% {
28
28
  transform: scale(0);
29
29
  opacity: 0.1;
@@ -33,7 +33,7 @@ function ea(e,t){let r;return r=t?Ui(e).withConfig({displayName:t.label,shouldFo
33
33
  transform: scale(1);
34
34
  opacity: 0.3;
35
35
  }
36
- `)),id=Xi(ed||(ed=nd`
36
+ `)),nd=Ui(Zc||(Zc=td`
37
37
  0% {
38
38
  opacity: 1;
39
39
  }
@@ -41,7 +41,7 @@ function ea(e,t){let r;return r=t?Ui(e).withConfig({displayName:t.label,shouldFo
41
41
  100% {
42
42
  opacity: 0;
43
43
  }
44
- `)),ad=Xi(td||(td=nd`
44
+ `)),od=Ui(Qc||(Qc=td`
45
45
  0% {
46
46
  transform: scale(1);
47
47
  }
@@ -53,7 +53,7 @@ function ea(e,t){let r;return r=t?Ui(e).withConfig({displayName:t.label,shouldFo
53
53
  100% {
54
54
  transform: scale(1);
55
55
  }
56
- `)),ld=Zu("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sd=Zu((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=tc(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+i},h=tc(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]),Ps.jsx("span",{className:f,style:m,children:Ps.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(rd||(rd=nd`
56
+ `)),id=Xu("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ad=Xu((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=Qu(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+i},h=Qu(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]),Ms.jsx("span",{className:f,style:m,children:Ms.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(ed||(ed=td`
57
57
  opacity: 0;
58
58
  position: absolute;
59
59
 
@@ -96,9 +96,9 @@ function ea(e,t){let r;return r=t?Ui(e).withConfig({displayName:t.label,shouldFo
96
96
  animation-iteration-count: infinite;
97
97
  animation-delay: 200ms;
98
98
  }
99
- `),Jc.rippleVisible,od,550,(({theme:e})=>e.transitions.easing.easeInOut),Jc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Jc.child,Jc.childLeaving,id,550,(({theme:e})=>e.transitions.easing.easeInOut),Jc.childPulsate,ad,(({theme:e})=>e.transitions.easing.easeInOut));var ud=t.forwardRef((function(e,r){const n=Uu({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=dn(n,Zc),[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),m=t.useRef(null),h=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,Ps.jsx(sd,{classes:{ripple:tc(i.ripple,Jc.ripple),rippleVisible:tc(i.rippleVisible,Jc.rippleVisible),ripplePulsate:tc(i.ripplePulsate,Jc.ripplePulsate),child:tc(i.child,Jc.child),childLeaving:tc(i.childLeaving,Jc.childLeaving),childPulsate:tc(i.childPulsate,Jc.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:h.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===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.current=setTimeout((()=>{m.current&&(m.current(),m.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)&&m.current)return m.current(),m.current=null,void(f.current=setTimeout((()=>{y(e,t)})));m.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]),Ps.jsx(ld,cn({className:tc(Jc.root,i.root,a),ref:h},l,{children:Ps.jsx(jc,{component:null,exit:!0,children:s})}))}));function cd(e){return wu("MuiButtonBase",e)}var dd=Ru("MuiButtonBase",["root","disabled","focusVisible"]);const pd=["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"],fd=Zu("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"},[`&.${dd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),md=t.forwardRef((function(e,r){const n=Uu({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:m,onClick:h,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,k=dn(n,pd),T=t.useRef(null),O=t.useRef(null),_=uu(O,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=yu(),[z,G]=t.useState(!1);u&&z&&G(!1),t.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),T.current.focus()}})),[]);const[$,B]=t.useState(!1);t.useEffect((()=>{B(!0)}),[]);const W=$&&!c&&!u;function H(e,t,r=d){return su((n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0}))}t.useEffect((()=>{z&&p&&!c&&$&&O.current.pulsate()}),[c,p,z,$]);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&&G(!1),m&&m(e)}),!1),te=su((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=t.useRef(!1),oe=su((e=>{p&&!ne.current&&z&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=su((e=>{p&&" "===e.key&&O.current&&z&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(k.href||k.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(k.href||k.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=uu(r,j,T),ue=cn({},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=rl({root:["root",t&&"disabled",r&&"focusVisible"]},cd,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Ps.jsxs(fd,cn({as:ae,className:tc(ce.root,l),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:u?-1:A,type:P},le,k,{children:[a,W?Ps.jsx(ud,cn({ref:_,center:i},M)):null]}))}));var hd=md;function gd(e){return wu("MuiTypography",e)}Ru("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vd=Zu("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${eu(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>cn({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}))),yd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Sd=t.forwardRef((function(e,t){const r=Uu({props:e,name:"MuiTypography"}),n=(e=>xd[e]||e)(r.color),o=Os(cn({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=yd}=o,f=dn(o,bd),m=cn({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||yd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return rl({root:["root",i,"inherit"!==e.align&&`align${eu(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},gd,a)})(m);return Ps.jsx(vd,cn({as:h,ref:t,ownerState:m,className:tc(g.root,a)},f))}));var Ed=Sd;const Cd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function wd(e){const t=[],r=[];return Array.from(e.querySelectorAll(Cd)).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 Rd(){return!0}function Ld(e){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=wd,isEnabled:l=Rd,open:s}=e,u=t.useRef(!1),c=t.useRef(null),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),m=t.useRef(!1),h=t.useRef(null),g=za(r.ref,h),b=t.useRef(null);t.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),t.useEffect((()=>{if(!s||!h.current)return;const e=_a(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),t.useEffect((()=>{if(!s||!h.current)return;const e=_a(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.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(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.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),m.current=!0};return Ps.jsxs(t.Fragment,{children:[Ps.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),m.current=!0,f.current=e.target;const t=r.props.onFocus;t&&t(e)}}),Ps.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const Id=t.forwardRef((function(e,r){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=t.useState(null),s=za(t.isValidElement(n)?n.ref:null,r);if(Fa((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),Fa((()=>{if(a&&!i)return Na(r,a),()=>{Na(r,null)}}),[r,a,i]),i){if(t.isValidElement(n)){const e={ref:s};return t.cloneElement(n,e)}return Ps.jsx(t.Fragment,{children:n})}return Ps.jsx(t.Fragment,{children:a?j.createPortal(n,a):a})}));function Ad(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Md(e){return parseInt(qa(e).getComputedStyle(e).paddingRight,10)||0}function Dd(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&&Ad(e,o)}))}function Pd(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function kd(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=_a(e);return t.body===e?qa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=el(_a(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Md(n)+e}px`;const t=_a(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Md(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=_a(n).body;else{const t=n.parentElement,r=qa(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 Td=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&&Ad(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);Dd(t,e.mount,e.modalRef,n,!0);const o=Pd(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=Pd(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=kd(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Pd(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&&Ad(e.modalRef,t),Dd(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&&Ad(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Od(e){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=Td,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=t.useRef({}),m=t.useRef(null),h=t.useRef(null),g=za(h,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=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},C=ja((()=>{const e=function(e){return"function"==typeof e?e():e}(r)||_a(m.current).body;i.add(S(),e),h.current&&E()})),w=t.useCallback((()=>i.isTopModal(S())),[i]),R=ja((e=>{m.current=e,e&&(d&&w()?E():h.current&&Ad(h.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=Yc(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=vr({},r,t);return vr({role:"presentation"},n,{onKeyDown:I(n),ref:g})},getBackdropProps:(e={})=>vr({"aria-hidden":!0},e,{onClick:A(e),open:d}),getTransitionProps:()=>({onEnter:Ta((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Ta((()=>{v(!0),s&&s(),a&&L()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}const _d=["onChange","maxRows","minRows","style","value"];function qd(e){return parseInt(e,10)||0}const Nd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Fd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const jd=t.forwardRef((function(e,r){const{onChange:n,maxRows:o,minRows:i=1,style:a,value:l}=e,s=Rr(e,_d),{current:u}=t.useRef(null!=l),c=t.useRef(null),d=za(r,c),p=t.useRef(null),f=t.useRef(0),[m,h]=t.useState({outerHeightStyle:0}),g=t.useCallback((()=>{const t=c.current,r=qa(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=qd(r.paddingBottom)+qd(r.paddingTop),s=qd(r.borderBottomWidth)+qd(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();Fd(e)||h((t=>b(t,e)))}),[g]);Fa((()=>{const e=()=>{f.current=0,(()=>{const e=g();Fd(e)||j.flushSync((()=>{h((t=>b(t,e)))}))})()};const t=Oa(e),r=c.current,n=qa(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]),Fa((()=>{v()})),t.useEffect((()=>{f.current=0}),[l]);return Ps.jsxs(t.Fragment,{children:[Ps.jsx("textarea",vr({value:l,onChange:e=>{f.current=0,u||v(),n&&n(e)},ref:d,rows:i,style:vr({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},s)),Ps.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:vr({},Nd,a,{paddingTop:0,paddingBottom:0})})]})}));function zd({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 Gd=t.createContext(void 0);function $d(){return t.useContext(Gd)}function Bd(e){return Ps.jsx(ks,cn({},e,{defaultTheme:Vu,themeId:un}))}function Wd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Hd(e,t=!1){return e&&(Wd(e.value)&&""!==e.value||t&&Wd(e.defaultValue)&&""!==e.defaultValue)}function Vd(e){return wu("MuiInputBase",e)}var Yd=Ru("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Ud=["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"],Kd=(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${eu(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Xd=(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]},Jd=Zu("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Kd})((({theme:e,ownerState:t})=>cn({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Yd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&cn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Zd=Zu("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Xd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=cn({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 cn({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Yd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Yd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Qd=Ps.jsx(Bd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ep=t.forwardRef((function(e,r){var n;const o=Uu({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,fullWidth:h=!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:k,rows:T,slotProps:O={},slots:_={},startAdornment:q,type:N="text",value:F}=o,j=dn(o,Ud),z=null!=v.value?v.value:F,{current:G}=t.useRef(null!=z),$=t.useRef(),B=t.useCallback((e=>{}),[]),W=uu($,y,v.ref,B),[H,V]=t.useState(!1),Y=$d(),U=zd({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=>{Hd(e)?K&&K():X&&X()}),[K,X]);nu((()=>{G&&J({value:z})}),[z,J,G]);t.useEffect((()=>{J($.current)}),[]);let Z=b,Q=v;E&&"input"===Z&&(Q=cn(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:x,minRows:S},Q),Z=jd);t.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=cn({},o,{color:U.color||"primary",disabled:U.disabled,endAdornment:m,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:m}=e;return rl({root:["root",`color${eu(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${eu(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Vd,t)})(ee),re=_.root||u.Root||Jd,ne=O.root||c.root||{},oe=_.input||u.Input||Zd;return Q=cn({},Q,null!=(n=O.input)?n:c.input),Ps.jsxs(t.Fragment,{children:[!f&&Qd,Ps.jsxs(re,cn({},ne,!Vc(re)&&{ownerState:cn({},ee,ne.ownerState)},{ref:r,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),L&&L(e)}},j,{className:tc(te.root,ne.className,s,P&&"MuiInputBase-readOnly"),children:[q,Ps.jsx(Gd.Provider,{value:null,children:Ps.jsx(oe,cn({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?$.current:{value:"x"})},name:C,placeholder:D,readOnly:P,required:U.required,rows:T,value:z,onKeyDown:A,onKeyUp:M,type:N},Q,!Vc(oe)&&{as:Z,ownerState:cn({},ee,Q.ownerState)},{ref:W,className:tc(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(!G){const t=e.target||$.current;if(null==t)throw new Error(sn(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))}}))}),m,k?k(cn({},U,{startAdornment:q})):null]}))]})}));var tp=ep;function rp(e){return wu("MuiInput",e)}var np=cn({},Yd,Ru("MuiInput",["root","underline","input"]));function op(e){return wu("MuiOutlinedInput",e)}var ip=cn({},Yd,Ru("MuiOutlinedInput",["root","notchedOutline","input"]));function ap(e){return wu("MuiFilledInput",e)}var lp=cn({},Yd,Ru("MuiFilledInput",["root","underline","input"])),sp=function(e,r){function n(t,n){return Ps.jsx(ac,cn({"data-testid":`${r}Icon`,ref:n},t,{children:e}))}return n.muiName=ac.muiName,t.memo(t.forwardRef(n))}(Ps.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const up=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],cp={entering:{opacity:1},entered:{opacity:1}},dp=t.forwardRef((function(e,r){const n=Yu(),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:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=Tc}=e,y=dn(e,up),x=t.useRef(null),S=uu(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)=>{zc(e);const r=Gc({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(h),I=E((e=>{const t=Gc({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(m);return Ps.jsx(v,cn({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,cn({style:cn({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},cp[e],g,l.props.style),ref:S},r))}))}));var pp=dp;function fp(e){return wu("MuiBackdrop",e)}Ru("MuiBackdrop",["root","invisible"]);const mp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],hp=Zu("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>cn({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"}))),gp=t.forwardRef((function(e,t){var r,n,o;const i=Uu({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=pp,transitionDuration:g}=i,b=dn(i,mp),v=cn({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return rl({root:["root",r&&"invisible"]},fp,t)})(v),x=null!=(r=f.root)?r:c.root;return Ps.jsx(h,cn({in:p,timeout:g},b,{children:Ps.jsx(hp,cn({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:tc(y.root,l,null==x?void 0:x.className),ownerState:cn({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var bp=gp;var vp=Ru("MuiBox",["root"]);const yp=Hu(),xp=function(e={}){const{themeId:r,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=ea("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(hs);return t.forwardRef((function(e,t){const l=Ss(n),s=Os(e),{className:u,component:c="div"}=s,d=Rr(s,_s);return Ps.jsx(a,vr({as:c,ref:t,className:pl(u,i?i(o):o),theme:r&&l[r]||l},d))}))}({themeId:un,defaultTheme:yp,defaultClassName:vp.root,generateClassName:Eu.generate});var Sp=xp;function Ep(e){return wu("MuiButton",e)}var Cp=Ru("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 wp=t.createContext({});var Rp=t.createContext(void 0);const Lp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ip=e=>cn({},"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}}),Ap=Zu(hd,{shouldForwardProp:e=>Ku(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${eu(r.color)}`],t[`size${eu(r.size)}`],t[`${r.variant}Size${eu(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 cn({},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":cn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Xs(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})`:Xs(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})`:Xs(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":cn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Cp.focusVisible}`]:cn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Cp.disabled}`]:cn({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 ${Xs(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"},[`&.${Cp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Cp.disabled}`]:{boxShadow:"none"}})),Mp=Zu("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${eu(r.size)}`]]}})((({ownerState:e})=>cn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ip(e)))),Dp=Zu("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${eu(r.size)}`]]}})((({ownerState:e})=>cn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ip(e)))),Pp=t.forwardRef((function(e,r){const n=t.useContext(wp),o=t.useContext(Rp),i=Uu({props:xu(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:m,fullWidth:h=!1,size:g="medium",startIcon:b,type:v,variant:y="text"}=i,x=dn(i,Lp),S=cn({},i,{color:l,component:s,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:h,size:g,type:v,variant:y}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return cn({},a,rl({root:["root",i,`${i}${eu(t)}`,`size${eu(o)}`,`${i}Size${eu(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${eu(o)}`],endIcon:["endIcon",`iconSize${eu(o)}`]},Ep,a))})(S),C=b&&Ps.jsx(Mp,{className:E.startIcon,ownerState:S,children:b}),w=f&&Ps.jsx(Dp,{className:E.endIcon,ownerState:S,children:f}),R=o||"";return Ps.jsxs(Ap,cn({ownerState:S,className:tc(n.className,E.root,u,R),component:s,disabled:c,focusRipple:!p,focusVisibleClassName:tc(E.focusVisible,m),ref:r,type:v},x,{classes:E,children:[C,a,w]}))}));var kp=Pp;function Tp(e){return wu("MuiModal",e)}Ru("MuiModal",["root","hidden","backdrop"]);const Op=["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"],_p=Zu("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})=>cn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),qp=Zu(bp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Np=t.forwardRef((function(e,r){var n,o,i,a,l,s;const u=Uu({name:"MuiModal",props:e}),{BackdropComponent:c=qp,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,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=dn(u,Op),k=cn({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:T,getBackdropProps:O,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=Od(cn({},k,{rootRef:r})),z=cn({},k,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return rl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Tp,n)})(z),$={};if(void 0===m.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(o=null==D?void 0:D.root)?o:b.Root)?n:_p,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=Xc({elementType:B,externalSlotProps:H,externalForwardedProps:P,getSlotProps:T,additionalProps:{ref:r,as:g},ownerState:z,className:tc(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),U=Xc({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>O(cn({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:tc(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return L||A||j&&!F?Ps.jsx(Id,{ref:q,container:h,disablePortal:E,children:Ps.jsxs(B,cn({},Y,{children:[!R&&c?Ps.jsx(W,cn({},U)):null,Ps.jsx(Ld,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:A,children:t.cloneElement(m,$)})]}))}):null}));var Fp=Np;function jp(e){return wu("MuiDivider",e)}var zp=Ru("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Gp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$p=Zu("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})=>cn({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)`:Xs(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})=>cn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>cn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>cn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>cn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Bp=Zu("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>cn({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)`}))),Wp=t.forwardRef((function(e,t){const r=Uu({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=dn(r,Gp),m=cn({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return rl({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"]},jp,n)})(m);return Ps.jsx($p,cn({as:a,className:tc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Ps.jsx(Bp,{className:h.wrapper,ownerState:m,children:o}):null}))}));Wp.muiSkipListHighlight=!0;var Hp=Wp;const Vp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Yp=Zu(Jd,{shouldForwardProp:e=>Ku(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Kd(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 cn({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}},[`&.${lp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${lp.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"},[`&.${lp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lp.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(.${lp.disabled}, .${lp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${lp.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&cn({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}))})),Up=Zu(Zd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Xd})((({theme:e,ownerState:t})=>cn({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}))),Kp=t.forwardRef((function(e,t){var r,n,o,i;const a=Uu({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=dn(a,Vp),g=cn({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return cn({},t,rl({root:["root",!r&&"underline"],input:["input"]},ap,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Qs(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:Yp,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Up;return Ps.jsx(tp,cn({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Kp.muiName="Input";var Xp=Kp;const Jp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Zp(e){return`scale(${e}, ${e**2})`}const Qp={entering:{opacity:1,transform:Zp(1)},entered:{opacity:1,transform:"none"}},ef="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),tf=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:m,timeout:h="auto",TransitionComponent:g=Tc}=e,b=dn(e,Jp),v=t.useRef(),y=t.useRef(),x=Yu(),S=t.useRef(null),E=uu(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)=>{zc(e);const{duration:r,delay:n,easing:o}=Gc({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(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:ef?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}=Gc({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(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:ef?o:.666*o,delay:ef?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Zp(.75),d&&d(e)})),M=C(p);return t.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Ps.jsx(g,cn({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:A,onExited:M,onExiting:I,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,y.current||0)),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,r)=>t.cloneElement(i,cn({style:cn({opacity:0,transform:Zp(.75),visibility:"exited"!==e||l?void 0:"hidden"},Qp[e],m,i.props.style),ref:E},r))}))}));tf.muiSupportAuto=!0;var rf=tf;const nf=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],of=Zu(Jd,{shouldForwardProp:e=>Ku(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Kd(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})`),cn({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"},[`&.${np.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${np.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(.${np.disabled}, .${np.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${np.disabled}:before`]:{borderBottomStyle:"dotted"}})})),af=Zu(Zd,{name:"MuiInput",slot:"Input",overridesResolver:Xd})({}),lf=t.forwardRef((function(e,t){var r,n,o,i;const a=Uu({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=dn(a,nf),b=(e=>{const{classes:t,disableUnderline:r}=e;return cn({},t,rl({root:["root",!r&&"underline"],input:["input"]},rp,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Qs(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:of,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:af;return Ps.jsx(tp,cn({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));lf.muiName="Input";var sf=lf;function uf(e){return wu("MuiLink",e)}var cf=Ru("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const df={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var pf=({theme:e,ownerState:t})=>{const r=(e=>df[e]||e)(t.color),n=wl(e,`palette.${r}`,!1)||t.color,o=wl(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Xs(n,.4)};const ff=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],mf=Zu(Ed,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${eu(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>cn({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&cn({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:pf({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"},[`&.${cf.focusVisible}`]:{outline:"auto"}}))),hf=t.forwardRef((function(e,r){const n=Uu({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=dn(n,ff),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=yu(),[v,y]=t.useState(!1),x=uu(r,b),S=cn({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return rl({root:["root",`underline${eu(o)}`,"button"===r&&"button",n&&"focusVisible"]},uf,t)})(S);return Ps.jsx(mf,cn({color:i,className:tc(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(df).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))}));var gf=hf;var bf=t.createContext({});function vf(e){return wu("MuiList",e)}Ru("MuiList",["root","padding","dense","subheader"]);const yf=["children","className","component","dense","disablePadding","subheader"],xf=Zu("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})=>cn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Sf=t.forwardRef((function(e,r){const n=Uu({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=dn(n,yf),d=t.useMemo((()=>({dense:l})),[l]),p=cn({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return rl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},vf,t)})(p);return Ps.jsx(bf.Provider,{value:d,children:Ps.jsxs(xf,cn({as:a,className:tc(f.root,i),ref:r,ownerState:p},c,{children:[u,o]}))})}));function Ef(e){return wu("MuiListItemIcon",e)}var Cf=Ru("MuiListItemIcon",["root","alignItemsFlexStart"]);const wf=["className"],Rf=Zu("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})=>cn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Lf=t.forwardRef((function(e,r){const n=Uu({props:e,name:"MuiListItemIcon"}),{className:o}=n,i=dn(n,wf),a=cn({},n,{alignItems:t.useContext(bf).alignItems}),l=(e=>{const{alignItems:t,classes:r}=e;return rl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Ef,r)})(a);return Ps.jsx(Rf,cn({className:tc(l.root,o),ownerState:a,ref:r},i))}));var If=Ru("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Af=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Mf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Df(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Pf(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 kf(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")&&Pf(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Tf=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=dn(e,Af),f=t.useRef(null),m=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});nu((()=>{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)}(tu(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=uu(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 Ps.jsx(Sf,cn({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=tu(t).activeElement;if("ArrowDown"===r)e.preventDefault(),kf(t,n,u,s,Mf);else if("ArrowUp"===r)e.preventDefault(),kf(t,n,u,s,Df);else if("Home"===r)e.preventDefault(),kf(t,null,u,s,Mf);else if("End"===r)e.preventDefault(),kf(t,null,u,s,Df);else if(1===r.length){const o=m.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&&Pf(n,o);o.previousKeyMatched&&(l||kf(t,n,!1,s,Mf,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function Of(e){return wu("MuiPopover",e)}Ru("MuiPopover",["root","paper"]);const _f=["onEntering"],qf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Nf=["slotProps"];function Ff(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function jf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function zf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Gf(e){return"function"==typeof e?e():e}const $f=Zu(Fp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bf=Zu(Hc,{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 Wf=t.forwardRef((function(e,r){var n,o,i;const a=Uu({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=rf,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,L=dn(a.TransitionProps,_f),I=dn(a,qf),A=null!=(n=null==x?void 0:x.paper)?n:v,M=t.useRef(),D=uu(M,A.ref),P=cn({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),k=(e=>{const{classes:t}=e;return rl({root:["root"],paper:["paper"]},Of,t)})(P),T=t.useCallback((()=>{if("anchorPosition"===d)return c;const e=Gf(s),t=(e&&1===e.nodeType?e:tu(M.current).body).getBoundingClientRect();return{top:t.top+Ff(t,u.vertical),left:t.left+jf(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),O=t.useCallback((e=>({vertical:Ff(e,S.vertical),horizontal:jf(e,S.horizontal)})),[S.horizontal,S.vertical]),_=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=O(t);if("none"===d)return{top:null,left:null,transformOrigin:zf(r)};const n=T();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=ru(Gf(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:zf(r)}}),[s,d,T,O,g]),[q,N]=t.useState(b),F=t.useCallback((()=>{const e=M.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);t.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=ru(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=m||(s?tu(Gf(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:$f,$=null!=(i=null==y?void 0:y.paper)?i:Bf,B=Xc({elementType:$,externalSlotProps:cn({},A,{style:q?A.style:cn({},A.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:tc(k.paper,null==A?void 0:A.className)}),W=Xc({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:tc(k.root,f)}),{slotProps:H}=W,V=dn(W,Nf);return Ps.jsx(G,cn({},V,!Vc(G)&&{slotProps:H,disableScrollLock:R},{children:Ps.jsx(E,cn({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:Ps.jsx($,cn({},B,{children:p}))}))}))}));function Hf(e){return wu("MuiMenu",e)}Ru("MuiMenu",["root","paper","list"]);const Vf=["onEntering"],Yf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Uf={vertical:"top",horizontal:"right"},Kf={vertical:"top",horizontal:"left"},Xf=Zu(Wf,{shouldForwardProp:e=>Ku(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jf=Zu(Bf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Zf=Zu(Tf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Qf=t.forwardRef((function(e,r){var n,o;const i=Uu({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=dn(i.TransitionProps,Vf),S=dn(i,Yf),E=Yu(),C="rtl"===E.direction,w=cn({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),R=(e=>{const{classes:t}=e;return rl({root:["root"],paper:["paper"],list:["list"]},Hf,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:Jf,D=null!=(o=y.paper)?o:f,P=Xc({elementType:v.root,externalSlotProps:y.root,ownerState:w,className:[R.root,s]}),k=Xc({elementType:M,externalSlotProps:D,ownerState:w,className:R.paper});return Ps.jsx(Xf,cn({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Uf:Kf,slots:{paper:M,root:v.root},slotProps:{root:P,paper:k},open:p,ref:r,transitionDuration:h,TransitionProps:cn({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),g&&g(e,t)}},x),ownerState:w},S,{classes:m,children:Ps.jsx(Zf,cn({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:I,autoFocus:a&&(-1===A||u),autoFocusItem:L,variant:b},c,{className:tc(R.list,c.className),children:l}))}))}));function em(e){return wu("MuiMenuItem",e)}var tm=Ru("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const rm=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],nm=Zu(hd,{shouldForwardProp:e=>Ku(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})=>cn({},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"}},[`&.${tm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xs(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Xs(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Xs(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})`:Xs(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${zp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${zp.inset}`]:{marginLeft:52},[`& .${If.root}`]:{marginTop:0,marginBottom:0},[`& .${If.inset}`]:{paddingLeft:36},[`& .${Cf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&cn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Cf.root} svg`]:{fontSize:"1.25rem"}}))));var om=t.forwardRef((function(e,r){const n=Uu({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=dn(n,rm),m=t.useContext(bf),h=t.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=t.useRef(null);nu((()=>{o&&g.current&&g.current.focus()}),[o]);const b=cn({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return cn({},a,rl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},em,a))})(n),y=uu(g,r);let x;return n.disabled||(x=void 0!==d?d:-1),Ps.jsx(bf.Provider,{value:h,children:Ps.jsx(nm,cn({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:tc(v.focusVisible,u),className:tc(v.root,p)},f,{ownerState:b,classes:v}))})}));function im(e){return wu("MuiNativeSelect",e)}var am=Ru("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const lm=["className","disabled","error","IconComponent","inputRef","variant"],sm=({ownerState:e,theme:t})=>cn({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":cn({},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"},[`&.${am.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}}),um=Zu("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ku,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${am.multiple}`]:t.multiple}]}})(sm),cm=({ownerState:e,theme:t})=>cn({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${am.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),dm=Zu("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${eu(r.variant)}`],r.open&&t.iconOpen]}})(cm),pm=t.forwardRef((function(e,r){const{className:n,disabled:o,error:i,IconComponent:a,inputRef:l,variant:s="standard"}=e,u=dn(e,lm),c=cn({},e,{disabled:o,variant:s,error:i}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return rl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${eu(r)}`,i&&"iconOpen",n&&"disabled"]},im,t)})(c);return Ps.jsxs(t.Fragment,{children:[Ps.jsx(um,cn({ownerState:c,className:tc(d.select,n),disabled:o,ref:l||r},u)),e.multiple?null:Ps.jsx(dm,{as:a,ownerState:c,className:d.icon})]})}));var fm,mm=pm;const hm=["children","classes","className","label","notched"],gm=Zu("fieldset",{shouldForwardProp:Ku})({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%"}),bm=Zu("legend",{shouldForwardProp:Ku})((({ownerState:e,theme:t})=>cn({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&&cn({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 vm=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ym=Zu(Jd,{shouldForwardProp:e=>Ku(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Kd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return cn({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ip.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ip.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ip.focused} .${ip.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ip.error} .${ip.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ip.disabled} .${ip.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&cn({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),xm=Zu((function(e){const{className:t,label:r,notched:n}=e,o=dn(e,hm),i=null!=r&&""!==r,a=cn({},e,{notched:n,withLabel:i});return Ps.jsx(gm,cn({"aria-hidden":!0,className:t,ownerState:a},o,{children:Ps.jsx(bm,{ownerState:a,children:i?Ps.jsx("span",{children:r}):fm||(fm=Ps.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}})),Sm=Zu(Zd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Xd})((({theme:e,ownerState:t})=>cn({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}))),Em=t.forwardRef((function(e,r){var n,o,i,a,l;const s=Uu({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:m,slots:h={},type:g="text"}=s,b=dn(s,vm),v=(e=>{const{classes:t}=e;return cn({},t,rl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},op,t))})(s),y=$d(),x=zd({props:s,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=cn({},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=h.root)?o:u.Root)?n:ym,C=null!=(i=null!=(a=h.input)?a:u.Input)?i:Sm;return Ps.jsx(tp,cn({slots:{root:E,input:C},renderSuffix:e=>Ps.jsx(xm,{ownerState:S,className:v.notchedOutline,label:null!=p&&""!==p&&x.required?l||(l=Ps.jsxs(t.Fragment,{children:[p," ","*"]})):p,notched:void 0!==m?m:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:r,type:g},b,{classes:cn({},v,{notchedOutline:null})}))}));Em.muiName="Input";var Cm=Em;function wm(e){return wu("MuiSelect",e)}var Rm,Lm=Ru("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Im=["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"],Am=Zu("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Lm.select}`]:t.select},{[`&.${Lm.select}`]:t[r.variant]},{[`&.${Lm.error}`]:t.error},{[`&.${Lm.multiple}`]:t.multiple}]}})(sm,{[`&.${Lm.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Mm=Zu("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${eu(r.variant)}`],r.open&&t.iconOpen]}})(cm),Dm=Zu("input",{shouldForwardProp:e=>Xu(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 Pm(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function km(e){return null==e||"string"==typeof e&&!e.trim()}const Tm=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:m=!1,IconComponent:h,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:k="standard"}=e,T=dn(e,Im),[O,_]=lu({controlled:P,default:d,name:"Select"}),[q,N]=lu({controlled:L,default:c,name:"Select"}),F=t.useRef(null),j=t.useRef(null),[z,G]=t.useState(null),{current:$}=t.useRef(null!=L),[B,W]=t.useState(),H=uu(r,g),V=t.useCallback((e=>{j.current=e,e&&G(e)}),[]),Y=null==z?void 0:z.parentNode;t.useImperativeHandle(H,(()=>({focus:()=>{j.current.focus()},node:F.current,value:O})),[O]),t.useEffect((()=>{c&&q&&z&&!$&&(W(l?null:Y.clientWidth),j.current.focus())}),[z,l]),t.useEffect((()=>{a&&j.current.focus()}),[a]),t.useEffect((()=>{if(!b)return;const e=tu(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),$||(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(O)?O.slice():[];const t=O.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),O!==r&&(_(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 T["aria-invalid"];const ee=[];let te=!1;(Hd({value:O})||f)&&(A?Z=A(O):te=!0);const re=K.map((e=>{if(!t.isValidElement(e))return null;let r;if(y){if(!Array.isArray(O))throw new Error(sn(2));r=O.some((t=>Pm(t,e.props.value))),r&&te&&ee.push(e.props.children)}else r=Pm(O,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&&$&&z&&(oe=Y.clientWidth),ne=void 0!==D?D:p?null:0;const ie=M.id||(x?`mui-component-select-${x}`:void 0),ae=cn({},e,{variant:k,value:O,open:J,error:m}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return rl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${eu(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},wm,t)})(ae),se=cn({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),ue=au();return Ps.jsxs(t.Fragment,{children:[Ps.jsx(Am,cn({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:O,name:x}}),S(e))},onFocus:w},M,{ownerState:ae,className:tc(M.className,le.select,u),id:ie,children:km(Z)?Rm||(Rm=Ps.jsx("span",{className:"notranslate",children:"​"})):Z})),Ps.jsx(Dm,cn({"aria-invalid":m,value:Array.isArray(O)?O.join(","):O,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:a,ownerState:ae},T)),Ps.jsx(Mm,{as:h,className:le.icon,ownerState:ae}),Ps.jsx(Qf,cn({id:`menu-${x||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:cn({"aria-labelledby":b,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:cn({},v.slotProps,{paper:cn({},se,{style:cn({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var Om=Tm;const _m=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],qm=["root"],Nm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ku(e)&&"variant"!==e,slot:"Root"},Fm=Zu(sf,Nm)(""),jm=Zu(Cm,Nm)(""),zm=Zu(Xp,Nm)(""),Gm=t.forwardRef((function(e,r){const n=Uu({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=sp,id:d,input:p,inputProps:f,label:m,labelId:h,MenuProps:g,multiple:b=!1,native:v=!1,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=dn(n,_m),L=v?mm:Om,I=zd({props:n,muiFormControl:$d(),states:["variant","error"]}),A=I.variant||w,M=cn({},n,{variant:A,classes:a}),D=(e=>{const{classes:t}=e;return t})(M),P=dn(D,qm),k=p||{standard:Ps.jsx(Fm,{ownerState:M}),outlined:Ps.jsx(jm,{label:m,ownerState:M}),filled:Ps.jsx(zm,{ownerState:M})}[A],T=uu(r,k.ref);return Ps.jsx(t.Fragment,{children:t.cloneElement(k,cn({inputComponent:L,inputProps:cn({children:i,error:I.error,IconComponent:c,variant:A,type:void 0,multiple:b},v?{id:d}:{autoWidth:o,defaultOpen:s,displayEmpty:u,labelId:h,MenuProps:g,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:cn({id:d},C)},f,{classes:f?Qs(P,f.classes):P},p?p.props.inputProps:{})},b&&v&&"outlined"===A?{notched:!0}:{},{ref:T,className:tc(k.props.className,l,D.root)},!p&&{variant:A},R))})}));Gm.muiName="Select";var $m=Gm,Bm=(e={})=>r.createElement(Yr,{...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:Dr.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Wm={MuiAccordion:{styleOverrides:{root:{backgroundColor:Dr.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Dr.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:r.createElement(Wr,{"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 ${Dr.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Dr.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Dr.MISC_FOCUS_BORDER}`,borderRadius:_r,backgroundColor:Dr.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 ${Dr.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Dr.WHITE,color:Dr.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:_r},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Dr.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Dr.GREYSCALE_0_15,backgroundColor:Dr.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Dr.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Dr.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Dr.GREEN_PALE},"&:active":{backgroundColor:Dr.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Dr.GREEN_PALE,boxShadow:`0 0 0 3px ${Xs(Dr.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Dr.BLUE_PALE},"&:active":{backgroundColor:Dr.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Dr.BLUE_PALE,boxShadow:`0 0 0 3px ${Xs(Dr.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:_r,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Dr.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Dr.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Dr.GREYSCALE_0_15,backgroundColor:Dr.GREYSCALE_100_60,"&:active":{backgroundColor:Dr.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Dr.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Dr.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Dr.PURPLE,"&.Mui-focusVisible":{borderColor:Dr.PURPLE,boxShadow:`0 0 0 3px ${Xs(Dr.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Dr.GREEN,"&.Mui-focusVisible":{borderColor:Dr.GREEN,boxShadow:`0 0 0 3px ${Xs(Dr.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Dr.BLUE,"&.Mui-focusVisible":{borderColor:Dr.BLUE,boxShadow:`0 0 0 3px ${Xs(Dr.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Dr.ORANGE,"&.Mui-focusVisible":{borderColor:Dr.ORANGE,boxShadow:`0 0 0 3px ${Xs(Dr.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Dr.RED,"&.Mui-focusVisible":{borderColor:Dr.RED,boxShadow:`0 0 0 3px ${Xs(Dr.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Dr.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Dr.PURPLE_PALE},"&:active":{backgroundColor:Dr.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Dr.PURPLE_PALE,boxShadow:`0 0 0 3px ${Xs(Dr.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Dr.GREEN_PALE},"&:active":{backgroundColor:Dr.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Dr.GREEN_PALE,boxShadow:`0 0 0 3px ${Xs(Dr.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Dr.BLUE_PALE},"&:active":{backgroundColor:Dr.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Dr.BLUE_PALE,boxShadow:`0 0 0 3px ${Xs(Dr.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Dr.ORANGE_PALE},"&:active":{backgroundColor:Dr.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Dr.ORANGE_PALE,boxShadow:`0 0 0 3px ${Xs(Dr.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Dr.RED_PALE},"&:active":{backgroundColor:Dr.RED_DARK},"&.Mui-focusVisible":{borderColor:Dr.RED_PALE,boxShadow:`0 0 0 3px ${Xs(Dr.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:Dr.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Dr.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:_r,boxShadow:`inset 0 0 0 2px ${Dr.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:r.createElement(Vr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Pr,borderRadius:_r,color:Dr.TEXT_PRIMARY,backgroundColor:Dr.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Dr.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Dr.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Dr.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Dr.GREYSCALE_0_05,color:Dr.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Dr.GREEN,borderColor:Dr.GREEN},"&.MuiChip-outlinedInfo":{color:Dr.BLUE,borderColor:Dr.BLUE},"&.MuiChip-outlinedWarning":{color:Dr.ORANGE,borderColor:Dr.ORANGE},"&.MuiChip-outlinedError":{color:Dr.RED,borderColor:Dr.RED}},outlined:{border:`solid 1px ${Dr.GREYSCALE_0_15}`,backgroundColor:Dr.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:_r,boxShadow:"none",backgroundColor:Dr.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Dr.GREEN,borderColor:Dr.GREEN},outlinedSecondary:{color:Dr.BLUE,borderColor:Dr.BLUE},label:{fontFamily:zr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:r.createElement(Vr,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:r.createElement(Wr,{"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:_r},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:_r,fontSize:kr,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Dr.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Dr.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Dr.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Dr.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Dr.GREYSCALE_0_05}}},popupIndicator:{borderRadius:_r,border:`solid 1px ${Dr.GREYSCALE_0_15}`,color:Dr.GREYSCALE_0_60,marginRight:0,width:Or,height:Or},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Dr.GREYSCALE_0_15}`},clearIndicator:{borderRadius:_r,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Dr.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:kr}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Pr,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Dr.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Dr.GREYSCALE_25,fontSize:Pr,fontFamily:zr.FONT_FAMILY,fontWeight:Fr,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Dr.TEXT_PRIMARY},"&.Mui-error":{color:Dr.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Dr.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Nr,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Dr.TEXT_SECONDARY,content:"'(required)'",fontWeight:Nr,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:kr,lineHeight:"16px",backgroundColor:Dr.WHITE,borderRadius:_r,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Dr.GREYSCALE_0_05}`,borderColor:Dr.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Dr.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Dr.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Dr.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Dr.RED}`,boxShadow:`0px 0px 0px 1px ${Dr.RED}, inset 0 2px 0 0 ${Dr.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Dr.GREYSCALE_0_10}`,borderColor:Dr.GREYSCALE_0_10,backgroundColor:Dr.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Dr.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Dr.GREYSCALE_0_15,borderRadius:_r,boxShadow:`inset 0 2px 0 0 ${Dr.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>r.createElement(Wr,{...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:Dr.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Dr.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Dr.GREYSCALE_0_03},"&:active":{backgroundColor:Dr.GREYSCALE_0_10},"&:focus":{backgroundColor:Dr.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Dr.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Dr.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Dr.GREYSCALE_0_30,"&:hover":{backgroundColor:Dr.GREYSCALE_0_0,borderColor:Dr.GREYSCALE_0_15},"& ~svg":{color:Dr.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Dr.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:_r}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Dr.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Dr.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Dr.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:kr,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Pr,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Pr,fontWeight:Fr,color:Dr.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Fr}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Dr.GREYSCALE_0_15}, 0px 0px 0px 1px ${Dr.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:r.createElement(Xr,null),checkedIcon:r.createElement(Jr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Dr.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Dr.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Dr.GREEN_PALE,boxShadow:`0 0 0 3px ${Xs(Dr.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Dr.BLUE_PALE,boxShadow:`0 0 0 3px ${Xs(Dr.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Dr.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Dr.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:r.createElement(Bm,null),checkedIcon:r.createElement(Ur,null),indeterminateIcon:r.createElement(Kr,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:_r,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Dr.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Dr.GREYSCALE_0_55,color:Dr.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:Dr.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Dr.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Dr.GREYSCALE_0_55,"&:hover":{color:Dr.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:Dr.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Dr.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:kr,color:Dr.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Fr},secondary:{fontSize:Pr,color:Dr.GREYSCALE_45,fontWeight:Nr,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:kr,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:kr,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Dr.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Pr,borderBottom:`solid 1px ${Dr.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:kr,color:Dr.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Dr.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Dr.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Dr.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:Dr.RED}}},"&.Mui-focusVisible":{backgroundColor:Dr.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:Dr.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:Dr.GREEN,height:"24px","&.Mui-disabled":{color:Dr.GREYSCALE_0_15}},rail:{backgroundColor:Dr.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Dr.GREYSCALE_0_05}`,borderRadius:_r,boxShadow:`inset 0px 0px 0px 1px ${Dr.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Dr.GREYSCALE_0_05}`,borderRadius:_r},thumb:{height:"16px",width:"16px",borderRadius:_r,backgroundColor:Dr.WHITE,boxShadow:`0px 1px 2px 0px ${Dr.GREYSCALE_0_15}, 0px 0px 0px 1px ${Dr.GREYSCALE_0_05}`,"&:hover":{borderRadius:_r,boxShadow:`0 2px 4px 0 ${Dr.GREYSCALE_0_30}, 0 0 0 1px ${Dr.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Dr.GREYSCALE_0_15}, 0 0 0 1px ${Dr.GREYSCALE_0_06}, 0 0 0 2px ${Dr.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Dr.GREYSCALE_0_15}, 0 0 0 1px ${Dr.GREYSCALE_0_06}, 0 0 0 2px ${Dr.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Dr.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Dr.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Dr.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Dr.GREYSCALE_0_15},markLabel:{color:Dr.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Dr.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Dr.WHITE,color:Dr.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:Dr.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:Dr.GREEN_PALE,boxShadow:`0 0 0 3px ${Xs(Dr.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Dr.BLUE_PALE,boxShadow:`0 0 0 3px ${Xs(Dr.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Dr.GREYSCALE_0_15,borderRadius:_r},thumb:{height:"16px",width:"16px",borderRadius:_r,backgroundColor:Dr.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:kr,fontWeight:Fr,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Dr.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Dr.MISC_FOCUS_BORDER}`,backgroundColor:Dr.GREYSCALE_0_03,borderRadius:_r},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Dr.GREYSCALE_25,"&.Mui-selected":{color:Dr.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:kr,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:_r,"&:hover":{backgroundColor:`${Dr.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 ${Dr.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Dr.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:_r,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Dr.GREYSCALE_0_05},"&:hover":{backgroundColor:`${Dr.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Dr.GREYSCALE_85}`,borderRight:`1px solid ${Dr.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Fr,backgroundColor:Dr.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:Dr.GREYSCALE_98,borderBottom:`1px solid ${Dr.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Dr.GREYSCALE_85}`,borderTop:`1px solid ${Dr.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Dr.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Dr.GREYSCALE_0_05,"&:hover":{backgroundColor:Dr.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Dr.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>r.createElement(Zr,{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 ${Dr.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:kr,borderRadius:_r,padding:"7px 16px",border:`1px solid ${Dr.GREYSCALE_0_15}`,backgroundColor:Dr.GREYSCALE_100_60,color:Dr.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Dr.GREYSCALE_0_10,border:`1px solid ${Dr.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Dr.GREYSCALE_0_03,border:`1px solid ${Dr.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Dr.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Dr.MISC_FOCUS_BORDER}`,border:`1px solid ${Dr.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Dr.GREYSCALE_25,backgroundColor:Dr.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Dr.GREYSCALE_0_10,border:`1px solid ${Dr.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Pr,height:24,width:24,padding:7},sizeLarge:{fontSize:Tr,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:kr,borderRadius:_r}}},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:Dr.GREYSCALE_20},tooltip:{backgroundColor:Dr.GREYSCALE_20,fontSize:Pr,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Hm={mode:"light",primary:{ultraLight:Dr.GREEN_ULTRA_LIGHT,light:Dr.GREEN_PALE,main:Dr.GREEN,dark:Dr.GREEN_DARK,extraDark:Dr.GREEN_EXTRA_DARK,contrastText:Dr.WHITE},secondary:{ultraLight:Dr.BLUE_ULTRA_LIGHT,light:Dr.BLUE_PALE,main:Dr.BLUE,dark:Dr.BLUE_DARK,extraDark:Dr.BLUE_EXTRA_DARK,contrastText:Dr.WHITE},error:{ultraLight:Dr.RED_ULTRA_LIGHT,light:Dr.RED_PALE,main:Dr.RED,dark:Dr.RED_DARK,extraDark:Dr.RED_EXTRA_DARK,contrastText:Dr.WHITE},warning:{ultraLight:Dr.ORANGE_ULTRA_LIGHT,light:Dr.ORANGE_PALE,main:Dr.ORANGE,dark:Dr.ORANGE_DARK,extraDark:Dr.ORANGE_EXTRA_DARK,contrastText:Dr.WHITE},success:{ultraLight:Dr.GREEN_ULTRA_LIGHT,light:Dr.GREEN_PALE,main:Dr.GREEN,dark:Dr.GREEN_DARK,extraDark:Dr.GREEN_EXTRA_DARK,contrastText:Dr.WHITE},info:{ultraLight:Dr.BLUE_ULTRA_LIGHT,light:Dr.BLUE_PALE,main:Dr.BLUE,dark:Dr.BLUE_DARK,extraDark:Dr.BLUE_EXTRA_DARK,contrastText:Dr.WHITE},text:{primary:Dr.TEXT_PRIMARY,secondary:Dr.TEXT_SECONDARY,disabled:Dr.GREYSCALE_0_30},action:{hover:Dr.GREYSCALE_0_03,hoverOpacity:.03,selected:Dr.GREYSCALE_0_05,selectedOpacity:.05,focus:Dr.MISC_FOCUS_BORDER},amethyst:{ultraLight:Dr.WHITE,main:Dr.PURPLE,light:Dr.PURPLE_PALE,dark:Dr.PURPLE_DARK,extraDark:Dr.GREYSCALE_0_0,contrastText:Dr.WHITE},background:{paper:Dr.WHITE,default:Dr.GREYSCALE_95},divider:Dr.GREYSCALE_0_15},Vm=e=>({components:Wm,palette:Hm,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:kr,fontWeightLight:qr,fontWeightRegular:Nr,fontWeightMedium:Fr,fontWeightBold:jr,htmlFontSize:kr,fontFamily:zr.FONT_FAMILY,button:{fontWeight:Fr,fontSize:kr,textTransform:"none"},body1:{fontSize:Tr,lineHeight:"24px"},body2:{fontSize:kr,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Or,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Tr,fontWeight:Fr,lineHeight:"16px"},h6:{fontSize:kr,fontWeight:Fr,lineHeight:"16px"},caption:{color:Dr.TEXT_SECONDARY},subtitle1:{fontSize:kr,color:Dr.TEXT_SECONDARY},subtitle2:{fontSize:Pr,color:Dr.TEXT_SECONDARY}},shape:{borderRadius:_r}}),Ym={...Mr,MISC_FOCUS_BORDER:Dr.MISC_FOCUS_BORDER},Um=Vm().palette,Km={TEXT:Um.text.primary,DISABLED:Um.text.disabled,HOVER:Um.action.hover,WHITE:Ym.GREYSCALE_100,BORDER_LIGHT:Ym.GREYSCALE_90,BORDER_MEDIUM:Ym.GREYSCALE_85,BORDER_HEAVY:Ym.GREYSCALE_50,DARK_MODE_TEXT:Ym.GREYSCALE_95,DARK_MODE_BORDER:Ym.GREYSCALE_95,DARK_MODE_DISABLED:Ym.GREYSCALE_70,DARK_MODE_BACKGROUND:Ym.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Ym.GREYSCALE_95,SELECTED:Um.primary.main};function Xm(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function Jm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&Xm(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 Zm(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 Qm(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 eh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qm(Object(r),!0).forEach((function(t){Zm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var th={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},rh="qcm-color";function nh(){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:rh,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===rh){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=eh({},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))m=parseInt(y[1],10),h=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))m=parseInt(y[1],10),h=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,m=parseInt(y[2],10),h=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))m=parseInt(y[1],16),h=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))m=parseInt(y[1]+y[1],16),h=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,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),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,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),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,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(th[x.toLowerCase()]){a=x.toLowerCase();var w=th[a];m=w.r,h=w.g,g=w.b,b="number"==typeof th[a].a?th[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,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function oh(e){var t,r,n;if(Xm(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?Jm(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 ih(e){var t,r,n=0,o="string"==typeof e?nh(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 ah(e){if(Xm(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?Jm(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function lh(e,t){return Xm(e)?"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(", "),")"):lh(nh(e),t)}function sh(e){return Xm(e)?1===e.a?ah(e):lh(e):sh(nh(e))}var uh=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ch(e){return.2126*uh(e.r)+.7152*uh(e.g)+.0722*uh(e.b)}function dh(){var e=nh.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?nh(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]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(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:nh(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=nh.apply(void 0,arguments);return e.invalid||ch(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=ah(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=lh(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=sh(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=oh(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?nh(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=ih(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=ih(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(", "),")")},getBrightenedColor:function(){return dh(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return dh(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}function ph(e,t){if(e&&t){var r=ch(e),n=ch(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var fh,mh,hh=["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"],gh=["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 bh(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?gh:hh}var vh=function(){if(mh)return fh;mh=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 fh=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},fh}();function yh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function xh(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Sh(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(vh);var Eh=1/.7,Ch="\\s*([+-]?\\d+)\\s*",wh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Lh=/^#([0-9a-f]{3,8})$/,Ih=new RegExp(`^rgb\\(${Ch},${Ch},${Ch}\\)$`),Ah=new RegExp(`^rgb\\(${Rh},${Rh},${Rh}\\)$`),Mh=new RegExp(`^rgba\\(${Ch},${Ch},${Ch},${wh}\\)$`),Dh=new RegExp(`^rgba\\(${Rh},${Rh},${Rh},${wh}\\)$`),Ph=new RegExp(`^hsl\\(${wh},${Rh},${Rh}\\)$`),kh=new RegExp(`^hsla\\(${wh},${Rh},${Rh},${wh}\\)$`),Th={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 Oh(){return this.rgb().formatHex()}function _h(){return this.rgb().formatRgb()}function qh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Lh.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Nh(t):3===r?new Gh(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Fh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Fh(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=Ih.exec(e))?new Gh(t[1],t[2],t[3],1):(t=Ah.exec(e))?new Gh(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Mh.exec(e))?Fh(t[1],t[2],t[3],t[4]):(t=Dh.exec(e))?Fh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ph.exec(e))?Yh(t[1],t[2]/100,t[3]/100,1):(t=kh.exec(e))?Yh(t[1],t[2]/100,t[3]/100,t[4]):Th.hasOwnProperty(e)?Nh(Th[e]):"transparent"===e?new Gh(NaN,NaN,NaN,0):null}function Nh(e){return new Gh(e>>16&255,e>>8&255,255&e,1)}function Fh(e,t,r,n){return n<=0&&(e=t=r=NaN),new Gh(e,t,r,n)}function jh(e){return e instanceof Sh||(e=qh(e)),e?new Gh((e=e.rgb()).r,e.g,e.b,e.opacity):new Gh}function zh(e,t,r,n){return 1===arguments.length?jh(e):new Gh(e,t,r,null==n?1:n)}function Gh(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function $h(){return`#${Vh(this.r)}${Vh(this.g)}${Vh(this.b)}`}function Bh(){const e=Wh(this.opacity);return`${1===e?"rgb(":"rgba("}${Hh(this.r)}, ${Hh(this.g)}, ${Hh(this.b)}${1===e?")":`, ${e})`}`}function Wh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Hh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vh(e){return((e=Hh(e))<16?"0":"")+e.toString(16)}function Yh(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Kh(e,t,r,n)}function Uh(e){if(e instanceof Kh)return new Kh(e.h,e.s,e.l,e.opacity);if(e instanceof Sh||(e=qh(e)),!e)return new Kh;if(e instanceof Kh)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 Kh(a,l,s,e.opacity)}function Kh(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Xh(e){return(e=(e||0)%360)<0?e+360:e}function Jh(e){return Math.max(0,Math.min(1,e||0))}function Zh(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}yh(Sh,qh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Oh,formatHex:Oh,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Uh(this).formatHsl()},formatRgb:_h,toString:_h}),yh(Gh,zh,xh(Sh,{brighter(e){return e=null==e?Eh:Math.pow(Eh,e),new Gh(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Gh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Gh(Hh(this.r),Hh(this.g),Hh(this.b),Wh(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:$h,formatHex:$h,formatHex8:function(){return`#${Vh(this.r)}${Vh(this.g)}${Vh(this.b)}${Vh(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Bh,toString:Bh})),yh(Kh,(function(e,t,r,n){return 1===arguments.length?Uh(e):new Kh(e,t,r,null==n?1:n)}),xh(Sh,{brighter(e){return e=null==e?Eh:Math.pow(Eh,e),new Kh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Kh(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 Gh(Zh(e>=240?e-240:e+120,o,n),Zh(e,o,n),Zh(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Kh(Xh(this.h),Jh(this.s),Jh(this.l),Wh(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=Wh(this.opacity);return`${1===e?"hsl(":"hsla("}${Xh(this.h)}, ${100*Jh(this.s)}%, ${100*Jh(this.l)}%${1===e?")":`, ${e})`}`}}));const Qh=Math.PI/180,eg=180/Math.PI,tg=4/29,rg=6/29,ng=3*rg*rg;function og(e){if(e instanceof ig)return new ig(e.l,e.a,e.b,e.opacity);if(e instanceof cg)return dg(e);e instanceof Gh||(e=jh(e));var t,r,n=ug(e.r),o=ug(e.g),i=ug(e.b),a=ag((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=ag((.4360747*n+.3850649*o+.1430804*i)/.96422),r=ag((.0139322*n+.0971045*o+.7141733*i)/.82521)),new ig(116*a-16,500*(t-a),200*(a-r),e.opacity)}function ig(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function ag(e){return e>.008856451679035631?Math.pow(e,1/3):e/ng+tg}function lg(e){return e>rg?e*e*e:ng*(e-tg)}function sg(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ug(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function cg(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function dg(e){if(isNaN(e.h))return new ig(e.l,0,0,e.opacity);var t=e.h*Qh;return new ig(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}yh(ig,(function(e,t,r,n){return 1===arguments.length?og(e):new ig(e,t,r,null==n?1:n)}),xh(Sh,{brighter(e){return new ig(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ig(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 Gh(sg(3.1338561*(t=.96422*lg(t))-1.6168667*(e=1*lg(e))-.4906146*(r=.82521*lg(r))),sg(-.9787684*t+1.9161415*e+.033454*r),sg(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),yh(cg,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof cg)return new cg(e.h,e.c,e.l,e.opacity);if(e instanceof ig||(e=og(e)),0===e.a&&0===e.b)return new cg(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*eg;return new cg(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new cg(e,t,r,null==n?1:n)}),xh(Sh,{brighter(e){return new cg(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new cg(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return dg(this).rgb()}}));var pg=e=>()=>e;function fg(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):pg(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?fg: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):pg(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=zh(e)).r,(t=zh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=fg(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 mg,hg="center",gg="bottom";function bg(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 vg(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 yg(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Sg)):void 0===t&&(t=xg);for(var r,n,o,i,a,l=new wg(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 wg(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Cg)}function xg(e){return e.children}function Sg(e){return Array.isArray(e)?e[1]:null}function Eg(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Cg(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function wg(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:hg,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:hg,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:hg,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:hg},{key:"DataRangeIncludingZero",alignment:gg},{key:"LimitedData",alignment:gg},{key:"NegativeOrZeroValues",alignment:gg}].reduce((function(e,t){return e[t.key]=t,e}),{}),wg.prototype=yg.prototype={constructor:wg,count:function(){return this.eachAfter(vg)},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 yg(this).eachBefore(Eg)},[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)}},mg=function(e){
99
+ `),Kc.rippleVisible,rd,550,(({theme:e})=>e.transitions.easing.easeInOut),Kc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Kc.child,Kc.childLeaving,nd,550,(({theme:e})=>e.transitions.easing.easeInOut),Kc.childPulsate,od,(({theme:e})=>e.transitions.easing.easeInOut));var ld=t.forwardRef((function(e,r){const n=Vu({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=un(n,Xc),[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),m=t.useRef(null),h=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,Ms.jsx(ad,{classes:{ripple:Qu(i.ripple,Kc.ripple),rippleVisible:Qu(i.rippleVisible,Kc.rippleVisible),ripplePulsate:Qu(i.ripplePulsate,Kc.ripplePulsate),child:Qu(i.child,Kc.child),childLeaving:Qu(i.childLeaving,Kc.childLeaving),childPulsate:Qu(i.childPulsate,Kc.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:h.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===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.current=setTimeout((()=>{m.current&&(m.current(),m.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)&&m.current)return m.current(),m.current=null,void(f.current=setTimeout((()=>{y(e,t)})));m.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]),Ms.jsx(id,sn({className:Qu(Kc.root,i.root,a),ref:h},l,{children:Ms.jsx(Nc,{component:null,exit:!0,children:s})}))}));function sd(e){return Eu("MuiButtonBase",e)}var ud=Cu("MuiButtonBase",["root","disabled","focusVisible"]);const cd=["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"],dd=Xu("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"},[`&.${ud.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pd=t.forwardRef((function(e,r){const n=Vu({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:m,onClick:h,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,k=un(n,cd),T=t.useRef(null),O=t.useRef(null),_=lu(O,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=bu(),[z,G]=t.useState(!1);u&&z&&G(!1),t.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),T.current.focus()}})),[]);const[$,B]=t.useState(!1);t.useEffect((()=>{B(!0)}),[]);const W=$&&!c&&!u;function H(e,t,r=d){return au((n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0}))}t.useEffect((()=>{z&&p&&!c&&$&&O.current.pulsate()}),[c,p,z,$]);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&&G(!1),m&&m(e)}),!1),te=au((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=t.useRef(!1),oe=au((e=>{p&&!ne.current&&z&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=au((e=>{p&&" "===e.key&&O.current&&z&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(k.href||k.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(k.href||k.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=lu(r,j,T),ue=sn({},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=el({root:["root",t&&"disabled",r&&"focusVisible"]},sd,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Ms.jsxs(dd,sn({as:ae,className:Qu(ce.root,l),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:u?-1:A,type:P},le,k,{children:[a,W?Ms.jsx(ld,sn({ref:_,center:i},M)):null]}))}));var fd=pd;function md(e){return Eu("MuiTypography",e)}Cu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const hd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],gd=Xu("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${Zs(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>sn({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}))),bd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},yd=t.forwardRef((function(e,t){const r=Vu({props:e,name:"MuiTypography"}),n=(e=>vd[e]||e)(r.color),o=ks(sn({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=bd}=o,f=un(o,hd),m=sn({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||bd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return el({root:["root",i,"inherit"!==e.align&&`align${Zs(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},md,a)})(m);return Ms.jsx(gd,sn({as:h,ref:t,ownerState:m,className:Qu(g.root,a)},f))}));var xd=yd;const Sd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ed(e){const t=[],r=[];return Array.from(e.querySelectorAll(Sd)).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 Cd(){return!0}function wd(e){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=Ed,isEnabled:l=Cd,open:s}=e,u=t.useRef(!1),c=t.useRef(null),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),m=t.useRef(!1),h=t.useRef(null),g=Fa(r.ref,h),b=t.useRef(null);t.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),t.useEffect((()=>{if(!s||!h.current)return;const e=Ta(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),t.useEffect((()=>{if(!s||!h.current)return;const e=Ta(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.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(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.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),m.current=!0};return Ms.jsxs(t.Fragment,{children:[Ms.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),m.current=!0,f.current=e.target;const t=r.props.onFocus;t&&t(e)}}),Ms.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const Rd=t.forwardRef((function(e,r){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=t.useState(null),s=Fa(t.isValidElement(n)?n.ref:null,r);if(qa((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),qa((()=>{if(a&&!i)return _a(r,a),()=>{_a(r,null)}}),[r,a,i]),i){if(t.isValidElement(n)){const e={ref:s};return t.cloneElement(n,e)}return Ms.jsx(t.Fragment,{children:n})}return Ms.jsx(t.Fragment,{children:a?j.createPortal(n,a):a})}));function Ld(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Id(e){return parseInt(Oa(e).getComputedStyle(e).paddingRight,10)||0}function Ad(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&&Ld(e,o)}))}function Md(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Dd(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Ta(e);return t.body===e?Oa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Za(Ta(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Id(n)+e}px`;const t=Ta(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Id(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Ta(n).body;else{const t=n.parentElement,r=Oa(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 Pd=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&&Ld(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);Ad(t,e.mount,e.modalRef,n,!0);const o=Md(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=Md(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Dd(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Md(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&&Ld(e.modalRef,t),Ad(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&&Ld(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function kd(e){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=Pd,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=t.useRef({}),m=t.useRef(null),h=t.useRef(null),g=Fa(h,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=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},C=Na((()=>{const e=function(e){return"function"==typeof e?e():e}(r)||Ta(m.current).body;i.add(S(),e),h.current&&E()})),w=t.useCallback((()=>i.isTopModal(S())),[i]),R=Na((e=>{m.current=e,e&&(d&&w()?E():h.current&&Ld(h.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=Hc(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=gr({},r,t);return gr({role:"presentation"},n,{onKeyDown:I(n),ref:g})},getBackdropProps:(e={})=>gr({"aria-hidden":!0},e,{onClick:A(e),open:d}),getTransitionProps:()=>({onEnter:Pa((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Pa((()=>{v(!0),s&&s(),a&&L()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}const Td=["onChange","maxRows","minRows","style","value"];function Od(e){return parseInt(e,10)||0}const _d={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function qd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Nd=t.forwardRef((function(e,r){const{onChange:n,maxRows:o,minRows:i=1,style:a,value:l}=e,s=Cr(e,Td),{current:u}=t.useRef(null!=l),c=t.useRef(null),d=Fa(r,c),p=t.useRef(null),f=t.useRef(0),[m,h]=t.useState({outerHeightStyle:0}),g=t.useCallback((()=>{const t=c.current,r=Oa(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=Od(r.paddingBottom)+Od(r.paddingTop),s=Od(r.borderBottomWidth)+Od(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();qd(e)||h((t=>b(t,e)))}),[g]);qa((()=>{const e=()=>{f.current=0,(()=>{const e=g();qd(e)||j.flushSync((()=>{h((t=>b(t,e)))}))})()};const t=ka(e),r=c.current,n=Oa(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]),qa((()=>{v()})),t.useEffect((()=>{f.current=0}),[l]);return Ms.jsxs(t.Fragment,{children:[Ms.jsx("textarea",gr({value:l,onChange:e=>{f.current=0,u||v(),n&&n(e)},ref:d,rows:i,style:gr({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},s)),Ms.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:gr({},_d,a,{paddingTop:0,paddingBottom:0})})]})}));function Fd({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 jd=t.createContext(void 0);function zd(){return t.useContext(jd)}function Gd(e){return Ms.jsx(Ds,sn({},e,{defaultTheme:Wu,themeId:ln}))}function $d(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Bd(e,t=!1){return e&&($d(e.value)&&""!==e.value||t&&$d(e.defaultValue)&&""!==e.defaultValue)}function Wd(e){return Eu("MuiInputBase",e)}var Hd=Cu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Vd=["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"],Yd=(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${Zs(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Ud=(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]},Kd=Xu("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Yd})((({theme:e,ownerState:t})=>sn({},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",[`&.${Hd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&sn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Xd=Xu("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ud})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=sn({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 sn({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] + .${Hd.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},[`&.${Hd.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"})})),Jd=Ms.jsx(Gd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Zd=t.forwardRef((function(e,r){var n;const o=Vu({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,fullWidth:h=!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:k,rows:T,slotProps:O={},slots:_={},startAdornment:q,type:N="text",value:F}=o,j=un(o,Vd),z=null!=v.value?v.value:F,{current:G}=t.useRef(null!=z),$=t.useRef(),B=t.useCallback((e=>{}),[]),W=lu($,y,v.ref,B),[H,V]=t.useState(!1),Y=zd(),U=Fd({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=>{Bd(e)?K&&K():X&&X()}),[K,X]);tu((()=>{G&&J({value:z})}),[z,J,G]);t.useEffect((()=>{J($.current)}),[]);let Z=b,Q=v;E&&"input"===Z&&(Q=sn(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:x,minRows:S},Q),Z=Nd);t.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=sn({},o,{color:U.color||"primary",disabled:U.disabled,endAdornment:m,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:m}=e;return el({root:["root",`color${Zs(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Zs(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Wd,t)})(ee),re=_.root||u.Root||Kd,ne=O.root||c.root||{},oe=_.input||u.Input||Xd;return Q=sn({},Q,null!=(n=O.input)?n:c.input),Ms.jsxs(t.Fragment,{children:[!f&&Jd,Ms.jsxs(re,sn({},ne,!Wc(re)&&{ownerState:sn({},ee,ne.ownerState)},{ref:r,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),L&&L(e)}},j,{className:Qu(te.root,ne.className,s,P&&"MuiInputBase-readOnly"),children:[q,Ms.jsx(jd.Provider,{value:null,children:Ms.jsx(oe,sn({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?$.current:{value:"x"})},name:C,placeholder:D,readOnly:P,required:U.required,rows:T,value:z,onKeyDown:A,onKeyUp:M,type:N},Q,!Wc(oe)&&{as:Z,ownerState:sn({},ee,Q.ownerState)},{ref:W,className:Qu(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(!G){const t=e.target||$.current;if(null==t)throw new Error(an(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))}}))}),m,k?k(sn({},U,{startAdornment:q})):null]}))]})}));var Qd=Zd;function ep(e){return Eu("MuiInput",e)}var tp=sn({},Hd,Cu("MuiInput",["root","underline","input"]));function rp(e){return Eu("MuiOutlinedInput",e)}var np=sn({},Hd,Cu("MuiOutlinedInput",["root","notchedOutline","input"]));function op(e){return Eu("MuiFilledInput",e)}var ip=sn({},Hd,Cu("MuiFilledInput",["root","underline","input"])),ap=function(e,r){function n(t,n){return Ms.jsx(oc,sn({"data-testid":`${r}Icon`,ref:n},t,{children:e}))}return n.muiName=oc.muiName,t.memo(t.forwardRef(n))}(Ms.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const lp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sp={entering:{opacity:1},entered:{opacity:1}},up=t.forwardRef((function(e,r){const n=Hu(),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:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=Pc}=e,y=un(e,lp),x=t.useRef(null),S=lu(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)=>{Fc(e);const r=jc({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(h),I=E((e=>{const t=jc({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(m);return Ms.jsx(v,sn({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,sn({style:sn({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},sp[e],g,l.props.style),ref:S},r))}))}));var cp=up;function dp(e){return Eu("MuiBackdrop",e)}Cu("MuiBackdrop",["root","invisible"]);const pp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],fp=Xu("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>sn({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"}))),mp=t.forwardRef((function(e,t){var r,n,o;const i=Vu({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=cp,transitionDuration:g}=i,b=un(i,pp),v=sn({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return el({root:["root",r&&"invisible"]},dp,t)})(v),x=null!=(r=f.root)?r:c.root;return Ms.jsx(h,sn({in:p,timeout:g},b,{children:Ms.jsx(fp,sn({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:Qu(y.root,l,null==x?void 0:x.className),ownerState:sn({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var hp=mp;var gp=Cu("MuiBox",["root"]);const bp=Bu(),vp=function(e={}){const{themeId:r,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Zi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(fs);return t.forwardRef((function(e,t){const l=ys(n),s=ks(e),{className:u,component:c="div"}=s,d=Cr(s,Ts);return Ms.jsx(a,gr({as:c,ref:t,className:cl(u,i?i(o):o),theme:r&&l[r]||l},d))}))}({themeId:ln,defaultTheme:bp,defaultClassName:gp.root,generateClassName:xu.generate});var yp=vp;function xp(e){return Eu("MuiButton",e)}var Sp=Cu("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 Ep=t.createContext({});var Cp=t.createContext(void 0);const wp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Rp=e=>sn({},"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}}),Lp=Xu(fd,{shouldForwardProp:e=>Yu(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Zs(r.color)}`],t[`size${Zs(r.size)}`],t[`${r.variant}Size${Zs(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 sn({},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":sn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Us(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})`:Us(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})`:Us(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":sn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Sp.focusVisible}`]:sn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Sp.disabled}`]:sn({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 ${Us(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"},[`&.${Sp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Sp.disabled}`]:{boxShadow:"none"}})),Ip=Xu("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Zs(r.size)}`]]}})((({ownerState:e})=>sn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Rp(e)))),Ap=Xu("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Zs(r.size)}`]]}})((({ownerState:e})=>sn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Rp(e)))),Mp=t.forwardRef((function(e,r){const n=t.useContext(Ep),o=t.useContext(Cp),i=Vu({props:vu(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:m,fullWidth:h=!1,size:g="medium",startIcon:b,type:v,variant:y="text"}=i,x=un(i,wp),S=sn({},i,{color:l,component:s,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:h,size:g,type:v,variant:y}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return sn({},a,el({root:["root",i,`${i}${Zs(t)}`,`size${Zs(o)}`,`${i}Size${Zs(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Zs(o)}`],endIcon:["endIcon",`iconSize${Zs(o)}`]},xp,a))})(S),C=b&&Ms.jsx(Ip,{className:E.startIcon,ownerState:S,children:b}),w=f&&Ms.jsx(Ap,{className:E.endIcon,ownerState:S,children:f}),R=o||"";return Ms.jsxs(Lp,sn({ownerState:S,className:Qu(n.className,E.root,u,R),component:s,disabled:c,focusRipple:!p,focusVisibleClassName:Qu(E.focusVisible,m),ref:r,type:v},x,{classes:E,children:[C,a,w]}))}));var Dp=Mp;function Pp(e){return Eu("MuiModal",e)}Cu("MuiModal",["root","hidden","backdrop"]);const kp=["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"],Tp=Xu("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})=>sn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Op=Xu(hp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),_p=t.forwardRef((function(e,r){var n,o,i,a,l,s;const u=Vu({name:"MuiModal",props:e}),{BackdropComponent:c=Op,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,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=un(u,kp),k=sn({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:T,getBackdropProps:O,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=kd(sn({},k,{rootRef:r})),z=sn({},k,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return el({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Pp,n)})(z),$={};if(void 0===m.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(o=null==D?void 0:D.root)?o:b.Root)?n:Tp,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=Uc({elementType:B,externalSlotProps:H,externalForwardedProps:P,getSlotProps:T,additionalProps:{ref:r,as:g},ownerState:z,className:Qu(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),U=Uc({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>O(sn({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Qu(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return L||A||j&&!F?Ms.jsx(Rd,{ref:q,container:h,disablePortal:E,children:Ms.jsxs(B,sn({},Y,{children:[!R&&c?Ms.jsx(W,sn({},U)):null,Ms.jsx(wd,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:A,children:t.cloneElement(m,$)})]}))}):null}));var qp=_p;function Np(e){return Eu("MuiDivider",e)}var Fp=Cu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const jp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],zp=Xu("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})=>sn({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)`:Us(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})=>sn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>sn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>sn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>sn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Gp=Xu("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>sn({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)`}))),$p=t.forwardRef((function(e,t){const r=Vu({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=un(r,jp),m=sn({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return el({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"]},Np,n)})(m);return Ms.jsx(zp,sn({as:a,className:Qu(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Ms.jsx(Gp,{className:h.wrapper,ownerState:m,children:o}):null}))}));$p.muiSkipListHighlight=!0;var Bp=$p;const Wp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Hp=Xu(Kd,{shouldForwardProp:e=>Yu(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Yd(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 sn({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}},[`&.${ip.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${ip.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"},[`&.${ip.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ip.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(.${ip.disabled}, .${ip.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ip.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&sn({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}))})),Vp=Xu(Xd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ud})((({theme:e,ownerState:t})=>sn({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}))),Yp=t.forwardRef((function(e,t){var r,n,o,i;const a=Vu({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=un(a,Wp),g=sn({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return sn({},t,el({root:["root",!r&&"underline"],input:["input"]},op,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Js(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:Hp,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Vp;return Ms.jsx(Qd,sn({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Yp.muiName="Input";var Up=Yp;const Kp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Xp(e){return`scale(${e}, ${e**2})`}const Jp={entering:{opacity:1,transform:Xp(1)},entered:{opacity:1,transform:"none"}},Zp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qp=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:m,timeout:h="auto",TransitionComponent:g=Pc}=e,b=un(e,Kp),v=t.useRef(),y=t.useRef(),x=Hu(),S=t.useRef(null),E=lu(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)=>{Fc(e);const{duration:r,delay:n,easing:o}=jc({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(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:Zp?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}=jc({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(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:Zp?o:.666*o,delay:Zp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Xp(.75),d&&d(e)})),M=C(p);return t.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Ms.jsx(g,sn({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:A,onExited:M,onExiting:I,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,y.current||0)),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,r)=>t.cloneElement(i,sn({style:sn({opacity:0,transform:Xp(.75),visibility:"exited"!==e||l?void 0:"hidden"},Jp[e],m,i.props.style),ref:E},r))}))}));Qp.muiSupportAuto=!0;var ef=Qp;const tf=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],rf=Xu(Kd,{shouldForwardProp:e=>Yu(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Yd(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})`),sn({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"},[`&.${tp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${tp.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(.${tp.disabled}, .${tp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${tp.disabled}:before`]:{borderBottomStyle:"dotted"}})})),nf=Xu(Xd,{name:"MuiInput",slot:"Input",overridesResolver:Ud})({}),of=t.forwardRef((function(e,t){var r,n,o,i;const a=Vu({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=un(a,tf),b=(e=>{const{classes:t,disableUnderline:r}=e;return sn({},t,el({root:["root",!r&&"underline"],input:["input"]},ep,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Js(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:rf,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:nf;return Ms.jsx(Qd,sn({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));of.muiName="Input";var af=of;function lf(e){return Eu("MuiLink",e)}var sf=Cu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const uf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var cf=({theme:e,ownerState:t})=>{const r=(e=>uf[e]||e)(t.color),n=El(e,`palette.${r}`,!1)||t.color,o=El(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Us(n,.4)};const df=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],pf=Xu(xd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Zs(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>sn({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&sn({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:cf({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"},[`&.${sf.focusVisible}`]:{outline:"auto"}}))),ff=t.forwardRef((function(e,r){const n=Vu({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=un(n,df),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=bu(),[v,y]=t.useState(!1),x=lu(r,b),S=sn({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return el({root:["root",`underline${Zs(o)}`,"button"===r&&"button",n&&"focusVisible"]},lf,t)})(S);return Ms.jsx(pf,sn({color:i,className:Qu(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(uf).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))}));var mf=ff;var hf=t.createContext({});function gf(e){return Eu("MuiList",e)}Cu("MuiList",["root","padding","dense","subheader"]);const bf=["children","className","component","dense","disablePadding","subheader"],vf=Xu("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})=>sn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var yf=t.forwardRef((function(e,r){const n=Vu({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=un(n,bf),d=t.useMemo((()=>({dense:l})),[l]),p=sn({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return el({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},gf,t)})(p);return Ms.jsx(hf.Provider,{value:d,children:Ms.jsxs(vf,sn({as:a,className:Qu(f.root,i),ref:r,ownerState:p},c,{children:[u,o]}))})}));function xf(e){return Eu("MuiListItemIcon",e)}var Sf=Cu("MuiListItemIcon",["root","alignItemsFlexStart"]);const Ef=["className"],Cf=Xu("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})=>sn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var wf=t.forwardRef((function(e,r){const n=Vu({props:e,name:"MuiListItemIcon"}),{className:o}=n,i=un(n,Ef),a=sn({},n,{alignItems:t.useContext(hf).alignItems}),l=(e=>{const{alignItems:t,classes:r}=e;return el({root:["root","flex-start"===t&&"alignItemsFlexStart"]},xf,r)})(a);return Ms.jsx(Cf,sn({className:Qu(l.root,o),ownerState:a,ref:r},i))}));var Rf=Cu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Lf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function If(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Af(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Mf(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 Df(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")&&Mf(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Pf=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=un(e,Lf),f=t.useRef(null),m=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});tu((()=>{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)}(Qs(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=lu(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 Ms.jsx(yf,sn({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Qs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Df(t,n,u,s,If);else if("ArrowUp"===r)e.preventDefault(),Df(t,n,u,s,Af);else if("Home"===r)e.preventDefault(),Df(t,null,u,s,If);else if("End"===r)e.preventDefault(),Df(t,null,u,s,Af);else if(1===r.length){const o=m.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&&Mf(n,o);o.previousKeyMatched&&(l||Df(t,n,!1,s,If,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function kf(e){return Eu("MuiPopover",e)}Cu("MuiPopover",["root","paper"]);const Tf=["onEntering"],Of=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_f=["slotProps"];function qf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Nf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Ff(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function jf(e){return"function"==typeof e?e():e}const zf=Xu(qp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gf=Xu(Bc,{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 $f=t.forwardRef((function(e,r){var n,o,i;const a=Vu({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=ef,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,L=un(a.TransitionProps,Tf),I=un(a,Of),A=null!=(n=null==x?void 0:x.paper)?n:v,M=t.useRef(),D=lu(M,A.ref),P=sn({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),k=(e=>{const{classes:t}=e;return el({root:["root"],paper:["paper"]},kf,t)})(P),T=t.useCallback((()=>{if("anchorPosition"===d)return c;const e=jf(s),t=(e&&1===e.nodeType?e:Qs(M.current).body).getBoundingClientRect();return{top:t.top+qf(t,u.vertical),left:t.left+Nf(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),O=t.useCallback((e=>({vertical:qf(e,S.vertical),horizontal:Nf(e,S.horizontal)})),[S.horizontal,S.vertical]),_=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=O(t);if("none"===d)return{top:null,left:null,transformOrigin:Ff(r)};const n=T();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=eu(jf(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:Ff(r)}}),[s,d,T,O,g]),[q,N]=t.useState(b),F=t.useCallback((()=>{const e=M.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);t.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=eu(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=m||(s?Qs(jf(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:zf,$=null!=(i=null==y?void 0:y.paper)?i:Gf,B=Uc({elementType:$,externalSlotProps:sn({},A,{style:q?A.style:sn({},A.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:Qu(k.paper,null==A?void 0:A.className)}),W=Uc({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:Qu(k.root,f)}),{slotProps:H}=W,V=un(W,_f);return Ms.jsx(G,sn({},V,!Wc(G)&&{slotProps:H,disableScrollLock:R},{children:Ms.jsx(E,sn({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:Ms.jsx($,sn({},B,{children:p}))}))}))}));function Bf(e){return Eu("MuiMenu",e)}Cu("MuiMenu",["root","paper","list"]);const Wf=["onEntering"],Hf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Vf={vertical:"top",horizontal:"right"},Yf={vertical:"top",horizontal:"left"},Uf=Xu($f,{shouldForwardProp:e=>Yu(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kf=Xu(Gf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Xf=Xu(Pf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Jf=t.forwardRef((function(e,r){var n,o;const i=Vu({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=un(i.TransitionProps,Wf),S=un(i,Hf),E=Hu(),C="rtl"===E.direction,w=sn({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),R=(e=>{const{classes:t}=e;return el({root:["root"],paper:["paper"],list:["list"]},Bf,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:Kf,D=null!=(o=y.paper)?o:f,P=Uc({elementType:v.root,externalSlotProps:y.root,ownerState:w,className:[R.root,s]}),k=Uc({elementType:M,externalSlotProps:D,ownerState:w,className:R.paper});return Ms.jsx(Uf,sn({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Vf:Yf,slots:{paper:M,root:v.root},slotProps:{root:P,paper:k},open:p,ref:r,transitionDuration:h,TransitionProps:sn({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),g&&g(e,t)}},x),ownerState:w},S,{classes:m,children:Ms.jsx(Xf,sn({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:I,autoFocus:a&&(-1===A||u),autoFocusItem:L,variant:b},c,{className:Qu(R.list,c.className),children:l}))}))}));function Zf(e){return Eu("MuiMenuItem",e)}var Qf=Cu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const em=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],tm=Xu(fd,{shouldForwardProp:e=>Yu(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})=>sn({},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"}},[`&.${Qf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Us(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Us(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Us(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})`:Us(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fp.inset}`]:{marginLeft:52},[`& .${Rf.root}`]:{marginTop:0,marginBottom:0},[`& .${Rf.inset}`]:{paddingLeft:36},[`& .${Sf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&sn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Sf.root} svg`]:{fontSize:"1.25rem"}}))));var rm=t.forwardRef((function(e,r){const n=Vu({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=un(n,em),m=t.useContext(hf),h=t.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=t.useRef(null);tu((()=>{o&&g.current&&g.current.focus()}),[o]);const b=sn({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return sn({},a,el({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Zf,a))})(n),y=lu(g,r);let x;return n.disabled||(x=void 0!==d?d:-1),Ms.jsx(hf.Provider,{value:h,children:Ms.jsx(tm,sn({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:Qu(v.focusVisible,u),className:Qu(v.root,p)},f,{ownerState:b,classes:v}))})}));function nm(e){return Eu("MuiNativeSelect",e)}var om=Cu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const im=["className","disabled","error","IconComponent","inputRef","variant"],am=({ownerState:e,theme:t})=>sn({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":sn({},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"},[`&.${om.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}}),lm=Xu("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Yu,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${om.multiple}`]:t.multiple}]}})(am),sm=({ownerState:e,theme:t})=>sn({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${om.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),um=Xu("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Zs(r.variant)}`],r.open&&t.iconOpen]}})(sm),cm=t.forwardRef((function(e,r){const{className:n,disabled:o,error:i,IconComponent:a,inputRef:l,variant:s="standard"}=e,u=un(e,im),c=sn({},e,{disabled:o,variant:s,error:i}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return el({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Zs(r)}`,i&&"iconOpen",n&&"disabled"]},nm,t)})(c);return Ms.jsxs(t.Fragment,{children:[Ms.jsx(lm,sn({ownerState:c,className:Qu(d.select,n),disabled:o,ref:l||r},u)),e.multiple?null:Ms.jsx(um,{as:a,ownerState:c,className:d.icon})]})}));var dm,pm=cm;const fm=["children","classes","className","label","notched"],mm=Xu("fieldset",{shouldForwardProp:Yu})({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%"}),hm=Xu("legend",{shouldForwardProp:Yu})((({ownerState:e,theme:t})=>sn({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&&sn({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 gm=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],bm=Xu(Kd,{shouldForwardProp:e=>Yu(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Yd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return sn({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${np.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${np.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${np.focused} .${np.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${np.error} .${np.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${np.disabled} .${np.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&sn({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),vm=Xu((function(e){const{className:t,label:r,notched:n}=e,o=un(e,fm),i=null!=r&&""!==r,a=sn({},e,{notched:n,withLabel:i});return Ms.jsx(mm,sn({"aria-hidden":!0,className:t,ownerState:a},o,{children:Ms.jsx(hm,{ownerState:a,children:i?Ms.jsx("span",{children:r}):dm||(dm=Ms.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}})),ym=Xu(Xd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ud})((({theme:e,ownerState:t})=>sn({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}))),xm=t.forwardRef((function(e,r){var n,o,i,a,l;const s=Vu({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:m,slots:h={},type:g="text"}=s,b=un(s,gm),v=(e=>{const{classes:t}=e;return sn({},t,el({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rp,t))})(s),y=zd(),x=Fd({props:s,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=sn({},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=h.root)?o:u.Root)?n:bm,C=null!=(i=null!=(a=h.input)?a:u.Input)?i:ym;return Ms.jsx(Qd,sn({slots:{root:E,input:C},renderSuffix:e=>Ms.jsx(vm,{ownerState:S,className:v.notchedOutline,label:null!=p&&""!==p&&x.required?l||(l=Ms.jsxs(t.Fragment,{children:[p," ","*"]})):p,notched:void 0!==m?m:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:r,type:g},b,{classes:sn({},v,{notchedOutline:null})}))}));xm.muiName="Input";var Sm=xm;function Em(e){return Eu("MuiSelect",e)}var Cm,wm=Cu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Rm=["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"],Lm=Xu("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${wm.select}`]:t.select},{[`&.${wm.select}`]:t[r.variant]},{[`&.${wm.error}`]:t.error},{[`&.${wm.multiple}`]:t.multiple}]}})(am,{[`&.${wm.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Im=Xu("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Zs(r.variant)}`],r.open&&t.iconOpen]}})(sm),Am=Xu("input",{shouldForwardProp:e=>Uu(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 Mm(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Dm(e){return null==e||"string"==typeof e&&!e.trim()}const Pm=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:m=!1,IconComponent:h,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:k="standard"}=e,T=un(e,Rm),[O,_]=iu({controlled:P,default:d,name:"Select"}),[q,N]=iu({controlled:L,default:c,name:"Select"}),F=t.useRef(null),j=t.useRef(null),[z,G]=t.useState(null),{current:$}=t.useRef(null!=L),[B,W]=t.useState(),H=lu(r,g),V=t.useCallback((e=>{j.current=e,e&&G(e)}),[]),Y=null==z?void 0:z.parentNode;t.useImperativeHandle(H,(()=>({focus:()=>{j.current.focus()},node:F.current,value:O})),[O]),t.useEffect((()=>{c&&q&&z&&!$&&(W(l?null:Y.clientWidth),j.current.focus())}),[z,l]),t.useEffect((()=>{a&&j.current.focus()}),[a]),t.useEffect((()=>{if(!b)return;const e=Qs(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),$||(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(O)?O.slice():[];const t=O.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),O!==r&&(_(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 T["aria-invalid"];const ee=[];let te=!1;(Bd({value:O})||f)&&(A?Z=A(O):te=!0);const re=K.map((e=>{if(!t.isValidElement(e))return null;let r;if(y){if(!Array.isArray(O))throw new Error(an(2));r=O.some((t=>Mm(t,e.props.value))),r&&te&&ee.push(e.props.children)}else r=Mm(O,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&&$&&z&&(oe=Y.clientWidth),ne=void 0!==D?D:p?null:0;const ie=M.id||(x?`mui-component-select-${x}`:void 0),ae=sn({},e,{variant:k,value:O,open:J,error:m}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return el({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Zs(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Em,t)})(ae),se=sn({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),ue=ou();return Ms.jsxs(t.Fragment,{children:[Ms.jsx(Lm,sn({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:O,name:x}}),S(e))},onFocus:w},M,{ownerState:ae,className:Qu(M.className,le.select,u),id:ie,children:Dm(Z)?Cm||(Cm=Ms.jsx("span",{className:"notranslate",children:"​"})):Z})),Ms.jsx(Am,sn({"aria-invalid":m,value:Array.isArray(O)?O.join(","):O,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:a,ownerState:ae},T)),Ms.jsx(Im,{as:h,className:le.icon,ownerState:ae}),Ms.jsx(Jf,sn({id:`menu-${x||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:sn({"aria-labelledby":b,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:sn({},v.slotProps,{paper:sn({},se,{style:sn({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var km=Pm;const Tm=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Om=["root"],_m={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Yu(e)&&"variant"!==e,slot:"Root"},qm=Xu(af,_m)(""),Nm=Xu(Sm,_m)(""),Fm=Xu(Up,_m)(""),jm=t.forwardRef((function(e,r){const n=Vu({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=ap,id:d,input:p,inputProps:f,label:m,labelId:h,MenuProps:g,multiple:b=!1,native:v=!1,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=un(n,Tm),L=v?pm:km,I=Fd({props:n,muiFormControl:zd(),states:["variant","error"]}),A=I.variant||w,M=sn({},n,{variant:A,classes:a}),D=(e=>{const{classes:t}=e;return t})(M),P=un(D,Om),k=p||{standard:Ms.jsx(qm,{ownerState:M}),outlined:Ms.jsx(Nm,{label:m,ownerState:M}),filled:Ms.jsx(Fm,{ownerState:M})}[A],T=lu(r,k.ref);return Ms.jsx(t.Fragment,{children:t.cloneElement(k,sn({inputComponent:L,inputProps:sn({children:i,error:I.error,IconComponent:c,variant:A,type:void 0,multiple:b},v?{id:d}:{autoWidth:o,defaultOpen:s,displayEmpty:u,labelId:h,MenuProps:g,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:sn({id:d},C)},f,{classes:f?Js(P,f.classes):P},p?p.props.inputProps:{})},b&&v&&"outlined"===A?{notched:!0}:{},{ref:T,className:Qu(k.props.className,l,D.root)},!p&&{variant:A},R))})}));jm.muiName="Select";var zm=jm,Gm=(e={})=>r.createElement(Hr,{...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:Ar.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const $m={MuiAccordion:{styleOverrides:{root:{backgroundColor:Ar.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Ar.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:r.createElement($r,{"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 ${Ar.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Ar.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Ar.MISC_FOCUS_BORDER}`,borderRadius:Tr,backgroundColor:Ar.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 ${Ar.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Ar.WHITE,color:Ar.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:Tr},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ar.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Ar.GREYSCALE_0_15,backgroundColor:Ar.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Ar.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ar.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Ar.GREEN_PALE},"&:active":{backgroundColor:Ar.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ar.GREEN_PALE,boxShadow:`0 0 0 3px ${Us(Ar.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Ar.BLUE_PALE},"&:active":{backgroundColor:Ar.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ar.BLUE_PALE,boxShadow:`0 0 0 3px ${Us(Ar.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:Tr,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Ar.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ar.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Ar.GREYSCALE_0_15,backgroundColor:Ar.GREYSCALE_100_60,"&:active":{backgroundColor:Ar.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Ar.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ar.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Ar.PURPLE,"&.Mui-focusVisible":{borderColor:Ar.PURPLE,boxShadow:`0 0 0 3px ${Us(Ar.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Ar.GREEN,"&.Mui-focusVisible":{borderColor:Ar.GREEN,boxShadow:`0 0 0 3px ${Us(Ar.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Ar.BLUE,"&.Mui-focusVisible":{borderColor:Ar.BLUE,boxShadow:`0 0 0 3px ${Us(Ar.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Ar.ORANGE,"&.Mui-focusVisible":{borderColor:Ar.ORANGE,boxShadow:`0 0 0 3px ${Us(Ar.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Ar.RED,"&.Mui-focusVisible":{borderColor:Ar.RED,boxShadow:`0 0 0 3px ${Us(Ar.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Ar.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Ar.PURPLE_PALE},"&:active":{backgroundColor:Ar.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Ar.PURPLE_PALE,boxShadow:`0 0 0 3px ${Us(Ar.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Ar.GREEN_PALE},"&:active":{backgroundColor:Ar.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ar.GREEN_PALE,boxShadow:`0 0 0 3px ${Us(Ar.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Ar.BLUE_PALE},"&:active":{backgroundColor:Ar.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ar.BLUE_PALE,boxShadow:`0 0 0 3px ${Us(Ar.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Ar.ORANGE_PALE},"&:active":{backgroundColor:Ar.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Ar.ORANGE_PALE,boxShadow:`0 0 0 3px ${Us(Ar.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Ar.RED_PALE},"&:active":{backgroundColor:Ar.RED_DARK},"&.Mui-focusVisible":{borderColor:Ar.RED_PALE,boxShadow:`0 0 0 3px ${Us(Ar.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:Ar.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Ar.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Tr,boxShadow:`inset 0 0 0 2px ${Ar.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:r.createElement(Wr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Mr,borderRadius:Tr,color:Ar.TEXT_PRIMARY,backgroundColor:Ar.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Ar.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Ar.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Ar.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Ar.GREYSCALE_0_05,color:Ar.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Ar.GREEN,borderColor:Ar.GREEN},"&.MuiChip-outlinedInfo":{color:Ar.BLUE,borderColor:Ar.BLUE},"&.MuiChip-outlinedWarning":{color:Ar.ORANGE,borderColor:Ar.ORANGE},"&.MuiChip-outlinedError":{color:Ar.RED,borderColor:Ar.RED}},outlined:{border:`solid 1px ${Ar.GREYSCALE_0_15}`,backgroundColor:Ar.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Tr,boxShadow:"none",backgroundColor:Ar.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Ar.GREEN,borderColor:Ar.GREEN},outlinedSecondary:{color:Ar.BLUE,borderColor:Ar.BLUE},label:{fontFamily:Fr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:r.createElement(Wr,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:r.createElement($r,{"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:Tr},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Tr,fontSize:Dr,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Ar.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Ar.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Ar.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Ar.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Ar.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Tr,border:`solid 1px ${Ar.GREYSCALE_0_15}`,color:Ar.GREYSCALE_0_60,marginRight:0,width:kr,height:kr},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Ar.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Tr,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Ar.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Dr}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Mr,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Ar.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Ar.GREYSCALE_25,fontSize:Mr,fontFamily:Fr.FONT_FAMILY,fontWeight:qr,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Ar.TEXT_PRIMARY},"&.Mui-error":{color:Ar.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Ar.TEXT_SECONDARY,content:"'(optional)'",fontWeight:_r,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Ar.TEXT_SECONDARY,content:"'(required)'",fontWeight:_r,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Dr,lineHeight:"16px",backgroundColor:Ar.WHITE,borderRadius:Tr,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ar.GREYSCALE_0_05}`,borderColor:Ar.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ar.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Ar.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Ar.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ar.RED}`,boxShadow:`0px 0px 0px 1px ${Ar.RED}, inset 0 2px 0 0 ${Ar.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ar.GREYSCALE_0_10}`,borderColor:Ar.GREYSCALE_0_10,backgroundColor:Ar.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Ar.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Ar.GREYSCALE_0_15,borderRadius:Tr,boxShadow:`inset 0 2px 0 0 ${Ar.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>r.createElement($r,{...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:Ar.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Ar.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Ar.GREYSCALE_0_03},"&:active":{backgroundColor:Ar.GREYSCALE_0_10},"&:focus":{backgroundColor:Ar.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Ar.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Ar.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Ar.GREYSCALE_0_30,"&:hover":{backgroundColor:Ar.GREYSCALE_0_0,borderColor:Ar.GREYSCALE_0_15},"& ~svg":{color:Ar.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Ar.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Tr}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Ar.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Ar.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Ar.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Dr,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Mr,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Mr,fontWeight:qr,color:Ar.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:qr}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Ar.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ar.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:r.createElement(Ur,null),checkedIcon:r.createElement(Kr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Ar.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Ar.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Ar.GREEN_PALE,boxShadow:`0 0 0 3px ${Us(Ar.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Ar.BLUE_PALE,boxShadow:`0 0 0 3px ${Us(Ar.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Ar.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Ar.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:r.createElement(Gm,null),checkedIcon:r.createElement(Vr,null),indeterminateIcon:r.createElement(Yr,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Tr,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Ar.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Ar.GREYSCALE_0_55,color:Ar.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:Ar.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Ar.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Ar.GREYSCALE_0_55,"&:hover":{color:Ar.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:Ar.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Ar.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Dr,color:Ar.TEXT_PRIMARY,lineHeight:"16px",fontWeight:qr},secondary:{fontSize:Mr,color:Ar.GREYSCALE_45,fontWeight:_r,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Dr,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Dr,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Ar.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Mr,borderBottom:`solid 1px ${Ar.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Dr,color:Ar.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Ar.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Ar.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Ar.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:Ar.RED}}},"&.Mui-focusVisible":{backgroundColor:Ar.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:Ar.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:Ar.GREEN,height:"24px","&.Mui-disabled":{color:Ar.GREYSCALE_0_15}},rail:{backgroundColor:Ar.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Ar.GREYSCALE_0_05}`,borderRadius:Tr,boxShadow:`inset 0px 0px 0px 1px ${Ar.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Ar.GREYSCALE_0_05}`,borderRadius:Tr},thumb:{height:"16px",width:"16px",borderRadius:Tr,backgroundColor:Ar.WHITE,boxShadow:`0px 1px 2px 0px ${Ar.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ar.GREYSCALE_0_05}`,"&:hover":{borderRadius:Tr,boxShadow:`0 2px 4px 0 ${Ar.GREYSCALE_0_30}, 0 0 0 1px ${Ar.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Ar.GREYSCALE_0_15}, 0 0 0 1px ${Ar.GREYSCALE_0_06}, 0 0 0 2px ${Ar.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Ar.GREYSCALE_0_15}, 0 0 0 1px ${Ar.GREYSCALE_0_06}, 0 0 0 2px ${Ar.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Ar.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Ar.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Ar.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Ar.GREYSCALE_0_15},markLabel:{color:Ar.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Ar.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Ar.WHITE,color:Ar.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:Ar.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:Ar.GREEN_PALE,boxShadow:`0 0 0 3px ${Us(Ar.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Ar.BLUE_PALE,boxShadow:`0 0 0 3px ${Us(Ar.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Ar.GREYSCALE_0_15,borderRadius:Tr},thumb:{height:"16px",width:"16px",borderRadius:Tr,backgroundColor:Ar.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:Dr,fontWeight:qr,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Ar.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Ar.MISC_FOCUS_BORDER}`,backgroundColor:Ar.GREYSCALE_0_03,borderRadius:Tr},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Ar.GREYSCALE_25,"&.Mui-selected":{color:Ar.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Dr,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Tr,"&:hover":{backgroundColor:`${Ar.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 ${Ar.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Ar.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Tr,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Ar.GREYSCALE_0_05},"&:hover":{backgroundColor:`${Ar.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Ar.GREYSCALE_85}`,borderRight:`1px solid ${Ar.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:qr,backgroundColor:Ar.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:Ar.GREYSCALE_98,borderBottom:`1px solid ${Ar.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Ar.GREYSCALE_85}`,borderTop:`1px solid ${Ar.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Ar.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Ar.GREYSCALE_0_05,"&:hover":{backgroundColor:Ar.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Ar.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>r.createElement(Xr,{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 ${Ar.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Dr,borderRadius:Tr,padding:"7px 16px",border:`1px solid ${Ar.GREYSCALE_0_15}`,backgroundColor:Ar.GREYSCALE_100_60,color:Ar.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Ar.GREYSCALE_0_10,border:`1px solid ${Ar.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Ar.GREYSCALE_0_03,border:`1px solid ${Ar.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Ar.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Ar.MISC_FOCUS_BORDER}`,border:`1px solid ${Ar.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Ar.GREYSCALE_25,backgroundColor:Ar.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Ar.GREYSCALE_0_10,border:`1px solid ${Ar.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Mr,height:24,width:24,padding:7},sizeLarge:{fontSize:Pr,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Dr,borderRadius:Tr}}},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:Ar.GREYSCALE_20},tooltip:{backgroundColor:Ar.GREYSCALE_20,fontSize:Mr,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Bm={mode:"light",primary:{ultraLight:Ar.GREEN_ULTRA_LIGHT,light:Ar.GREEN_PALE,main:Ar.GREEN,dark:Ar.GREEN_DARK,extraDark:Ar.GREEN_EXTRA_DARK,contrastText:Ar.WHITE},secondary:{ultraLight:Ar.BLUE_ULTRA_LIGHT,light:Ar.BLUE_PALE,main:Ar.BLUE,dark:Ar.BLUE_DARK,extraDark:Ar.BLUE_EXTRA_DARK,contrastText:Ar.WHITE},error:{ultraLight:Ar.RED_ULTRA_LIGHT,light:Ar.RED_PALE,main:Ar.RED,dark:Ar.RED_DARK,extraDark:Ar.RED_EXTRA_DARK,contrastText:Ar.WHITE},warning:{ultraLight:Ar.ORANGE_ULTRA_LIGHT,light:Ar.ORANGE_PALE,main:Ar.ORANGE,dark:Ar.ORANGE_DARK,extraDark:Ar.ORANGE_EXTRA_DARK,contrastText:Ar.WHITE},success:{ultraLight:Ar.GREEN_ULTRA_LIGHT,light:Ar.GREEN_PALE,main:Ar.GREEN,dark:Ar.GREEN_DARK,extraDark:Ar.GREEN_EXTRA_DARK,contrastText:Ar.WHITE},info:{ultraLight:Ar.BLUE_ULTRA_LIGHT,light:Ar.BLUE_PALE,main:Ar.BLUE,dark:Ar.BLUE_DARK,extraDark:Ar.BLUE_EXTRA_DARK,contrastText:Ar.WHITE},text:{primary:Ar.TEXT_PRIMARY,secondary:Ar.TEXT_SECONDARY,disabled:Ar.GREYSCALE_0_30},action:{hover:Ar.GREYSCALE_0_03,hoverOpacity:.03,selected:Ar.GREYSCALE_0_05,selectedOpacity:.05,focus:Ar.MISC_FOCUS_BORDER},amethyst:{ultraLight:Ar.WHITE,main:Ar.PURPLE,light:Ar.PURPLE_PALE,dark:Ar.PURPLE_DARK,extraDark:Ar.GREYSCALE_0_0,contrastText:Ar.WHITE},background:{paper:Ar.WHITE,default:Ar.GREYSCALE_95},divider:Ar.GREYSCALE_0_15},Wm=e=>({components:$m,palette:Bm,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:Dr,fontWeightLight:Or,fontWeightRegular:_r,fontWeightMedium:qr,fontWeightBold:Nr,htmlFontSize:Dr,fontFamily:Fr.FONT_FAMILY,button:{fontWeight:qr,fontSize:Dr,textTransform:"none"},body1:{fontSize:Pr,lineHeight:"24px"},body2:{fontSize:Dr,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:kr,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Pr,fontWeight:qr,lineHeight:"16px"},h6:{fontSize:Dr,fontWeight:qr,lineHeight:"16px"},caption:{color:Ar.TEXT_SECONDARY},subtitle1:{fontSize:Dr,color:Ar.TEXT_SECONDARY},subtitle2:{fontSize:Mr,color:Ar.TEXT_SECONDARY}},shape:{borderRadius:Tr}}),Hm={...Ir,MISC_FOCUS_BORDER:Ar.MISC_FOCUS_BORDER},Vm=Wm().palette,Ym={TEXT:Vm.text.primary,DISABLED:Vm.text.disabled,HOVER:Vm.action.hover,WHITE:Hm.GREYSCALE_100,BORDER_LIGHT:Hm.GREYSCALE_90,BORDER_MEDIUM:Hm.GREYSCALE_85,BORDER_HEAVY:Hm.GREYSCALE_50,DARK_MODE_TEXT:Hm.GREYSCALE_95,DARK_MODE_BORDER:Hm.GREYSCALE_95,DARK_MODE_DISABLED:Hm.GREYSCALE_70,DARK_MODE_BACKGROUND:Hm.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Hm.GREYSCALE_95,SELECTED:Vm.primary.main};function Um(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function Km(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&Um(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 Xm(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 Jm(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 Zm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jm(Object(r),!0).forEach((function(t){Xm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Qm={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},eh="qcm-color";function th(){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:eh,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===eh){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=Zm({},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))m=parseInt(y[1],10),h=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))m=parseInt(y[1],10),h=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,m=parseInt(y[2],10),h=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))m=parseInt(y[1],16),h=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))m=parseInt(y[1]+y[1],16),h=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,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),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,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),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,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(Qm[x.toLowerCase()]){a=x.toLowerCase();var w=Qm[a];m=w.r,h=w.g,g=w.b,b="number"==typeof Qm[a].a?Qm[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,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function rh(e){var t,r,n;if(Um(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?Km(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 nh(e){var t,r,n=0,o="string"==typeof e?th(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 oh(e){if(Um(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?Km(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function ih(e,t){return Um(e)?"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(", "),")"):ih(th(e),t)}function ah(e){return Um(e)?1===e.a?oh(e):ih(e):ah(th(e))}var lh=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function sh(e){return.2126*lh(e.r)+.7152*lh(e.g)+.0722*lh(e.b)}function uh(){var e=th.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?th(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]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(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:th(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=th.apply(void 0,arguments);return e.invalid||sh(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=oh(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=ih(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=ah(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=rh(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?th(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=nh(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=nh(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(", "),")")},getBrightenedColor:function(){return uh(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return uh(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}function ch(e,t){if(e&&t){var r=sh(e),n=sh(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var dh,ph,fh=["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"],mh=["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 hh(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?mh:fh}var gh=function(){if(ph)return dh;ph=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 dh=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},dh}();function bh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function vh(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function yh(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(gh);var xh=1/.7,Sh="\\s*([+-]?\\d+)\\s*",Eh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ch="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wh=/^#([0-9a-f]{3,8})$/,Rh=new RegExp(`^rgb\\(${Sh},${Sh},${Sh}\\)$`),Lh=new RegExp(`^rgb\\(${Ch},${Ch},${Ch}\\)$`),Ih=new RegExp(`^rgba\\(${Sh},${Sh},${Sh},${Eh}\\)$`),Ah=new RegExp(`^rgba\\(${Ch},${Ch},${Ch},${Eh}\\)$`),Mh=new RegExp(`^hsl\\(${Eh},${Ch},${Ch}\\)$`),Dh=new RegExp(`^hsla\\(${Eh},${Ch},${Ch},${Eh}\\)$`),Ph={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 kh(){return this.rgb().formatHex()}function Th(){return this.rgb().formatRgb()}function Oh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=wh.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?_h(t):3===r?new jh(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?qh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?qh(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=Rh.exec(e))?new jh(t[1],t[2],t[3],1):(t=Lh.exec(e))?new jh(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ih.exec(e))?qh(t[1],t[2],t[3],t[4]):(t=Ah.exec(e))?qh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Mh.exec(e))?Hh(t[1],t[2]/100,t[3]/100,1):(t=Dh.exec(e))?Hh(t[1],t[2]/100,t[3]/100,t[4]):Ph.hasOwnProperty(e)?_h(Ph[e]):"transparent"===e?new jh(NaN,NaN,NaN,0):null}function _h(e){return new jh(e>>16&255,e>>8&255,255&e,1)}function qh(e,t,r,n){return n<=0&&(e=t=r=NaN),new jh(e,t,r,n)}function Nh(e){return e instanceof yh||(e=Oh(e)),e?new jh((e=e.rgb()).r,e.g,e.b,e.opacity):new jh}function Fh(e,t,r,n){return 1===arguments.length?Nh(e):new jh(e,t,r,null==n?1:n)}function jh(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function zh(){return`#${Wh(this.r)}${Wh(this.g)}${Wh(this.b)}`}function Gh(){const e=$h(this.opacity);return`${1===e?"rgb(":"rgba("}${Bh(this.r)}, ${Bh(this.g)}, ${Bh(this.b)}${1===e?")":`, ${e})`}`}function $h(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Bh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wh(e){return((e=Bh(e))<16?"0":"")+e.toString(16)}function Hh(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Yh(e,t,r,n)}function Vh(e){if(e instanceof Yh)return new Yh(e.h,e.s,e.l,e.opacity);if(e instanceof yh||(e=Oh(e)),!e)return new Yh;if(e instanceof Yh)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 Yh(a,l,s,e.opacity)}function Yh(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Uh(e){return(e=(e||0)%360)<0?e+360:e}function Kh(e){return Math.max(0,Math.min(1,e||0))}function Xh(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}bh(yh,Oh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:kh,formatHex:kh,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Vh(this).formatHsl()},formatRgb:Th,toString:Th}),bh(jh,Fh,vh(yh,{brighter(e){return e=null==e?xh:Math.pow(xh,e),new jh(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new jh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jh(Bh(this.r),Bh(this.g),Bh(this.b),$h(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:zh,formatHex:zh,formatHex8:function(){return`#${Wh(this.r)}${Wh(this.g)}${Wh(this.b)}${Wh(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Gh,toString:Gh})),bh(Yh,(function(e,t,r,n){return 1===arguments.length?Vh(e):new Yh(e,t,r,null==n?1:n)}),vh(yh,{brighter(e){return e=null==e?xh:Math.pow(xh,e),new Yh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yh(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 jh(Xh(e>=240?e-240:e+120,o,n),Xh(e,o,n),Xh(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Yh(Uh(this.h),Kh(this.s),Kh(this.l),$h(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=$h(this.opacity);return`${1===e?"hsl(":"hsla("}${Uh(this.h)}, ${100*Kh(this.s)}%, ${100*Kh(this.l)}%${1===e?")":`, ${e})`}`}}));const Jh=Math.PI/180,Zh=180/Math.PI,Qh=4/29,eg=6/29,tg=3*eg*eg;function rg(e){if(e instanceof ng)return new ng(e.l,e.a,e.b,e.opacity);if(e instanceof sg)return ug(e);e instanceof jh||(e=Nh(e));var t,r,n=lg(e.r),o=lg(e.g),i=lg(e.b),a=og((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=og((.4360747*n+.3850649*o+.1430804*i)/.96422),r=og((.0139322*n+.0971045*o+.7141733*i)/.82521)),new ng(116*a-16,500*(t-a),200*(a-r),e.opacity)}function ng(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function og(e){return e>.008856451679035631?Math.pow(e,1/3):e/tg+Qh}function ig(e){return e>eg?e*e*e:tg*(e-Qh)}function ag(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function lg(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function sg(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ug(e){if(isNaN(e.h))return new ng(e.l,0,0,e.opacity);var t=e.h*Jh;return new ng(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}bh(ng,(function(e,t,r,n){return 1===arguments.length?rg(e):new ng(e,t,r,null==n?1:n)}),vh(yh,{brighter(e){return new ng(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ng(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 jh(ag(3.1338561*(t=.96422*ig(t))-1.6168667*(e=1*ig(e))-.4906146*(r=.82521*ig(r))),ag(-.9787684*t+1.9161415*e+.033454*r),ag(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),bh(sg,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof sg)return new sg(e.h,e.c,e.l,e.opacity);if(e instanceof ng||(e=rg(e)),0===e.a&&0===e.b)return new sg(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Zh;return new sg(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new sg(e,t,r,null==n?1:n)}),vh(yh,{brighter(e){return new sg(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new sg(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ug(this).rgb()}}));var cg=e=>()=>e;function dg(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):cg(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?dg: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):cg(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Fh(e)).r,(t=Fh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=dg(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 pg,fg="center",mg="bottom";function hg(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 gg(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 bg(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=yg)):void 0===t&&(t=vg);for(var r,n,o,i,a,l=new Eg(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 Eg(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Sg)}function vg(e){return e.children}function yg(e){return Array.isArray(e)?e[1]:null}function xg(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Sg(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Eg(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:fg,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:fg,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:fg,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:fg},{key:"DataRangeIncludingZero",alignment:mg},{key:"LimitedData",alignment:mg},{key:"NegativeOrZeroValues",alignment:mg}].reduce((function(e,t){return e[t.key]=t,e}),{}),Eg.prototype=bg.prototype={constructor:Eg,count:function(){return this.eachAfter(gg)},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 bg(this).eachBefore(xg)},[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)}},pg=function(e){
100
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\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},mg({exports:{}});const Rg=(e,t=Km.TEXT,r=Km.WHITE)=>{const n=dh(e),o=dh(t),i=dh(r);return n.isInvalid()?t:function(e,t,r){return ph(e,t)>ph(e,r)?t:r}(n,i,o).getRGB()},Lg={background:Km.SELECTED,color:Km.WHITE},Ig=({theme:e,flags:t})=>{if(!t.isEnabled("PS_22149_THEME_SELECTION_COLORS"))return Lg;const r=e.getStyle("","","dataColors.selected")||Lg.background,n=function(e,t){var r=dh("#FFFFFF"),n=dh(e),o=dh(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=ph(r,n),a=ph(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(r,Km.TEXT);return{background:r,color:n}},Ag=(e,t)=>{const r=dh(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Mg=e=>!!e&&0===dh(e).a,Dg=e=>{const t=dh(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Pg=e=>{e.stopPropagation(),e.preventDefault()},kg=(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}}}),Tg=(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},Og=({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=>Tg(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...bh(n).filter((e=>!s.includes(e))).map((e=>Tg(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),_g=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],qg=({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=>Tg(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},..._g.filter((e=>!a.includes(e))).map((e=>Tg(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),Ng=({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:Og({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:qg({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:kg(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:kg(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?Km.WHITE:Km.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),Fg=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:kg(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:kg(`${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"}))}}}}),jg=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),zg="12px",Gg="Source Sans Pro, sans-serif",$g="600",Bg=15e3,Wg=4/3;var Hg,Vg;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Hg||(Hg={})),function(e){e.Solid="solid",e.None="none"}(Vg||(Vg={}));const Yg={display:"flex",justifyContent:"center",alignItems:"center"},Ug={borderStyle:"solid"},Kg={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},Xg={lineHeight:Wg,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},Jg=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),Zg=(e,t)=>e>0?`${e}px ${Vg.Solid} ${t}`:Vg.None,Qg=(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:Zg(o,r),borderBottom:Zg(i,r),borderLeft:Vg.None,borderTop:Vg.None}},eb=(e,t,r,n,o,i)=>{const a=Qg(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=Zg(2,o)),r||(a.borderLeft=Zg(1,o))),a},tb=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=Zg(1,r)),t&&(n.borderRight=Zg(1,r)),n},rb=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:jg("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?jg("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:kg("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:Hg.DividerLight})),divider:kg("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:Hg.DividerDark})),background:kg("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:Hg.Transparent}))}}}}),nb=(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}},ob=(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:Ng({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:nb}),dimensionValueSection:Ng({section:"dimensionValues",translator:e,flags:t,getThemeValue:nb}),measureValueSection:Ng({section:"measureValues",translator:e,flags:t,getThemeValue:nb}),measureLabelSection:Fg({section:"measureLabels",getThemeValue:nb}),totalValuesSection:Fg({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:nb}),nullValuesSection:Fg({section:"nullValues",fallbackBackground:Hg.NullValueBackground,getThemeValue:nb}),gridSection:rb(t)}}]}),ib=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:rr.Auto,translation:"Common.Auto"},{value:rr.Pixels,translation:"Object.Table.Column.Pixels"},{value:rr.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:rr.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tr.PixelsDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===rr.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(tr.PixelsMin,Math.min(tr.PixelsMax,r.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tr.PercentageDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===rr.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(tr.PercentageMin,Math.min(tr.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)}}}}),ab=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[ob(e,t),ib(t)]}}}),lb="auto",sb={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:lb,translation:"Object.Table.SortingInSearch",options:[{value:lb,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function ub(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:br(e),sorting:sb,addons:qt,settings:ab(t,r)}}}function cb(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:ub(e),importProperties:Ot(e),exportProperties:_t}}const db=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function pb(e,t){return y((()=>e),t)}const fb={},mb=e=>{const t=y((()=>({current:fb})),[]);return t.current=t.current===fb?e:t.current,t},hb=()=>{const{viewState:e}=x(),t=mb(new Set),r=void 0!==e,{promise:n,resolve:o}=y((()=>db()),[]),i=pb((e=>{r&&t.current.add(e)}),[t]),a=pb(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return S((async()=>{r&&await n}),[n,r]),y((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])},gb="#grid",bb=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},vb=(e,t,r,n,o)=>{const i=bb(".qv-object .qv-inner-object",r),a=bb(".qv-panel-sheet",r),l=bb(gb,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 Dg(s);if("none"===u)return"transparent";if(void 0===u)return;const c=dh(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=Mg(p),m=Rg(f?s:p,Km.TEXT,Km.DARK_MODE_TEXT)===ah(Km.DARK_MODE_TEXT);const h=((e,t,r,n=Km.WHITE)=>e&&!Mg(e)?e:Mg(t)?r&&!Mg(r)?r:n:t)(u,p,s);return{color:p,headerColor:h,isDark:m}},yb=(e,t,r,n)=>{const o=w(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=E([]);return C((()=>{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(gb),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return y((()=>({...o,background:vb(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function xb(e,t){const r=y((()=>({isLoading:!0})),t),[n,o]=S((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const Sb=3;function Eb(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 Cb({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Sb}=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=bg(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=bg((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=Eb(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 wb,Rb=F;wb=Rb.createRoot,Rb.hydrateRoot;function Lb(e,t){const[r,n]=u(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Ib={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 Ab=({translator:e})=>(s((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Ib).forEach((t=>{e.add(Ib[t])}))}}(e)),[e]),e),Mb=document.createElement("textarea");function Db(e){Mb.value=e,document.body.appendChild(Mb),Mb.select(),Mb.setSelectionRange(0,Mb.value.length),document.execCommand("copy"),document.body.removeChild(Mb)}Mb.style.position="absolute",Mb.style.left="-9999px",Mb.setAttribute("readonly","");function Pb(){null==R||R(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${Zt}`);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((()=>Db(r))):Db(r))})(n)}})}))}var kb="$$material";const Tb=["values","unit","step"];function Ob(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Rr(e,Tb),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)=>vr({},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 vr({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 _b={borderRadius:4};function qb(e,t){return t?ia(e,t,{clone:!1}):e}const Nb={xs:0,sm:600,md:900,lg:1200,xl:1536},Fb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Nb[e]}px)`};function jb(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Fb;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Fb;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Nb).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function zb(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 Gb(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:zb(e,r)||n,t&&(o=t(o,n,e)),o}function $b(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=zb(e.theme,n)||{};return jb(e,i,(e=>{let n=Gb(a,o,e);return e===n&&"string"==typeof e&&(n=Gb(a,o,`${t}${"default"===e?"":Pa(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Bb={m:"margin",p:"padding"},Wb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Hb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Vb=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Hb[e])return[e];e=Hb[e]}const[t,r]=e.split(""),n=Bb[t],o=Wb[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Yb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ub=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Kb(e,t,r,n){var o;const i=null!=(o=zb(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 Xb(e){return Kb(e,"spacing",8)}function Jb(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 Zb(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Jb(t,r),e)),{})}(Vb(r),n);return jb(e,e[r],o)}function Qb(e,t){const r=Xb(e.theme);return Object.keys(e).map((n=>Zb(e,t,n,r))).reduce(qb,{})}function ev(e){return Qb(e,Yb)}function tv(e){return Qb(e,Ub)}function rv(...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]?qb(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function nv(e){return"number"!=typeof e?e:`${e}px solid`}function ov(e,t){return $b({prop:e,themeKey:"borders",transform:t})}ev.propTypes={},ev.filterProps=Yb,tv.propTypes={},tv.filterProps=Ub;const iv=ov("border",nv),av=ov("borderTop",nv),lv=ov("borderRight",nv),sv=ov("borderBottom",nv),uv=ov("borderLeft",nv),cv=ov("borderColor"),dv=ov("borderTopColor"),pv=ov("borderRightColor"),fv=ov("borderBottomColor"),mv=ov("borderLeftColor"),hv=ov("outline",nv),gv=ov("outlineColor"),bv=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Kb(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Jb(t,e)});return jb(e,e.borderRadius,r)}return null};bv.propTypes={},bv.filterProps=["borderRadius"],rv(iv,av,lv,sv,uv,cv,dv,pv,fv,mv,bv,hv,gv);const vv=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Kb(e.theme,"spacing",8),r=e=>({gap:Jb(t,e)});return jb(e,e.gap,r)}return null};vv.propTypes={},vv.filterProps=["gap"];const yv=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Kb(e.theme,"spacing",8),r=e=>({columnGap:Jb(t,e)});return jb(e,e.columnGap,r)}return null};yv.propTypes={},yv.filterProps=["columnGap"];const xv=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Kb(e.theme,"spacing",8),r=e=>({rowGap:Jb(t,e)});return jb(e,e.rowGap,r)}return null};xv.propTypes={},xv.filterProps=["rowGap"];function Sv(e,t){return"grey"===t?t:e}rv(vv,yv,xv,$b({prop:"gridColumn"}),$b({prop:"gridRow"}),$b({prop:"gridAutoFlow"}),$b({prop:"gridAutoColumns"}),$b({prop:"gridAutoRows"}),$b({prop:"gridTemplateColumns"}),$b({prop:"gridTemplateRows"}),$b({prop:"gridTemplateAreas"}),$b({prop:"gridArea"}));function Ev(e){return e<=1&&0!==e?100*e+"%":e}rv($b({prop:"color",themeKey:"palette",transform:Sv}),$b({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Sv}),$b({prop:"backgroundColor",themeKey:"palette",transform:Sv}));const Cv=$b({prop:"width",transform:Ev}),wv=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])||Nb[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:Ev(t)}};return jb(e,e.maxWidth,t)}return null};wv.filterProps=["maxWidth"];const Rv=$b({prop:"minWidth",transform:Ev}),Lv=$b({prop:"height",transform:Ev}),Iv=$b({prop:"maxHeight",transform:Ev}),Av=$b({prop:"minHeight",transform:Ev});$b({prop:"size",cssProperty:"width",transform:Ev}),$b({prop:"size",cssProperty:"height",transform:Ev});rv(Cv,wv,Rv,Lv,Iv,Av,$b({prop:"boxSizing"}));var Mv={border:{themeKey:"borders",transform:nv},borderTop:{themeKey:"borders",transform:nv},borderRight:{themeKey:"borders",transform:nv},borderBottom:{themeKey:"borders",transform:nv},borderLeft:{themeKey:"borders",transform:nv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:nv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bv},color:{themeKey:"palette",transform:Sv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Sv},backgroundColor:{themeKey:"palette",transform:Sv},p:{style:tv},pt:{style:tv},pr:{style:tv},pb:{style:tv},pl:{style:tv},px:{style:tv},py:{style:tv},padding:{style:tv},paddingTop:{style:tv},paddingRight:{style:tv},paddingBottom:{style:tv},paddingLeft:{style:tv},paddingX:{style:tv},paddingY:{style:tv},paddingInline:{style:tv},paddingInlineStart:{style:tv},paddingInlineEnd:{style:tv},paddingBlock:{style:tv},paddingBlockStart:{style:tv},paddingBlockEnd:{style:tv},m:{style:ev},mt:{style:ev},mr:{style:ev},mb:{style:ev},ml:{style:ev},mx:{style:ev},my:{style:ev},margin:{style:ev},marginTop:{style:ev},marginRight:{style:ev},marginBottom:{style:ev},marginLeft:{style:ev},marginX:{style:ev},marginY:{style:ev},marginInline:{style:ev},marginInlineStart:{style:ev},marginInlineEnd:{style:ev},marginBlock:{style:ev},marginBlockStart:{style:ev},marginBlockEnd:{style:ev},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:vv},rowGap:{style:xv},columnGap:{style:yv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ev},maxWidth:{style:wv},minWidth:{transform:Ev},height:{transform:Ev},maxHeight:{transform:Ev},minHeight:{transform:Ev},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Dv(){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=zb(r,l)||{};if(u)return u(o);return jb(o,t,(t=>{let r=Gb(c,s,t);return t===r&&"string"==typeof t&&(r=Gb(c,s,`${e}${"default"===t?"":Pa(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:Mv;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=qb(s,e(r,o,i,a));else{const e=jb({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=qb(s,e):s[r]=t({sx:o,theme:i})}else s=qb(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 Pv=Dv();Pv.filterProps=["sx"];var kv=Pv;function Tv(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 Ov=["breakpoints","palette","spacing","shape"];function _v(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Rr(e,Ov),l=Ob(r),s=function(e=8){if(e.mui)return e;const t=Xb({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=ia({breakpoints:l,direction:"ltr",components:{},palette:vr({mode:"light"},n),spacing:s,shape:vr({},_b,i)},a);return u.applyStyles=Tv,u=t.reduce(((e,t)=>ia(e,t)),u),u.unstable_sxConfig=vr({},Mv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return kv({sx:e,theme:this})},u}var qv=Object.freeze({__proto__:null,default:_v,private_createBreakpoints:Ob,unstable_applyStyles:Tv});function Nv(e=null){const r=t.useContext(zi);return r&&(n=r,0!==Object.keys(n).length)?r:e;var n}const Fv=_v();function jv(e=Fv){return Nv(e)}const zv=["sx"];function Gv(e){const{sx:t}=e,r=Rr(e,zv),{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:Mv;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 na(r)?vr({},n,r):n}:vr({},n,t),vr({},o,{sx:i})}var $v=Object.freeze({__proto__:null,default:kv,extendSxProp:Gv,unstable_createStyleFunctionSx:Dv,unstable_defaultSxConfig:Mv});const Bv=["className","component"];function Wv(e){if(e.type)return e;if("#"===e.charAt(0))return Wv(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(pn(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(pn(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Hv(e,t){return e=Wv(e),t=function(e,t=0,r=1){return sl(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 Vv=t.createContext(null);function Yv(){return t.useContext(Vv)}var Uv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Kv(e){const{children:r,theme:n}=e,o=Yv(),i=t.useMemo((()=>{const e=null===o?n:function(e,t){if("function"==typeof t)return t(e);return vr({},e,t)}(o,n);return null!=e&&(e[Uv]=null!==o),e}),[n,o]);return Ps.jsx(Vv.Provider,{value:i,children:r})}const Xv=["value"],Jv=t.createContext();function Zv(e){let{value:t}=e,r=Rr(e,Xv);return Ps.jsx(Jv.Provider,vr({value:null==t||t},r))}const Qv=t.createContext(void 0);function ey({value:e,children:t}){return Ps.jsx(Qv.Provider,{value:e,children:t})}function ty({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?tl(o.defaultProps,n):o.styleOverrides||o.variants?n:tl(o,n)}({props:e,name:r,theme:{components:t.useContext(Qv)}})}const ry={};function ny(e,r,n,o=!1){return t.useMemo((()=>{const t=e&&r[e]||r;if("function"==typeof n){const i=n(t),a=e?vr({},r,{[e]:i}):i;return o?()=>a:a}return vr({},r,e?{[e]:n}:n)}),[e,r,n,o])}function oy(e){const{children:t,theme:r,themeId:n}=e,o=Nv(ry),i=Yv()||ry,a=ny(n,o,r),l=ny(n,i,r,!0),s="rtl"===a.direction;return Ps.jsx(Kv,{theme:l,children:Ps.jsx(zi.Provider,{value:a,children:Ps.jsx(Zv,{value:s,children:Ps.jsx(ey,{value:null==a?void 0:a.components,children:t})})})})}var iy={},ay={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(ay);var ly=ay.exports,sy=B(fn),uy=B(ul),cy=ly;Object.defineProperty(iy,"__esModule",{value:!0});var dy=iy.alpha=wy;iy.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=yy(e),a=yy(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Sy({type:"rgb",values:l})},iy.colorChannel=void 0;var py=iy.darken=Ry;iy.decomposeColor=yy,iy.emphasize=Iy;var fy=iy.getContrastRatio=function(e,t){const r=Cy(e),n=Cy(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};iy.getLuminance=Cy,iy.hexToRgb=vy,iy.hslToRgb=Ey;var my=iy.lighten=Ly;iy.private_safeAlpha=function(e,t,r){try{return wy(e,t)}catch(t){return e}},iy.private_safeColorChannel=void 0,iy.private_safeDarken=function(e,t,r){try{return Ry(e,t)}catch(t){return e}},iy.private_safeEmphasize=function(e,t,r){try{return Iy(e,t)}catch(t){return e}},iy.private_safeLighten=function(e,t,r){try{return Ly(e,t)}catch(t){return e}},iy.recomposeColor=Sy,iy.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=yy(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 hy=cy(sy),gy=cy(uy);function by(e,t=0,r=1){return(0,gy.default)(e,t,r)}function vy(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 yy(e){if(e.type)return e;if("#"===e.charAt(0))return yy(vy(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,hy.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,hy.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const xy=e=>{const t=yy(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};iy.colorChannel=xy;function Sy(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 Ey(e){e=yy(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])),Sy({type:l,values:s})}function Cy(e){let t="hsl"===(e=yy(e)).type||"hsla"===e.type?yy(Ey(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 wy(e,t){return e=yy(e),t=by(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Sy(e)}function Ry(e,t){if(e=yy(e),t=by(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 Sy(e)}function Ly(e,t){if(e=yy(e),t=by(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 Sy(e)}function Iy(e,t=.15){return Cy(e)>.5?Ry(e,t):Ly(e,t)}iy.private_safeColorChannel=(e,t)=>{try{return xy(e)}catch(t){return e}};var Ay={black:"#000",white:"#fff"};var My={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 Dy={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 Py={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 ky={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 Ty={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 Oy={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 _y={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 qy=["mode","contrastThreshold","tonalOffset"],Ny={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:Ay.white,default:Ay.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}},Fy={text:{primary:Ay.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:Ay.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 jy(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=my(e.main,o):"dark"===t&&(e.dark=py(e.main,i)))}function zy(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Rr(e,qy),i=e.primary||function(e="light"){return"dark"===e?{main:Ty[200],light:Ty[50],dark:Ty[400]}:{main:Ty[700],light:Ty[400],dark:Ty[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Dy[200],light:Dy[50],dark:Dy[400]}:{main:Dy[500],light:Dy[300],dark:Dy[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Py[500],light:Py[300],dark:Py[700]}:{main:Py[700],light:Py[400],dark:Py[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Oy[400],light:Oy[300],dark:Oy[700]}:{main:Oy[700],light:Oy[500],dark:Oy[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:_y[400],light:_y[300],dark:_y[700]}:{main:_y[800],light:_y[500],dark:_y[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:ky[400],light:ky[300],dark:ky[700]}:{main:"#ed6c02",light:ky[500],dark:ky[900]}}(t);function d(e){return fy(e,Fy.text.primary)>=r?Fy.text.primary:Ny.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=vr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(pn(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(pn(12,t?` (${t})`:"",JSON.stringify(e.main)));return jy(e,"light",o,n),jy(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Fy,light:Ny};return ia(vr({common:vr({},Ay),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:My,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Gy=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const $y={textTransform:"uppercase"},By='"Roboto", "Helvetica", "Arial", sans-serif';function Wy(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=By,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Rr(r,Gy),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return vr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===By?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,$y),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,$y),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ia(vr({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Hy(...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 Vy=["none",Hy(0,2,1,-1,0,1,1,0,0,1,3,0),Hy(0,3,1,-2,0,2,2,0,0,1,5,0),Hy(0,3,3,-2,0,3,4,0,0,1,8,0),Hy(0,2,4,-1,0,4,5,0,0,1,10,0),Hy(0,3,5,-1,0,5,8,0,0,1,14,0),Hy(0,3,5,-1,0,6,10,0,0,1,18,0),Hy(0,4,5,-2,0,7,10,1,0,2,16,1),Hy(0,5,5,-3,0,8,10,1,0,3,14,2),Hy(0,5,6,-3,0,9,12,1,0,3,16,2),Hy(0,6,6,-3,0,10,14,1,0,4,18,3),Hy(0,6,7,-4,0,11,15,1,0,4,20,3),Hy(0,7,8,-4,0,12,17,2,0,5,22,4),Hy(0,7,8,-4,0,13,19,2,0,5,24,4),Hy(0,7,9,-4,0,14,21,2,0,5,26,4),Hy(0,8,9,-5,0,15,22,2,0,6,28,5),Hy(0,8,10,-5,0,16,24,2,0,6,30,5),Hy(0,8,11,-5,0,17,26,2,0,6,32,5),Hy(0,9,11,-5,0,18,28,2,0,7,34,6),Hy(0,9,12,-6,0,19,29,2,0,7,36,6),Hy(0,10,13,-6,0,20,31,3,0,8,38,7),Hy(0,10,13,-6,0,21,33,3,0,8,40,7),Hy(0,10,14,-6,0,22,35,3,0,8,42,7),Hy(0,11,14,-7,0,23,36,3,0,9,44,8),Hy(0,11,15,-7,0,24,38,3,0,9,46,8)];const Yy=["duration","easing","delay"],Uy={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)"},Ky={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xy(e){return`${Math.round(e)}ms`}function Jy(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Zy(e){const t=vr({},Uy,e.easing),r=vr({},Ky,e.duration);return vr({getAutoHeightDuration:Jy,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Rr(n,Yy),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Xy(o)} ${i} ${"string"==typeof a?a:Xy(a)}`)).join(",")}},e,{easing:t,duration:r})}var Qy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const ex=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function tx(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Rr(e,ex);if(e.vars)throw new Error(pn(18));const l=zy(n),s=_v(e);let u=ia(s,{mixins:(c=s.breakpoints,d=r,vr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Vy.slice(),typography:Wy(l,i),transitions:Zy(o),zIndex:vr({},Qy)});var c,d;return u=ia(u,a),u=t.reduce(((e,t)=>ia(e,t)),u),u.unstable_sxConfig=vr({},Mv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return kv({sx:e,theme:this})},u}var rx=tx();function nx(){const e=jv(rx);return e[kb]||e}var ox,ix={},ax={exports:{}};var lx,sx={exports:{}};var ux=B(ra),cx=B(la),dx=B(ka),px=B(Da),fx=B(qv),mx=B($v),hx=ly;Object.defineProperty(ix,"__esModule",{value:!0});var gx=ix.default=function(e={}){const{themeId:t,defaultTheme:r=Ax,rootShouldForwardProp:n=Ix,slotShouldForwardProp:o=Ix}=e,i=e=>(0,Ex.default)((0,bx.default)({},e,{theme:Dx((0,bx.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,yx.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Px(Mx(s))}=a,p=(0,vx.default)(a,Rx),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Ix;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,yx.default)(e,(0,bx.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,xx.isPlainObject)(e)?n=>kx(e,(0,bx.default)({},n,{theme:Dx({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=Dx((0,bx.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]=kx(r,(0,bx.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Dx((0,bx.default)({},e,{defaultTheme:r,themeId:t}));return kx({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,bx.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};ix.shouldForwardProp=Ix,ix.systemDefaultTheme=void 0;var bx=hx((ox||(ox=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}(ax)),ax.exports)),vx=hx((lx||(lx=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}(sx)),sx.exports)),yx=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Lx(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}(ux),xx=cx;hx(dx),hx(px);var Sx=hx(fx),Ex=hx(mx);const Cx=["ownerState"],wx=["variants"],Rx=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Lx(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Lx=function(e){return e?r:t})(e)}function Ix(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ax=ix.systemDefaultTheme=(0,Sx.default)(),Mx=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Dx({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Px(e){return e?(t,r)=>r[e]:null}function kx(e,t){let{ownerState:r}=t,n=(0,vx.default)(t,Cx);const o="function"==typeof e?e((0,bx.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>kx(e,(0,bx.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,vx.default)(o,wx);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,bx.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,bx.default)({ownerState:r},n,r)):e.style))})),t}return o}var Tx=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var Ox=gx({themeId:kb,defaultTheme:rx,rootShouldForwardProp:Tx});const _x=["theme"];function qx(e){let{theme:t}=e,r=Rr(e,_x);const n=t[kb];return Ps.jsx(oy,vr({},r,{themeId:n?kb:void 0,theme:n||t}))}var Nx=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const Fx={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},jx={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},zx=Zu("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":{...Fx},"&::-moz-range-track":{...Fx},"&::-ms-track":{...Fx},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...jx},"&::-moz-range-thumb":{...jx},"&::-ms-thumb":{...jx},"&: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"}}))),Gx=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:d,accessibilityRelatedArgs:p})=>{const f=Ab({translator:p.translator}),m=c({initWidth:e,columnWidth:e,initX:0}),h=n?0:1,g=o&&!d,b={left:g?m.current.columnWidth-h:"100%"},v=t=>{m.current={initWidth:e,columnWidth:e,initX:null!=t?t:m.current.initX}};Lb((()=>g&&v()),[e]);const y=e=>{const t=Math.max(e,tr.PixelsMin);m.current.columnWidth=t,a(t)},x=()=>{if(m.current.columnWidth!==m.current.initWidth){const e={type:rr.Pixels,pixels:m.current.columnWidth};l(e)}else null==u||u(!1)},S=e=>{const t=m.current.initWidth+e.clientX-m.current.initX;y(t)},E=e=>{Pg(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",E),x()},C=e=>{const t=m.current.initWidth+e.touches[0].clientX-m.current.initX;y(t)},w=e=>{Pg(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",w),x()},R=!o&&s?e=>{if(e.key===Qt.Left||e.key===Qt.Right){Pg(e);const t=5,r=e.key===Qt.Left?-t:t;y(m.current.columnWidth+r)}else e.key===Qt.Space||e.key===Qt.Enter?(Pg(e),s(e),x()):e.key===Qt.Esc&&(Pg(e),s(e),y(m.current.initWidth))}:void 0,L=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(p.columnLabel)]);return r.createElement(zx,{style:b,key:t,hoverColor:i,isLastColumn:n,className:er,"data-testid":er,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",S),document.addEventListener("mouseup",E),null==u||u(!0),v(e.clientX)},onDoubleClick:()=>l({type:rr.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:tr.PixelsMax,"aria-label":L,"aria-valuemin":tr.PixelsMin,"aria-valuemax":tr.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};function $x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Bx=(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){$x(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"})),Wx=d(Bx);function Hx(){return Hx=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},Hx.apply(null,arguments)}const Vx=Zu(Sp,{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"}))),Yx=Zu(Wx,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),Ux=Zu(Qf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Kx=Zu(Hp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),Xx=Zu(om)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),Jx=Zu(om,{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")}))),Zx=Zu("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"}))),Qx=Zu("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),eS=Zu(Ed)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),tS=Zu(Lf)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function rS(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)=>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){rS(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"})),oS=d(nS);let iS={};const aS=({autoFocus:e,id:t,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:l,isSubMenu:s,isActive:d,handleHeadCellMenuKeyDown:f})=>{const[m,h]=u(!1),g=c(null),b=p((e=>{e.stopPropagation(),h(!1)}),[h]);return r.createElement(r.Fragment,null,r.createElement(Jx,{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),iS={}),null!=l&&l.length&&(h(!0),iS[o]=h))},disabled:!a,autoFocus:e,isSubMenu:!!s,isActive:!!d,onKeyDown:f},d&&r.createElement(Zx,null),r.createElement(Qx,null,r.createElement(tS,null,r.createElement(i,null)),r.createElement(eS,{variant:"body2"},o)),null!=l&&l.length?r.createElement(oS,null):null),(null==l?void 0:l.length)&&r.createElement(uS,{isSubMenu:!0,open:m,anchorEl:g.current,onClose:b,menuGroups:(v=l,y=iS,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},lS=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var o;return[[e.groupHeading&&r.createElement(Xx,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),null===(o=e.items)||void 0===o?void 0:o.map((e=>r.createElement(aS,Hx({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),sS={appear:200,enter:200,exit:100},uS=({anchorEl:e,open:t,onClose:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?r.createElement(Ux,Hx({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:sS,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)=>[lS({menuGroup:o,isSubMenu:t,handleHeadCellMenuKeyDown:n}),i<e.length-1?r.createElement(Kx,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,cS=(e,t)=>e.some((e=>t[e]>0)),dS={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},pS=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=u(null),[a,l]=u(dS);return Lb((()=>{e||(l(dS),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:cS(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:cS(["qSelected"],e),canSelectPossible:cS(["qOption"],e),canSelectAlternative:cS(["qAlternative"],e),canSelectExcluded:cS(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function fS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const mS=(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){fS(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"})),hS=d(mS);function gS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bS=(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){gS(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"})),vS=d(bS);function yS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xS=(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){yS(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"})),SS=d(xS);function ES(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CS=(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){ES(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"})),wS=d(CS);function RS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const LS=(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){RS(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"})),IS=d(LS);function AS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const MS=(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){AS(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"})),DS=d(MS);function PS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kS=(e,t)=>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){PS(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"})),TS=d(kS);function OS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _S=(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){OS(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"})),qS=d(_S);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:"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"})),jS=d(FS);function zS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const GS=(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){zS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),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"})),$S=d(GS);function BS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const WS=(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){BS(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"})),HS=d(WS);function VS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const YS=(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){VS(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"})),US=d(YS);let KS=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const XS="/qListObjectDef",JS=({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[KS.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:hS,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:wS,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:DS,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:IS,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&p.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[KS.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:TS,enabled:!0}]}]),r[KS.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:US,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(XS))},icon:qS,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(XS))},icon:HS,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(XS))},icon:jS,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(XS))},icon:$S,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(XS))},icon:vS,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[KS.AdjusterHeaderSize]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:SS,enabled:!0}]}]),p},ZS=({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:m,env:h,model:g})=>{var b;const v=Ab({translator:i}),{headTextAlign:y,qLibraryId:x,fieldId:S}=o,E=null==f?void 0:f.app,{fieldInstance:C,selectionActionsEnabledStatus:w}=pS({open:e,headerData:o,app:E,qStateName:null==f?void 0:f.qStateName});let R=null;h.flags.isEnabled("CLIENT_IM_7107_TABLE_MENU_CYCLIC_DIM")&&g&&"setActiveField"in g&&(R=async e=>{try{const t=g;await t.setActiveField("/qHyperCubeDef",o.colIdx,e)}catch(e){console.error(e)}});const L=p((()=>{const e=x?{qLibraryId:x,type:"dimension"}:S;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})}}),[x,S,d,null==f?void 0:f.qStateName]),I=p((e=>{e.stopPropagation(),t(!1)}),[t]);return a.active?r.createElement(Vx,{rightAligned:"right"===y,shouldShowMenuIcon:u,className:"nebula-table-utils-head-menu-wrapper"},u&&r.createElement(Yx,{height:Xt,className:Jt,"data-testid":Jt,isInteractionsActive:null!==(b=a.active)&&void 0!==b&&b},r.createElement(Wx,null)),r.createElement(uS,{open:e,anchorEl:n.current,onClose:I,menuGroups:JS({headerData:o,translator:v,menuAvailabilityFlags:s,setOpen:t,...c,embedListbox:L,interactions:a,fieldInstance:C,selectionActionsEnabledStatus:w,anchorRef:n,setFocusOnColumnAdjuster:null==m?void 0:m.setFocusOnColumnAdjuster,setActiveFieldCallback:R}),handleHeadCellMenuKeyDown:l})):null},QS=e=>e.isDark?{background:e.color,borderColor:Km.DARK_MODE_BORDER,color:Km.DARK_MODE_TEXT,disabledColor:Km.DARK_MODE_DISABLED,iconColor:Km.DARK_MODE_TEXT}:{background:e.color,borderColor:Km.BORDER_MEDIUM,color:Km.TEXT,disabledColor:Km.DISABLED},eE=Zu(Sp,{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}`}))),tE=Zu($m,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),rE=Zu(kp,{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)}))),nE=Zu(Ed)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),oE=({children:e,footerContainer:t,interactions:n,theme:o,paginationNeeded:i=!0})=>{const a=s((()=>QS(o.background)),[o]);if(!n.active)return null;const l=i?r.createElement(eE,{footerStyle:a},e):null;return t?F.createPortal(e,t):l},iE=m({}),aE=()=>n(iE),lE=({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:m,interactions:h,rect:g,layout:b})=>{const v=(e=>!e.enabled||e.active)(p)?0:-1,y=s((()=>QS(m.background)),[m]),x=i?i.getBoundingClientRect().width:g.width,S=Ab({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:m,interactions:h,rect:g,layout:b,footerStyle:y,tabIndex:v,width:x})),[t,n,o,i,a,l,u,c,d,p,S,m,h,g,b,y,v,x]);return r.createElement(iE.Provider,{value:E},e)};let sE=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),uE=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 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)=>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:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),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 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){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:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),hE=d(mE);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)=>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){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),r.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),vE=d(bE),yE={FirstPage:hE,PreviousPage:pE,NextPage:oS,LastPage:vE,FirstPageRTL:vE,PreviousPageRTL:oS,NextPageRTL:pE,LastPageRTL:hE},xE=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=aE(),u=yE[`${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}},SE=()=>{const{pageInfo:e,width:t}=aE(),n=0===e.page,{IconComponent:o,styledProps:i}=xE({type:sE.FirstPage,disabledCondition:n,pageNumber:0});return t<=uE.FirstPage?null:r.createElement(rE,i,r.createElement(o,{height:Xt}))},EE=(e,t,r=!1)=>{r&&e.key===Qt.Tab&&!e.shiftKey&&(Pg(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))},CE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:o,width:i}=aE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=xE({type:sE.LastPage,disabledCondition:a,pageNumber:n-1}),u=t.enabled?e=>EE(e,t,o):null;return i<=uE.LastPage?null:r.createElement(rE,Hx({},s,{onKeyDown:u}),r.createElement(l,{height:Xt}))},wE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:o,width:i}=aE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=xE({type:sE.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>uE.FirstPage&&i>uE.LastPage)&&t.enabled?e=>EE(e,t,o):null;return r.createElement(rE,Hx({},s,{onKeyDown:u}),r.createElement(l,{height:Xt}))},RE=()=>{const{pageInfo:e}=aE(),t=0===e.page,{IconComponent:n,styledProps:o}=xE({type:sE.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return r.createElement(rE,o,r.createElement(n,{height:Xt}))},LE=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:o}=aE(),{page:i,rowsPerPage:a}=n;if(t<=uE.DisplayedRowsLabel)return null;const l=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,o)}`,o.toString()]);return r.createElement(nE,{variant:"caption"},l)},IE=({name:e,value:t,options:n,handleChange:o})=>{const{layout:i,footerStyle:a,translator:l,tabIndex:s}=aE(),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(nE,{variant:"caption",id:p},c,":"),r.createElement(tE,{footerStyle:a,size:"small",native:!0,value:t,onChange:o,inputProps:f},n))},AE=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:o,width:i,handleChangeRowsPerPage:a}=aE();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&i>uE.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(IE,{name:"RowsPerPage",value:t.rowsPerPage,options:l,handleChange:e=>{null==a||a(+e.target.value)}})},ME=1e3,DE="…",PE=({totalPages:e,page:t})=>{const n=Math.min(e,ME),o=n<e&&t>500,i=o?Math.min(500+t,e):n,a=o?Math.max(0,i-ME):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:DE,disabled:!0},DE)),i<e-1&&l.push(r.createElement("option",{key:"endMoreOptions",value:DE,disabled:!0},DE)),r.createElement(r.Fragment,null,l)},kE=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:o}=aE(),{page:i}=e;if(t<=uE.SelectPage)return null;const a=r.createElement(PE,{totalPages:n,page:i});return r.createElement(IE,{name:"SelectPage",value:i,options:a,handleChange:e=>o(+e.target.value)})};var TE=h((e=>r.createElement(lE,e,r.createElement(AE,null),r.createElement(kE,null),r.createElement(LE,null),r.createElement(SE,null),r.createElement(RE,null),r.createElement(wE,null),r.createElement(CE,null))));const OE=e=>r.createElement(oE,e,r.createElement(TE,e)),_E=m({}),qE=()=>n(_E),NE=({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 Ps.jsx(_E.Provider,{value:i,children:o})},FE=m({}),jE=()=>n(FE),zE=({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 Ps.jsx(FE.Provider,{value:c,children:u})},GE=m({}),$E=()=>n(GE),BE=({children:e,...t})=>Ps.jsx(GE.Provider,{value:t,children:e}),WE=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:r}=jE(),{layoutService:n}=$E(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:Gg;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:Ps.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:Ps.jsx("span",{style:{...Xg,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},HE="/qHyperCubeDef",VE=-1,YE="PSEUDO-DIM",UE=[];for(let e=0;e<256;++e)UE.push((e+256).toString(16).slice(1));let KE;const XE=new Uint8Array(16);function JE(){if(!KE){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");KE=crypto.getRandomValues.bind(crypto)}return KE(XE)}var ZE={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function QE(e,t,r){if(ZE.randomUUID&&!t&&!e)return ZE.randomUUID();const n=(e=e||{}).random||(e.rng||JE)();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(UE[e[t+0]]+UE[e[t+1]]+UE[e[t+2]]+UE[e[t+3]]+"-"+UE[e[t+4]]+UE[e[t+5]]+"-"+UE[e[t+6]]+UE[e[t+7]]+"-"+UE[e[t+8]]+UE[e[t+9]]+"-"+UE[e[t+10]]+UE[e[t+11]]+UE[e[t+12]]+UE[e[t+13]]+UE[e[t+14]]+UE[e[t+15]]).toLowerCase()}(n)}const eC=()=>{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:QE()},tC=e=>e===VE?YE:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:eC()})(e),rC=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===VE?r.columnWidthLocation=Vt.Measures:r.isLeftDimension?r.columnWidthLocation=Vt.Dimension:t.at(-1)===VE?r.columnWidthLocation=Vt.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=Vt.Pivot))},nC=(e,t,r)=>{var n;const o=tC(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===VE?{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:Vt.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===ir.Cyclic,groupDimensionPos:t.qGroupPos,groupDimensionLabels:t.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:Vt.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},oC=({layoutService:e,lastRow:t,lastCol:r})=>{let n=r;var o;t.length>0&&(n=(o=r).at(-1)===VE?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]=nC(e,t,o)})),n.forEach(((t,r,n)=>{const o=r===n.length-1;l[r][a-1]=nC(e,t,o)})),l},iC=(e,t,r)=>{var n,o;const i=((e,t,r)=>{let n;var o;return n=0===t.length||t.includes(VE)?oC({layoutService:e,lastRow:r,lastCol:t}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(oC({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++)rC({layoutService:e,visibleLeftDimensionInfos:r,cell:n[t],colIdx:t})}else rC({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 aC(e){return aC="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},aC(e)}function lC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sC(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 uC(e,t,r){return t&&sC(e.prototype,t),r&&sC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cC(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&&pC(e,t)}function dC(e){return dC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dC(e)}function pC(e,t){return pC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pC(e,t)}function fC(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 mC(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=dC(e);if(t){var o=dC(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return fC(this,r)}}function hC(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 gC(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 gC(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 gC(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 bC={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:vC(e),value:vC(t),useEqualSign:r}}(r,o,i))}})),t}};function vC(e){try{return decodeURIComponent(e)}catch(t){return e}}function yC(e){if(!(this instanceof yC))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 bC.fromSearchString(t.search)}}})}function xC(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}yC.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},yC.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=xC((t=e[n]).key),t.value?r+="=".concat(xC(t.value)):r+=t.useEqualSign?"=":"";return r};var SC,EC=function(){function e(t){lC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return uC(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}(),CC=function(){function e(){lC(this,e)}return uC(e,[{key:"decode",value:function(e){for(var t,r="",n=new EC(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),wC=function(e){return e>=0&&e<=1114111},RC=function(e){return e.match(/[\s]/)},LC=function(e){cC(r,e);var t=mC(r);function r(){return lC(this,r),t.apply(this,arguments)}return uC(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())&&!RC(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return wC(a)?String.fromCharCode(a):"�"}}]),r}(CC),IC=function(){function e(t,r){lC(this,e),this._key=t,this._value=r}return uC(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}(),AC=function(){function e(){lC(this,e)}return uC(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 IC.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return IC.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||IC.newInstanceIfNeeded(e,t,this._value)}}]),e}(),MC=function(){function e(){lC(this,e),this.clear()}return uC(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 AC);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),DC=function(){var e,t,r,n=[],o=[],i=new MC;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),PC=function(e){cC(r,e);var t=mC(r);function r(){return lC(this,r),t.apply(this,arguments)}return uC(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,DC.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=DC.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)&&wC(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)&&wC(n)?String.fromCharCode(n):null}}]),r}(CC),kC=function(e){cC(r,e);var t=mC(r);function r(){return lC(this,r),t.apply(this,arguments)}return uC(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),wC(o))?String.fromCharCode(o):(e.reset(),null)}}]),r}(CC),TC=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(SC=document.createElement("div"));var OC=Array.prototype.indexOf,_C=[",",".","_"," "],qC=[",",".","-","_"," "],NC={width:["%"],height:["%"]},FC={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},jC={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":FC.image,"background-color":FC.color,"border-color":FC.color,"border-image":FC.image,color:FC.color,icon:FC.image,"list-style-image":FC.image,"outline-color":FC.color},zC={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function GC(e,t,r){var n;if(t){if(OC)return OC.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 $C(e){if(null==e)return"";var t,r=document.createTextNode(e);return SC.appendChild(r),t=SC.innerHTML,SC.removeChild(r),t}function BC(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=HC(e).toLowerCase(),t=HC(t),GC(e,zC.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<zC.attr_val;i++)if(t.toLowerCase().match(zC.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=NC[e])||(n=qC),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]/)&&GC(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function WC(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=HC(e).toLowerCase(),t=HC(t),GC(e,zC.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<zC.css_val.length;n++)if(t.toLowerCase().indexOf(zC.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=jC[e])||(o=FC.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]/)&&GC(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function HC(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new PC,new kC,new LC];!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 VC=[],YC=0;YC<255;YC++)VC[YC]=YC>=48&&YC<=57||YC>=65&&YC<=90||YC>=97&&YC<=122?null:YC.toString(16);var UC=function(e){return $C(e.unsafe)},KC=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]=WC(t,r[t],!0),i+=WC(t,r[t],!0),o[t]=n[t]);return e.map?o:i},XC=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]=BC(i,t[i],!0),o+=BC(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function JC(e,t){throw new Error(t)}var ZC={canonicalize:HC,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===aC(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?UC(e):"css"===e.context?(null!=e.map&&"object"!==aC(e.map)&&JC(this,"Invalid parameter type"),KC(e)):"attr"===e.context?(null!=e.map&&"object"!==aC(e.map)&&JC(this,"Invalid parameter type"),XC(e)):void JC(this,"Invalid parameter type")},encodeForAttr:BC,encodeForAttr2:function(e){return BC("nonsens",e,!0)},encodeForCSS:WC,encodeForHref:function(e){HC(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new yC(e),r=yC.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+yC.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=_C),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),GC(o,t)>=0||null==VC[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:$C,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=HC(t).toLowerCase():JC(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=hC(null!==(t=TC.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 QC=(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]},ew=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"}}},tw=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&ZC.isSafeDataURL(t)?{type:Nt.Image,url:t,text:e,imageSize:r,resolvedImagePosition:ew(n)}:{type:Nt.Text,url:void 0,text:e},rw=(e,t,r)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:Nt.Text,text:e.qText};const{minY:n,maxY:o}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),l=i?r.qYMin:e.qMiniChart.qMin,s=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(l),Math.abs(s));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,l),maxY:Math.max(0,s)}:{minY:l,maxY:s}})(e,t.miniChart,r),i={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:n,maxY:o,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:Nt.MiniChart,text:e.qText,miniChart:i}},nw=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===Ft.Attribute||null==r?void 0:r.urlLabel},ow=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Nt.Link,url:ZC.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:Nt.Text,url:void 0,text:t,labelStructure:e}}},iw=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a})=>{var l,s,u,c,d,p;const f=jt(t);return f!==Nt.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(l=n.anything.sense)&&void 0!==l&&null!==(s=l.isUnsupportedFeature)&&void 0!==s&&s.call(l,"tableImages")?f===Nt.Link?((e,t,r,n)=>{const{urlPosition:o}=null!=t?t:{};if(o===Ft.Attribute){var i;const o=nw(null!==(i=r.url)&&void 0!==i?i:-1,e,t),a=e.qText||o||"";return ow({labelStructure:n,text:a,url:o})}if(o===Ft.Dimension){var a,l;const o=nw(null!==(a=r.urlLabel)&&void 0!==a?a:-1,e,t)||e.qText;return n&&(n.maskedValue=o),ow({text:o,labelStructure:n,url:null!==(l=null==n?void 0:n.originalValue)&&void 0!==l?l:e.qText})}return{type:Nt.Text,url:void 0,text:e.qText,labelStructure:n}})(e,t,r,a):f!==Nt.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(u=n.anything.sense)&&void 0!==u&&null!==(c=u.isUnsupportedFeature)&&void 0!==c&&c.call(u,"tableIndicators")?f!==Nt.MiniChart||!n.flags.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")||null!==(d=n.anything.sense)&&void 0!==d&&null!==(p=d.isUnsupportedFeature)&&void 0!==p&&p.call(d,"qMiniChartDef")?{type:Nt.Text,url:void 0,text:e.qText,labelStructure:a}:rw(e,t,i):((e,t,r)=>{const{indicator:n}=null!=t?t:{};return{type:Nt.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=QC(null!==(s=r.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return tw({text:t,url:i,imageSize:n,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===r.imageLabel)return tw({text:a||t||"",url:t,imageSize:n,imagePosition:o});const i=null!==(u=null===(c=QC(null!==(d=r.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return tw({text:i,url:t,imageSize:n,imagePosition:o})}return{type:Nt.Text,url:void 0,text:e.qText}})(e,t,r)},aw=(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?Dg(s):null,c=l?Dg(l):null,d=((e,t)=>e||!t?null:Rg(t))(c,u);return{color:null!=d?d:c,background:u}},lw=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:lw(e,t)),e),sw=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:Bg-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,lw(l,e))},uw=(e,t,r)=>{if(e!==VE){if(t){const t=jt(e.representation)===Nt.Link;return null!=r&&r.isLinksSupported&&t?e.representation:{type:Nt.Text}}return e.representation}},cw=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentModeFeatures:d,indentLevel:p,labelStructure:f,env:m,pageInfo:h})=>{const g=(!c||!u)&&e.qType===sr.Pseudo;let b=e.qText;if(u&&c&&f){const{originalValue:e,delimeter:t,suffix:r}=f;b=`${e} ${!r||!e&&r?"":t} ${r}`.trim()}const v={id:eC(),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:sw(e,o,i,n,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===sr.Total||!(null==t||!t.isTotal),isEmpty:e.qType===sr.Empty||-4===e.qElemNo,isNull:e.qType===sr.Null,isPseudoDimension:g,expressionColor:aw(s,e),selectionCellType:u?lr.Left:lr.Top,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:g?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:iw({cell:{...e,qText:b},representationProperties:uw(l,c,d),attrExprInfoIndex:s,env:m,labelStructure:f}),...void 0!==p&&{indentLevel:p}};return t&&(t.children[v.mainAxisPageCoord-t.mainAxisPageCoord]=v),v},dw=(e,t,r,n,o,i,a,l)=>{const{isIndentModeEnabled:s,indentModeFeatures:u}=o;if(!t.length)return e;let c=0;return function t(d,p,f,m=0,h=-1){e[m]||(e[m]={}),s&&h++;const g=o.leftDimensionInfoIndexes.indexOf(VE);f.forEach(((f,b)=>{var v,y;const x={originalValue:null!==(v=f.qText)&&void 0!==v?v:"",maskedValue:"",delimeter:"-",suffix:""};c+=0===b?0:1;const S=r.qTop-n.page*n.rowsPerPage,E=Math.max(0,S+c-f.qUp),C=r.qTop+c-f.qUp;var w,R;if(s&&(o.hasPseudoDimOnLeft&&h<=g))if(x.originalValue=null!==(w=f.qText)&&void 0!==w?w:"",x.maskedValue=null!==(R=f.qText)&&void 0!==R?R:"",f.qType===sr.Normal||f.qType===sr.Null||f.qType===sr.Total)h<g&&(x.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`);else if(f.qType===sr.Pseudo){var L,I,A,M,D,P,k,T;x.originalValue=null!==(L=null===(I=p||d)||void 0===I||null===(I=I.representation)||void 0===I||null===(I=I.labelStructure)||void 0===I?void 0:I.originalValue)&&void 0!==L?L:"",x.maskedValue=null!==(A=null===(M=p||d)||void 0===M||null===(M=M.representation)||void 0===M||null===(M=M.labelStructure)||void 0===M?void 0:M.originalValue)&&void 0!==A?A:"",x.suffix=null!==(D=f.qText)&&void 0!==D?D:"";const e=f.qSubNodes;f={...null===(P=p||d)||void 0===P?void 0:P.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},h=null!==(k=null===(T=p||d)||void 0===T?void 0:T.indentLevel)&&void 0!==k?k:0}let O=m;s&&(O=g>=1&&h>=g?h+1:h,0===h&&0===g&&0===f.qSubNodes.length&&(O=0));const _=s&&void 0===(null===(y=e[m][E])||void 0===y?void 0:y.ref.qText)||!e[m][E]?cw({node:f,parent:p,root:d,x:O,y:C,pageY:E,layoutService:o,dimensionInfo:i[O],attrExprInfoIndex:a[O],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentModeFeatures:u,indentLevel:h},env:l,pageInfo:n,labelStructure:x}):e[m][E];if(e[m][E]=_,f.qSubNodes.length){const e=s?0:m+1;t(d||_,_,f.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},pw=(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)}))}))},fw=(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},mw=({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=dw(e.grid,l,s,r,n,o,i,a);pw(u,r.rowsOnCurrentPage);const c=fw(u,n);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},hw=({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===sr.Null;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:eC(),ref:t,isNull:u}}))})),o},gw=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n.length?hw({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},bw=(e,t,r,n,o,i,a,l,s)=>{const{isIndentModeEnabled:u,indentModeFeatures:c}=n;if(!t.length)return e;let d=0;!function t(a,p,f,m=0){e[m]||(e[m]={}),f.forEach(((f,h)=>{var g;d+=0===h?0:1;const b=r.qLeft+d-f.qUp,v=null!==(g=e[m][b])&&void 0!==g?g:cw({node:f,parent:p,root:a,x:b,y:m,pageY:m,layoutService:n,dimensionInfo:o[m],attrExprInfoIndex:i[m],isLeftColumn:!1,...u&&{isIndentModeEnabled:u,indentModeFeatures:c},env:l,pageInfo:s});e[m][b]=v,f.qSubNodes.length&&t(a||v,v,f.qSubNodes,m+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},vw=({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=bw(e.grid,s,u,r,n,o,i,a,l);pw(c,r.size.x);const d=fw(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},yw=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),xw=(e,t)=>{const{env:r}=jE(),{layoutService:n}=$E(),{qPivotDataPages:o,pageInfo:i}=qE(),[a,l]=u(null),c=((e,t,r)=>s((()=>({left:e.map(yw),top:t.map(yw),measures:r.map(yw)})),[r,e,t]))(e,t,n.visibleMeasureInfo),d=s((()=>iC(n,t,e)),[n,t,e]),f=p((()=>o.slice(1).reduce(((e,t)=>gw({prevData:e,dataPage:t,pageInfo:i})),((e,t)=>{const{qData:r,qArea:n}=e;return hw({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(o[0],i))),[o,i]),m=p((()=>o.slice(1).reduce(((e,o)=>vw({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=bw([],s,l,t,r,n,o,i,a);pw(u,t.size.x);const c=fw(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]),h=p((()=>o.slice(1).reduce(((t,o)=>mw({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=dw([],l,a,r,t,n,o,i);pw(s,r.rowsOnCurrentPage);const u=fw(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((()=>m())),[x,S]=u((()=>h()));Lb((()=>{b(f())}),[f]),Lb((()=>{y(m())}),[m]),Lb((()=>{S(h())}),[h]),Lb((()=>{a&&a.forEach((o=>{b((e=>gw({prevData:e,dataPage:o,pageInfo:i}))),y((e=>vw({prevData:e,nextDataPage:o,layoutService:n,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:i}))),S((t=>mw({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}},Sw=Math.sqrt(1e4),Ew=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/tr.PixelsMin)}),Cw=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/Sw),n=Math.ceil(e.qHeight/Sw);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*Sw,qTop:e.qTop+r*Sw,qWidth:Math.min(Sw,e.qWidth-o*Sw),qHeight:Math.min(Sw,e.qHeight-r*Sw)});return t};function ww({nextPageHandler:e}){const{model:t}=jE(),{pageInfo:r}=qE(),{layoutService:n}=$E(),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,HE,e,t,!1))}),[i]),l=p((async(e,t)=>{await(null==i?void 0:i.collapseTop(HE,e,t,!1))}),[i]),u=p((async(e,t)=>{await(null==i?void 0:i.expandLeft(HE,e,t,!1))}),[i]),d=p((async(e,t)=>{await(null==i?void 0:i.expandTop(HE,e,t,!1))}),[i]),f=p((async t=>{if(null!=i&&i.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(HE,t.reduce(((e,t)=>[...e,...Cw(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),m=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 Vt.Dimension:c=[{qPath:`${HE}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case Vt.Measures:if(o)c=l.map(((e,t)=>({qPath:`${HE}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${HE}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Vt.Pivot:c=[{qPath:`${HE}/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]),h=p((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${HE}/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:m,applyIndentModeColumnWidth:h,fetchPages:f})),[a,l,u,d,m,h,f])}const Rw=(e,t,r)=>(n,o)=>{if(n===sr.Pseudo)return VE;const i=t[r+o];return e[i]},Lw=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},Iw=m({}),Aw=()=>n(Iw),Mw=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=$E(),{qPivotDataPages:n}=qE();return s((()=>{var o,i,a,l;const s=Lw(null!==(o=null===(i=n[0])||void 0===i?void 0:i.qLeft)&&void 0!==o?o:[]),u=Lw(null!==(a=null===(l=n[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(Rw(r,t,0)),visibleTopDimensionInfo:u.map(Rw(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:l,nextPageHandler:u}=xw(t,r),c=ww({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 Ps.jsx(Iw.Provider,{value:d,children:e})},Dw=18,Pw=.75,kw=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===Nt.Image},Tw=e=>void 0===e?$g:e,Ow=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,_w=e=>Ow(e,tr.PixelsDefault),qw=(e,t)=>Ow(e,tr.PercentageDefault)*t/100,Nw=(e,t,r)=>{switch(null==t?void 0:t.type){case rr.Pixels:return _w(t.pixels);case rr.Percentage:return qw(t.percentage,e);case rr.FitToContent:case rr.Auto:default:return r}},Fw=({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===YE)return e+0;const m=r(p),h=!u&&f&&d<s-1?21:0;let g=0;if(n&&o&&i){g=o("-")+i}return Math.max(e,24*l+Dw+h+m+g)}),0),jw=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*Dw;return Math.max(e,o+t(n.qFallbackTitle))}),0),zw=(e,t,r,n)=>{const o=100*e/t,i=n*Pw*(o/100),a=r*(o/100);return Math.min(a,i)},Gw=(e,t,r,n)=>n*(r/100)*(100*e/t/100),$w=(e,t)=>e.some((e=>e>=t*Pw)),Bw=({layoutService:e,headersData:t,columnWidths:r,tableWidth:n,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:s})=>{let u=[];const c=n*Pw,d=t.data[t.data.length-1][0],p=Math.min(c,r.at(-1)),f=Math.min(c,Fw({headers:d,layoutService:e,estimateWidthForDimensionValue:a})),m=Math.min(c,jw(e.visibleMeasureInfo,i));let h=0;const g=d.findIndex((e=>e.id===YE)),b=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===rr.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+Dw+16:24})({layoutService:e,measureTextForHeader:i,translator:s,headersData:t});if(e.hasPseudoDimOnLeft)if(0===g){const e=Math.max(p,f,m);u=[Math.max(b,e-p),p]}else{const t=Math.min(c,jw(e.visibleMeasureInfo,l,!0));h=Math.min(c,Fw({headers:d.slice(0,g),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const r=Math.max(p,f,h);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=rr.Pixels,y.pixels=o);return[rr.Pixels,rr.Percentage].includes(y.type)||$w(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=$w(e,r);s===rr.Auto&&d&&(o>i?o-=i:i-=o),s===rr.Pixels&&u&&(o=zw(e[0],l,u,r),i=zw(e[1],l,u,r)),s===rr.Percentage&&c&&(o=Gw(e[0],l,c,r),i=Gw(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 Ww({tableWidth:e}){const t=e*Pw,{styleService:r,layoutService:n}=$E(),{translator:o}=jE(),{gridSectionsData:{headersData:i}}=Aw(),{measureText:a}=Cb(r.header),{estimateWidth:l,measureText:s}=Cb({...r.dimensionValues,fontWeight:Tw(r.dimensionValues.fontWeight)}),{measureText:c}=Cb({...r.dimensionValues,...r.measureLabels}),d=p(((r,u)=>{const{layout:{qHyperCube:{qNoOfLeftDims:d,topHeadersColumnWidth:p}},visibleMeasureInfo:f,isFullyExpanded:m,isIndentModeEnabled:h,hasPseudoDimOnLeft:g}=n,b=(t=0)=>f.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=c(n)+Dw,a=Math.max(i,t);return Math.max(r,h?a:Nw(e,o,a))}),0),v=e=>i.data.reduce(((t,r)=>{const n=r[e];if(!n)return t;if(n.id===YE)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?20:0;return Dw+a(t)+20+n})(n);return Math.max(o,t)}),0);let y=0,x=i.data.at(-1);h&&i.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((o,a)=>{let s=Dw;if((!h||h&&1===i.size.x)&&r&&void 0!==u&&u===o.colIdx)s=h?Math.min(t,r):r;else{let t;o.columnWidthLocation===Vt.Pivot?t=h?void 0:p:o.columnWidthLocation===Vt.Dimension&&({columnWidth:t}=o);let r=0;if(o.isLeftDimension)if(o.id===YE)r=b();else{const e=v(a),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=e,a=n.getDimensionInfo(i);if(kw(a))return tr.PixelsDefault;const s=!m&&o&&t<d-1?21:0;return Dw+l(r)+s})(o,a);r=Math.max(e,t),h&&!g&&a+1===d&&o.columnWidthLocation===Vt.Dimension&&i.size.x>1&&(r=e)}else o.isLeftDimension||(r=v(a),o.columnWidthLocation===Vt.Measures&&(r=b(r)));h&&1===i.size.x&&(t=n.indentModeColumnWidth),s=h&&!g&&i.size.x>1?r:Nw(e,t,r)}return y+=s,s}));return h&&i.size.x>1?Bw({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,m]=u(d);Lb((()=>{m(d())}),[d]);const h=p(((e,t)=>{m(d(e,t))}),[d]);return{...f,overrideLeftGridWidth:h}}function Hw({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=$E(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=Aw(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:l}},size:u,visibleMeasureInfo:c}=o,{estimateWidth:d,measureText:f}=Cb(n.measureValues),{estimateWidth:m}=Cb({...n.dimensionValues,fontWeight:Tw(n.dimensionValues.fontWeight)}),h=e-r-1,g=i.at(-1),b=g===VE,v=l.length-a>i.length?21:0,y=s((()=>{const e=b?c:[g],t=u.x/e.length,r=[],n=[];let o=h;const i=(e,n)=>{r[e]=Math.min(tr.PixelsMax,Math.max(tr.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 rr.Pixels:i(t,_w(o));break;case rr.Percentage:i(t,qw(a,h));break;case rr.FitToContent:i(t,((e,t,r)=>r?tr.PixelsDefault:Dw+(b?Math.max(d(e),f(t)):Math.max(Math.max(...c.map((e=>d(e.qApprMaxGlyphCount)))),m(e)+v)))(l,s,kw(e)));break;case rr.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(tr.AutoMinPivot,i)}))}return r}),[b,c,g,u.x,h,d,f,m,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,h),getRightGridColumnWidth:E}}const Vw=`scrollable-container--${Ut.TopGrid}`,Yw=`scrollable-container--${Ut.LeftGrid}`,Uw=`scrollable-container--${Ut.DataGrid}`,Kw=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},Xw=(e,t)=>e>t?Kt.Forward:e<t?Kt.Backward:Kt.None,Jw=()=>{const{layoutService:e}=$E(),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:m}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=u(0),[i,a]=u(0);return g((()=>{(e.current||r.current)&&o(Math.max(Kw(e.current).width,Kw(r.current).width))})),g((()=>{(t.current||r.current)&&a(Math.max(Kw(t.current).height,Kw(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}=qE(),{downloadService:s,viewService:u,layoutService:c}=$E(),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:h,scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v}}=(()=>{const e=c(Kt.None),t=c(Kt.None),r=c({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:p((n=>{if(n instanceof WheelEvent&&(e.current=Xw(n.deltaY,0),t.current=Xw(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=Xw(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=Xw(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=$E();return p((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===Yw&&(e.leftGridScrollLeft=n.scrollLeft),o===Uw&&(e.scrollLeft=n.scrollLeft),o===Vw&&(e.topGridScrollTop=n.scrollTop),o!==Yw&&o!==Uw||(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:h,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:m}}},Zw=()=>{const{layoutService:e}=$E(),{rect:t,pageInfo:r}=qE();return s((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},Qw=({children:e,style:t})=>Ps.jsx("div",{"data-testid":"fullSize",style:t,children:e}),eR=({children:e,style:t})=>Ps.jsx("div",{"data-section-id":"GRID",style:{display:"grid",...t},children:e}),tR=e=>e&&`scrollable-container--${e}`,rR=({children:e,style:t,origin:r},n)=>{const{interactions:o}=jE(),i=o.active?t:{overflow:"hidden"};return Ps.jsx("div",{"data-testid":"scrollable","data-key":tR(r),style:i,ref:n,children:e})};var nR=r.forwardRef(rR);const oR=({children:e,style:t})=>Ps.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,left:0,...t},children:e});var iR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function aR(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||iR(n)&&iR(o)))return!1;var n,o;return!0}function lR(e,t){var r;void 0===t&&(t=aR);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 sR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function uR(e){cancelAnimationFrame(e.id)}function cR(e,t){var r=sR();var n={id:requestAnimationFrame((function o(){sR()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var dR=-1;function pR(e){if(void 0===e&&(e=!1),-1===dR||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),dR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return dR}var fR=null;function mR(e){if(void 0===e&&(e=!1),null===fR||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?fR="positive-descending":(t.scrollLeft=1,fR=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),fR}return fR}var hR=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function gR(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,m=e.getRowStopIndexForStartIndex,h=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=h(n.props,Ar(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Ar(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=lR((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=lR((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 m=r(n.props,t,n._instanceProps),h="rtl"===s;c[f]=o={position:"absolute",left:h?void 0:m,right:h?m: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=lR((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(mR()){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&&uR(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=cR(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Ir(t,e),t.getDerivedStateFromProps=function(e,t){return bR(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,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=pR();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,h,this._instanceProps,x):h,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(mR()){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&&uR(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,m=void 0===f?hR:f,h=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:m({columnIndex:D,data:p,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,D)}));var P=l(this.props,this._instanceProps),k=s(this.props,this._instanceProps);return o(h||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:vr({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:k}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,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),m=i(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=m(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var bR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},vR=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},yR=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},xR=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]},SR=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?ER(e,t,r,i,0,n):CR(e,t,r,Math.max(0,i),n)},ER=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=xR(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},CR=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&xR(e,t,n,r).offset<o;)n+=a,a*=2;return ER(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},wR=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=xR(e,t,r,i),u="column"===e?yR(t,i):vR(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}},RR=gR({getColumnOffset:function(e,t,r){return xR("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return SR("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=xR("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=xR("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:vR,getEstimatedTotalWidth:yR,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return wR("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return wR("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return xR("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return SR("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=xR("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=xR("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}}),LR=function(e,t){return e};function IR(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,Ar(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Ar(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=lR((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=lR((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,m="rtl"===a,h=f?d:0;u[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=lR((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(mR()){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&&uR(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=cR(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Ir(t,e),t.getDerivedStateFromProps=function(e,t){return AR(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?pR():0:s.scrollHeight>s.clientHeight?pR():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(mR()){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&&uR(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?LR:p,m=e.layout,h=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===m,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(h||g||"div",{className:r,onScroll:E,ref:this._outerRefSetter,style:vr({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 AR=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},MR=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]},DR=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=MR(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},PR=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&MR(e,r,t).offset<n;)r+=i,i*=2;return DR(e,t,Math.min(r,o-1),Math.floor(r/2),n)},kR=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},TR=IR({getItemOffset:function(e,t,r){return MR(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:kR,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=MR(e,t,o),p=kR(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?DR(e,t,o,0,r):PR(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=MR(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=MR(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 OR(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 _R=["style"],qR=["style"];function NR(e,t){var r=e.style,n=Rr(e,_R),o=t.style,i=Rr(t,qR);return!OR(r,o)&&!OR(n,i)}const FR=10,jR=(e,t)=>e.current===Kt.Backward?t:0,zR=(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},GR=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,$R=({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(zR(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&GR(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},BR=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===Kt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return $R({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},WR=({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=jR(r,FR),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+FR,l-u),pageTop:o,qHeight:a}})(n,o,r),u=$R({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...BR({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},HR=(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},VR=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,YR=({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(HR(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&VR(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},UR=({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=jR(r,FR),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+FR,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=YR({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===Kt.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=YR({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},KR=async(e,t,r,n,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Kt.None&&(p=UR({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==Kt.None&&(f=WR({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===Kt.None&&a.current===Kt.None&&(p=YR({measureData:r,pageInfo:n,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},XR=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))}}(KR,100),JR=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}(KR,75),ZR=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),QR=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{styleService:{grid:{border:l,divider:s}}}=$E();return Ps.jsx("div",{style:{...e,...Kg,...Qg(r,n,l,o),...tb({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},eL=({children:e,verticalAlign:t,width:r,right:n})=>Ps.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}),tL=e=>{const{type:t,imageSize:r}=e;return t!==Nt.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"};function rL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nL=(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){rL(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"})),oL=d(nL);function iL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const aL=(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){iL(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"})),lL=d(aL),sL=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(er)},uL=(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)===sr.Normal&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}};const cL=m({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),dL=()=>n(cL),pL=({children:e,selections:t})=>{const r=function(e){var t,r,n;const{env:o}=jE(),{updatePageInfo:i}=qE(),a=e.isActive(),[l,u]=v(uL,{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:[HE,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=>{const n=t(e);sL(r)||(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(r)||(e=>{var t;return"A"===(null===(t=e.target)||void 0===t?void 0:t.tagName)})(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===lr.Left?n.x:n.y}}})}),[]),m=p((t=>o.flags.isEnabled("CLIENT_IM_6223_PIVOT_RANGE_SELECTION")?async()=>{l.activeSelection&&(e.isActive()||await e.begin([HE]),u({type:"mouseover",payload:{index:t}}))}:void 0),[l.activeSelection,e,o]),h=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===lr.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!h(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)))}),[h,null===(n=l.activeSelection)||void 0===n?void 0:n.clientSelectedCells,l.engineSelectedCells]);return s((()=>({isSelected:g,isActive:a,isLocked:h,createMouseDownHandler:d,createMouseOverHandler:m})),[g,a,h,d,m])}(t);return Ps.jsx(cL.Provider,{value:r,children:e})};var fL;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(fL||(fL={}));const mL={brighter:.5,darker:.3,opacity:.03},hL=(e,{cell:t,styleService:r})=>{if(e===fL.Background||e===fL.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]},gL=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=hL(fL.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?hL(fL.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Ag(i=o,mL)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},bL=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:hL(fL.Color,{cell:e,styleService:t}),vL=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=hL(fL.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?$g:o},yL=({cell:e,styleService:t})=>hL(fL.FontStyle,{cell:e,styleService:t}),xL=({cell:e,styleService:t})=>hL(fL.TextDecoration,{cell:e,styleService:t}),SL=e=>e?"pointer":"default",EL=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},CL=(e,t)=>{if(!e.isLeftColumn||e.representation.type===Nt.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},wL=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n}=$E(),{interactions:o}=jE(),{isActive:i}=dL(),{dataModel:a}=Aw();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!o.active||i||!a,s=bL({cell:e,styleService:n,isCellSelected:r}),u=i?.4:1,c=e.ref.qCanExpand?lL:oL;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,Ps.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",...CL(e,n)},onClick:l?void 0:EL({cell:e,expandOrCollapse:d})})},RL=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},LL=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},IL=({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}}},AL=(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"}},ML=e=>{if("alwaysFit"===e)return"contain"},DL=({representation:e,styleService:t,textStyle:r,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=$E(),t=c(null),{promise:r,resolve:n}=s((()=>db()),[]);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:m,resolvedImagePosition:h}=e,{overflow:g,...b}=r;return Ps.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==h?void 0:h.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...IL({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})},children:Ps.jsx("img",{src:u,alt:d,style:{width:LL(m),height:RL(m),objectFit:ML(m),objectPosition:AL(m,h),...b},onLoad:l,ref:a})})},PL=(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}},kL={display:"flex",flexDirection:"row",alignItems:"center"},TL={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},OL=(e,t,r,n)=>t?{...TL,...e.nullValues}:r?{...kL,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...kL,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},_L=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...Xg,...!r&&Jg(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?$g:s,fontStyle:u,textDecoration:c}},qL=(e,t,r,n)=>{const{textAlign:o}=t,i=n?"flex-end":"center";var a,l;return e.isNull||r.type!==Nt.Image?PL(o,i):null!==(a=null===(l=r.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:"center"},NL=({cell:e,representation:t,color:r,isNumeric:n,isTotalValueCell:o})=>{const{layoutService:i,styleService:a}=$E(),l=e.isNull?i.getNullValueText():t.text,s=_L(a,r,n,o,e.isNull);return t.type!==Nt.Image||e.isNull?Ps.jsx("span",{style:{padding:4,...s},children:l}):Ps.jsx(DL,{representation:t,styleService:a,textStyle:s,isLeftColumn:!0})},FL=(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},jL="flex-start",zL=(e,t)=>{return e.isNull?jL:t.type===Nt.Image&&"fill"!==t.imageSize?null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.vertical:jL;var r},GL=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const{env:i}=jE(),{pageInfo:a}=qE(),{styleService:l,layoutService:s}=$E(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:f},visibleDimensionsInfo:{visibleLeftDimensionInfo:m,visibleTopDimensionInfo:h}}=Aw(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=$E(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=Aw(),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}}=Aw(),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 ZR(o,e.totalDividerIndex)}),[e,r])})(),v=(()=>{const{layoutService:{isIndentModeEnabled:e}}=$E(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=Aw(),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 ZR(a,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:y}=n,x=f.grid.at(h.length-1),S=d.grid.at(m.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 Ps.jsx(QR,{style:{...r,background:E},isLastRow:w,isLastColumn:R,showLastBorder:y,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const L=s.hasPseudoDimOnLeft?FL(S,t):FL(x,e),I=s.visibleMeasureInfo[L],A=iw({cell:C.ref,representationProperties:s.isIndentModeEnabled?{type:Nt.Text}:I.representation,attrExprInfoIndex:u.measures[L],env:i}),M=!C.isNull&&g(e,t),D=C.isNull?s.getNullValueText():A.text,P=!C.isNull||!Number.isNaN(+D),k=aw(u.measures[L],C.ref),T={...OL(l,C.isNull,M,k.background),...Qg(w,R,l.grid.border,y),...tb({bottomDivider:v(t),rightDivider:b(e),borderColor:l.grid.divider}),...Kg,padding:"0px 4px",display:"flex",justifyContent:qL(C,I,A,P)};return Ps.jsx("div",{className:Zt,title:D,style:{...T,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Ps.jsx(eL,{width:tL(A),verticalAlign:zL(C,A),children:Ps.jsx(NL,{cell:C,representation:A,isNumeric:P,isTotalValueCell:M,color:k.color})})})};var $L=r.memo(GL,NR);const BL=(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()},WL=({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}`},HL={...Ug,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},VL=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:l})=>{const{pageInfo:s}=qE(),{layoutService:u,styleService:{grid:{divider:c},contentCellHeight:d}}=$E(),{dataModel:f,gridSectionsData:{measureData:m}}=Aw(),h={...HL,borderColor:c,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},b=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=qE(),{downloadService:n,viewService:o,layoutService:i}=$E(),{dataModel:a,gridSectionsData:{leftDimensionData:l,topDimensionData:s,measureData:u}}=Aw(),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 m=o.gridWidth+c+(t.current===Kt.None?0:FR),h=o.gridHeight+d+(e.current===Kt.None?0:FR);let g=XR;h*m>1500&&(g=JR),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:l});return Lb((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,f,m]),g((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,d]),0===u.size.x?null:Ps.jsx(RR,{"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:m},onItemsRendered:b,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:WL,children:$L})};var YL=h(VL);function UL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KL=(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){UL(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"})),XL=d(KL),JL=e=>{const[t,r]=u(!1);return Lb((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},ZL=()=>{const[e,t]=u(!1),{dataModel:r}=Aw(),{interactions:n}=jE(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=JL([r]);return{open:e,setOpen:t,handleOpenMenu:e=>n.active&&!sL(e)&&!o&&t(!0),setIsAdjustingWidth:i}};function QL(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===Hg.Transparent?Km.WHITE:i,l=ye(e.grid.border),s=ye(a);return s.isInvalid()||l.isInvalid()||1===l.a?e.grid.border:function(e,t,r){return ye(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 eI=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{var l;const{interactions:s,translator:c}=jE(),{isActive:d}=dL(),{dataModel:p}=Aw(),{styleService:f}=$E(),[,m]=u({});if(!(e.canBeResized&&!!s.active&&!d))return null;const h=QL(f,e);return Ps.jsx(Gx,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{m({}),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)*Pw,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 tI(e){return ty(e)}const rI=e=>e.scrollTop;function nI(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 oI(e){return al("MuiPaper",e)}ll("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 iI=["className","component","elevation","square","variant"],aI=Ox("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 vr({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&&vr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${dy("#fff",Nx(t.elevation))}, ${dy("#fff",Nx(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var lI=t.forwardRef((function(e,t){const r=tI({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Rr(r,iI),u=vr({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return rl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},oI,o)})(u);return Ps.jsx(aI,vr({as:o,ownerState:u,className:pl(c.root,n),ref:t},s))}));var sI=ll("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const uI=["center","classes","className"];let cI,dI,pI,fI,mI=e=>e;const hI=Xi(cI||(cI=mI`
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\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},pg({exports:{}});const Cg=(e,t=Ym.TEXT,r=Ym.WHITE)=>{const n=uh(e),o=uh(t),i=uh(r);return n.isInvalid()?t:function(e,t,r){return ch(e,t)>ch(e,r)?t:r}(n,i,o).getRGB()},wg={background:Ym.SELECTED,color:Ym.WHITE},Rg=({theme:e,flags:t})=>{if(!t.isEnabled("PS_22149_THEME_SELECTION_COLORS"))return wg;const r=e.getStyle("","","dataColors.selected")||wg.background,n=function(e,t){var r=uh("#FFFFFF"),n=uh(e),o=uh(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=ch(r,n),a=ch(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(r,Ym.TEXT);return{background:r,color:n}},Lg=(e,t)=>{const r=uh(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Ig=e=>!!e&&0===uh(e).a,Ag=e=>{const t=uh(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Mg=e=>{e.stopPropagation(),e.preventDefault()},Dg=(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}}}),Pg=(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},kg=({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=>Pg(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...hh(n).filter((e=>!s.includes(e))).map((e=>Pg(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Tg=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Og=({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=>Pg(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Tg.filter((e=>!a.includes(e))).map((e=>Pg(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),_g=({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:kg({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:Og({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:Dg(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Dg(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?Ym.WHITE:Ym.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),qg=({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:Dg(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Dg(`${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"}))}}}}),Ng=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),Fg="12px",jg="Source Sans Pro, sans-serif",zg="600",Gg=15e3,$g=4/3;var Bg,Wg;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Bg||(Bg={})),function(e){e.Solid="solid",e.None="none"}(Wg||(Wg={}));const Hg={display:"flex",justifyContent:"center",alignItems:"center"},Vg={borderStyle:"solid"},Yg={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},Ug={lineHeight:$g,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},Kg=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),Xg=(e,t)=>e>0?`${e}px ${Wg.Solid} ${t}`:Wg.None,Jg=(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:Xg(o,r),borderBottom:Xg(i,r),borderLeft:Wg.None,borderTop:Wg.None}},Zg=(e,t,r,n,o,i)=>{const a=Jg(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=Xg(2,o)),r||(a.borderLeft=Xg(1,o))),a},Qg=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=Xg(1,r)),t&&(n.borderRight=Xg(1,r)),n},eb=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:Ng("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?Ng("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:Dg("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:Bg.DividerLight})),divider:Dg("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:Bg.DividerDark})),background:Dg("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:Bg.Transparent}))}}}}),tb=(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}},rb=(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:_g({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:tb}),dimensionValueSection:_g({section:"dimensionValues",translator:e,flags:t,getThemeValue:tb}),measureValueSection:_g({section:"measureValues",translator:e,flags:t,getThemeValue:tb}),measureLabelSection:qg({section:"measureLabels",getThemeValue:tb}),totalValuesSection:qg({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:tb}),nullValuesSection:qg({section:"nullValues",fallbackBackground:Bg.NullValueBackground,getThemeValue:tb}),gridSection:eb(t)}}]}),nb=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:rr.Auto,translation:"Common.Auto"},{value:rr.Pixels,translation:"Object.Table.Column.Pixels"},{value:rr.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:rr.Auto,show:e=>{var t;return!(null===(t=e.qHyperCubeDef)||void 0===t||!t.qIndentMode)}},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tr.PixelsDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===rr.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(tr.PixelsMin,Math.min(tr.PixelsMax,r.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tr.PercentageDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===rr.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(tr.PercentageMin,Math.min(tr.PercentageMaxInIndentMode,r.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){var r,n;const{qIndentMode:o}=null!==(r=t.qHyperCubeDef)&&void 0!==r?r:{};return(!o||o&&!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&!(null===(n=t.qHyperCubeDef)||void 0===n||null===(n=n.qDimensions)||void 0===n||!n.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){var t;return!(null===(t=e.qHyperCubeDef)||void 0===t||!t.qAlwaysFullyExpanded)},action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}),ob=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[rb(e,t),nb(t)]}}}),ib="auto",ab={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:ib,translation:"Object.Table.SortingInSearch",options:[{value:ib,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function lb(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:hr(e),sorting:ab,addons:qt,settings:ob(t,r)}}}function sb(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:lb(e),importProperties:Ot(e),exportProperties:_t}}const ub=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function cb(e,t){return y((()=>e),t)}const db={},pb=e=>{const t=y((()=>({current:db})),[]);return t.current=t.current===db?e:t.current,t},fb=()=>{const{viewState:e}=x(),t=pb(new Set),r=void 0!==e,{promise:n,resolve:o}=y((()=>ub()),[]),i=cb((e=>{r&&t.current.add(e)}),[t]),a=cb(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return S((async()=>{r&&await n}),[n,r]),y((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])},mb="#grid",hb=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},gb=(e,t,r,n,o)=>{const i=hb(".qv-object .qv-inner-object",r),a=hb(".qv-panel-sheet",r),l=hb(mb,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 Ag(s);if("none"===u)return"transparent";if(void 0===u)return;const c=uh(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=Ig(p),m=Cg(f?s:p,Ym.TEXT,Ym.DARK_MODE_TEXT)===oh(Ym.DARK_MODE_TEXT);const h=((e,t,r,n=Ym.WHITE)=>e&&!Ig(e)?e:Ig(t)?r&&!Ig(r)?r:n:t)(u,p,s);return{color:p,headerColor:h,isDark:m}},bb=(e,t,r,n)=>{const o=w(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=E([]);return C((()=>{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(mb),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return y((()=>({...o,background:gb(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function vb(e,t){const r=y((()=>({isLoading:!0})),t),[n,o]=S((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const yb=3;function xb(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 Sb({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=yb}=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=hg(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=hg((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=xb(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 Eb,Cb=F;Eb=Cb.createRoot,Cb.hydrateRoot;function wb(e,t){const[r,n]=u(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Rb={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 Lb=({translator:e})=>(s((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Rb).forEach((t=>{e.add(Rb[t])}))}}(e)),[e]),e),Ib=document.createElement("textarea");function Ab(e){Ib.value=e,document.body.appendChild(Ib),Ib.select(),Ib.setSelectionRange(0,Ib.value.length),document.execCommand("copy"),document.body.removeChild(Ib)}Ib.style.position="absolute",Ib.style.left="-9999px",Ib.setAttribute("readonly","");function Mb(){null==R||R(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${Zt}`);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((()=>Ab(r))):Ab(r))})(n)}})}))}var Db="$$material";const Pb=["values","unit","step"];function kb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Cr(e,Pb),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)=>gr({},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 gr({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 Tb={borderRadius:4};function Ob(e,t){return t?na(e,t,{clone:!1}):e}const _b={xs:0,sm:600,md:900,lg:1200,xl:1536},qb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${_b[e]}px)`};function Nb(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||qb;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||qb;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||_b).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Fb(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 jb(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Fb(e,r)||n,t&&(o=t(o,n,e)),o}function zb(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=Fb(e.theme,n)||{};return Nb(e,i,(e=>{let n=jb(a,o,e);return e===n&&"string"==typeof e&&(n=jb(a,o,`${t}${"default"===e?"":Ma(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Gb={m:"margin",p:"padding"},$b={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Bb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Wb=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Bb[e])return[e];e=Bb[e]}const[t,r]=e.split(""),n=Gb[t],o=$b[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Hb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Yb(e,t,r,n){var o;const i=null!=(o=Fb(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Ub(e){return Yb(e,"spacing",8)}function Kb(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 Xb(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Kb(t,r),e)),{})}(Wb(r),n);return Nb(e,e[r],o)}function Jb(e,t){const r=Ub(e.theme);return Object.keys(e).map((n=>Xb(e,t,n,r))).reduce(Ob,{})}function Zb(e){return Jb(e,Hb)}function Qb(e){return Jb(e,Vb)}function ev(...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]?Ob(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function tv(e){return"number"!=typeof e?e:`${e}px solid`}function rv(e,t){return zb({prop:e,themeKey:"borders",transform:t})}Zb.propTypes={},Zb.filterProps=Hb,Qb.propTypes={},Qb.filterProps=Vb;const nv=rv("border",tv),ov=rv("borderTop",tv),iv=rv("borderRight",tv),av=rv("borderBottom",tv),lv=rv("borderLeft",tv),sv=rv("borderColor"),uv=rv("borderTopColor"),cv=rv("borderRightColor"),dv=rv("borderBottomColor"),pv=rv("borderLeftColor"),fv=rv("outline",tv),mv=rv("outlineColor"),hv=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Yb(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Kb(t,e)});return Nb(e,e.borderRadius,r)}return null};hv.propTypes={},hv.filterProps=["borderRadius"],ev(nv,ov,iv,av,lv,sv,uv,cv,dv,pv,hv,fv,mv);const gv=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Yb(e.theme,"spacing",8),r=e=>({gap:Kb(t,e)});return Nb(e,e.gap,r)}return null};gv.propTypes={},gv.filterProps=["gap"];const bv=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Yb(e.theme,"spacing",8),r=e=>({columnGap:Kb(t,e)});return Nb(e,e.columnGap,r)}return null};bv.propTypes={},bv.filterProps=["columnGap"];const vv=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Yb(e.theme,"spacing",8),r=e=>({rowGap:Kb(t,e)});return Nb(e,e.rowGap,r)}return null};vv.propTypes={},vv.filterProps=["rowGap"];function yv(e,t){return"grey"===t?t:e}ev(gv,bv,vv,zb({prop:"gridColumn"}),zb({prop:"gridRow"}),zb({prop:"gridAutoFlow"}),zb({prop:"gridAutoColumns"}),zb({prop:"gridAutoRows"}),zb({prop:"gridTemplateColumns"}),zb({prop:"gridTemplateRows"}),zb({prop:"gridTemplateAreas"}),zb({prop:"gridArea"}));function xv(e){return e<=1&&0!==e?100*e+"%":e}ev(zb({prop:"color",themeKey:"palette",transform:yv}),zb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:yv}),zb({prop:"backgroundColor",themeKey:"palette",transform:yv}));const Sv=zb({prop:"width",transform:xv}),Ev=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])||_b[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:xv(t)}};return Nb(e,e.maxWidth,t)}return null};Ev.filterProps=["maxWidth"];const Cv=zb({prop:"minWidth",transform:xv}),wv=zb({prop:"height",transform:xv}),Rv=zb({prop:"maxHeight",transform:xv}),Lv=zb({prop:"minHeight",transform:xv});zb({prop:"size",cssProperty:"width",transform:xv}),zb({prop:"size",cssProperty:"height",transform:xv});ev(Sv,Ev,Cv,wv,Rv,Lv,zb({prop:"boxSizing"}));var Iv={border:{themeKey:"borders",transform:tv},borderTop:{themeKey:"borders",transform:tv},borderRight:{themeKey:"borders",transform:tv},borderBottom:{themeKey:"borders",transform:tv},borderLeft:{themeKey:"borders",transform:tv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:hv},color:{themeKey:"palette",transform:yv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:yv},backgroundColor:{themeKey:"palette",transform:yv},p:{style:Qb},pt:{style:Qb},pr:{style:Qb},pb:{style:Qb},pl:{style:Qb},px:{style:Qb},py:{style:Qb},padding:{style:Qb},paddingTop:{style:Qb},paddingRight:{style:Qb},paddingBottom:{style:Qb},paddingLeft:{style:Qb},paddingX:{style:Qb},paddingY:{style:Qb},paddingInline:{style:Qb},paddingInlineStart:{style:Qb},paddingInlineEnd:{style:Qb},paddingBlock:{style:Qb},paddingBlockStart:{style:Qb},paddingBlockEnd:{style:Qb},m:{style:Zb},mt:{style:Zb},mr:{style:Zb},mb:{style:Zb},ml:{style:Zb},mx:{style:Zb},my:{style:Zb},margin:{style:Zb},marginTop:{style:Zb},marginRight:{style:Zb},marginBottom:{style:Zb},marginLeft:{style:Zb},marginX:{style:Zb},marginY:{style:Zb},marginInline:{style:Zb},marginInlineStart:{style:Zb},marginInlineEnd:{style:Zb},marginBlock:{style:Zb},marginBlockStart:{style:Zb},marginBlockEnd:{style:Zb},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:gv},rowGap:{style:vv},columnGap:{style:bv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xv},maxWidth:{style:Ev},minWidth:{transform:xv},height:{transform:xv},maxHeight:{transform:xv},minHeight:{transform:xv},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Av(){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=Fb(r,l)||{};if(u)return u(o);return Nb(o,t,(t=>{let r=jb(c,s,t);return t===r&&"string"==typeof t&&(r=jb(c,s,`${e}${"default"===t?"":Ma(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:Iv;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=Ob(s,e(r,o,i,a));else{const e=Nb({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=Ob(s,e):s[r]=t({sx:o,theme:i})}else s=Ob(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 Mv=Av();Mv.filterProps=["sx"];var Dv=Mv;function Pv(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 kv=["breakpoints","palette","spacing","shape"];function Tv(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Cr(e,kv),l=kb(r),s=function(e=8){if(e.mui)return e;const t=Ub({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=na({breakpoints:l,direction:"ltr",components:{},palette:gr({mode:"light"},n),spacing:s,shape:gr({},Tb,i)},a);return u.applyStyles=Pv,u=t.reduce(((e,t)=>na(e,t)),u),u.unstable_sxConfig=gr({},Iv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Dv({sx:e,theme:this})},u}var Ov=Object.freeze({__proto__:null,default:Tv,private_createBreakpoints:kb,unstable_applyStyles:Pv});function _v(e=null){const r=t.useContext(Fi);return r&&(n=r,0!==Object.keys(n).length)?r:e;var n}const qv=Tv();function Nv(e=qv){return _v(e)}const Fv=["sx"];function jv(e){const{sx:t}=e,r=Cr(e,Fv),{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:Iv;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 ta(r)?gr({},n,r):n}:gr({},n,t),gr({},o,{sx:i})}var zv=Object.freeze({__proto__:null,default:Dv,extendSxProp:jv,unstable_createStyleFunctionSx:Av,unstable_defaultSxConfig:Iv});const Gv=["className","component"];function $v(e){if(e.type)return e;if("#"===e.charAt(0))return $v(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(cn(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(cn(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Bv(e,t){return e=$v(e),t=function(e,t=0,r=1){return al(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 Wv=t.createContext(null);function Hv(){return t.useContext(Wv)}var Vv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Yv(e){const{children:r,theme:n}=e,o=Hv(),i=t.useMemo((()=>{const e=null===o?n:function(e,t){if("function"==typeof t)return t(e);return gr({},e,t)}(o,n);return null!=e&&(e[Vv]=null!==o),e}),[n,o]);return Ms.jsx(Wv.Provider,{value:i,children:r})}const Uv=["value"],Kv=t.createContext();function Xv(e){let{value:t}=e,r=Cr(e,Uv);return Ms.jsx(Kv.Provider,gr({value:null==t||t},r))}const Jv=t.createContext(void 0);function Zv({value:e,children:t}){return Ms.jsx(Jv.Provider,{value:e,children:t})}function Qv({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?Qa(o.defaultProps,n):o.styleOverrides||o.variants?n:Qa(o,n)}({props:e,name:r,theme:{components:t.useContext(Jv)}})}const ey={};function ty(e,r,n,o=!1){return t.useMemo((()=>{const t=e&&r[e]||r;if("function"==typeof n){const i=n(t),a=e?gr({},r,{[e]:i}):i;return o?()=>a:a}return gr({},r,e?{[e]:n}:n)}),[e,r,n,o])}function ry(e){const{children:t,theme:r,themeId:n}=e,o=_v(ey),i=Hv()||ey,a=ty(n,o,r),l=ty(n,i,r,!0),s="rtl"===a.direction;return Ms.jsx(Yv,{theme:l,children:Ms.jsx(Fi.Provider,{value:a,children:Ms.jsx(Xv,{value:s,children:Ms.jsx(Zv,{value:null==a?void 0:a.components,children:t})})})})}var ny={},oy={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(oy);var iy=oy.exports,ay=B(dn),ly=B(ll),sy=iy;Object.defineProperty(ny,"__esModule",{value:!0});var uy=ny.alpha=Ey;ny.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=by(e),a=by(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return yy({type:"rgb",values:l})},ny.colorChannel=void 0;var cy=ny.darken=Cy;ny.decomposeColor=by,ny.emphasize=Ry;var dy=ny.getContrastRatio=function(e,t){const r=Sy(e),n=Sy(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};ny.getLuminance=Sy,ny.hexToRgb=gy,ny.hslToRgb=xy;var py=ny.lighten=wy;ny.private_safeAlpha=function(e,t,r){try{return Ey(e,t)}catch(t){return e}},ny.private_safeColorChannel=void 0,ny.private_safeDarken=function(e,t,r){try{return Cy(e,t)}catch(t){return e}},ny.private_safeEmphasize=function(e,t,r){try{return Ry(e,t)}catch(t){return e}},ny.private_safeLighten=function(e,t,r){try{return wy(e,t)}catch(t){return e}},ny.recomposeColor=yy,ny.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=by(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 fy=sy(ay),my=sy(ly);function hy(e,t=0,r=1){return(0,my.default)(e,t,r)}function gy(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 by(e){if(e.type)return e;if("#"===e.charAt(0))return by(gy(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,fy.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,fy.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const vy=e=>{const t=by(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};ny.colorChannel=vy;function yy(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 xy(e){e=by(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])),yy({type:l,values:s})}function Sy(e){let t="hsl"===(e=by(e)).type||"hsla"===e.type?by(xy(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 Ey(e,t){return e=by(e),t=hy(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,yy(e)}function Cy(e,t){if(e=by(e),t=hy(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 yy(e)}function wy(e,t){if(e=by(e),t=hy(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 yy(e)}function Ry(e,t=.15){return Sy(e)>.5?Cy(e,t):wy(e,t)}ny.private_safeColorChannel=(e,t)=>{try{return vy(e)}catch(t){return e}};var Ly={black:"#000",white:"#fff"};var Iy={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 Ay={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 My={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 Dy={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 Py={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 ky={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 Ty={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 Oy=["mode","contrastThreshold","tonalOffset"],_y={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:Ly.white,default:Ly.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}},qy={text:{primary:Ly.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:Ly.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 Ny(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=py(e.main,o):"dark"===t&&(e.dark=cy(e.main,i)))}function Fy(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Cr(e,Oy),i=e.primary||function(e="light"){return"dark"===e?{main:Py[200],light:Py[50],dark:Py[400]}:{main:Py[700],light:Py[400],dark:Py[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ay[200],light:Ay[50],dark:Ay[400]}:{main:Ay[500],light:Ay[300],dark:Ay[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:My[500],light:My[300],dark:My[700]}:{main:My[700],light:My[400],dark:My[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ky[400],light:ky[300],dark:ky[700]}:{main:ky[700],light:ky[500],dark:ky[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ty[400],light:Ty[300],dark:Ty[700]}:{main:Ty[800],light:Ty[500],dark:Ty[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Dy[400],light:Dy[300],dark:Dy[700]}:{main:"#ed6c02",light:Dy[500],dark:Dy[900]}}(t);function d(e){return dy(e,qy.text.primary)>=r?qy.text.primary:_y.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=gr({},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 Ny(e,"light",o,n),Ny(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:qy,light:_y};return na(gr({common:gr({},Ly),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:Iy,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const jy=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const zy={textTransform:"uppercase"},Gy='"Roboto", "Helvetica", "Arial", sans-serif';function $y(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Gy,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Cr(r,jy),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return gr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Gy?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,zy),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,zy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return na(gr({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function By(...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 Wy=["none",By(0,2,1,-1,0,1,1,0,0,1,3,0),By(0,3,1,-2,0,2,2,0,0,1,5,0),By(0,3,3,-2,0,3,4,0,0,1,8,0),By(0,2,4,-1,0,4,5,0,0,1,10,0),By(0,3,5,-1,0,5,8,0,0,1,14,0),By(0,3,5,-1,0,6,10,0,0,1,18,0),By(0,4,5,-2,0,7,10,1,0,2,16,1),By(0,5,5,-3,0,8,10,1,0,3,14,2),By(0,5,6,-3,0,9,12,1,0,3,16,2),By(0,6,6,-3,0,10,14,1,0,4,18,3),By(0,6,7,-4,0,11,15,1,0,4,20,3),By(0,7,8,-4,0,12,17,2,0,5,22,4),By(0,7,8,-4,0,13,19,2,0,5,24,4),By(0,7,9,-4,0,14,21,2,0,5,26,4),By(0,8,9,-5,0,15,22,2,0,6,28,5),By(0,8,10,-5,0,16,24,2,0,6,30,5),By(0,8,11,-5,0,17,26,2,0,6,32,5),By(0,9,11,-5,0,18,28,2,0,7,34,6),By(0,9,12,-6,0,19,29,2,0,7,36,6),By(0,10,13,-6,0,20,31,3,0,8,38,7),By(0,10,13,-6,0,21,33,3,0,8,40,7),By(0,10,14,-6,0,22,35,3,0,8,42,7),By(0,11,14,-7,0,23,36,3,0,9,44,8),By(0,11,15,-7,0,24,38,3,0,9,46,8)];const Hy=["duration","easing","delay"],Vy={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)"},Yy={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Uy(e){return`${Math.round(e)}ms`}function Ky(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Xy(e){const t=gr({},Vy,e.easing),r=gr({},Yy,e.duration);return gr({getAutoHeightDuration:Ky,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Cr(n,Hy),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Uy(o)} ${i} ${"string"==typeof a?a:Uy(a)}`)).join(",")}},e,{easing:t,duration:r})}var Jy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Zy=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Qy(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Cr(e,Zy);if(e.vars)throw new Error(cn(18));const l=Fy(n),s=Tv(e);let u=na(s,{mixins:(c=s.breakpoints,d=r,gr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Wy.slice(),typography:$y(l,i),transitions:Xy(o),zIndex:gr({},Jy)});var c,d;return u=na(u,a),u=t.reduce(((e,t)=>na(e,t)),u),u.unstable_sxConfig=gr({},Iv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Dv({sx:e,theme:this})},u}var ex=Qy();function tx(){const e=Nv(ex);return e[Db]||e}var rx,nx={},ox={exports:{}};var ix,ax={exports:{}};var lx=B(ea),sx=B(ia),ux=B(Da),cx=B(Aa),dx=B(Ov),px=B(zv),fx=iy;Object.defineProperty(nx,"__esModule",{value:!0});var mx=nx.default=function(e={}){const{themeId:t,defaultTheme:r=Lx,rootShouldForwardProp:n=Rx,slotShouldForwardProp:o=Rx}=e,i=e=>(0,xx.default)((0,hx.default)({},e,{theme:Ax((0,hx.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,bx.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Mx(Ix(s))}=a,p=(0,gx.default)(a,Cx),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Rx;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,bx.default)(e,(0,hx.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,vx.isPlainObject)(e)?n=>Dx(e,(0,hx.default)({},n,{theme:Ax({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=Ax((0,hx.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]=Dx(r,(0,hx.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Ax((0,hx.default)({},e,{defaultTheme:r,themeId:t}));return Dx({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,hx.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};nx.shouldForwardProp=Rx,nx.systemDefaultTheme=void 0;var hx=fx((rx||(rx=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}(ox)),ox.exports)),gx=fx((ix||(ix=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}(ax)),ax.exports)),bx=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=wx(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}(lx),vx=sx;fx(ux),fx(cx);var yx=fx(dx),xx=fx(px);const Sx=["ownerState"],Ex=["variants"],Cx=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function wx(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(wx=function(e){return e?r:t})(e)}function Rx(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Lx=nx.systemDefaultTheme=(0,yx.default)(),Ix=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ax({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Mx(e){return e?(t,r)=>r[e]:null}function Dx(e,t){let{ownerState:r}=t,n=(0,gx.default)(t,Sx);const o="function"==typeof e?e((0,hx.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Dx(e,(0,hx.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,gx.default)(o,Ex);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,hx.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,hx.default)({ownerState:r},n,r)):e.style))})),t}return o}var Px=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var kx=mx({themeId:Db,defaultTheme:ex,rootShouldForwardProp:Px});const Tx=["theme"];function Ox(e){let{theme:t}=e,r=Cr(e,Tx);const n=t[Db];return Ms.jsx(ry,gr({},r,{themeId:n?Db:void 0,theme:n||t}))}var _x=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const qx={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},Nx={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},Fx=Xu("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":{...qx},"&::-moz-range-track":{...qx},"&::-ms-track":{...qx},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...Nx},"&::-moz-range-thumb":{...Nx},"&::-ms-thumb":{...Nx},"&: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"}}))),jx=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:d,accessibilityRelatedArgs:p})=>{const f=Lb({translator:p.translator}),m=c({initWidth:e,columnWidth:e,initX:0}),h=n?0:1,g=o&&!d,b={left:g?m.current.columnWidth-h:"100%"},v=t=>{m.current={initWidth:e,columnWidth:e,initX:null!=t?t:m.current.initX}};wb((()=>g&&v()),[e]);const y=e=>{const t=Math.max(e,tr.PixelsMin);m.current.columnWidth=t,a(t)},x=()=>{if(m.current.columnWidth!==m.current.initWidth){const e={type:rr.Pixels,pixels:m.current.columnWidth};l(e)}else null==u||u(!1)},S=e=>{const t=m.current.initWidth+e.clientX-m.current.initX;y(t)},E=e=>{Mg(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",E),x()},C=e=>{const t=m.current.initWidth+e.touches[0].clientX-m.current.initX;y(t)},w=e=>{Mg(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",w),x()},R=!o&&s?e=>{if(e.key===Qt.Left||e.key===Qt.Right){Mg(e);const t=5,r=e.key===Qt.Left?-t:t;y(m.current.columnWidth+r)}else e.key===Qt.Space||e.key===Qt.Enter?(Mg(e),s(e),x()):e.key===Qt.Esc&&(Mg(e),s(e),y(m.current.initWidth))}:void 0,L=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(p.columnLabel)]);return r.createElement(Fx,{style:b,key:t,hoverColor:i,isLastColumn:n,className:er,"data-testid":er,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",S),document.addEventListener("mouseup",E),null==u||u(!0),v(e.clientX)},onDoubleClick:()=>l({type:rr.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:tr.PixelsMax,"aria-label":L,"aria-valuemin":tr.PixelsMin,"aria-valuemax":tr.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};function zx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Gx=(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){zx(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"})),$x=d(Gx);function Bx(){return Bx=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},Bx.apply(null,arguments)}const Wx=Xu(yp,{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"}))),Hx=Xu($x,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),Vx=Xu(Jf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Yx=Xu(Bp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),Ux=Xu(rm)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),Kx=Xu(rm,{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")}))),Xx=Xu("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"}))),Jx=Xu("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),Zx=Xu(xd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),Qx=Xu(wf)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function eS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tS=(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){eS(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"})),rS=d(tS);let nS={};const oS=({autoFocus:e,id:t,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:l,isSubMenu:s,isActive:d,handleHeadCellMenuKeyDown:f})=>{const[m,h]=u(!1),g=c(null),b=p((e=>{e.stopPropagation(),h(!1)}),[h]);return r.createElement(r.Fragment,null,r.createElement(Kx,{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),nS={}),null!=l&&l.length&&(h(!0),nS[o]=h))},disabled:!a,autoFocus:e,isSubMenu:!!s,isActive:!!d,onKeyDown:f},d&&r.createElement(Xx,null),r.createElement(Jx,null,r.createElement(Qx,null,r.createElement(i,null)),r.createElement(Zx,{variant:"body2"},o)),null!=l&&l.length?r.createElement(rS,null):null),(null==l?void 0:l.length)&&r.createElement(lS,{isSubMenu:!0,open:m,anchorEl:g.current,onClose:b,menuGroups:(v=l,y=nS,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},iS=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var o;return[[e.groupHeading&&r.createElement(Ux,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),null===(o=e.items)||void 0===o?void 0:o.map((e=>r.createElement(oS,Bx({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),aS={appear:200,enter:200,exit:100},lS=({anchorEl:e,open:t,onClose:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?r.createElement(Vx,Bx({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:aS,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)=>[iS({menuGroup:o,isSubMenu:t,handleHeadCellMenuKeyDown:n}),i<e.length-1?r.createElement(Yx,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,sS=(e,t)=>e.some((e=>t[e]>0)),uS={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},cS=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=u(null),[a,l]=u(uS);return wb((()=>{e||(l(uS),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{var e,u,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),p=await n.createSessionObject(d),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo)&&void 0!==e?e:{};o=null===(c=f.qInfo)||void 0===c?void 0:c.qId,a?s():(i(p),m&&l((e=>({canSelectAll:sS(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:sS(["qSelected"],e),canSelectPossible:sS(["qOption"],e),canSelectAlternative:sS(["qAlternative"],e),canSelectExcluded:sS(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function dS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pS=(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){dS(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"})),fS=d(pS);function mS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hS=(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){mS(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"})),gS=d(hS);function bS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vS=(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){bS(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"})),yS=d(vS);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 SS=(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){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),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"})),ES=d(SS);function CS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wS=(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){CS(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"})),RS=d(wS);function LS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const IS=(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){LS(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"})),AS=d(IS);function MS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const DS=(e,t)=>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){MS(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"})),PS=d(DS);function kS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const TS=(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){kS(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"})),OS=d(TS);function _S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qS=(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){_S(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"})),NS=d(qS);function FS(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)=>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){FS(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"})),zS=d(jS);function GS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $S=(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){GS(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"})),BS=d($S);function WS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const HS=(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){WS(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"})),VS=d(HS);let YS=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const US="/qListObjectDef",KS=({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[YS.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:fS,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:ES,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:AS,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:RS,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&p.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[YS.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:PS,enabled:!0}]}]),r[YS.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:VS,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(US))},icon:OS,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(US))},icon:BS,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(US))},icon:NS,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(US))},icon:zS,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(US))},icon:gS,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[YS.AdjusterHeaderSize]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:yS,enabled:!0}]}]),p},XS=({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:m,env:h,model:g})=>{var b;const v=Lb({translator:i}),{headTextAlign:y,qLibraryId:x,fieldId:S}=o,E=null==f?void 0:f.app,{fieldInstance:C,selectionActionsEnabledStatus:w}=cS({open:e,headerData:o,app:E,qStateName:null==f?void 0:f.qStateName});let R=null;h.flags.isEnabled("CLIENT_IM_7107_TABLE_MENU_CYCLIC_DIM")&&g&&"setActiveField"in g&&(R=async e=>{try{await g.setActiveField("/qHyperCubeDef",o.colIdx,e)}catch(e){console.error(e)}});const L=p((()=>{const e=x?{qLibraryId:x,type:"dimension"}:S;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})}}),[x,S,d,null==f?void 0:f.qStateName]),I=p((e=>{e.stopPropagation(),t(!1)}),[t]);return a.active?r.createElement(Wx,{rightAligned:"right"===y,shouldShowMenuIcon:u,className:"nebula-table-utils-head-menu-wrapper"},u&&r.createElement(Hx,{height:Xt,className:Jt,"data-testid":Jt,isInteractionsActive:null!==(b=a.active)&&void 0!==b&&b},r.createElement($x,null)),r.createElement(lS,{open:e,anchorEl:n.current,onClose:I,menuGroups:KS({headerData:o,translator:v,menuAvailabilityFlags:s,setOpen:t,...c,embedListbox:L,interactions:a,fieldInstance:C,selectionActionsEnabledStatus:w,anchorRef:n,setFocusOnColumnAdjuster:null==m?void 0:m.setFocusOnColumnAdjuster,setActiveFieldCallback:R}),handleHeadCellMenuKeyDown:l})):null},JS=e=>e.isDark?{background:e.color,borderColor:Ym.DARK_MODE_BORDER,color:Ym.DARK_MODE_TEXT,disabledColor:Ym.DARK_MODE_DISABLED,iconColor:Ym.DARK_MODE_TEXT}:{background:e.color,borderColor:Ym.BORDER_MEDIUM,color:Ym.TEXT,disabledColor:Ym.DISABLED},ZS=Xu(yp,{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}`}))),QS=Xu(zm,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),eE=Xu(Dp,{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)}))),tE=Xu(xd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),rE=({children:e,footerContainer:t,interactions:n,theme:o,paginationNeeded:i=!0})=>{const a=s((()=>JS(o.background)),[o]);if(!n.active)return null;const l=i?r.createElement(ZS,{footerStyle:a},e):null;return t?F.createPortal(e,t):l},nE=m({}),oE=()=>n(nE),iE=({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:m,interactions:h,rect:g,layout:b})=>{const v=(e=>!e.enabled||e.active)(p)?0:-1,y=s((()=>JS(m.background)),[m]),x=i?i.getBoundingClientRect().width:g.width,S=Lb({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:m,interactions:h,rect:g,layout:b,footerStyle:y,tabIndex:v,width:x})),[t,n,o,i,a,l,u,c,d,p,S,m,h,g,b,y,v,x]);return r.createElement(nE.Provider,{value:E},e)};let aE=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),lE=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 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:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),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:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),fE=d(pE);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 hE=(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.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),gE=d(hE),bE={FirstPage:fE,PreviousPage:cE,NextPage:rS,LastPage:gE,FirstPageRTL:gE,PreviousPageRTL:rS,NextPageRTL:cE,LastPageRTL:fE},vE=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=oE(),u=bE[`${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}},yE=()=>{const{pageInfo:e,width:t}=oE(),n=0===e.page,{IconComponent:o,styledProps:i}=vE({type:aE.FirstPage,disabledCondition:n,pageNumber:0});return t<=lE.FirstPage?null:r.createElement(eE,i,r.createElement(o,{height:Xt}))},xE=(e,t,r=!1)=>{r&&e.key===Qt.Tab&&!e.shiftKey&&(Mg(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))},SE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:o,width:i}=oE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=vE({type:aE.LastPage,disabledCondition:a,pageNumber:n-1}),u=t.enabled?e=>xE(e,t,o):null;return i<=lE.LastPage?null:r.createElement(eE,Bx({},s,{onKeyDown:u}),r.createElement(l,{height:Xt}))},EE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:o,width:i}=oE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=vE({type:aE.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>lE.FirstPage&&i>lE.LastPage)&&t.enabled?e=>xE(e,t,o):null;return r.createElement(eE,Bx({},s,{onKeyDown:u}),r.createElement(l,{height:Xt}))},CE=()=>{const{pageInfo:e}=oE(),t=0===e.page,{IconComponent:n,styledProps:o}=vE({type:aE.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return r.createElement(eE,o,r.createElement(n,{height:Xt}))},wE=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:o}=oE(),{page:i,rowsPerPage:a}=n;if(t<=lE.DisplayedRowsLabel)return null;const l=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,o)}`,o.toString()]);return r.createElement(tE,{variant:"caption"},l)},RE=({name:e,value:t,options:n,handleChange:o})=>{const{layout:i,footerStyle:a,translator:l,tabIndex:s}=oE(),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(tE,{variant:"caption",id:p},c,":"),r.createElement(QS,{footerStyle:a,size:"small",native:!0,value:t,onChange:o,inputProps:f},n))},LE=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:o,width:i,handleChangeRowsPerPage:a}=oE();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&i>lE.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(RE,{name:"RowsPerPage",value:t.rowsPerPage,options:l,handleChange:e=>{null==a||a(+e.target.value)}})},IE=1e3,AE="…",ME=({totalPages:e,page:t})=>{const n=Math.min(e,IE),o=n<e&&t>500,i=o?Math.min(500+t,e):n,a=o?Math.max(0,i-IE):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:AE,disabled:!0},AE)),i<e-1&&l.push(r.createElement("option",{key:"endMoreOptions",value:AE,disabled:!0},AE)),r.createElement(r.Fragment,null,l)},DE=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:o}=oE(),{page:i}=e;if(t<=lE.SelectPage)return null;const a=r.createElement(ME,{totalPages:n,page:i});return r.createElement(RE,{name:"SelectPage",value:i,options:a,handleChange:e=>o(+e.target.value)})};var PE=h((e=>r.createElement(iE,e,r.createElement(LE,null),r.createElement(DE,null),r.createElement(wE,null),r.createElement(yE,null),r.createElement(CE,null),r.createElement(EE,null),r.createElement(SE,null))));const kE=e=>r.createElement(rE,e,r.createElement(PE,e)),TE=m({}),OE=()=>n(TE),_E=({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 Ms.jsx(TE.Provider,{value:i,children:o})},qE=m({}),NE=()=>n(qE),FE=({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 Ms.jsx(qE.Provider,{value:c,children:u})},jE=m({}),zE=()=>n(jE),GE=({children:e,...t})=>Ms.jsx(jE.Provider,{value:t,children:e}),$E=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:r}=NE(),{layoutService:n}=zE(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:jg;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:Ms.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:Ms.jsx("span",{style:{...Ug,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},BE="/qHyperCubeDef",WE=-1,HE="PSEUDO-DIM",VE=[];for(let e=0;e<256;++e)VE.push((e+256).toString(16).slice(1));let YE;const UE=new Uint8Array(16);function KE(){if(!YE){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");YE=crypto.getRandomValues.bind(crypto)}return YE(UE)}var XE={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function JE(e,t,r){if(XE.randomUUID&&!t&&!e)return XE.randomUUID();const n=(e=e||{}).random||(e.rng||KE)();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(VE[e[t+0]]+VE[e[t+1]]+VE[e[t+2]]+VE[e[t+3]]+"-"+VE[e[t+4]]+VE[e[t+5]]+"-"+VE[e[t+6]]+VE[e[t+7]]+"-"+VE[e[t+8]]+VE[e[t+9]]+"-"+VE[e[t+10]]+VE[e[t+11]]+VE[e[t+12]]+VE[e[t+13]]+VE[e[t+14]]+VE[e[t+15]]).toLowerCase()}(n)}const ZE=()=>{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:JE()},QE=e=>e===WE?HE:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:ZE()})(e),eC=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===WE?r.columnWidthLocation=Vt.Measures:r.isLeftDimension?r.columnWidthLocation=Vt.Dimension:t.at(-1)===WE?r.columnWidthLocation=Vt.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=Vt.Pivot))},tC=(e,t,r)=>{var n;const o=QE(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===WE?{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:Vt.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===ir.Cyclic,groupDimensionPos:t.qGroupPos,groupDimensionLabels:t.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:Vt.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},rC=({layoutService:e,lastRow:t,lastCol:r})=>{let n=r;var o;t.length>0&&(n=(o=r).at(-1)===WE?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]=tC(e,t,o)})),n.forEach(((t,r,n)=>{const o=r===n.length-1;l[r][a-1]=tC(e,t,o)})),l},nC=(e,t,r)=>{var n,o;const i=((e,t,r)=>{let n;var o;return n=0===t.length||t.includes(WE)?rC({layoutService:e,lastRow:r,lastCol:t}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(rC({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++)eC({layoutService:e,visibleLeftDimensionInfos:r,cell:n[t],colIdx:t})}else eC({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 oC(e){return oC="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},oC(e)}function iC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aC(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 lC(e,t,r){return t&&aC(e.prototype,t),r&&aC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sC(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&&cC(e,t)}function uC(e){return uC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uC(e)}function cC(e,t){return cC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cC(e,t)}function dC(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 pC(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=uC(e);if(t){var o=uC(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return dC(this,r)}}function fC(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 mC(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 mC(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 mC(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 hC={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:gC(e),value:gC(t),useEqualSign:r}}(r,o,i))}})),t}};function gC(e){try{return decodeURIComponent(e)}catch(t){return e}}function bC(e){if(!(this instanceof bC))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 hC.fromSearchString(t.search)}}})}function vC(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}bC.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},bC.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=vC((t=e[n]).key),t.value?r+="=".concat(vC(t.value)):r+=t.useEqualSign?"=":"";return r};var yC,xC=function(){function e(t){iC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return lC(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}(),SC=function(){function e(){iC(this,e)}return lC(e,[{key:"decode",value:function(e){for(var t,r="",n=new xC(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),EC=function(e){return e>=0&&e<=1114111},CC=function(e){return e.match(/[\s]/)},wC=function(e){sC(r,e);var t=pC(r);function r(){return iC(this,r),t.apply(this,arguments)}return lC(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())&&!CC(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return EC(a)?String.fromCharCode(a):"�"}}]),r}(SC),RC=function(){function e(t,r){iC(this,e),this._key=t,this._value=r}return lC(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}(),LC=function(){function e(){iC(this,e)}return lC(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 RC.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return RC.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||RC.newInstanceIfNeeded(e,t,this._value)}}]),e}(),IC=function(){function e(){iC(this,e),this.clear()}return lC(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 LC);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),AC=function(){var e,t,r,n=[],o=[],i=new IC;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),MC=function(e){sC(r,e);var t=pC(r);function r(){return iC(this,r),t.apply(this,arguments)}return lC(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,AC.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=AC.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)&&EC(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)&&EC(n)?String.fromCharCode(n):null}}]),r}(SC),DC=function(e){sC(r,e);var t=pC(r);function r(){return iC(this,r),t.apply(this,arguments)}return lC(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),EC(o))?String.fromCharCode(o):(e.reset(),null)}}]),r}(SC),PC=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(yC=document.createElement("div"));var kC=Array.prototype.indexOf,TC=[",",".","_"," "],OC=[",",".","-","_"," "],_C={width:["%"],height:["%"]},qC={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},NC={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":qC.image,"background-color":qC.color,"border-color":qC.color,"border-image":qC.image,color:qC.color,icon:qC.image,"list-style-image":qC.image,"outline-color":qC.color},FC={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function jC(e,t,r){var n;if(t){if(kC)return kC.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 zC(e){if(null==e)return"";var t,r=document.createTextNode(e);return yC.appendChild(r),t=yC.innerHTML,yC.removeChild(r),t}function GC(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=BC(e).toLowerCase(),t=BC(t),jC(e,FC.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<FC.attr_val;i++)if(t.toLowerCase().match(FC.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=_C[e])||(n=OC),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]/)&&jC(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function $C(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=BC(e).toLowerCase(),t=BC(t),jC(e,FC.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<FC.css_val.length;n++)if(t.toLowerCase().indexOf(FC.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=NC[e])||(o=qC.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]/)&&jC(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function BC(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new MC,new DC,new wC];!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 WC=[],HC=0;HC<255;HC++)WC[HC]=HC>=48&&HC<=57||HC>=65&&HC<=90||HC>=97&&HC<=122?null:HC.toString(16);var VC=function(e){return zC(e.unsafe)},YC=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]=$C(t,r[t],!0),i+=$C(t,r[t],!0),o[t]=n[t]);return e.map?o:i},UC=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]=GC(i,t[i],!0),o+=GC(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function KC(e,t){throw new Error(t)}var XC={canonicalize:BC,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===oC(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?VC(e):"css"===e.context?(null!=e.map&&"object"!==oC(e.map)&&KC(this,"Invalid parameter type"),YC(e)):"attr"===e.context?(null!=e.map&&"object"!==oC(e.map)&&KC(this,"Invalid parameter type"),UC(e)):void KC(this,"Invalid parameter type")},encodeForAttr:GC,encodeForAttr2:function(e){return GC("nonsens",e,!0)},encodeForCSS:$C,encodeForHref:function(e){BC(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new bC(e),r=bC.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+bC.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=TC),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),jC(o,t)>=0||null==WC[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:zC,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=BC(t).toLowerCase():KC(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=fC(null!==(t=PC.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 JC=(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]},ZC=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"}}},QC=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&XC.isSafeDataURL(t)?{type:Nt.Image,url:t,text:e,imageSize:r,resolvedImagePosition:ZC(n)}:{type:Nt.Text,url:void 0,text:e},ew=(e,t,r)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:Nt.Text,text:e.qText};const{minY:n,maxY:o}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),l=i?r.qYMin:e.qMiniChart.qMin,s=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(l),Math.abs(s));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,l),maxY:Math.max(0,s)}:{minY:l,maxY:s}})(e,t.miniChart,r),i={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:n,maxY:o,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:Nt.MiniChart,text:e.qText,miniChart:i}},tw=(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)===Ft.Attribute||null==r?void 0:r.urlLabel},rw=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Nt.Link,url:XC.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:Nt.Text,url:void 0,text:t,labelStructure:e}}},nw=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a})=>{var l,s,u,c,d,p;const f=jt(t);return f!==Nt.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(l=n.anything.sense)&&void 0!==l&&null!==(s=l.isUnsupportedFeature)&&void 0!==s&&s.call(l,"tableImages")?f===Nt.Link?((e,t,r,n)=>{const{urlPosition:o}=null!=t?t:{};if(o===Ft.Attribute){var i;const o=tw(null!==(i=r.url)&&void 0!==i?i:-1,e,t),a=e.qText||o||"";return rw({labelStructure:n,text:a,url:o})}if(o===Ft.Dimension){var a,l;const o=tw(null!==(a=r.urlLabel)&&void 0!==a?a:-1,e,t)||e.qText;return n&&(n.maskedValue=o),rw({text:o,labelStructure:n,url:null!==(l=null==n?void 0:n.originalValue)&&void 0!==l?l:e.qText})}return{type:Nt.Text,url:void 0,text:e.qText,labelStructure:n}})(e,t,r,a):f!==Nt.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(u=n.anything.sense)&&void 0!==u&&null!==(c=u.isUnsupportedFeature)&&void 0!==c&&c.call(u,"tableIndicators")?f!==Nt.MiniChart||!n.flags.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")||null!==(d=n.anything.sense)&&void 0!==d&&null!==(p=d.isUnsupportedFeature)&&void 0!==p&&p.call(d,"qMiniChartDef")?{type:Nt.Text,url:void 0,text:e.qText,labelStructure:a}:ew(e,t,i):((e,t,r)=>{const{indicator:n}=null!=t?t:{};return{type:Nt.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=JC(null!==(s=r.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return QC({text:t,url:i,imageSize:n,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===r.imageLabel)return QC({text:a||t||"",url:t,imageSize:n,imagePosition:o});const i=null!==(u=null===(c=JC(null!==(d=r.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return QC({text:i,url:t,imageSize:n,imagePosition:o})}return{type:Nt.Text,url:void 0,text:e.qText}})(e,t,r)},ow=(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?Ag(s):null,c=l?Ag(l):null,d=((e,t)=>e||!t?null:Cg(t))(c,u);return{color:null!=d?d:c,background:u}},iw=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:iw(e,t)),e),aw=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:Gg-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,iw(l,e))},lw=(e,t,r)=>{if(e!==WE){if(t){const t=jt(e.representation)===Nt.Link;return null!=r&&r.isLinksSupported&&t?e.representation:{type:Nt.Text}}return e.representation}},sw=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentModeFeatures:d,indentLevel:p,labelStructure:f,env:m,pageInfo:h})=>{const g=(!c||!u)&&"P"===e.qType;let b=e.qText;if(u&&c&&f){const{originalValue:e,delimeter:t,suffix:r}=f;b=`${e} ${!r||!e&&r?"":t} ${r}`.trim()}const v={id:ZE(),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:aw(e,o,i,n,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:"T"===e.qType||!(null==t||!t.isTotal),isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:g,expressionColor:ow(s,e),selectionCellType:u?ar.Left:ar.Top,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:g?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:nw({cell:{...e,qText:b},representationProperties:lw(l,c,d),attrExprInfoIndex:s,env:m,labelStructure:f}),...void 0!==p&&{indentLevel:p}};return t&&(t.children[v.mainAxisPageCoord-t.mainAxisPageCoord]=v),v},uw=(e,t,r,n,o,i,a,l)=>{const{isIndentModeEnabled:s,indentModeFeatures:u}=o;if(!t.length)return e;let c=0;return function t(d,p,f,m=0,h=-1){e[m]||(e[m]={}),s&&h++;const g=o.leftDimensionInfoIndexes.indexOf(WE);f.forEach(((f,b)=>{var v,y;const x={originalValue:null!==(v=f.qText)&&void 0!==v?v:"",maskedValue:"",delimeter:"-",suffix:""};c+=0===b?0:1;const S=r.qTop-n.page*n.rowsPerPage,E=Math.max(0,S+c-f.qUp),C=r.qTop+c-f.qUp;var w,R;if(s&&(o.hasPseudoDimOnLeft&&h<=g))if(x.originalValue=null!==(w=f.qText)&&void 0!==w?w:"",x.maskedValue=null!==(R=f.qText)&&void 0!==R?R:"","N"===f.qType||"U"===f.qType||"T"===f.qType)h<g&&(x.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`);else if("P"===f.qType){var L,I,A,M,D,P,k,T;x.originalValue=null!==(L=null===(I=p||d)||void 0===I||null===(I=I.representation)||void 0===I||null===(I=I.labelStructure)||void 0===I?void 0:I.originalValue)&&void 0!==L?L:"",x.maskedValue=null!==(A=null===(M=p||d)||void 0===M||null===(M=M.representation)||void 0===M||null===(M=M.labelStructure)||void 0===M?void 0:M.originalValue)&&void 0!==A?A:"",x.suffix=null!==(D=f.qText)&&void 0!==D?D:"";const e=f.qSubNodes;f={...null===(P=p||d)||void 0===P?void 0:P.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},h=null!==(k=null===(T=p||d)||void 0===T?void 0:T.indentLevel)&&void 0!==k?k:0}let O=m;s&&(O=g>=1&&h>=g?h+1:h,0===h&&0===g&&0===f.qSubNodes.length&&(O=0));const _=s&&void 0===(null===(y=e[m][E])||void 0===y?void 0:y.ref.qText)||!e[m][E]?sw({node:f,parent:p,root:d,x:O,y:C,pageY:E,layoutService:o,dimensionInfo:i[O],attrExprInfoIndex:a[O],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentModeFeatures:u,indentLevel:h},env:l,pageInfo:n,labelStructure:x}):e[m][E];if(e[m][E]=_,f.qSubNodes.length){const e=s?0:m+1;t(d||_,_,f.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},cw=(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)}))}))},dw=(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},pw=({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=uw(e.grid,l,s,r,n,o,i,a);cw(u,r.rowsOnCurrentPage);const c=dw(u,n);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},fw=({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="U"===t.qType;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:ZE(),ref:t,isNull:u}}))})),o},mw=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return null!=n&&n.length?fw({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},hw=(e,t,r,n,o,i,a,l,s)=>{const{isIndentModeEnabled:u,indentModeFeatures:c}=n;if(!t.length)return e;let d=0;!function t(a,p,f,m=0){e[m]||(e[m]={}),f.forEach(((f,h)=>{var g;d+=0===h?0:1;const b=r.qLeft+d-f.qUp,v=null!==(g=e[m][b])&&void 0!==g?g:sw({node:f,parent:p,root:a,x:b,y:m,pageY:m,layoutService:n,dimensionInfo:o[m],attrExprInfoIndex:i[m],isLeftColumn:!1,...u&&{isIndentModeEnabled:u,indentModeFeatures:c},env:l,pageInfo:s});e[m][b]=v,f.qSubNodes.length&&t(a||v,v,f.qSubNodes,m+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},gw=({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=hw(e.grid,s,u,r,n,o,i,a,l);cw(c,r.size.x);const d=dw(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},bw=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),vw=(e,t)=>{const{env:r}=NE(),{layoutService:n}=zE(),{qPivotDataPages:o,pageInfo:i}=OE(),[a,l]=u(null),c=((e,t,r)=>s((()=>({left:e.map(bw),top:t.map(bw),measures:r.map(bw)})),[r,e,t]))(e,t,n.visibleMeasureInfo),d=s((()=>nC(n,t,e)),[n,t,e]),f=p((()=>o.slice(1).reduce(((e,t)=>mw({prevData:e,dataPage:t,pageInfo:i})),((e,t)=>{const{qData:r,qArea:n}=e;return fw({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(o[0],i))),[o,i]),m=p((()=>o.slice(1).reduce(((e,o)=>gw({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=hw([],s,l,t,r,n,o,i,a);cw(u,t.size.x);const c=dw(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]),h=p((()=>o.slice(1).reduce(((t,o)=>pw({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=uw([],l,a,r,t,n,o,i);cw(s,r.rowsOnCurrentPage);const u=dw(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((()=>m())),[x,S]=u((()=>h()));wb((()=>{b(f())}),[f]),wb((()=>{y(m())}),[m]),wb((()=>{S(h())}),[h]),wb((()=>{a&&a.forEach((o=>{b((e=>mw({prevData:e,dataPage:o,pageInfo:i}))),y((e=>gw({prevData:e,nextDataPage:o,layoutService:n,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:i}))),S((t=>pw({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}},yw=Math.sqrt(1e4),xw=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/tr.PixelsMin)}),Sw=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/yw),n=Math.ceil(e.qHeight/yw);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*yw,qTop:e.qTop+r*yw,qWidth:Math.min(yw,e.qWidth-o*yw),qHeight:Math.min(yw,e.qHeight-r*yw)});return t};function Ew({nextPageHandler:e}){const{model:t}=NE(),{pageInfo:r}=OE(),{layoutService:n}=zE(),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,BE,e,t,!1))}),[i]),l=p((async(e,t)=>{await(null==i?void 0:i.collapseTop(BE,e,t,!1))}),[i]),u=p((async(e,t)=>{await(null==i?void 0:i.expandLeft(BE,e,t,!1))}),[i]),d=p((async(e,t)=>{await(null==i?void 0:i.expandTop(BE,e,t,!1))}),[i]),f=p((async t=>{if(null!=i&&i.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(BE,t.reduce(((e,t)=>[...e,...Sw(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),m=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 Vt.Dimension:c=[{qPath:`${BE}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case Vt.Measures:if(o)c=l.map(((e,t)=>({qPath:`${BE}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${BE}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Vt.Pivot:c=[{qPath:`${BE}/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]),h=p((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${BE}/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:m,applyIndentModeColumnWidth:h,fetchPages:f})),[a,l,u,d,m,h,f])}const Cw=(e,t,r)=>(n,o)=>{if("P"===n)return WE;const i=t[r+o];return e[i]},ww=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},Rw=m({}),Lw=()=>n(Rw),Iw=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=zE(),{qPivotDataPages:n}=OE();return s((()=>{var o,i,a,l;const s=ww(null!==(o=null===(i=n[0])||void 0===i?void 0:i.qLeft)&&void 0!==o?o:[]),u=ww(null!==(a=null===(l=n[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(Cw(r,t,0)),visibleTopDimensionInfo:u.map(Cw(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:l,nextPageHandler:u}=vw(t,r),c=Ew({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 Ms.jsx(Rw.Provider,{value:d,children:e})},Aw=18,Mw=.75,Dw=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===Nt.Image},Pw=e=>void 0===e?zg:e,kw=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,Tw=e=>kw(e,tr.PixelsDefault),Ow=(e,t)=>kw(e,tr.PercentageDefault)*t/100,_w=(e,t,r)=>{switch(null==t?void 0:t.type){case rr.Pixels:return Tw(t.pixels);case rr.Percentage:return Ow(t.percentage,e);case rr.FitToContent:case rr.Auto:default:return r}},qw=({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===HE)return e+0;const m=r(p),h=!u&&f&&d<s-1?21:0;let g=0;if(n&&o&&i){g=o("-")+i}return Math.max(e,24*l+Aw+h+m+g)}),0),Nw=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*Aw;return Math.max(e,o+t(n.qFallbackTitle))}),0),Fw=(e,t,r,n)=>{const o=100*e/t,i=n*Mw*(o/100),a=r*(o/100);return Math.min(a,i)},jw=(e,t,r,n)=>n*(r/100)*(100*e/t/100),zw=(e,t)=>e.some((e=>e>=t*Mw)),Gw=({layoutService:e,headersData:t,columnWidths:r,tableWidth:n,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:s})=>{let u=[];const c=n*Mw,d=t.data[t.data.length-1][0],p=Math.min(c,r.at(-1)),f=Math.min(c,qw({headers:d,layoutService:e,estimateWidthForDimensionValue:a})),m=Math.min(c,Nw(e.visibleMeasureInfo,i));let h=0;const g=d.findIndex((e=>e.id===HE)),b=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===rr.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+Aw+16:24})({layoutService:e,measureTextForHeader:i,translator:s,headersData:t});if(e.hasPseudoDimOnLeft)if(0===g){const e=Math.max(p,f,m);u=[Math.max(b,e-p),p]}else{const t=Math.min(c,Nw(e.visibleMeasureInfo,l,!0));h=Math.min(c,qw({headers:d.slice(0,g),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const r=Math.max(p,f,h);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=rr.Pixels,y.pixels=o);return[rr.Pixels,rr.Percentage].includes(y.type)||zw(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=zw(e,r);s===rr.Auto&&d&&(o>i?o-=i:i-=o),s===rr.Pixels&&u&&(o=Fw(e[0],l,u,r),i=Fw(e[1],l,u,r)),s===rr.Percentage&&c&&(o=jw(e[0],l,c,r),i=jw(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 $w({tableWidth:e}){const t=e*Mw,{styleService:r,layoutService:n}=zE(),{translator:o}=NE(),{gridSectionsData:{headersData:i}}=Lw(),{measureText:a}=Sb(r.header),{estimateWidth:l,measureText:s}=Sb({...r.dimensionValues,fontWeight:Pw(r.dimensionValues.fontWeight)}),{measureText:c}=Sb({...r.dimensionValues,...r.measureLabels}),d=p(((r,u)=>{const{layout:{qHyperCube:{qNoOfLeftDims:d,topHeadersColumnWidth:p}},visibleMeasureInfo:f,isFullyExpanded:m,isIndentModeEnabled:h,hasPseudoDimOnLeft:g}=n,b=(t=0)=>f.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=c(n)+Aw,a=Math.max(i,t);return Math.max(r,h?a:_w(e,o,a))}),0),v=e=>i.data.reduce(((t,r)=>{const n=r[e];if(!n)return t;if(n.id===HE)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?20:0;return Aw+a(t)+20+n})(n);return Math.max(o,t)}),0);let y=0,x=i.data.at(-1);h&&i.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((o,a)=>{let s=Aw;if((!h||h&&1===i.size.x)&&r&&void 0!==u&&u===o.colIdx)s=h?Math.min(t,r):r;else{let t;o.columnWidthLocation===Vt.Pivot?t=h?void 0:p:o.columnWidthLocation===Vt.Dimension&&({columnWidth:t}=o);let r=0;if(o.isLeftDimension)if(o.id===HE)r=b();else{const e=v(a),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=e,a=n.getDimensionInfo(i);if(Dw(a))return tr.PixelsDefault;const s=!m&&o&&t<d-1?21:0;return Aw+l(r)+s})(o,a);r=Math.max(e,t),h&&!g&&a+1===d&&o.columnWidthLocation===Vt.Dimension&&i.size.x>1&&(r=e)}else o.isLeftDimension||(r=v(a),o.columnWidthLocation===Vt.Measures&&(r=b(r)));h&&1===i.size.x&&(t=n.indentModeColumnWidth),s=h&&!g&&i.size.x>1?r:_w(e,t,r)}return y+=s,s}));return h&&i.size.x>1?Gw({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,m]=u(d);wb((()=>{m(d())}),[d]);const h=p(((e,t)=>{m(d(e,t))}),[d]);return{...f,overrideLeftGridWidth:h}}function Bw({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=zE(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=Lw(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:l}},size:u,visibleMeasureInfo:c}=o,{estimateWidth:d,measureText:f}=Sb(n.measureValues),{estimateWidth:m}=Sb({...n.dimensionValues,fontWeight:Pw(n.dimensionValues.fontWeight)}),h=e-r-1,g=i.at(-1),b=g===WE,v=l.length-a>i.length?21:0,y=s((()=>{const e=b?c:[g],t=u.x/e.length,r=[],n=[];let o=h;const i=(e,n)=>{r[e]=Math.min(tr.PixelsMax,Math.max(tr.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 rr.Pixels:i(t,Tw(o));break;case rr.Percentage:i(t,Ow(a,h));break;case rr.FitToContent:i(t,((e,t,r)=>r?tr.PixelsDefault:Aw+(b?Math.max(d(e),f(t)):Math.max(Math.max(...c.map((e=>d(e.qApprMaxGlyphCount)))),m(e)+v)))(l,s,Dw(e)));break;case rr.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(tr.AutoMinPivot,i)}))}return r}),[b,c,g,u.x,h,d,f,m,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,h),getRightGridColumnWidth:E}}const Ww=`scrollable-container--${Ut.TopGrid}`,Hw=`scrollable-container--${Ut.LeftGrid}`,Vw=`scrollable-container--${Ut.DataGrid}`,Yw=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},Uw=(e,t)=>e>t?Kt.Forward:e<t?Kt.Backward:Kt.None,Kw=()=>{const{layoutService:e}=zE(),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:m}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=u(0),[i,a]=u(0);return g((()=>{(e.current||r.current)&&o(Math.max(Yw(e.current).width,Yw(r.current).width))})),g((()=>{(t.current||r.current)&&a(Math.max(Yw(t.current).height,Yw(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}=OE(),{downloadService:s,viewService:u,layoutService:c}=zE(),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:h,scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v}}=(()=>{const e=c(Kt.None),t=c(Kt.None),r=c({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:p((n=>{if(n instanceof WheelEvent&&(e.current=Uw(n.deltaY,0),t.current=Uw(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=Uw(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=Uw(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=zE();return p((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===Hw&&(e.leftGridScrollLeft=n.scrollLeft),o===Vw&&(e.scrollLeft=n.scrollLeft),o===Ww&&(e.topGridScrollTop=n.scrollTop),o!==Hw&&o!==Vw||(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:h,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:m}}},Xw=()=>{const{layoutService:e}=zE(),{rect:t,pageInfo:r}=OE();return s((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},Jw=({children:e,style:t})=>Ms.jsx("div",{"data-testid":"fullSize",style:t,children:e}),Zw=({children:e,style:t})=>Ms.jsx("div",{"data-section-id":"GRID",style:{display:"grid",...t},children:e}),Qw=e=>e&&`scrollable-container--${e}`,eR=({children:e,style:t,origin:r},n)=>{const{interactions:o}=NE(),i=o.active?t:{overflow:"hidden"};return Ms.jsx("div",{"data-testid":"scrollable","data-key":Qw(r),style:i,ref:n,children:e})};var tR=r.forwardRef(eR);const rR=({children:e,style:t})=>Ms.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,left:0,...t},children:e});var nR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function oR(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||nR(n)&&nR(o)))return!1;var n,o;return!0}function iR(e,t){var r;void 0===t&&(t=oR);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 aR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function lR(e){cancelAnimationFrame(e.id)}function sR(e,t){var r=aR();var n={id:requestAnimationFrame((function o(){aR()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var uR=-1;function cR(e){if(void 0===e&&(e=!1),-1===uR||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),uR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return uR}var dR=null;function pR(e){if(void 0===e&&(e=!1),null===dR||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?dR="positive-descending":(t.scrollLeft=1,dR=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),dR}return dR}var fR=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function mR(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,m=e.getRowStopIndexForStartIndex,h=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=h(n.props,Lr(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Lr(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=iR((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=iR((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 m=r(n.props,t,n._instanceProps),h="rtl"===s;c[f]=o={position:"absolute",left:h?void 0:m,right:h?m: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=iR((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(pR()){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&&lR(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=sR(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Rr(t,e),t.getDerivedStateFromProps=function(e,t){return hR(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,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=cR();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,h,this._instanceProps,x):h,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(pR()){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&&lR(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,m=void 0===f?fR:f,h=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:m({columnIndex:D,data:p,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,D)}));var P=l(this.props,this._instanceProps),k=s(this.props,this._instanceProps);return o(h||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:gr({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:k}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,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),m=i(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=m(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var hR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},gR=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},bR=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},vR=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]},yR=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?xR(e,t,r,i,0,n):SR(e,t,r,Math.max(0,i),n)},xR=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=vR(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},SR=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&vR(e,t,n,r).offset<o;)n+=a,a*=2;return xR(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},ER=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=vR(e,t,r,i),u="column"===e?bR(t,i):gR(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}},CR=mR({getColumnOffset:function(e,t,r){return vR("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return yR("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=vR("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=vR("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:gR,getEstimatedTotalWidth:bR,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return ER("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return ER("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return vR("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return yR("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=vR("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=vR("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}}),wR=function(e,t){return e};function RR(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,Lr(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Lr(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=iR((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=iR((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,m="rtl"===a,h=f?d:0;u[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=iR((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(pR()){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&&lR(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=sR(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Rr(t,e),t.getDerivedStateFromProps=function(e,t){return LR(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?cR():0:s.scrollHeight>s.clientHeight?cR():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(pR()){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&&lR(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?wR:p,m=e.layout,h=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===m,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(h||g||"div",{className:r,onScroll:E,ref:this._outerRefSetter,style:gr({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 LR=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},IR=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]},AR=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=IR(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},MR=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&IR(e,r,t).offset<n;)r+=i,i*=2;return AR(e,t,Math.min(r,o-1),Math.floor(r/2),n)},DR=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},PR=RR({getItemOffset:function(e,t,r){return IR(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:DR,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=IR(e,t,o),p=DR(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?AR(e,t,o,0,r):MR(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=IR(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=IR(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 kR(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 TR=["style"],OR=["style"];function _R(e,t){var r=e.style,n=Cr(e,TR),o=t.style,i=Cr(t,OR);return!kR(r,o)&&!kR(n,i)}const qR=10,NR=(e,t)=>e.current===Kt.Backward?t:0,FR=(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},jR=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,zR=({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(FR(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&jR(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},GR=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===Kt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return zR({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},$R=({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=NR(r,qR),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+qR,l-u),pageTop:o,qHeight:a}})(n,o,r),u=zR({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...GR({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},BR=(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},WR=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,HR=({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(BR(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&WR(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},VR=({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=NR(r,qR),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+qR,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=HR({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===Kt.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=HR({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},YR=async(e,t,r,n,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Kt.None&&(p=VR({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==Kt.None&&(f=$R({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===Kt.None&&a.current===Kt.None&&(p=HR({measureData:r,pageInfo:n,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},UR=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))}}(YR,100),KR=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}(YR,75),XR=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),JR=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{styleService:{grid:{border:l,divider:s}}}=zE();return Ms.jsx("div",{style:{...e,...Yg,...Jg(r,n,l,o),...Qg({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},ZR=({children:e,verticalAlign:t,width:r,right:n})=>Ms.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}),QR=e=>{const{type:t,imageSize:r}=e;return t!==Nt.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"};function eL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tL=(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){eL(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"})),rL=d(tL);function nL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oL=(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){nL(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"})),iL=d(oL),aL=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(er)},lL=(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);"N"===(null==r?void 0:r.ref.qType)&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}};const sL=m({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),uL=()=>n(sL),cL=({children:e,selections:t})=>{const r=function(e){var t,r,n;const{env:o}=NE(),{updatePageInfo:i}=OE(),a=e.isActive(),[l,u]=v(lL,{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:[BE,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=>{const n=t(e);aL(r)||(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(r)||(e=>{var t;return"A"===(null===(t=e.target)||void 0===t?void 0:t.tagName)})(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===ar.Left?n.x:n.y}}})}),[]),m=p((t=>o.flags.isEnabled("CLIENT_IM_6223_PIVOT_RANGE_SELECTION")?async()=>{l.activeSelection&&(e.isActive()||await e.begin([BE]),u({type:"mouseover",payload:{index:t}}))}:void 0),[l.activeSelection,e,o]),h=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===ar.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!h(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)))}),[h,null===(n=l.activeSelection)||void 0===n?void 0:n.clientSelectedCells,l.engineSelectedCells]);return s((()=>({isSelected:g,isActive:a,isLocked:h,createMouseDownHandler:d,createMouseOverHandler:m})),[g,a,h,d,m])}(t);return Ms.jsx(sL.Provider,{value:r,children:e})};var dL;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(dL||(dL={}));const pL={brighter:.5,darker:.3,opacity:.03},fL=(e,{cell:t,styleService:r})=>{if(e===dL.Background||e===dL.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]},mL=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=fL(dL.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?fL(dL.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Lg(i=o,pL)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},hL=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:fL(dL.Color,{cell:e,styleService:t}),gL=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=fL(dL.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?zg:o},bL=({cell:e,styleService:t})=>fL(dL.FontStyle,{cell:e,styleService:t}),vL=({cell:e,styleService:t})=>fL(dL.TextDecoration,{cell:e,styleService:t}),yL=e=>e?"pointer":"default",xL=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},SL=(e,t)=>{if(!e.isLeftColumn||e.representation.type===Nt.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},EL=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n}=zE(),{interactions:o}=NE(),{isActive:i}=uL(),{dataModel:a}=Lw();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!o.active||i||!a,s=hL({cell:e,styleService:n,isCellSelected:r}),u=i?.4:1,c=e.ref.qCanExpand?iL:rL;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,Ms.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",...SL(e,n)},onClick:l?void 0:xL({cell:e,expandOrCollapse:d})})},CL=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},wL=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},RL=({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}}},LL=(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"}},IL=e=>{if("alwaysFit"===e)return"contain"},AL=({representation:e,styleService:t,textStyle:r,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=zE(),t=c(null),{promise:r,resolve:n}=s((()=>ub()),[]);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:m,resolvedImagePosition:h}=e,{overflow:g,...b}=r;return Ms.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==h?void 0:h.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...RL({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})},children:Ms.jsx("img",{src:u,alt:d,style:{width:wL(m),height:CL(m),objectFit:IL(m),objectPosition:LL(m,h),...b},onLoad:l,ref:a})})},ML=(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}},DL={display:"flex",flexDirection:"row",alignItems:"center"},PL={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},kL=(e,t,r,n)=>t?{...PL,...e.nullValues}:r?{...DL,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...DL,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},TL=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...Ug,...!r&&Kg(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?zg:s,fontStyle:u,textDecoration:c}},OL=(e,t,r,n)=>{const{textAlign:o}=t,i=n?"flex-end":"center";var a,l;return e.isNull||r.type!==Nt.Image?ML(o,i):null!==(a=null===(l=r.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:"center"},_L=({cell:e,representation:t,color:r,isNumeric:n,isTotalValueCell:o})=>{const{layoutService:i,styleService:a}=zE(),l=e.isNull?i.getNullValueText():t.text,s=TL(a,r,n,o,e.isNull);return t.type!==Nt.Image||e.isNull?Ms.jsx("span",{style:{padding:4,...s},children:l}):Ms.jsx(AL,{representation:t,styleService:a,textStyle:s,isLeftColumn:!0})},qL=(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},NL="flex-start",FL=(e,t)=>{return e.isNull?NL:t.type===Nt.Image&&"fill"!==t.imageSize?null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.vertical:NL;var r},jL=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const{env:i}=NE(),{pageInfo:a}=OE(),{styleService:l,layoutService:s}=zE(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:f},visibleDimensionsInfo:{visibleLeftDimensionInfo:m,visibleTopDimensionInfo:h}}=Lw(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=zE(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=Lw(),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}}=Lw(),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 XR(o,e.totalDividerIndex)}),[e,r])})(),v=(()=>{const{layoutService:{isIndentModeEnabled:e}}=zE(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=Lw(),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 XR(a,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:y}=n,x=f.grid.at(h.length-1),S=d.grid.at(m.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 Ms.jsx(JR,{style:{...r,background:E},isLastRow:w,isLastColumn:R,showLastBorder:y,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const L=s.hasPseudoDimOnLeft?qL(S,t):qL(x,e),I=s.visibleMeasureInfo[L],A=nw({cell:C.ref,representationProperties:s.isIndentModeEnabled?{type:Nt.Text}:I.representation,attrExprInfoIndex:u.measures[L],env:i}),M=!C.isNull&&g(e,t),D=C.isNull?s.getNullValueText():A.text,P=!C.isNull||!Number.isNaN(+D),k=ow(u.measures[L],C.ref),T={...kL(l,C.isNull,M,k.background),...Jg(w,R,l.grid.border,y),...Qg({bottomDivider:v(t),rightDivider:b(e),borderColor:l.grid.divider}),...Yg,padding:"0px 4px",display:"flex",justifyContent:OL(C,I,A,P)};return Ms.jsx("div",{className:Zt,title:D,style:{...T,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Ms.jsx(ZR,{width:QR(A),verticalAlign:FL(C,A),children:Ms.jsx(_L,{cell:C,representation:A,isNumeric:P,isTotalValueCell:M,color:k.color})})})};var zL=r.memo(jL,_R);const GL=(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()},$L=({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}`},BL={...Vg,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},WL=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:l})=>{const{pageInfo:s}=OE(),{layoutService:u,styleService:{grid:{divider:c},contentCellHeight:d}}=zE(),{dataModel:f,gridSectionsData:{measureData:m}}=Lw(),h={...BL,borderColor:c,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},b=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=OE(),{downloadService:n,viewService:o,layoutService:i}=zE(),{dataModel:a,gridSectionsData:{leftDimensionData:l,topDimensionData:s,measureData:u}}=Lw(),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 m=o.gridWidth+c+(t.current===Kt.None?0:qR),h=o.gridHeight+d+(e.current===Kt.None?0:qR);let g=UR;h*m>1500&&(g=KR),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:l});return wb((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,f,m]),g((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,d]),0===u.size.x?null:Ms.jsx(CR,{"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:m},onItemsRendered:b,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:$L,children:zL})};var HL=h(WL);function VL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const YL=(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){VL(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"})),UL=d(YL),KL=e=>{const[t,r]=u(!1);return wb((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},XL=()=>{const[e,t]=u(!1),{dataModel:r}=Lw(),{interactions:n}=NE(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=KL([r]);return{open:e,setOpen:t,handleOpenMenu:e=>n.active&&!aL(e)&&!o&&t(!0),setIsAdjustingWidth:i}};function JL(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===Bg.Transparent?Ym.WHITE:i,l=ye(e.grid.border),s=ye(a);return s.isInvalid()||l.isInvalid()||1===l.a?e.grid.border:function(e,t,r){return ye(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 ZL=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{var l;const{interactions:s,translator:c}=NE(),{isActive:d}=uL(),{dataModel:p}=Lw(),{styleService:f}=zE(),[,m]=u({});if(!(e.canBeResized&&!!s.active&&!d))return null;const h=JL(f,e);return Ms.jsx(jx,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{m({}),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)*Mw,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 QL(e){return Qv(e)}const eI=e=>e.scrollTop;function tI(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 rI(e){return ol("MuiPaper",e)}il("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 nI=["className","component","elevation","square","variant"],oI=kx("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 gr({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&&gr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${uy("#fff",_x(t.elevation))}, ${uy("#fff",_x(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var iI=t.forwardRef((function(e,t){const r=QL({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Cr(r,nI),u=gr({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return el({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},rI,o)})(u);return Ms.jsx(oI,gr({as:o,ownerState:u,className:cl(c.root,n),ref:t},s))}));var aI=il("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const lI=["center","classes","className"];let sI,uI,cI,dI,pI=e=>e;const fI=Ui(sI||(sI=pI`
102
102
  0% {
103
103
  transform: scale(0);
104
104
  opacity: 0.1;
@@ -108,7 +108,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
108
108
  transform: scale(1);
109
109
  opacity: 0.3;
110
110
  }
111
- `)),gI=Xi(dI||(dI=mI`
111
+ `)),mI=Ui(uI||(uI=pI`
112
112
  0% {
113
113
  opacity: 1;
114
114
  }
@@ -116,7 +116,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
116
116
  100% {
117
117
  opacity: 0;
118
118
  }
119
- `)),bI=Xi(pI||(pI=mI`
119
+ `)),hI=Ui(cI||(cI=pI`
120
120
  0% {
121
121
  transform: scale(1);
122
122
  }
@@ -128,7 +128,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
128
128
  100% {
129
129
  transform: scale(1);
130
130
  }
131
- `)),vI=Ox("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yI=Ox((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=pl(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+i},h=pl(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]),Ps.jsx("span",{className:f,style:m,children:Ps.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(fI||(fI=mI`
131
+ `)),gI=kx("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),bI=kx((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=cl(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+i},h=cl(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]),Ms.jsx("span",{className:f,style:m,children:Ms.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(dI||(dI=pI`
132
132
  opacity: 0;
133
133
  position: absolute;
134
134
 
@@ -171,4 +171,4 @@ 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
171
171
  animation-iteration-count: infinite;
172
172
  animation-delay: 200ms;
173
173
  }
174
- `),sI.rippleVisible,hI,550,(({theme:e})=>e.transitions.easing.easeInOut),sI.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),sI.child,sI.childLeaving,gI,550,(({theme:e})=>e.transitions.easing.easeInOut),sI.childPulsate,bI,(({theme:e})=>e.transitions.easing.easeInOut));var xI=t.forwardRef((function(e,r){const n=tI({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Rr(n,uI),[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=Wa(),m=t.useRef(null),h=t.useRef(null),g=t.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,Ps.jsx(yI,{classes:{ripple:pl(i.ripple,sI.ripple),rippleVisible:pl(i.rippleVisible,sI.rippleVisible),ripplePulsate:pl(i.ripplePulsate,sI.ripplePulsate),child:pl(i.child,sI.child),childLeaving:pl(i.childLeaving,sI.childLeaving),childPulsate:pl(i.childPulsate,sI.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:h.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===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{m.current&&(m.current(),m.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)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{y(e,t)}));m.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]),Ps.jsx(vI,vr({className:pl(sI.root,i.root,a),ref:h},l,{children:Ps.jsx(jc,{component:null,exit:!0,children:s})}))}));function SI(e){return al("MuiButtonBase",e)}var EI=ll("MuiButtonBase",["root","disabled","focusVisible"]);const CI=["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"],wI=Ox("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"},[`&.${EI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),RI=t.forwardRef((function(e,r){const n=tI({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:m,onClick:h,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,k=Rr(n,CI),T=t.useRef(null),O=t.useRef(null),_=za(O,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Qa(),[z,G]=t.useState(!1);u&&z&&G(!1),t.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),T.current.focus()}})),[]);const[$,B]=t.useState(!1);t.useEffect((()=>{B(!0)}),[]);const W=$&&!c&&!u;function H(e,t,r=d){return ja((n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0}))}t.useEffect((()=>{z&&p&&!c&&$&&O.current.pulsate()}),[c,p,z,$]);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&&G(!1),m&&m(e)}),!1),te=ja((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=t.useRef(!1),oe=ja((e=>{p&&!ne.current&&z&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=ja((e=>{p&&" "===e.key&&O.current&&z&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(k.href||k.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(k.href||k.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=za(r,j,T),ue=vr({},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=rl({root:["root",t&&"disabled",r&&"focusVisible"]},SI,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Ps.jsxs(wI,vr({as:ae,className:pl(ce.root,l),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:u?-1:A,type:P},le,k,{children:[a,W?Ps.jsx(xI,vr({ref:_,center:i},M)):null]}))}));var LI=RI;function II(e){return al("MuiTypography",e)}ll("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const AI=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],MI=Ox("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${Pa(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>vr({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}))),DI={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},PI={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},kI=t.forwardRef((function(e,t){const r=tI({props:e,name:"MuiTypography"}),n=(e=>PI[e]||e)(r.color),o=Gv(vr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=DI}=o,f=Rr(o,AI),m=vr({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||DI[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return rl({root:["root",i,"inherit"!==e.align&&`align${Pa(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},II,a)})(m);return Ps.jsx(MI,vr({as:h,ref:t,ownerState:m,className:pl(g.root,a)},f))}));var TI=kI;var OI=t.forwardRef((function(e,r){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=t.useState(null),s=za(t.isValidElement(n)?n.ref:null,r);if(Fa((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),Fa((()=>{if(a&&!i)return Na(r,a),()=>{Na(r,null)}}),[r,a,i]),i){if(t.isValidElement(n)){const e={ref:s};return t.cloneElement(n,e)}return Ps.jsx(t.Fragment,{children:n})}return Ps.jsx(t.Fragment,{children:a?j.createPortal(n,a):a})}));const _I=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],qI={entering:{opacity:1},entered:{opacity:1}},NI=t.forwardRef((function(e,r){const n=nx(),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:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=Tc}=e,y=Rr(e,_I),x=t.useRef(null),S=za(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)=>{rI(e);const r=nI({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(h),I=E((e=>{const t=nI({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(m);return Ps.jsx(v,vr({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,vr({style:vr({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},qI[e],g,l.props.style),ref:S},r))}))}));var FI=NI;function jI(e){return al("MuiBackdrop",e)}ll("MuiBackdrop",["root","invisible"]);const zI=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],GI=Ox("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>vr({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"}))),$I=t.forwardRef((function(e,t){var r,n,o;const i=tI({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=FI,transitionDuration:g}=i,b=Rr(i,zI),v=vr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return rl({root:["root",r&&"invisible"]},jI,t)})(v),x=null!=(r=f.root)?r:c.root;return Ps.jsx(h,vr({in:p,timeout:g},b,{children:Ps.jsx(GI,vr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:pl(y.root,l,null==x?void 0:x.className),ownerState:vr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var BI=$I;var WI=ll("MuiBox",["root"]);const HI=tx(),VI=function(e={}){const{themeId:r,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=ea("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(kv);return t.forwardRef((function(e,t){const l=jv(n),s=Gv(e),{className:u,component:c="div"}=s,d=Rr(s,Bv);return Ps.jsx(a,vr({as:c,ref:t,className:pl(u,i?i(o):o),theme:r&&l[r]||l},d))}))}({themeId:kb,defaultTheme:HI,defaultClassName:WI.root,generateClassName:ol.generate});var YI=VI;function UI(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function KI(e){return parseInt(qa(e).getComputedStyle(e).paddingRight,10)||0}function XI(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&&UI(e,o)}))}function JI(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function ZI(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=_a(e);return t.body===e?qa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=el(_a(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${KI(n)+e}px`;const t=_a(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${KI(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=_a(n).body;else{const t=n.parentElement,r=qa(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 QI=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function eA(e){const t=[],r=[];return Array.from(e.querySelectorAll(QI)).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 tA(){return!0}function rA(e){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=eA,isEnabled:l=tA,open:s}=e,u=t.useRef(!1),c=t.useRef(null),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),m=t.useRef(!1),h=t.useRef(null),g=za(r.ref,h),b=t.useRef(null);t.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),t.useEffect((()=>{if(!s||!h.current)return;const e=_a(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),t.useEffect((()=>{if(!s||!h.current)return;const e=_a(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.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(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.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),m.current=!0};return Ps.jsxs(t.Fragment,{children:[Ps.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),m.current=!0,f.current=e.target;const t=r.props.onFocus;t&&t(e)}}),Ps.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const nA=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&&UI(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);XI(t,e.mount,e.modalRef,n,!0);const o=JI(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=JI(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=ZI(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=JI(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&&UI(e.modalRef,t),XI(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&&UI(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function oA(e){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=nA,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=t.useRef({}),m=t.useRef(null),h=t.useRef(null),g=za(h,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=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},C=ja((()=>{const e=function(e){return"function"==typeof e?e():e}(r)||_a(m.current).body;i.add(S(),e),h.current&&E()})),w=t.useCallback((()=>i.isTopModal(S())),[i]),R=ja((e=>{m.current=e,e&&(d&&w()?E():h.current&&UI(h.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=fl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=vr({},r,t);return vr({role:"presentation"},n,{onKeyDown:I(n),ref:g})},getBackdropProps:(e={})=>vr({"aria-hidden":!0},e,{onClick:A(e),open:d}),getTransitionProps:()=>({onEnter:Ta((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Ta((()=>{v(!0),s&&s(),a&&L()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function iA(e){return al("MuiModal",e)}ll("MuiModal",["root","hidden","backdrop"]);const aA=["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"],lA=Ox("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})=>vr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),sA=Ox(BI,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),uA=t.forwardRef((function(e,r){var n,o,i,a,l,s;const u=tI({name:"MuiModal",props:e}),{BackdropComponent:c=sA,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,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=Rr(u,aA),k=vr({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:T,getBackdropProps:O,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=oA(vr({},k,{rootRef:r})),z=vr({},k,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return rl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},iA,n)})(z),$={};if(void 0===m.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(o=null==D?void 0:D.root)?o:b.Root)?n:lA,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=gl({elementType:B,externalSlotProps:H,externalForwardedProps:P,getSlotProps:T,additionalProps:{ref:r,as:g},ownerState:z,className:pl(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),U=gl({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>O(vr({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:pl(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return L||A||j&&!F?Ps.jsx(OI,{ref:q,container:h,disablePortal:E,children:Ps.jsxs(B,vr({},Y,{children:[!R&&c?Ps.jsx(W,vr({},U)):null,Ps.jsx(rA,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:A,children:t.cloneElement(m,$)})]}))}):null}));var cA=uA;var dA=ll("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const pA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function fA(e){return`scale(${e}, ${e**2})`}const mA={entering:{opacity:1,transform:fA(1)},entered:{opacity:1,transform:"none"}},hA="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),gA=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:m,timeout:h="auto",TransitionComponent:g=Tc}=e,b=Rr(e,pA),v=Wa(),y=t.useRef(),x=nx(),S=t.useRef(null),E=za(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)=>{rI(e);const{duration:r,delay:n,easing:o}=nI({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(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:hA?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}=nI({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(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:hA?o:.666*o,delay:hA?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=fA(.75),d&&d(e)})),M=C(p);return Ps.jsx(g,vr({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:A,onExited:M,onExiting:I,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,r)=>t.cloneElement(i,vr({style:vr({opacity:0,transform:fA(.75),visibility:"exited"!==e||l?void 0:"hidden"},mA[e],m,i.props.style),ref:E},r))}))}));gA.muiSupportAuto=!0;var bA=gA;function vA(e){return al("MuiLink",e)}var yA=ll("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const xA={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var SA=({theme:e,ownerState:t})=>{const r=(e=>xA[e]||e)(t.color),n=zb(e,`palette.${r}`,!1)||t.color,o=zb(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:dy(n,.4)};const EA=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],CA=Ox(TI,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Pa(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>vr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&vr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:SA({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"},[`&.${yA.focusVisible}`]:{outline:"auto"}}))),wA=t.forwardRef((function(e,r){const n=tI({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=Rr(n,EA),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=Qa(),[v,y]=t.useState(!1),x=za(r,b),S=vr({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return rl({root:["root",`underline${Pa(o)}`,"button"===r&&"button",n&&"focusVisible"]},vA,t)})(S);return Ps.jsx(CA,vr({color:i,className:pl(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(xA).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))}));var RA=wA;var LA=t.createContext({});function IA(e){return al("MuiList",e)}ll("MuiList",["root","padding","dense","subheader"]);const AA=["children","className","component","dense","disablePadding","subheader"],MA=Ox("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})=>vr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var DA=t.forwardRef((function(e,r){const n=tI({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Rr(n,AA),d=t.useMemo((()=>({dense:l})),[l]),p=vr({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return rl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},IA,t)})(p);return Ps.jsx(LA.Provider,{value:d,children:Ps.jsxs(MA,vr({as:a,className:pl(f.root,i),ref:r,ownerState:p},c,{children:[u,o]}))})}));var PA=ll("MuiListItemIcon",["root","alignItemsFlexStart"]);var kA=ll("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const TA=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function OA(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function _A(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function qA(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 NA(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")&&qA(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var FA=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=Rr(e,TA),f=t.useRef(null),m=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Fa((()=>{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=`${el(_a(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=za(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 Ps.jsx(DA,vr({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=_a(t).activeElement;if("ArrowDown"===r)e.preventDefault(),NA(t,n,u,s,OA);else if("ArrowUp"===r)e.preventDefault(),NA(t,n,u,s,_A);else if("Home"===r)e.preventDefault(),NA(t,null,u,s,OA);else if("End"===r)e.preventDefault(),NA(t,null,u,s,_A);else if(1===r.length){const o=m.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&&qA(n,o);o.previousKeyMatched&&(l||NA(t,n,!1,s,OA,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function jA(e){return al("MuiPopover",e)}ll("MuiPopover",["root","paper"]);const zA=["onEntering"],GA=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],$A=["slotProps"];function BA(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function WA(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function HA(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function VA(e){return"function"==typeof e?e():e}const YA=Ox(cA,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),UA=Ox(lI,{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 KA=t.forwardRef((function(e,r){var n,o,i;const a=tI({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=bA,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,L=Rr(a.TransitionProps,zA),I=Rr(a,GA),A=null!=(n=null==x?void 0:x.paper)?n:v,M=t.useRef(),D=za(M,A.ref),P=vr({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),k=(e=>{const{classes:t}=e;return rl({root:["root"],paper:["paper"]},jA,t)})(P),T=t.useCallback((()=>{if("anchorPosition"===d)return c;const e=VA(s),t=(e&&1===e.nodeType?e:_a(M.current).body).getBoundingClientRect();return{top:t.top+BA(t,u.vertical),left:t.left+WA(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),O=t.useCallback((e=>({vertical:BA(e,S.vertical),horizontal:WA(e,S.horizontal)})),[S.horizontal,S.vertical]),_=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=O(t);if("none"===d)return{top:null,left:null,transformOrigin:HA(r)};const n=T();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=qa(VA(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:HA(r)}}),[s,d,T,O,g]),[q,N]=t.useState(b),F=t.useCallback((()=>{const e=M.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);t.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=Oa((()=>{F()})),t=qa(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=m||(s?_a(VA(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:YA,$=null!=(i=null==y?void 0:y.paper)?i:UA,B=gl({elementType:$,externalSlotProps:vr({},A,{style:q?A.style:vr({},A.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:pl(k.paper,null==A?void 0:A.className)}),W=gl({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:pl(k.root,f)}),{slotProps:H}=W,V=Rr(W,$A);return Ps.jsx(G,vr({},V,!cl(G)&&{slotProps:H,disableScrollLock:R},{children:Ps.jsx(E,vr({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:Ps.jsx($,vr({},B,{children:p}))}))}))}));function XA(e){return al("MuiMenu",e)}ll("MuiMenu",["root","paper","list"]);const JA=["onEntering"],ZA=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],QA={vertical:"top",horizontal:"right"},eM={vertical:"top",horizontal:"left"},tM=Ox(KA,{shouldForwardProp:e=>Tx(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rM=Ox(UA,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),nM=Ox(FA,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var oM=t.forwardRef((function(e,r){var n,o;const i=tI({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Rr(i.TransitionProps,JA),S=Rr(i,ZA),E=(()=>{const e=t.useContext(Jv);return null!=e&&e})(),C=vr({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return rl({root:["root"],paper:["paper"],list:["list"]},XA,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:rM,M=null!=(o=y.paper)?o:f,D=gl({elementType:v.root,externalSlotProps:y.root,ownerState:C,className:[w.root,s]}),P=gl({elementType:A,externalSlotProps:M,ownerState:C,className:w.paper});return Ps.jsx(tM,vr({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?QA:eM,slots:{paper:A,root:v.root},slotProps:{root:D,paper:P},open:p,ref:r,transitionDuration:h,TransitionProps:vr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:m,children:Ps.jsx(nM,vr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:L,autoFocus:a&&(-1===I||u),autoFocusItem:R,variant:b},c,{className:pl(w.list,c.className),children:l}))}))}));function iM(e){return al("MuiMenuItem",e)}var aM=ll("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const lM=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],sM=Ox(LI,{shouldForwardProp:e=>Tx(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})=>vr({},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"}},[`&.${aM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${aM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${aM.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:dy(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})`:dy(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${aM.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${aM.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${dA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${dA.inset}`]:{marginLeft:52},[`& .${kA.root}`]:{marginTop:0,marginBottom:0},[`& .${kA.inset}`]:{paddingLeft:36},[`& .${PA.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&vr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${PA.root} svg`]:{fontSize:"1.25rem"}}))));var uM=t.forwardRef((function(e,r){const n=tI({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=Rr(n,lM),m=t.useContext(LA),h=t.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=t.useRef(null);Fa((()=>{o&&g.current&&g.current.focus()}),[o]);const b=vr({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return vr({},a,rl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},iM,a))})(n),y=za(g,r);let x;return n.disabled||(x=void 0!==d?d:-1),Ps.jsx(LA.Provider,{value:h,children:Ps.jsx(sM,vr({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:pl(v.focusVisible,u),className:pl(v.root,p)},f,{ownerState:b,classes:v}))})}));const cM=Ox(YI,{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}}))),dM=Ox("div")({position:"absolute",left:0,bottom:0}),pM=Ox("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...Yg,justifyContent:null!=e?e:Yg.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),fM=Ox("div")((()=>({...Yg}))),mM=Ox("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}))),hM=Ox(oM)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),gM=Ox(uM,{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}}}))),bM=Ox("span")({textOverflow:"ellipsis",overflow:"hidden"}),vM=Ox("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),yM={[KS.Sorting]:!0,[KS.Selections]:!0,[KS.Searching]:!0},xM=({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:m,layoutService:h}=$E(),{app:g,interactions:b,embed:v,translator:y,env:x,model:S}=jE(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:I,background:A,hoverBackground:M,activeBackground:D}=m.header,P=c(null),{shouldShowLockIcon:k,shouldShowMenuIcon:T}=a,{open:O,setOpen:_,handleOpenMenu:q,setIsAdjustingWidth:N}=ZL(),F={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},j={embed:v,listboxRef:f,sortCriteria:h.searchSortFromDimension&&e.isDim?h.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},z={app:g,qStateName:h.layout.qStateName},{labelTextAlign:G}=null!==(p=h.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==p?p:{},$=PL(G,"flex-start");return Ps.jsxs(cM,{className:Zt,title:e.label,interactions:b,background:O?D:A,hoverBackground:M,shouldShowMenuIcon:T,isDimension:e.isDim,style:{...t,...Kg,...eb(e,o,r,n,m.grid.border),color:I},"data-testid":"title-cell",onClick:q,children:[Ps.jsxs(pM,{children:[k&&Ps.jsx(fM,{children:Ps.jsx(XL,{height:12})}),Ps.jsx(mM,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:$,children:Ps.jsx("span",{style:Xg,children:e.label})})]}),e.isDim&&Ps.jsxs(Ps.Fragment,{children:[Ps.jsx(ZS,{headerData:e,translator:y,anchorRef:P,open:O,setOpen:_,interactions:b,menuAvailabilityFlags:yM,sortRelatedArgs:F,searchRelatedArgs:j,selectionRelatedArgs:z,shouldShowMenuIcon:T,env:x,model:S&&"setActiveField"in S?S:void 0}),Ps.jsx(dM,{ref:f}),Ps.jsx(dM,{ref:P})]}),Ps.jsx(eI,{cellInfo:{...e,isLeftColumn:!0},columnWidth:l,isLastColumn:n,overrideLeftGridWidth:s,setIsAdjustingWidth:N,shouldApplyIndentModeColumnWidth:u,tableWidth:d})]})},SM=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=$E();return e>0&&t>0?Ps.jsx("div",{style:{...Ug,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 EM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CM=(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){EM(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"})),wM=d(CM);function RM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const LM=(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){RM(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"})),IM=d(LM),AM=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{styleService:n}=$E(),{interactions:o,translator:i}=jE(),{isActive:a}=dL(),{dataModel:l}=Aw(),{setIsAdjustingWidth:s}=JL([l]);if(!(!!o.active&&!a))return null;const u=QL(n,{isLeftColumn:!0});return Ps.jsx(Gx,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:u,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*Pw))},confirmWidthCallback:n=>{var o;if(n.type===rr.FitToContent)return void l.applyIndentModeColumnWidth({type:rr.Auto});const i=Math.min(null!==(o=n.pixels)&&void 0!==o?o:t,e*Pw);r(i),l.applyIndentModeColumnWidth({type:rr.Pixels,pixels:i})},setIsAdjustingWidth:s,accessibilityRelatedArgs:{translator:i,columnLabel:i.get("SNPivotTable.IndentMode.Rows")}})};function MM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const DM=(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){MM(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"})),PM=d(DM),kM=({cell:e,changeSortOrder:t})=>{const r=c(null),n=c(null),{app:o,interactions:i,embed:a,translator:l,env:s,model:u}=jE(),{layoutService:d}=$E(),{open:p,setOpen:f,handleOpenMenu:m}=ZL();return Ps.jsxs(gM,{component:"div",onClick:m,isActive:p,children:[Ps.jsx(bM,{children:e.label}),Ps.jsxs(vM,{className:"indent-mode-dropdown-more",visible:p,children:[Ps.jsx(PM,{}),e.isDim&&Ps.jsxs(Ps.Fragment,{children:[Ps.jsx(ZS,{headerData:e,translator:l,anchorRef:r,open:p,setOpen:f,interactions:i,menuAvailabilityFlags:yM,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:d.layout.qStateName},shouldShowMenuIcon:!1,env:s,model:u&&"setActiveField"in u?u:void 0}),Ps.jsx(dM,{ref:n}),Ps.jsx(dM,{ref:r})]})]})]})},TM=({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)===YE,l=e+1<r.length&&(null===(i=r[e+1])||void 0===i?void 0:i.id)===YE;return!(n&&a&&l)&&((null==t?void 0:t.id)!==YE&&e<r.length-1)},OM=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=$E(),{interactions:a,translator:l}=jE(),{dataModel:s,gridSectionsData:{headersData:d}}=Aw(),[p,f]=u(!1),m=c(null),{headerCellHeight:h}=i,{color:g,background:b,hoverBackground:v,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w}=i.header,{isAdjustingWidth:R}=JL([s]),L=e=>e.stopPropagation(),I={height:h,gridColumn:`1 / span ${d.size.x}`,gridRow:d.size.y,zIndex:d.size.x-0};return Ps.jsxs(cM,{isDimension:!0,background:p?y:b,interactions:a,hoverBackground:v,style:{...I,...Kg,color:g},onClick:e=>a.active&&!sL(e)&&!R&&f(!p),"data-testid":"indentModeHeaderCellWrapper",children:[Ps.jsxs(pM,{justifyContent:"flex-start",children:[Ps.jsx(mM,{fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w,justifyContent:"flex-start",children:Ps.jsx("span",{style:Xg,children:l.get("SNPivotTable.IndentMode.Rows")})}),p?Ps.jsx(IM,{}):Ps.jsx(wM,{}),Ps.jsx(dM,{ref:m})]}),Ps.jsx(hM,{open:p,anchorEl:m.current,children:e.map(((r,n)=>[r&&(null==r?void 0:r.id)!==YE&&Ps.jsx("li",{role:"presentation",onClick:L,onKeyDown:L,children:Ps.jsx(kM,{cell:r,changeSortOrder:t})}),TM({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===d.size.y})&&Ps.jsx(Kx,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),Ps.jsx(AM,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},_M={display:"grid",width:"fit-content"},qM=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:l})=>{const{layoutService:s}=$E(),{gridSectionsData:{headersData:u}}=Aw();return Ps.jsxs("div",{"data-testid":"HEADER_GRID",style:{..._M,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&Ps.jsx(SM,{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(Ps.jsx(OM,{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(Ps.jsx(xM,{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 NM=h(qM);const FM=(e,t,r,n)=>{const{layoutService:o}=$E();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])},jM=(e,t)=>{Lb((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},zM=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},GM=(e,t,r)=>{var n;const o=r?"flex-start":"center";var i,a;if(e.representation.type===Nt.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 PL(r,o)}const{textAlign:s}=null!==(n=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==n?n:{};return PL(s,o)},$M=()=>{},BM=({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:m}=$E(),{interactions:h}=jE(),{isLocked:g,createMouseDownHandler:b,createMouseOverHandler:v}=dL(),{showLastBorder:y}=o,x=g(n)||n.isLockedByDimension,S=!(x||!h.active||!h.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||c),E=S?b(d,(e=>zM(e,o))):void 0,C=S?v(d):void 0;return Ps.jsx("div",{className:Zt,title:h.passive?t:void 0,style:{...r,...Qg(a,l,f.grid.border,y),...tb({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:f.grid.divider}),...Kg,padding:"0px 4px",cursor:SL(S),background:gL({styleService:f,isCellSelected:u,cell:n,isCellLocked:x}),zIndex:s?void 0:m.size.x-n.x,justifyContent:GM(n,m,s),display:"flex",...m.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(p=n.indentLevel)&&void 0!==p?p:0))}},"aria-hidden":"true",onMouseDown:E,onMouseOver:C,onKeyUp:$M,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})},WM=e=>e.stopPropagation(),HM=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:WM,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}),VM=({href:e,text:t,interactions:n,color:o})=>r.createElement(gf,HM({href:e,text:t,interactions:n,color:o}),t),YM=null==G?void 0:G();null==YM||YM.use(z),null==YM||YM.renderer.prio(["canvas"]);const UM=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,KM=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Ps.jsxs("span",{children:[Ps.jsx(RA,{...HM({href:e,text:t,interactions:n,color:o}),children:null!=r&&r.maskedValue?null==r?void 0:r.maskedValue:null==r?void 0:r.originalValue}),!!r&&UM(r)]}),XM=({children:e,textStyle:t})=>Ps.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),JM=({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>{const{isActive:o}=dL(),{interactions:i}=jE();let a=n?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...Xg,...Jg(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:bL({cell:e,styleService:t,isCellSelected:r}),fontWeight:vL({cell:e,styleService:t}),fontStyle:yL({cell:e,styleService:t}),textDecoration:xL({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n});if(e.representation.type===Nt.Image&&!e.isTotal)return Ps.jsx(DL,{representation:e.representation,isLeftColumn:n,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand});if(e.representation.type===Nt.Link&&!o&&!e.isTotal){const t=n&&e.representation.labelStructure?KM:VM;a=Ps.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:i,color:e.expressionColor.color})}return Ps.jsx(XM,{textStyle:l,children:a})},ZM=e=>{const t=e.isLeftColumn?"flex-start":"center";var r;return e.representation.type!==Nt.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical},QM=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=$E(),{isSelected:i}=dL(),{isLeftColumn:a=!1,showLastBorder:l,itemCount:s,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=JL([r]),f=zM(e,r),m=a?e===s-1:u,h=a?u:e===s-1,g=ZR(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Ps.jsx(QR,{style:{...t,background:r},index:e,isLastRow:m,isLastColumn:h,showLastBorder:l,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return Ps.jsxs(BM,{text:f.representation.text,reactWindowStyle:t,isLeftColumn:a,isLastRow:m,isLastColumn:h,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Ps.jsxs(eL,{verticalAlign:ZM(f),width:tL(f.representation),right:f.isLeftColumn?void 0:4,children:[Ps.jsx(wL,{isLeftColumn:a,isCellSelected:b,cell:f}),Ps.jsx(JM,{isLeftColumn:a,isCellSelected:b,cell:f,styleService:n})]}),Ps.jsx(eI,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Vt.Measures:Vt.Dimension},columnWidth:t.width,isLastColumn:h,setIsAdjustingWidth:p})]})};var eD=r.memo(QM,NR);const tD=({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()},rD=(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}},nD=(e,t)=>r=>{e.current&&(e.current[t]=r)},oD={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Ug},iD={overflow:"hidden",willChange:"auto",flexShrink:0},aD=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i}=qE(),{layoutService:a,styleService:{contentCellHeight:l,grid:{divider:s}}}=$E(),{qSize:u}=a.layout.qHyperCube,{gridSectionsData:{leftDimensionData:c},visibleDimensionsInfo:{visibleLeftDimensionInfo:d}}=Aw();jM(e,c),FM(e,t,r,l);const p=i.rowsOnCurrentPage*l,f={...oD,borderColor:s,width:n.reduce(((e,t)=>e+t),0)};return Ps.jsx("div",{style:f,"data-section-id":"LEFT_GRID",children:c.grid.map(((t,s)=>{const f=s===c.columnCount-1,m=tC(d[s]),{itemCount:h,estimatedItemSize:g,listValues:b}=rD(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 Ps.jsx(TR,{ref:nD(e,s),style:{...iD,flexGrow:f?1:0},height:r,width:n[s],itemCount:h,itemSize:v,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:f,itemCount:h,showLastBorder:o,listValues:b,totalDividerIndex:c.totalDividerIndex},itemKey:BL,estimatedItemSize:g,children:eD},m)}))})};var lD=h(aD);const sD={overflow:"hidden",willChange:"auto"},uD={...Ug,borderWidth:"0px 0px 0px 1px"},cD=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{layoutService:a,styleService:{grid:{divider:l},headerCellHeight:s}}=$E(),{gridSectionsData:{headersData:u,topDimensionData:c}}=Aw(),d={...uD,borderColor:l,height:n};jM(e,c),FM(e,r,n,s);const p=a.size.x*i();return 0===c.rowCount?Ps.jsx("div",{style:{width:r,height:n,...uD}}):Ps.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:m}=rD(n,p,a.size.x,s),h=(({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=h?tC(h):`empty ${l}`;return Ps.jsx(TR,{ref:nD(e,l),style:sD,height:t(),width:r,itemCount:d,itemSize:tD({list:n,listValues:m,isLastRow:s,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:s,itemCount:d,showLastBorder:o,listValues:m,totalDividerIndex:c.totalDividerIndex},itemKey:BL,estimatedItemSize:f,children:eD},g)}))})};var dD=h(cD);const pD=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=$E(),r=Zw(),n=(()=>{const{model:e}=jE(),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:m},scrollbarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=Jw(),{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}=$E(),{gridSectionsData:{headersData:i}}=Aw(),{measureText:a}=Cb(o.header),l=Ww({tableWidth:e}),s=Hw({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)+Dw;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:h,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:L,headerGridDims:I,topGridDims:A,leftGridDims:M,dataGridDims:D,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:k}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const l=Zw(),{pageInfo:s}=qE(),{gridSectionsData:{headersData:u,topDimensionData:c}}=Aw(),d=Math.min(l.height*Pw,Math.max(l.height*Pw-25,l.height-t-a)),p=l.width*Pw,f=s.rowsOnCurrentPage*t,m=Math.max(u.size.y,c.rowCount,1),h=e*m,g=e*m,b=Math.min(p,r),v=l.width-p,y=Math.max(v,l.width-b),x=Math.min(d,h,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=h+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:h,horizontalScrollbarHeight:g}}),T=p((()=>e),[e]),O=p((()=>t),[t]);return(()=>{const{downloadService:e}=$E();f((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Ps.jsxs(eR,{style:L,children:[Ps.jsx("div",{style:{overflow:"hidden"},ref:o,children:Ps.jsx(NM,{tableWidth:r.width,leftGridWidth:v,columnWidths:x,getHeaderCellsIconsVisibilityStatus:w,rowHight:e,height:I.height,changeSortOrder:n,overrideLeftGridWidth:R})}),Ps.jsx(nR,{style:k.topGrid,origin:Ut.TopGrid,ref:i,children:Ps.jsx(Qw,{style:A.fullSizeWrapper,children:Ps.jsx(oR,{style:A.stickyWrapper,children:Ps.jsx(dD,{topGridRef:s,rowHightCallback:T,...A.self,showLastBorder:{right:E,bottom:!1},getRightGridColumnWidth:C})})})}),Ps.jsx(nR,{style:k.leftGrid,origin:Ut.LeftGrid,ref:a,children:Ps.jsx(Qw,{style:M.fullSizeWrapper,children:Ps.jsx(oR,{style:M.stickyWrapper,children:Ps.jsx(lD,{leftGridRef:u,...M.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),Ps.jsx(nR,{style:k.dataGrid,origin:Ut.DataGrid,ref:l,children:Ps.jsx(Qw,{style:D.fullSizeWrapper,children:Ps.jsx(oR,{style:D.stickyWrapper,children:Ps.jsx(YL,{dataGridRef:c,rowHightCallback:O,...D.self,showLastBorder:{right:E,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:m})})})})]})},fD=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=jE(),{pageInfo:o,updatePageInfo:i,rect:a}=qE(),{layoutService:l}=$E(),{layout:s,hasData:u}=l;return Ps.jsxs(Ps.Fragment,{children:[u&&Ps.jsx(pD,{}),Ps.jsx(WE,{}),Ps.jsx(OE,{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})]})},mD={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,gD=14,bD=16,vD=24,yD=3,xD=300,SD=400,ED=600,CD=700,wD={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};wr(mD.GREYSCALE_0,.05),wr(mD.GREEN_PALE,.5),wr(mD.BLUE_PALE,.5),wr(mD.GREEN_PALE,.5),wr(mD.BLUE_PALE,.5),wr(mD.GREEN_PALE,.5),wr(mD.BLUE_PALE,.5);var RD;function LD(){return LD=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},LD.apply(null,arguments)}wr(mD.GREEN_PALE,.5),wr(mD.BLUE_PALE,.5),wr(mD.GREEN_PALE,.5),wr(mD.BLUE_PALE,.5);var ID,AD=function(e){return t.createElement("svg",LD({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),RD||(RD=t.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function MD(){return MD=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},MD.apply(null,arguments)}var DD=function(e){return t.createElement("svg",MD({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),ID||(ID=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 PD({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 kD=(e={})=>r.createElement(PD,{...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"}))),TD=(e={})=>r.createElement(PD,{...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"})))),OD=(e={})=>r.createElement(PD,{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"})))),_D=(e={})=>r.createElement(PD,{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"}))),qD=({className:e})=>r.createElement(PD,{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"})))))),ND=(e={})=>r.createElement(PD,{...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:mD.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const FD={MuiAccordion:{styleOverrides:{root:{backgroundColor:mD.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:mD.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:r.createElement(AD,{"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 ${mD.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:mD.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${mD.MISC_FOCUS_BORDER}`,borderRadius:yD,backgroundColor:mD.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 ${mD.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:mD.WHITE,color:mD.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:yD},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${mD.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:mD.GREYSCALE_0_15,backgroundColor:mD.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:mD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${mD.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:mD.GREEN_PALE},"&:active":{backgroundColor:mD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:mD.GREEN_PALE,boxShadow:`0 0 0 3px ${Hv(mD.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:mD.BLUE_PALE},"&:active":{backgroundColor:mD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:mD.BLUE_PALE,boxShadow:`0 0 0 3px ${Hv(mD.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:yD,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:mD.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${mD.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:mD.GREYSCALE_0_15,backgroundColor:mD.GREYSCALE_100_60,"&:active":{backgroundColor:mD.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:mD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${mD.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:mD.PURPLE,"&.Mui-focusVisible":{borderColor:mD.PURPLE,boxShadow:`0 0 0 3px ${Hv(mD.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:mD.GREEN,"&.Mui-focusVisible":{borderColor:mD.GREEN,boxShadow:`0 0 0 3px ${Hv(mD.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:mD.BLUE,"&.Mui-focusVisible":{borderColor:mD.BLUE,boxShadow:`0 0 0 3px ${Hv(mD.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:mD.ORANGE,"&.Mui-focusVisible":{borderColor:mD.ORANGE,boxShadow:`0 0 0 3px ${Hv(mD.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:mD.RED,"&.Mui-focusVisible":{borderColor:mD.RED,boxShadow:`0 0 0 3px ${Hv(mD.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:mD.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:mD.PURPLE_PALE},"&:active":{backgroundColor:mD.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:mD.PURPLE_PALE,boxShadow:`0 0 0 3px ${Hv(mD.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:mD.GREEN_PALE},"&:active":{backgroundColor:mD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:mD.GREEN_PALE,boxShadow:`0 0 0 3px ${Hv(mD.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:mD.BLUE_PALE},"&:active":{backgroundColor:mD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:mD.BLUE_PALE,boxShadow:`0 0 0 3px ${Hv(mD.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:mD.ORANGE_PALE},"&:active":{backgroundColor:mD.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:mD.ORANGE_PALE,boxShadow:`0 0 0 3px ${Hv(mD.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:mD.RED_PALE},"&:active":{backgroundColor:mD.RED_DARK},"&.Mui-focusVisible":{borderColor:mD.RED_PALE,boxShadow:`0 0 0 3px ${Hv(mD.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:mD.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:mD.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:yD,boxShadow:`inset 0 0 0 2px ${mD.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:r.createElement(DD,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:hD,borderRadius:yD,color:mD.TEXT_PRIMARY,backgroundColor:mD.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:mD.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${mD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:mD.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:mD.GREYSCALE_0_05,color:mD.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:mD.GREEN,borderColor:mD.GREEN},"&.MuiChip-outlinedInfo":{color:mD.BLUE,borderColor:mD.BLUE},"&.MuiChip-outlinedWarning":{color:mD.ORANGE,borderColor:mD.ORANGE},"&.MuiChip-outlinedError":{color:mD.RED,borderColor:mD.RED}},outlined:{border:`solid 1px ${mD.GREYSCALE_0_15}`,backgroundColor:mD.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:yD,boxShadow:"none",backgroundColor:mD.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:mD.GREEN,borderColor:mD.GREEN},outlinedSecondary:{color:mD.BLUE,borderColor:mD.BLUE},label:{fontFamily:wD.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:r.createElement(DD,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:r.createElement(AD,{"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:yD},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:yD,fontSize:gD,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:mD.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${mD.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:mD.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:mD.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:mD.GREYSCALE_0_05}}},popupIndicator:{borderRadius:yD,border:`solid 1px ${mD.GREYSCALE_0_15}`,color:mD.GREYSCALE_0_60,marginRight:0,width:vD,height:vD},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${mD.GREYSCALE_0_15}`},clearIndicator:{borderRadius:yD,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:mD.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:gD}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:hD,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:mD.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:mD.GREYSCALE_25,fontSize:hD,fontFamily:wD.FONT_FAMILY,fontWeight:ED,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:mD.TEXT_PRIMARY},"&.Mui-error":{color:mD.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:mD.TEXT_SECONDARY,content:"'(optional)'",fontWeight:SD,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:mD.TEXT_SECONDARY,content:"'(required)'",fontWeight:SD,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:gD,lineHeight:"16px",backgroundColor:mD.WHITE,borderRadius:yD,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${mD.GREYSCALE_0_05}`,borderColor:mD.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${mD.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${mD.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${mD.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${mD.RED}`,boxShadow:`0px 0px 0px 1px ${mD.RED}, inset 0 2px 0 0 ${mD.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${mD.GREYSCALE_0_10}`,borderColor:mD.GREYSCALE_0_10,backgroundColor:mD.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:mD.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:mD.GREYSCALE_0_15,borderRadius:yD,boxShadow:`inset 0 2px 0 0 ${mD.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>r.createElement(AD,{...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:mD.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:mD.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:mD.GREYSCALE_0_03},"&:active":{backgroundColor:mD.GREYSCALE_0_10},"&:focus":{backgroundColor:mD.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${mD.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${mD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:mD.GREYSCALE_0_30,"&:hover":{backgroundColor:mD.GREYSCALE_0_0,borderColor:mD.GREYSCALE_0_15},"& ~svg":{color:mD.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${mD.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:yD}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:mD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${mD.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:mD.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:gD,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:ED,color:mD.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:ED}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${mD.GREYSCALE_0_15}, 0px 0px 0px 1px ${mD.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:r.createElement(OD,null),checkedIcon:r.createElement(_D,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:mD.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${mD.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:mD.GREEN_PALE,boxShadow:`0 0 0 3px ${Hv(mD.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:mD.BLUE_PALE,boxShadow:`0 0 0 3px ${Hv(mD.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:mD.GREYSCALE_0_20}},"&.Mui-disabled":{fill:mD.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:r.createElement(ND,null),checkedIcon:r.createElement(kD,null),indeterminateIcon:r.createElement(TD,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:yD,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:mD.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:mD.GREYSCALE_0_55,color:mD.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:mD.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:mD.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:mD.GREYSCALE_0_55,"&:hover":{color:mD.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:mD.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:mD.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:gD,color:mD.TEXT_PRIMARY,lineHeight:"16px",fontWeight:ED},secondary:{fontSize:hD,color:mD.GREYSCALE_45,fontWeight:SD,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:gD,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:gD,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:mD.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:hD,borderBottom:`solid 1px ${mD.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:gD,color:mD.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:mD.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:mD.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:mD.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:mD.RED}}},"&.Mui-focusVisible":{backgroundColor:mD.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:mD.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:mD.GREEN,height:"24px","&.Mui-disabled":{color:mD.GREYSCALE_0_15}},rail:{backgroundColor:mD.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${mD.GREYSCALE_0_05}`,borderRadius:yD,boxShadow:`inset 0px 0px 0px 1px ${mD.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${mD.GREYSCALE_0_05}`,borderRadius:yD},thumb:{height:"16px",width:"16px",borderRadius:yD,backgroundColor:mD.WHITE,boxShadow:`0px 1px 2px 0px ${mD.GREYSCALE_0_15}, 0px 0px 0px 1px ${mD.GREYSCALE_0_05}`,"&:hover":{borderRadius:yD,boxShadow:`0 2px 4px 0 ${mD.GREYSCALE_0_30}, 0 0 0 1px ${mD.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${mD.GREYSCALE_0_15}, 0 0 0 1px ${mD.GREYSCALE_0_06}, 0 0 0 2px ${mD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${mD.GREYSCALE_0_15}, 0 0 0 1px ${mD.GREYSCALE_0_06}, 0 0 0 2px ${mD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:mD.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:mD.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:mD.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:mD.GREYSCALE_0_15},markLabel:{color:mD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:mD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:mD.WHITE,color:mD.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:mD.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:mD.GREEN_PALE,boxShadow:`0 0 0 3px ${Hv(mD.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:mD.BLUE_PALE,boxShadow:`0 0 0 3px ${Hv(mD.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:mD.GREYSCALE_0_15,borderRadius:yD},thumb:{height:"16px",width:"16px",borderRadius:yD,backgroundColor:mD.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:gD,fontWeight:ED,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${mD.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${mD.MISC_FOCUS_BORDER}`,backgroundColor:mD.GREYSCALE_0_03,borderRadius:yD},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:mD.GREYSCALE_25,"&.Mui-selected":{color:mD.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:gD,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:yD,"&:hover":{backgroundColor:`${mD.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 ${mD.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${mD.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:yD,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:mD.GREYSCALE_0_05},"&:hover":{backgroundColor:`${mD.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${mD.GREYSCALE_85}`,borderRight:`1px solid ${mD.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:ED,backgroundColor:mD.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:mD.GREYSCALE_98,borderBottom:`1px solid ${mD.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${mD.GREYSCALE_85}`,borderTop:`1px solid ${mD.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:mD.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:mD.GREYSCALE_0_05,"&:hover":{backgroundColor:mD.GREYSCALE_0_03}},"&&:hover":{backgroundColor:mD.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>r.createElement(qD,{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 ${mD.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:gD,borderRadius:yD,padding:"7px 16px",border:`1px solid ${mD.GREYSCALE_0_15}`,backgroundColor:mD.GREYSCALE_100_60,color:mD.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:mD.GREYSCALE_0_10,border:`1px solid ${mD.GREYSCALE_0_30}`},"&:hover":{backgroundColor:mD.GREYSCALE_0_03,border:`1px solid ${mD.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:mD.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${mD.MISC_FOCUS_BORDER}`,border:`1px solid ${mD.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:mD.GREYSCALE_25,backgroundColor:mD.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:mD.GREYSCALE_0_10,border:`1px solid ${mD.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:hD,height:24,width:24,padding:7},sizeLarge:{fontSize:bD,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:gD,borderRadius:yD}}},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:mD.GREYSCALE_20},tooltip:{backgroundColor:mD.GREYSCALE_20,fontSize:hD,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var jD=e=>FD;const zD={mode:"light",primary:{ultraLight:mD.GREEN_ULTRA_LIGHT,light:mD.GREEN_PALE,main:mD.GREEN,dark:mD.GREEN_DARK,extraDark:mD.GREEN_EXTRA_DARK,contrastText:mD.WHITE},secondary:{ultraLight:mD.BLUE_ULTRA_LIGHT,light:mD.BLUE_PALE,main:mD.BLUE,dark:mD.BLUE_DARK,extraDark:mD.BLUE_EXTRA_DARK,contrastText:mD.WHITE},error:{ultraLight:mD.RED_ULTRA_LIGHT,light:mD.RED_PALE,main:mD.RED,dark:mD.RED_DARK,extraDark:mD.RED_EXTRA_DARK,contrastText:mD.WHITE},warning:{ultraLight:mD.ORANGE_ULTRA_LIGHT,light:mD.ORANGE_PALE,main:mD.ORANGE,dark:mD.ORANGE_DARK,extraDark:mD.ORANGE_EXTRA_DARK,contrastText:mD.WHITE},success:{ultraLight:mD.GREEN_ULTRA_LIGHT,light:mD.GREEN_PALE,main:mD.GREEN,dark:mD.GREEN_DARK,extraDark:mD.GREEN_EXTRA_DARK,contrastText:mD.WHITE},info:{ultraLight:mD.BLUE_ULTRA_LIGHT,light:mD.BLUE_PALE,main:mD.BLUE,dark:mD.BLUE_DARK,extraDark:mD.BLUE_EXTRA_DARK,contrastText:mD.WHITE},text:{primary:mD.TEXT_PRIMARY,secondary:mD.TEXT_SECONDARY,disabled:mD.GREYSCALE_0_30},action:{hover:mD.GREYSCALE_0_03,hoverOpacity:.03,selected:mD.GREYSCALE_0_05,selectedOpacity:.05,focus:mD.MISC_FOCUS_BORDER},amethyst:{ultraLight:mD.WHITE,main:mD.PURPLE,light:mD.PURPLE_PALE,dark:mD.PURPLE_DARK,extraDark:mD.GREYSCALE_0_0,contrastText:mD.WHITE},background:{paper:mD.WHITE,default:mD.GREYSCALE_95},divider:mD.GREYSCALE_0_15},GD=e=>zD,$D=(e="light")=>({components:jD(),palette:GD(),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:gD,fontWeightLight:xD,fontWeightRegular:SD,fontWeightMedium:ED,fontWeightBold:CD,htmlFontSize:gD,fontFamily:wD.FONT_FAMILY,button:{fontWeight:ED,fontSize:gD,textTransform:"none"},body1:{fontSize:bD,lineHeight:"24px"},body2:{fontSize:gD,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:vD,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:bD,fontWeight:ED,lineHeight:"16px"},h6:{fontSize:gD,fontWeight:ED,lineHeight:"16px"},caption:{color:mD.TEXT_SECONDARY},subtitle1:{fontSize:gD,color:mD.TEXT_SECONDARY},subtitle2:{fontSize:hD,color:mD.TEXT_SECONDARY}},shape:{borderRadius:yD}});const BD=(e,{selections:t,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){var t;const r=$D();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),tx({...r,direction:e})}("ltr");e.render(Ps.jsx(r.StrictMode,{children:Ps.jsx(qx,{theme:a,children:Ps.jsx(zE,{...i,children:Ps.jsx(NE,{...n,children:Ps.jsx(pL,{selections:t,children:Ps.jsx(BE,{...o,children:Ps.jsx(Mw,{children:Ps.jsx(fD,{})})})})})})})}))};var WD,HD,VD,YD;!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"}(WD||(WD={})),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"}(HD||(HD={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(VD||(VD={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(YD||(YD={}));const UD=e=>e?`${parseInt(e,10)}px`:void 0,KD=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?Hg.Transparent:r}},XD=(e,t)=>+(parseInt(e,10)*Wg*t+8).toFixed(2),JD=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?$g:"normal",ZD=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",QD=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",eP=({fontStyle:e,fontWeight:t,fontSize:r,fontFamily:n})=>t?`${e} ${t} ${r} ${n}`:`${e} ${r} ${n}`,tP=(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=y((()=>{var e;return null==r||null===(e=r.qHyperCubeDef.qDimensions)||void 0===e?void 0:e.map((e=>e.qDef.qSortCriterias))}),[r]);return y((()=>(({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:m,qMeasureInfo:h,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,Bg),y:Math.min(e.qHyperCube.qSize.qcy,v)},x=m.slice(0,f),S=e=>x.some((t=>t===e)),E=S(VE),C=new Map(m.map((e=>{var t;return[null!==(t=g[e])&&void 0!==t?t:VE,e]}))),w=h.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:h.findIndex((e=>e===w[r]))},getDimensionInfo:e=>e===VE?VE: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"),indentModeFeatures:{isLinksSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS")},indentModeColumnWidth:null!==(s=e.qHyperCube.indentModeColumnWidth)&&void 0!==s?s:{type:rr.Auto,pixels:tr.PixelsDefault,percentage:tr.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])},rP=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=mb(e);return t.current=e,t})(Ew(o));return xb((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(Bg,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(HE,Cw(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),oP=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:nP({rowsPerPage:r,totalRowCount:e,page:t})}),iP=15,aP=({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-iP,0),u=Math.max(l+o-iP,l,0),c=Bg-s,d=l+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=Ew(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=Cw(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(HE,[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 lP={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 sP=()=>{const e=A(),t=e.language();return y((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(lP).forEach((t=>{e.add(lP[t])}))}}(e)),[e]),{translator:e,language:t}},uP=e=>{const{flags:t}=e,r=M(),n=(e=>{const t=y((()=>wb(e)),[e]);return C((()=>()=>t.unmount()),[t]),t})(r),o=D(),i=P(),a=k(),l=T(),s=O(),u=_(),c=hb(),[d,p]=((e,t)=>xb((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(i,o),f=tP(o,t,d),m=q(),h=yb(o,r),{translator:g,language:b}=sP(),{pageInfo:v,updatePageInfo:x}=((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]=E((()=>{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,...oP(n.qcy,a,i)}}));return C((()=>{l((t=>({...t,...oP(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]),C((()=>{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)=>y((()=>((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),R=aP({rect:N(),layoutService:f,viewService:w,model:i,pageInfo:v}),[L,I]=rP({model:i,layoutService:f,viewService:w,pageInfo:v,rect:R}),A=y((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,m,h,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[WD.LineClamp])&&void 0!==i?i:oe(HD.Grid,VD.Grid,YD.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==ne?void 0:ne[WD.ColumnLineClamp])&&void 0!==l?l:oe(HD.Grid,VD.Grid,YD.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=KD(e,null==J?void 0:J[WD.Background]))&&void 0!==u?u:oe(HD.Dimension,VD.LabelName,YD.BackgroundColor))&&void 0!==s?s:Hg.Transparent,se={header:{fontSize:null!==(c=null!==(d=UD(null==J?void 0:J[WD.FontSize]))&&void 0!==d?d:oe(HD.Dimension,VD.LabelName,YD.FontSize))&&void 0!==c?c:zg,fontFamily:null!==(p=null!==(f=null==J?void 0:J[WD.FontFamily])&&void 0!==f?f:oe(HD.Dimension,VD.LabelName,YD.FontFamily))&&void 0!==p?p:Gg,fontWeight:JD(null==J?void 0:J[WD.FontStyle],$g),fontStyle:ZD(null==J?void 0:J[WD.FontStyle]),textDecoration:QD(null==J?void 0:J[WD.FontStyle]),color:null!==(m=null!==(h=KD(e,null==J?void 0:J[WD.FontColor]))&&void 0!==h?h:oe(HD.Dimension,VD.LabelName,YD.FontColor))&&void 0!==m?m:Km.TEXT,background:le,hoverBackground:Ag(le,nr),activeBackground:Ag(le,or)},dimensionValues:{fontSize:null!==(g=null!==(b=UD(null==Z?void 0:Z[WD.FontSize]))&&void 0!==b?b:oe(HD.Dimension,VD.LabelValue,YD.FontSize))&&void 0!==g?g:zg,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[WD.FontFamily])&&void 0!==y?y:oe(HD.Dimension,VD.LabelValue,YD.FontFamily))&&void 0!==v?v:Gg,fontWeight:JD(null==Z?void 0:Z[WD.FontStyle],void 0),fontStyle:ZD(null==Z?void 0:Z[WD.FontStyle]),textDecoration:QD(null==Z?void 0:Z[WD.FontStyle]),color:null!==(x=null!==(S=KD(e,null==Z?void 0:Z[WD.FontColor]))&&void 0!==S?S:oe(HD.Dimension,VD.LabelValue,YD.FontColor))&&void 0!==x?x:Km.TEXT,background:null!==(E=null!==(C=KD(e,null==Z?void 0:Z[WD.Background]))&&void 0!==C?C:oe(HD.Dimension,VD.LabelValue,YD.BackgroundColor))&&void 0!==E?E:Hg.Transparent},measureValues:{fontSize:null!==(w=null!==(R=UD(null==Q?void 0:Q[WD.FontSize]))&&void 0!==R?R:oe(HD.Measure,VD.LabelValue,YD.FontSize))&&void 0!==w?w:zg,fontFamily:null!==(L=null!==(I=null==Q?void 0:Q[WD.FontFamily])&&void 0!==I?I:oe(HD.Measure,VD.LabelValue,YD.FontFamily))&&void 0!==L?L:Gg,fontWeight:JD(null==Q?void 0:Q[WD.FontStyle],"normal"),fontStyle:ZD(null==Q?void 0:Q[WD.FontStyle]),textDecoration:QD(null==Q?void 0:Q[WD.FontStyle]),color:null!==(A=null!==(M=KD(e,null==Q?void 0:Q[WD.FontColor]))&&void 0!==M?M:oe(HD.Measure,VD.LabelValue,YD.FontColor))&&void 0!==A?A:Hg.FontSecondary,background:null!==(D=null!==(P=KD(e,null==Q?void 0:Q[WD.Background]))&&void 0!==P?P:oe(HD.Measure,VD.LabelValue,YD.BackgroundColor))&&void 0!==D?D:Hg.Transparent},measureLabels:{fontWeight:JD(null==ee?void 0:ee[WD.FontStyle],"normal"),fontStyle:ZD(null==ee?void 0:ee[WD.FontStyle]),textDecoration:QD(null==ee?void 0:ee[WD.FontStyle]),color:null!==(k=null!==(T=KD(e,null==ee?void 0:ee[WD.FontColor]))&&void 0!==T?T:oe(HD.Measure,VD.LabelName,YD.FontColor))&&void 0!==k?k:Hg.FontSecondary,background:null!==(O=null!==(_=KD(e,null==ee?void 0:ee[WD.Background]))&&void 0!==_?_:oe(HD.Measure,VD.LabelName,YD.BackgroundColor))&&void 0!==O?O:Hg.Transparent},totalValues:{fontWeight:JD(null==te?void 0:te[WD.FontStyle],$g),fontStyle:ZD(null==te?void 0:te[WD.FontStyle]),textDecoration:QD(null==te?void 0:te[WD.FontStyle]),color:null!==(q=null!==(N=KD(e,null==te?void 0:te[WD.FontColor]))&&void 0!==N?N:oe(HD.Total,VD.LabelValue,YD.FontColor))&&void 0!==q?q:Km.TEXT,background:null!==(F=null!==(j=KD(e,null==te?void 0:te[WD.Background]))&&void 0!==j?j:oe(HD.Total,VD.LabelValue,YD.BackgroundColor))&&void 0!==F?F:Hg.Transparent},nullValues:{fontWeight:JD(null==re?void 0:re[WD.FontStyle],"normal"),fontStyle:ZD(null==re?void 0:re[WD.FontStyle]),textDecoration:QD(null==re?void 0:re[WD.FontStyle]),color:null!==(z=null!==(G=KD(e,null==re?void 0:re[WD.FontColor]))&&void 0!==G?G:oe(HD.Null,VD.LabelValue,YD.FontColor))&&void 0!==z?z:Km.TEXT,background:null!==($=null!==(B=KD(e,null==re?void 0:re[WD.Background]))&&void 0!==B?B:oe(HD.Null,VD.LabelValue,YD.BackgroundColor))&&void 0!==$?$:Hg.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(H=KD(e,null==ne?void 0:ne[WD.Border]))&&void 0!==H?H:oe(HD.Grid,VD.Grid,YD.BorderColor))&&void 0!==W?W:Hg.DividerLight,divider:null!==(V=null!==(Y=KD(e,null==ne?void 0:ne[WD.Divider]))&&void 0!==Y?Y:oe(HD.Grid,VD.Divider,YD.BorderColor))&&void 0!==V?V:Hg.DividerDark,background:null!==(U=null!==(K=KD(e,null==ne?void 0:ne[WD.Background]))&&void 0!==K?K:oe(HD.Grid,VD.Grid,YD.BackgroundColor))&&void 0!==U?U:Hg.Transparent}};return se.headerCellHeight=Math.max(XD(se.header.fontSize,ae),XD(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(XD(se.measureValues.fontSize,ie),XD(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=XD(se.dimensionValues.fontSize,1),se.selectedColors=Ig({desiredColor:se.dimensionValues.color,theme:e,flags:r}),se})(h,f,t)),[h,f,t]),F=(e=>y((()=>[...new Set([eP(e.header),eP(e.dimensionValues),eP({...e.dimensionValues,...e.measureLabels}),eP({...e.dimensionValues,...e.nullValues}),eP({...e.dimensionValues,...e.totalValues}),eP(e.measureValues),eP({...e.measureValues,...e.nullValues}),eP({...e.measureValues,...e.totalValues})])]),[e]))(A),j=(e=>{const[t,r]=S((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return r?(console.warn("Failed to load font:",r),!0):!!t})(F);Pb(),C((()=>{!I&&i&&R&&m&&w&&f&&A&&!!L&&!p&&j&&BD(n,{selections:m,baseObjects:{rect:R,pageInfo:v,qPivotDataPages:L,updatePageInfo:x},nebulaObjects:{env:e,app:a,model:i,embed:l,theme:h,keyboard:s,translator:g,interactions:u},coreServices:{styleService:A,viewService:w,layoutService:f,downloadService:c}})}),[i,a,R,u,m,w,f,c,I,L,A,n,j,g,b,v,x,d,p,l,s,h,e])},cP={version:"3.17.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:[]},dP=()=>({...cP,qHyperCubeDef:{...cP.qHyperCubeDef,qIndentMode:!1}})}}}));
174
+ `),aI.rippleVisible,fI,550,(({theme:e})=>e.transitions.easing.easeInOut),aI.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),aI.child,aI.childLeaving,mI,550,(({theme:e})=>e.transitions.easing.easeInOut),aI.childPulsate,hI,(({theme:e})=>e.transitions.easing.easeInOut));var vI=t.forwardRef((function(e,r){const n=QL({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Cr(n,lI),[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=$a(),m=t.useRef(null),h=t.useRef(null),g=t.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,Ms.jsx(bI,{classes:{ripple:cl(i.ripple,aI.ripple),rippleVisible:cl(i.rippleVisible,aI.rippleVisible),ripplePulsate:cl(i.ripplePulsate,aI.ripplePulsate),child:cl(i.child,aI.child),childLeaving:cl(i.childLeaving,aI.childLeaving),childPulsate:cl(i.childPulsate,aI.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:h.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===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{m.current&&(m.current(),m.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)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{y(e,t)}));m.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]),Ms.jsx(gI,gr({className:cl(aI.root,i.root,a),ref:h},l,{children:Ms.jsx(Nc,{component:null,exit:!0,children:s})}))}));function yI(e){return ol("MuiButtonBase",e)}var xI=il("MuiButtonBase",["root","disabled","focusVisible"]);const SI=["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"],EI=kx("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"},[`&.${xI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),CI=t.forwardRef((function(e,r){const n=QL({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:m,onClick:h,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,k=Cr(n,SI),T=t.useRef(null),O=t.useRef(null),_=Fa(O,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Ja(),[z,G]=t.useState(!1);u&&z&&G(!1),t.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),T.current.focus()}})),[]);const[$,B]=t.useState(!1);t.useEffect((()=>{B(!0)}),[]);const W=$&&!c&&!u;function H(e,t,r=d){return Na((n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0}))}t.useEffect((()=>{z&&p&&!c&&$&&O.current.pulsate()}),[c,p,z,$]);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&&G(!1),m&&m(e)}),!1),te=Na((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=t.useRef(!1),oe=Na((e=>{p&&!ne.current&&z&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=Na((e=>{p&&" "===e.key&&O.current&&z&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(k.href||k.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(k.href||k.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=Fa(r,j,T),ue=gr({},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=el({root:["root",t&&"disabled",r&&"focusVisible"]},yI,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Ms.jsxs(EI,gr({as:ae,className:cl(ce.root,l),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:u?-1:A,type:P},le,k,{children:[a,W?Ms.jsx(vI,gr({ref:_,center:i},M)):null]}))}));var wI=CI;function RI(e){return ol("MuiTypography",e)}il("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const LI=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],II=kx("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${Ma(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>gr({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}))),AI={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},MI={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},DI=t.forwardRef((function(e,t){const r=QL({props:e,name:"MuiTypography"}),n=(e=>MI[e]||e)(r.color),o=jv(gr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=AI}=o,f=Cr(o,LI),m=gr({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||AI[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return el({root:["root",i,"inherit"!==e.align&&`align${Ma(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},RI,a)})(m);return Ms.jsx(II,gr({as:h,ref:t,ownerState:m,className:cl(g.root,a)},f))}));var PI=DI;var kI=t.forwardRef((function(e,r){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=t.useState(null),s=Fa(t.isValidElement(n)?n.ref:null,r);if(qa((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),qa((()=>{if(a&&!i)return _a(r,a),()=>{_a(r,null)}}),[r,a,i]),i){if(t.isValidElement(n)){const e={ref:s};return t.cloneElement(n,e)}return Ms.jsx(t.Fragment,{children:n})}return Ms.jsx(t.Fragment,{children:a?j.createPortal(n,a):a})}));const TI=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],OI={entering:{opacity:1},entered:{opacity:1}},_I=t.forwardRef((function(e,r){const n=tx(),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:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=Pc}=e,y=Cr(e,TI),x=t.useRef(null),S=Fa(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)=>{eI(e);const r=tI({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(h),I=E((e=>{const t=tI({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(m);return Ms.jsx(v,gr({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,gr({style:gr({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},OI[e],g,l.props.style),ref:S},r))}))}));var qI=_I;function NI(e){return ol("MuiBackdrop",e)}il("MuiBackdrop",["root","invisible"]);const FI=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],jI=kx("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>gr({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"}))),zI=t.forwardRef((function(e,t){var r,n,o;const i=QL({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=qI,transitionDuration:g}=i,b=Cr(i,FI),v=gr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return el({root:["root",r&&"invisible"]},NI,t)})(v),x=null!=(r=f.root)?r:c.root;return Ms.jsx(h,gr({in:p,timeout:g},b,{children:Ms.jsx(jI,gr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:cl(y.root,l,null==x?void 0:x.className),ownerState:gr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var GI=zI;var $I=il("MuiBox",["root"]);const BI=Qy(),WI=function(e={}){const{themeId:r,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Zi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Dv);return t.forwardRef((function(e,t){const l=Nv(n),s=jv(e),{className:u,component:c="div"}=s,d=Cr(s,Gv);return Ms.jsx(a,gr({as:c,ref:t,className:cl(u,i?i(o):o),theme:r&&l[r]||l},d))}))}({themeId:Db,defaultTheme:BI,defaultClassName:$I.root,generateClassName:rl.generate});var HI=WI;function VI(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function YI(e){return parseInt(Oa(e).getComputedStyle(e).paddingRight,10)||0}function UI(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&&VI(e,o)}))}function KI(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function XI(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Ta(e);return t.body===e?Oa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Za(Ta(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${YI(n)+e}px`;const t=Ta(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${YI(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Ta(n).body;else{const t=n.parentElement,r=Oa(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 JI=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ZI(e){const t=[],r=[];return Array.from(e.querySelectorAll(JI)).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 QI(){return!0}function eA(e){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=ZI,isEnabled:l=QI,open:s}=e,u=t.useRef(!1),c=t.useRef(null),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),m=t.useRef(!1),h=t.useRef(null),g=Fa(r.ref,h),b=t.useRef(null);t.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),t.useEffect((()=>{if(!s||!h.current)return;const e=Ta(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),t.useEffect((()=>{if(!s||!h.current)return;const e=Ta(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.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(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.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),m.current=!0};return Ms.jsxs(t.Fragment,{children:[Ms.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),m.current=!0,f.current=e.target;const t=r.props.onFocus;t&&t(e)}}),Ms.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const tA=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&&VI(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);UI(t,e.mount,e.modalRef,n,!0);const o=KI(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=KI(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=XI(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=KI(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&&VI(e.modalRef,t),UI(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&&VI(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function rA(e){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=tA,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=t.useRef({}),m=t.useRef(null),h=t.useRef(null),g=Fa(h,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=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},C=Na((()=>{const e=function(e){return"function"==typeof e?e():e}(r)||Ta(m.current).body;i.add(S(),e),h.current&&E()})),w=t.useCallback((()=>i.isTopModal(S())),[i]),R=Na((e=>{m.current=e,e&&(d&&w()?E():h.current&&VI(h.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=dl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=gr({},r,t);return gr({role:"presentation"},n,{onKeyDown:I(n),ref:g})},getBackdropProps:(e={})=>gr({"aria-hidden":!0},e,{onClick:A(e),open:d}),getTransitionProps:()=>({onEnter:Pa((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Pa((()=>{v(!0),s&&s(),a&&L()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function nA(e){return ol("MuiModal",e)}il("MuiModal",["root","hidden","backdrop"]);const oA=["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"],iA=kx("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})=>gr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),aA=kx(GI,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lA=t.forwardRef((function(e,r){var n,o,i,a,l,s;const u=QL({name:"MuiModal",props:e}),{BackdropComponent:c=aA,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,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=Cr(u,oA),k=gr({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:T,getBackdropProps:O,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=rA(gr({},k,{rootRef:r})),z=gr({},k,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return el({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},nA,n)})(z),$={};if(void 0===m.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(o=null==D?void 0:D.root)?o:b.Root)?n:iA,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=ml({elementType:B,externalSlotProps:H,externalForwardedProps:P,getSlotProps:T,additionalProps:{ref:r,as:g},ownerState:z,className:cl(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),U=ml({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>O(gr({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:cl(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return L||A||j&&!F?Ms.jsx(kI,{ref:q,container:h,disablePortal:E,children:Ms.jsxs(B,gr({},Y,{children:[!R&&c?Ms.jsx(W,gr({},U)):null,Ms.jsx(eA,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:A,children:t.cloneElement(m,$)})]}))}):null}));var sA=lA;var uA=il("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const cA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function dA(e){return`scale(${e}, ${e**2})`}const pA={entering:{opacity:1,transform:dA(1)},entered:{opacity:1,transform:"none"}},fA="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),mA=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:m,timeout:h="auto",TransitionComponent:g=Pc}=e,b=Cr(e,cA),v=$a(),y=t.useRef(),x=tx(),S=t.useRef(null),E=Fa(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)=>{eI(e);const{duration:r,delay:n,easing:o}=tI({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(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:fA?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}=tI({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(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:fA?o:.666*o,delay:fA?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=dA(.75),d&&d(e)})),M=C(p);return Ms.jsx(g,gr({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:A,onExited:M,onExiting:I,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,r)=>t.cloneElement(i,gr({style:gr({opacity:0,transform:dA(.75),visibility:"exited"!==e||l?void 0:"hidden"},pA[e],m,i.props.style),ref:E},r))}))}));mA.muiSupportAuto=!0;var hA=mA;function gA(e){return ol("MuiLink",e)}var bA=il("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const vA={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var yA=({theme:e,ownerState:t})=>{const r=(e=>vA[e]||e)(t.color),n=Fb(e,`palette.${r}`,!1)||t.color,o=Fb(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:uy(n,.4)};const xA=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],SA=kx(PI,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ma(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>gr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&gr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:yA({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"},[`&.${bA.focusVisible}`]:{outline:"auto"}}))),EA=t.forwardRef((function(e,r){const n=QL({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=Cr(n,xA),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=Ja(),[v,y]=t.useState(!1),x=Fa(r,b),S=gr({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return el({root:["root",`underline${Ma(o)}`,"button"===r&&"button",n&&"focusVisible"]},gA,t)})(S);return Ms.jsx(SA,gr({color:i,className:cl(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(vA).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))}));var CA=EA;var wA=t.createContext({});function RA(e){return ol("MuiList",e)}il("MuiList",["root","padding","dense","subheader"]);const LA=["children","className","component","dense","disablePadding","subheader"],IA=kx("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})=>gr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var AA=t.forwardRef((function(e,r){const n=QL({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Cr(n,LA),d=t.useMemo((()=>({dense:l})),[l]),p=gr({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return el({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},RA,t)})(p);return Ms.jsx(wA.Provider,{value:d,children:Ms.jsxs(IA,gr({as:a,className:cl(f.root,i),ref:r,ownerState:p},c,{children:[u,o]}))})}));var MA=il("MuiListItemIcon",["root","alignItemsFlexStart"]);var DA=il("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const PA=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function kA(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function TA(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function OA(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 _A(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")&&OA(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var qA=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=Cr(e,PA),f=t.useRef(null),m=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qa((()=>{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=`${Za(Ta(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=Fa(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 Ms.jsx(AA,gr({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Ta(t).activeElement;if("ArrowDown"===r)e.preventDefault(),_A(t,n,u,s,kA);else if("ArrowUp"===r)e.preventDefault(),_A(t,n,u,s,TA);else if("Home"===r)e.preventDefault(),_A(t,null,u,s,kA);else if("End"===r)e.preventDefault(),_A(t,null,u,s,TA);else if(1===r.length){const o=m.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&&OA(n,o);o.previousKeyMatched&&(l||_A(t,n,!1,s,kA,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function NA(e){return ol("MuiPopover",e)}il("MuiPopover",["root","paper"]);const FA=["onEntering"],jA=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],zA=["slotProps"];function GA(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function $A(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function BA(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function WA(e){return"function"==typeof e?e():e}const HA=kx(sA,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),VA=kx(iI,{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 YA=t.forwardRef((function(e,r){var n,o,i;const a=QL({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=hA,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,L=Cr(a.TransitionProps,FA),I=Cr(a,jA),A=null!=(n=null==x?void 0:x.paper)?n:v,M=t.useRef(),D=Fa(M,A.ref),P=gr({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),k=(e=>{const{classes:t}=e;return el({root:["root"],paper:["paper"]},NA,t)})(P),T=t.useCallback((()=>{if("anchorPosition"===d)return c;const e=WA(s),t=(e&&1===e.nodeType?e:Ta(M.current).body).getBoundingClientRect();return{top:t.top+GA(t,u.vertical),left:t.left+$A(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),O=t.useCallback((e=>({vertical:GA(e,S.vertical),horizontal:$A(e,S.horizontal)})),[S.horizontal,S.vertical]),_=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=O(t);if("none"===d)return{top:null,left:null,transformOrigin:BA(r)};const n=T();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Oa(WA(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:BA(r)}}),[s,d,T,O,g]),[q,N]=t.useState(b),F=t.useCallback((()=>{const e=M.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);t.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=ka((()=>{F()})),t=Oa(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=m||(s?Ta(WA(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:HA,$=null!=(i=null==y?void 0:y.paper)?i:VA,B=ml({elementType:$,externalSlotProps:gr({},A,{style:q?A.style:gr({},A.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:cl(k.paper,null==A?void 0:A.className)}),W=ml({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:cl(k.root,f)}),{slotProps:H}=W,V=Cr(W,zA);return Ms.jsx(G,gr({},V,!sl(G)&&{slotProps:H,disableScrollLock:R},{children:Ms.jsx(E,gr({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:Ms.jsx($,gr({},B,{children:p}))}))}))}));function UA(e){return ol("MuiMenu",e)}il("MuiMenu",["root","paper","list"]);const KA=["onEntering"],XA=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],JA={vertical:"top",horizontal:"right"},ZA={vertical:"top",horizontal:"left"},QA=kx(YA,{shouldForwardProp:e=>Px(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eM=kx(VA,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),tM=kx(qA,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var rM=t.forwardRef((function(e,r){var n,o;const i=QL({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Cr(i.TransitionProps,KA),S=Cr(i,XA),E=(()=>{const e=t.useContext(Kv);return null!=e&&e})(),C=gr({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return el({root:["root"],paper:["paper"],list:["list"]},UA,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:eM,M=null!=(o=y.paper)?o:f,D=ml({elementType:v.root,externalSlotProps:y.root,ownerState:C,className:[w.root,s]}),P=ml({elementType:A,externalSlotProps:M,ownerState:C,className:w.paper});return Ms.jsx(QA,gr({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?JA:ZA,slots:{paper:A,root:v.root},slotProps:{root:D,paper:P},open:p,ref:r,transitionDuration:h,TransitionProps:gr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:m,children:Ms.jsx(tM,gr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:L,autoFocus:a&&(-1===I||u),autoFocusItem:R,variant:b},c,{className:cl(w.list,c.className),children:l}))}))}));function nM(e){return ol("MuiMenuItem",e)}var oM=il("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const iM=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],aM=kx(wI,{shouldForwardProp:e=>Px(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})=>gr({},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"}},[`&.${oM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:uy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${oM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:uy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${oM.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:uy(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})`:uy(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${oM.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${oM.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${uA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${uA.inset}`]:{marginLeft:52},[`& .${DA.root}`]:{marginTop:0,marginBottom:0},[`& .${DA.inset}`]:{paddingLeft:36},[`& .${MA.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&gr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${MA.root} svg`]:{fontSize:"1.25rem"}}))));var lM=t.forwardRef((function(e,r){const n=QL({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=Cr(n,iM),m=t.useContext(wA),h=t.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=t.useRef(null);qa((()=>{o&&g.current&&g.current.focus()}),[o]);const b=gr({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return gr({},a,el({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},nM,a))})(n),y=Fa(g,r);let x;return n.disabled||(x=void 0!==d?d:-1),Ms.jsx(wA.Provider,{value:h,children:Ms.jsx(aM,gr({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:cl(v.focusVisible,u),className:cl(v.root,p)},f,{ownerState:b,classes:v}))})}));const sM=kx(HI,{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}}))),uM=kx("div")({position:"absolute",left:0,bottom:0}),cM=kx("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...Hg,justifyContent:null!=e?e:Hg.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),dM=kx("div")((()=>({...Hg}))),pM=kx("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}))),fM=kx(rM)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),mM=kx(lM,{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}}}))),hM=kx("span")({textOverflow:"ellipsis",overflow:"hidden"}),gM=kx("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),bM={[YS.Sorting]:!0,[YS.Selections]:!0,[YS.Searching]:!0},vM=({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:m,layoutService:h}=zE(),{app:g,interactions:b,embed:v,translator:y,env:x,model:S}=NE(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:I,background:A,hoverBackground:M,activeBackground:D}=m.header,P=c(null),{shouldShowLockIcon:k,shouldShowMenuIcon:T}=a,{open:O,setOpen:_,handleOpenMenu:q,setIsAdjustingWidth:N}=XL(),F={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},j={embed:v,listboxRef:f,sortCriteria:h.searchSortFromDimension&&e.isDim?h.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},z={app:g,qStateName:h.layout.qStateName},{labelTextAlign:G}=null!==(p=h.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==p?p:{},$=ML(G,"flex-start");return Ms.jsxs(sM,{className:Zt,title:e.label,interactions:b,background:O?D:A,hoverBackground:M,shouldShowMenuIcon:T,isDimension:e.isDim,style:{...t,...Yg,...Zg(e,o,r,n,m.grid.border),color:I},"data-testid":"title-cell",onClick:q,children:[Ms.jsxs(cM,{children:[k&&Ms.jsx(dM,{children:Ms.jsx(UL,{height:12})}),Ms.jsx(pM,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:$,children:Ms.jsx("span",{style:Ug,children:e.label})})]}),e.isDim&&Ms.jsxs(Ms.Fragment,{children:[Ms.jsx(XS,{headerData:e,translator:y,anchorRef:P,open:O,setOpen:_,interactions:b,menuAvailabilityFlags:bM,sortRelatedArgs:F,searchRelatedArgs:j,selectionRelatedArgs:z,shouldShowMenuIcon:T,env:x,model:S&&"setActiveField"in S?S:void 0}),Ms.jsx(uM,{ref:f}),Ms.jsx(uM,{ref:P})]}),Ms.jsx(ZL,{cellInfo:{...e,isLeftColumn:!0},columnWidth:l,isLastColumn:n,overrideLeftGridWidth:s,setIsAdjustingWidth:N,shouldApplyIndentModeColumnWidth:u,tableWidth:d})]})},yM=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=zE();return e>0&&t>0?Ms.jsx("div",{style:{...Vg,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 xM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const SM=(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){xM(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"})),EM=d(SM);function CM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wM=(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){CM(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"})),RM=d(wM),LM=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{styleService:n}=zE(),{interactions:o,translator:i}=NE(),{isActive:a}=uL(),{dataModel:l}=Lw(),{setIsAdjustingWidth:s}=KL([l]);if(!(!!o.active&&!a))return null;const u=JL(n,{isLeftColumn:!0});return Ms.jsx(jx,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:u,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*Mw))},confirmWidthCallback:n=>{var o;if(n.type===rr.FitToContent)return void l.applyIndentModeColumnWidth({type:rr.Auto});const i=Math.min(null!==(o=n.pixels)&&void 0!==o?o:t,e*Mw);r(i),l.applyIndentModeColumnWidth({type:rr.Pixels,pixels:i})},setIsAdjustingWidth:s,accessibilityRelatedArgs:{translator:i,columnLabel:i.get("SNPivotTable.IndentMode.Rows")}})};function IM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const AM=(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){IM(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"})),MM=d(AM),DM=({cell:e,changeSortOrder:t})=>{const r=c(null),n=c(null),{app:o,interactions:i,embed:a,translator:l,env:s,model:u}=NE(),{layoutService:d}=zE(),{open:p,setOpen:f,handleOpenMenu:m}=XL();return Ms.jsxs(mM,{component:"div",onClick:m,isActive:p,children:[Ms.jsx(hM,{children:e.label}),Ms.jsxs(gM,{className:"indent-mode-dropdown-more",visible:p,children:[Ms.jsx(MM,{}),e.isDim&&Ms.jsxs(Ms.Fragment,{children:[Ms.jsx(XS,{headerData:e,translator:l,anchorRef:r,open:p,setOpen:f,interactions:i,menuAvailabilityFlags:bM,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:d.layout.qStateName},shouldShowMenuIcon:!1,env:s,model:u&&"setActiveField"in u?u:void 0}),Ms.jsx(uM,{ref:n}),Ms.jsx(uM,{ref:r})]})]})]})},PM=({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)===HE,l=e+1<r.length&&(null===(i=r[e+1])||void 0===i?void 0:i.id)===HE;return!(n&&a&&l)&&((null==t?void 0:t.id)!==HE&&e<r.length-1)},kM=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=zE(),{interactions:a,translator:l}=NE(),{dataModel:s,gridSectionsData:{headersData:d}}=Lw(),[p,f]=u(!1),m=c(null),{headerCellHeight:h}=i,{color:g,background:b,hoverBackground:v,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w}=i.header,{isAdjustingWidth:R}=KL([s]),L=e=>e.stopPropagation(),I={height:h,gridColumn:`1 / span ${d.size.x}`,gridRow:d.size.y,zIndex:d.size.x-0};return Ms.jsxs(sM,{isDimension:!0,background:p?y:b,interactions:a,hoverBackground:v,style:{...I,...Yg,color:g},onClick:e=>a.active&&!aL(e)&&!R&&f(!p),"data-testid":"indentModeHeaderCellWrapper",children:[Ms.jsxs(cM,{justifyContent:"flex-start",children:[Ms.jsx(pM,{fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w,justifyContent:"flex-start",children:Ms.jsx("span",{style:Ug,children:l.get("SNPivotTable.IndentMode.Rows")})}),p?Ms.jsx(RM,{}):Ms.jsx(EM,{}),Ms.jsx(uM,{ref:m})]}),Ms.jsx(fM,{open:p,anchorEl:m.current,children:e.map(((r,n)=>[r&&(null==r?void 0:r.id)!==HE&&Ms.jsx("li",{role:"presentation",onClick:L,onKeyDown:L,children:Ms.jsx(DM,{cell:r,changeSortOrder:t})}),PM({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===d.size.y})&&Ms.jsx(Yx,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),Ms.jsx(LM,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},TM={display:"grid",width:"fit-content"},OM=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:l})=>{const{layoutService:s}=zE(),{gridSectionsData:{headersData:u}}=Lw();return Ms.jsxs("div",{"data-testid":"HEADER_GRID",style:{...TM,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&Ms.jsx(yM,{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(Ms.jsx(kM,{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(Ms.jsx(vM,{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 _M=h(OM);const qM=(e,t,r,n)=>{const{layoutService:o}=zE();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])},NM=(e,t)=>{wb((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},FM=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},jM=(e,t,r)=>{var n;const o=r?"flex-start":"center";var i,a;if(e.representation.type===Nt.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 ML(r,o)}const{textAlign:s}=null!==(n=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==n?n:{};return ML(s,o)},zM=()=>{},GM=({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:m}=zE(),{interactions:h}=NE(),{isLocked:g,createMouseDownHandler:b,createMouseOverHandler:v}=uL(),{showLastBorder:y}=o,x=g(n)||n.isLockedByDimension,S=!(x||!h.active||!h.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||c),E=S?b(d,(e=>FM(e,o))):void 0,C=S?v(d):void 0;return Ms.jsx("div",{className:Zt,title:h.passive?t:void 0,style:{...r,...Jg(a,l,f.grid.border,y),...Qg({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:f.grid.divider}),...Yg,padding:"0px 4px",cursor:yL(S),background:mL({styleService:f,isCellSelected:u,cell:n,isCellLocked:x}),zIndex:s?void 0:m.size.x-n.x,justifyContent:jM(n,m,s),display:"flex",...m.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(p=n.indentLevel)&&void 0!==p?p:0))}},"aria-hidden":"true",onMouseDown:E,onMouseOver:C,onKeyUp:zM,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})},$M=e=>e.stopPropagation(),BM=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:$M,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}),WM=({href:e,text:t,interactions:n,color:o})=>r.createElement(mf,BM({href:e,text:t,interactions:n,color:o}),t),HM=null==G?void 0:G();null==HM||HM.use(z),null==HM||HM.renderer.prio(["canvas"]);const VM=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,YM=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Ms.jsxs("span",{children:[Ms.jsx(CA,{...BM({href:e,text:t,interactions:n,color:o}),children:null!=r&&r.maskedValue?null==r?void 0:r.maskedValue:null==r?void 0:r.originalValue}),!!r&&VM(r)]}),UM=({children:e,textStyle:t})=>Ms.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),KM=({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>{const{isActive:o}=uL(),{interactions:i}=NE();let a=n?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...Ug,...Kg(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:hL({cell:e,styleService:t,isCellSelected:r}),fontWeight:gL({cell:e,styleService:t}),fontStyle:bL({cell:e,styleService:t}),textDecoration:vL({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n});if(e.representation.type===Nt.Image&&!e.isTotal)return Ms.jsx(AL,{representation:e.representation,isLeftColumn:n,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand});if(e.representation.type===Nt.Link&&!o&&!e.isTotal){const t=n&&e.representation.labelStructure?YM:WM;a=Ms.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:i,color:e.expressionColor.color})}return Ms.jsx(UM,{textStyle:l,children:a})},XM=e=>{const t=e.isLeftColumn?"flex-start":"center";var r;return e.representation.type!==Nt.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical},JM=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=zE(),{isSelected:i}=uL(),{isLeftColumn:a=!1,showLastBorder:l,itemCount:s,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=KL([r]),f=FM(e,r),m=a?e===s-1:u,h=a?u:e===s-1,g=XR(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Ms.jsx(JR,{style:{...t,background:r},index:e,isLastRow:m,isLastColumn:h,showLastBorder:l,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return Ms.jsxs(GM,{text:f.representation.text,reactWindowStyle:t,isLeftColumn:a,isLastRow:m,isLastColumn:h,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Ms.jsxs(ZR,{verticalAlign:XM(f),width:QR(f.representation),right:f.isLeftColumn?void 0:4,children:[Ms.jsx(EL,{isLeftColumn:a,isCellSelected:b,cell:f}),Ms.jsx(KM,{isLeftColumn:a,isCellSelected:b,cell:f,styleService:n})]}),Ms.jsx(ZL,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Vt.Measures:Vt.Dimension},columnWidth:t.width,isLastColumn:h,setIsAdjustingWidth:p})]})};var ZM=r.memo(JM,_R);const QM=({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()},eD=(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)},rD={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Vg},nD={overflow:"hidden",willChange:"auto",flexShrink:0},oD=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i}=OE(),{layoutService:a,styleService:{contentCellHeight:l,grid:{divider:s}}}=zE(),{qSize:u}=a.layout.qHyperCube,{gridSectionsData:{leftDimensionData:c},visibleDimensionsInfo:{visibleLeftDimensionInfo:d}}=Lw();NM(e,c),qM(e,t,r,l);const p=i.rowsOnCurrentPage*l,f={...rD,borderColor:s,width:n.reduce(((e,t)=>e+t),0)};return Ms.jsx("div",{style:f,"data-section-id":"LEFT_GRID",children:c.grid.map(((t,s)=>{const f=s===c.columnCount-1,m=QE(d[s]),{itemCount:h,estimatedItemSize:g,listValues:b}=eD(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 Ms.jsx(PR,{ref:tD(e,s),style:{...nD,flexGrow:f?1:0},height:r,width:n[s],itemCount:h,itemSize:v,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:f,itemCount:h,showLastBorder:o,listValues:b,totalDividerIndex:c.totalDividerIndex},itemKey:GL,estimatedItemSize:g,children:ZM},m)}))})};var iD=h(oD);const aD={overflow:"hidden",willChange:"auto"},lD={...Vg,borderWidth:"0px 0px 0px 1px"},sD=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{layoutService:a,styleService:{grid:{divider:l},headerCellHeight:s}}=zE(),{gridSectionsData:{headersData:u,topDimensionData:c}}=Lw(),d={...lD,borderColor:l,height:n};NM(e,c),qM(e,r,n,s);const p=a.size.x*i();return 0===c.rowCount?Ms.jsx("div",{style:{width:r,height:n,...lD}}):Ms.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:m}=eD(n,p,a.size.x,s),h=(({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=h?QE(h):`empty ${l}`;return Ms.jsx(PR,{ref:tD(e,l),style:aD,height:t(),width:r,itemCount:d,itemSize:QM({list:n,listValues:m,isLastRow:s,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:s,itemCount:d,showLastBorder:o,listValues:m,totalDividerIndex:c.totalDividerIndex},itemKey:GL,estimatedItemSize:f,children:ZM},g)}))})};var uD=h(sD);const cD=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=zE(),r=Xw(),n=(()=>{const{model:e}=NE(),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:m},scrollbarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=Kw(),{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}=zE(),{gridSectionsData:{headersData:i}}=Lw(),{measureText:a}=Sb(o.header),l=$w({tableWidth:e}),s=Bw({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)+Aw;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:h,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:L,headerGridDims:I,topGridDims:A,leftGridDims:M,dataGridDims:D,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:k}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const l=Xw(),{pageInfo:s}=OE(),{gridSectionsData:{headersData:u,topDimensionData:c}}=Lw(),d=Math.min(l.height*Mw,Math.max(l.height*Mw-25,l.height-t-a)),p=l.width*Mw,f=s.rowsOnCurrentPage*t,m=Math.max(u.size.y,c.rowCount,1),h=e*m,g=e*m,b=Math.min(p,r),v=l.width-p,y=Math.max(v,l.width-b),x=Math.min(d,h,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=h+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:h,horizontalScrollbarHeight:g}}),T=p((()=>e),[e]),O=p((()=>t),[t]);return(()=>{const{downloadService:e}=zE();f((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Ms.jsxs(Zw,{style:L,children:[Ms.jsx("div",{style:{overflow:"hidden"},ref:o,children:Ms.jsx(_M,{tableWidth:r.width,leftGridWidth:v,columnWidths:x,getHeaderCellsIconsVisibilityStatus:w,rowHight:e,height:I.height,changeSortOrder:n,overrideLeftGridWidth:R})}),Ms.jsx(tR,{style:k.topGrid,origin:Ut.TopGrid,ref:i,children:Ms.jsx(Jw,{style:A.fullSizeWrapper,children:Ms.jsx(rR,{style:A.stickyWrapper,children:Ms.jsx(uD,{topGridRef:s,rowHightCallback:T,...A.self,showLastBorder:{right:E,bottom:!1},getRightGridColumnWidth:C})})})}),Ms.jsx(tR,{style:k.leftGrid,origin:Ut.LeftGrid,ref:a,children:Ms.jsx(Jw,{style:M.fullSizeWrapper,children:Ms.jsx(rR,{style:M.stickyWrapper,children:Ms.jsx(iD,{leftGridRef:u,...M.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),Ms.jsx(tR,{style:k.dataGrid,origin:Ut.DataGrid,ref:l,children:Ms.jsx(Jw,{style:D.fullSizeWrapper,children:Ms.jsx(rR,{style:D.stickyWrapper,children:Ms.jsx(HL,{dataGridRef:c,rowHightCallback:O,...D.self,showLastBorder:{right:E,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:m})})})})]})},dD=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=NE(),{pageInfo:o,updatePageInfo:i,rect:a}=OE(),{layoutService:l}=zE(),{layout:s,hasData:u}=l;return Ms.jsxs(Ms.Fragment,{children:[u&&Ms.jsx(cD,{}),Ms.jsx($E,{}),Ms.jsx(kE,{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})]})},pD={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)"},fD=12,mD=14,hD=16,gD=24,bD=3,vD=300,yD=400,xD=600,SD=700,ED={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Er(pD.GREYSCALE_0,.05),Er(pD.GREEN_PALE,.5),Er(pD.BLUE_PALE,.5),Er(pD.GREEN_PALE,.5),Er(pD.BLUE_PALE,.5),Er(pD.GREEN_PALE,.5),Er(pD.BLUE_PALE,.5);var CD;function wD(){return wD=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},wD.apply(null,arguments)}Er(pD.GREEN_PALE,.5),Er(pD.BLUE_PALE,.5),Er(pD.GREEN_PALE,.5),Er(pD.BLUE_PALE,.5);var RD,LD=function(e){return t.createElement("svg",wD({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),CD||(CD=t.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function ID(){return ID=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},ID.apply(null,arguments)}var AD=function(e){return t.createElement("svg",ID({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),RD||(RD=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 MD({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 DD=(e={})=>r.createElement(MD,{...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"}))),PD=(e={})=>r.createElement(MD,{...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"})))),kD=(e={})=>r.createElement(MD,{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"})))),TD=(e={})=>r.createElement(MD,{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"}))),OD=({className:e})=>r.createElement(MD,{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"})))))),_D=(e={})=>r.createElement(MD,{...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:pD.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const qD={MuiAccordion:{styleOverrides:{root:{backgroundColor:pD.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:pD.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:r.createElement(LD,{"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 ${pD.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:pD.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${pD.MISC_FOCUS_BORDER}`,borderRadius:bD,backgroundColor:pD.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 ${pD.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:pD.WHITE,color:pD.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:bD},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${pD.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:pD.GREYSCALE_0_15,backgroundColor:pD.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:pD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${pD.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:pD.GREEN_PALE},"&:active":{backgroundColor:pD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:pD.GREEN_PALE,boxShadow:`0 0 0 3px ${Bv(pD.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:pD.BLUE_PALE},"&:active":{backgroundColor:pD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:pD.BLUE_PALE,boxShadow:`0 0 0 3px ${Bv(pD.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:bD,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:pD.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${pD.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:pD.GREYSCALE_0_15,backgroundColor:pD.GREYSCALE_100_60,"&:active":{backgroundColor:pD.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:pD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${pD.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:pD.PURPLE,"&.Mui-focusVisible":{borderColor:pD.PURPLE,boxShadow:`0 0 0 3px ${Bv(pD.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:pD.GREEN,"&.Mui-focusVisible":{borderColor:pD.GREEN,boxShadow:`0 0 0 3px ${Bv(pD.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:pD.BLUE,"&.Mui-focusVisible":{borderColor:pD.BLUE,boxShadow:`0 0 0 3px ${Bv(pD.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:pD.ORANGE,"&.Mui-focusVisible":{borderColor:pD.ORANGE,boxShadow:`0 0 0 3px ${Bv(pD.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:pD.RED,"&.Mui-focusVisible":{borderColor:pD.RED,boxShadow:`0 0 0 3px ${Bv(pD.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:pD.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:pD.PURPLE_PALE},"&:active":{backgroundColor:pD.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:pD.PURPLE_PALE,boxShadow:`0 0 0 3px ${Bv(pD.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:pD.GREEN_PALE},"&:active":{backgroundColor:pD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:pD.GREEN_PALE,boxShadow:`0 0 0 3px ${Bv(pD.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:pD.BLUE_PALE},"&:active":{backgroundColor:pD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:pD.BLUE_PALE,boxShadow:`0 0 0 3px ${Bv(pD.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:pD.ORANGE_PALE},"&:active":{backgroundColor:pD.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:pD.ORANGE_PALE,boxShadow:`0 0 0 3px ${Bv(pD.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:pD.RED_PALE},"&:active":{backgroundColor:pD.RED_DARK},"&.Mui-focusVisible":{borderColor:pD.RED_PALE,boxShadow:`0 0 0 3px ${Bv(pD.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:pD.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:pD.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:bD,boxShadow:`inset 0 0 0 2px ${pD.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:r.createElement(AD,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:fD,borderRadius:bD,color:pD.TEXT_PRIMARY,backgroundColor:pD.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:pD.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${pD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:pD.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:pD.GREYSCALE_0_05,color:pD.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:pD.GREEN,borderColor:pD.GREEN},"&.MuiChip-outlinedInfo":{color:pD.BLUE,borderColor:pD.BLUE},"&.MuiChip-outlinedWarning":{color:pD.ORANGE,borderColor:pD.ORANGE},"&.MuiChip-outlinedError":{color:pD.RED,borderColor:pD.RED}},outlined:{border:`solid 1px ${pD.GREYSCALE_0_15}`,backgroundColor:pD.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:bD,boxShadow:"none",backgroundColor:pD.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:pD.GREEN,borderColor:pD.GREEN},outlinedSecondary:{color:pD.BLUE,borderColor:pD.BLUE},label:{fontFamily:ED.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:r.createElement(AD,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:r.createElement(LD,{"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:bD},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:bD,fontSize:mD,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:pD.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${pD.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:pD.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:pD.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:pD.GREYSCALE_0_05}}},popupIndicator:{borderRadius:bD,border:`solid 1px ${pD.GREYSCALE_0_15}`,color:pD.GREYSCALE_0_60,marginRight:0,width:gD,height:gD},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${pD.GREYSCALE_0_15}`},clearIndicator:{borderRadius:bD,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:pD.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:mD}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:fD,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:pD.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:pD.GREYSCALE_25,fontSize:fD,fontFamily:ED.FONT_FAMILY,fontWeight:xD,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:pD.TEXT_PRIMARY},"&.Mui-error":{color:pD.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:pD.TEXT_SECONDARY,content:"'(optional)'",fontWeight:yD,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:pD.TEXT_SECONDARY,content:"'(required)'",fontWeight:yD,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:mD,lineHeight:"16px",backgroundColor:pD.WHITE,borderRadius:bD,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pD.GREYSCALE_0_05}`,borderColor:pD.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pD.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${pD.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${pD.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pD.RED}`,boxShadow:`0px 0px 0px 1px ${pD.RED}, inset 0 2px 0 0 ${pD.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pD.GREYSCALE_0_10}`,borderColor:pD.GREYSCALE_0_10,backgroundColor:pD.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:pD.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:pD.GREYSCALE_0_15,borderRadius:bD,boxShadow:`inset 0 2px 0 0 ${pD.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>r.createElement(LD,{...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:pD.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:pD.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:pD.GREYSCALE_0_03},"&:active":{backgroundColor:pD.GREYSCALE_0_10},"&:focus":{backgroundColor:pD.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${pD.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${pD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:pD.GREYSCALE_0_30,"&:hover":{backgroundColor:pD.GREYSCALE_0_0,borderColor:pD.GREYSCALE_0_15},"& ~svg":{color:pD.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${pD.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:bD}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:pD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${pD.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:pD.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:mD,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:fD,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:fD,fontWeight:xD,color:pD.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:xD}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${pD.GREYSCALE_0_15}, 0px 0px 0px 1px ${pD.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:r.createElement(kD,null),checkedIcon:r.createElement(TD,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:pD.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${pD.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:pD.GREEN_PALE,boxShadow:`0 0 0 3px ${Bv(pD.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:pD.BLUE_PALE,boxShadow:`0 0 0 3px ${Bv(pD.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:pD.GREYSCALE_0_20}},"&.Mui-disabled":{fill:pD.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:r.createElement(_D,null),checkedIcon:r.createElement(DD,null),indeterminateIcon:r.createElement(PD,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:bD,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:pD.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:pD.GREYSCALE_0_55,color:pD.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:pD.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:pD.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:pD.GREYSCALE_0_55,"&:hover":{color:pD.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:pD.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:pD.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:mD,color:pD.TEXT_PRIMARY,lineHeight:"16px",fontWeight:xD},secondary:{fontSize:fD,color:pD.GREYSCALE_45,fontWeight:yD,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:mD,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:mD,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:pD.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:fD,borderBottom:`solid 1px ${pD.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:mD,color:pD.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:pD.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:pD.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:pD.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:pD.RED}}},"&.Mui-focusVisible":{backgroundColor:pD.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:pD.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:pD.GREEN,height:"24px","&.Mui-disabled":{color:pD.GREYSCALE_0_15}},rail:{backgroundColor:pD.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${pD.GREYSCALE_0_05}`,borderRadius:bD,boxShadow:`inset 0px 0px 0px 1px ${pD.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${pD.GREYSCALE_0_05}`,borderRadius:bD},thumb:{height:"16px",width:"16px",borderRadius:bD,backgroundColor:pD.WHITE,boxShadow:`0px 1px 2px 0px ${pD.GREYSCALE_0_15}, 0px 0px 0px 1px ${pD.GREYSCALE_0_05}`,"&:hover":{borderRadius:bD,boxShadow:`0 2px 4px 0 ${pD.GREYSCALE_0_30}, 0 0 0 1px ${pD.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${pD.GREYSCALE_0_15}, 0 0 0 1px ${pD.GREYSCALE_0_06}, 0 0 0 2px ${pD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${pD.GREYSCALE_0_15}, 0 0 0 1px ${pD.GREYSCALE_0_06}, 0 0 0 2px ${pD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:pD.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:pD.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:pD.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:pD.GREYSCALE_0_15},markLabel:{color:pD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:pD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:pD.WHITE,color:pD.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:pD.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:pD.GREEN_PALE,boxShadow:`0 0 0 3px ${Bv(pD.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:pD.BLUE_PALE,boxShadow:`0 0 0 3px ${Bv(pD.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:pD.GREYSCALE_0_15,borderRadius:bD},thumb:{height:"16px",width:"16px",borderRadius:bD,backgroundColor:pD.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:mD,fontWeight:xD,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${pD.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${pD.MISC_FOCUS_BORDER}`,backgroundColor:pD.GREYSCALE_0_03,borderRadius:bD},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:pD.GREYSCALE_25,"&.Mui-selected":{color:pD.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:mD,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:bD,"&:hover":{backgroundColor:`${pD.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 ${pD.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${pD.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:bD,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:pD.GREYSCALE_0_05},"&:hover":{backgroundColor:`${pD.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${pD.GREYSCALE_85}`,borderRight:`1px solid ${pD.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:xD,backgroundColor:pD.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:pD.GREYSCALE_98,borderBottom:`1px solid ${pD.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${pD.GREYSCALE_85}`,borderTop:`1px solid ${pD.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:pD.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:pD.GREYSCALE_0_05,"&:hover":{backgroundColor:pD.GREYSCALE_0_03}},"&&:hover":{backgroundColor:pD.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>r.createElement(OD,{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 ${pD.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:mD,borderRadius:bD,padding:"7px 16px",border:`1px solid ${pD.GREYSCALE_0_15}`,backgroundColor:pD.GREYSCALE_100_60,color:pD.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:pD.GREYSCALE_0_10,border:`1px solid ${pD.GREYSCALE_0_30}`},"&:hover":{backgroundColor:pD.GREYSCALE_0_03,border:`1px solid ${pD.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:pD.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${pD.MISC_FOCUS_BORDER}`,border:`1px solid ${pD.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:pD.GREYSCALE_25,backgroundColor:pD.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:pD.GREYSCALE_0_10,border:`1px solid ${pD.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:fD,height:24,width:24,padding:7},sizeLarge:{fontSize:hD,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:mD,borderRadius:bD}}},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:pD.GREYSCALE_20},tooltip:{backgroundColor:pD.GREYSCALE_20,fontSize:fD,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var ND=e=>qD;const FD={mode:"light",primary:{ultraLight:pD.GREEN_ULTRA_LIGHT,light:pD.GREEN_PALE,main:pD.GREEN,dark:pD.GREEN_DARK,extraDark:pD.GREEN_EXTRA_DARK,contrastText:pD.WHITE},secondary:{ultraLight:pD.BLUE_ULTRA_LIGHT,light:pD.BLUE_PALE,main:pD.BLUE,dark:pD.BLUE_DARK,extraDark:pD.BLUE_EXTRA_DARK,contrastText:pD.WHITE},error:{ultraLight:pD.RED_ULTRA_LIGHT,light:pD.RED_PALE,main:pD.RED,dark:pD.RED_DARK,extraDark:pD.RED_EXTRA_DARK,contrastText:pD.WHITE},warning:{ultraLight:pD.ORANGE_ULTRA_LIGHT,light:pD.ORANGE_PALE,main:pD.ORANGE,dark:pD.ORANGE_DARK,extraDark:pD.ORANGE_EXTRA_DARK,contrastText:pD.WHITE},success:{ultraLight:pD.GREEN_ULTRA_LIGHT,light:pD.GREEN_PALE,main:pD.GREEN,dark:pD.GREEN_DARK,extraDark:pD.GREEN_EXTRA_DARK,contrastText:pD.WHITE},info:{ultraLight:pD.BLUE_ULTRA_LIGHT,light:pD.BLUE_PALE,main:pD.BLUE,dark:pD.BLUE_DARK,extraDark:pD.BLUE_EXTRA_DARK,contrastText:pD.WHITE},text:{primary:pD.TEXT_PRIMARY,secondary:pD.TEXT_SECONDARY,disabled:pD.GREYSCALE_0_30},action:{hover:pD.GREYSCALE_0_03,hoverOpacity:.03,selected:pD.GREYSCALE_0_05,selectedOpacity:.05,focus:pD.MISC_FOCUS_BORDER},amethyst:{ultraLight:pD.WHITE,main:pD.PURPLE,light:pD.PURPLE_PALE,dark:pD.PURPLE_DARK,extraDark:pD.GREYSCALE_0_0,contrastText:pD.WHITE},background:{paper:pD.WHITE,default:pD.GREYSCALE_95},divider:pD.GREYSCALE_0_15},jD=e=>FD,zD=(e="light")=>({components:ND(),palette:jD(),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:mD,fontWeightLight:vD,fontWeightRegular:yD,fontWeightMedium:xD,fontWeightBold:SD,htmlFontSize:mD,fontFamily:ED.FONT_FAMILY,button:{fontWeight:xD,fontSize:mD,textTransform:"none"},body1:{fontSize:hD,lineHeight:"24px"},body2:{fontSize:mD,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:gD,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:hD,fontWeight:xD,lineHeight:"16px"},h6:{fontSize:mD,fontWeight:xD,lineHeight:"16px"},caption:{color:pD.TEXT_SECONDARY},subtitle1:{fontSize:mD,color:pD.TEXT_SECONDARY},subtitle2:{fontSize:fD,color:pD.TEXT_SECONDARY}},shape:{borderRadius:bD}});const GD=(e,{selections:t,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){var t;const r=zD();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),Qy({...r,direction:e})}("ltr");e.render(Ms.jsx(r.StrictMode,{children:Ms.jsx(Ox,{theme:a,children:Ms.jsx(FE,{...i,children:Ms.jsx(_E,{...n,children:Ms.jsx(cL,{selections:t,children:Ms.jsx(GE,{...o,children:Ms.jsx(Iw,{children:Ms.jsx(dD,{})})})})})})})}))};var $D,BD,WD,HD;!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"}($D||($D={})),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"}(BD||(BD={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(WD||(WD={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(HD||(HD={}));const VD=e=>e?`${parseInt(e,10)}px`:void 0,YD=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?Bg.Transparent:r}},UD=(e,t)=>+(parseInt(e,10)*$g*t+8).toFixed(2),KD=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?zg:"normal",XD=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",JD=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",ZD=({fontStyle:e,fontWeight:t,fontSize:r,fontFamily:n})=>t?`${e} ${t} ${r} ${n}`:`${e} ${r} ${n}`,QD=(e,t,r)=>{var n,o,i,a,l;const s=null!==(n=null==r||null===(o=r.qHyperCubeDef)||void 0===o?void 0:o.qShowTotalsAbove)&&void 0!==n&&n,u=null!==(i=null==r||null===(a=r.qHyperCubeDef)||void 0===a?void 0:a.qAlwaysFullyExpanded)&&void 0!==i&&i,c=void 0!==(null==r||null===(l=r.qHyperCubeDef)||void 0===l?void 0:l.qSortbyYValue)&&1===Math.abs(null==r?void 0:r.qHyperCubeDef.qSortbyYValue),d=y((()=>{var e;return null==r||null===(e=r.qHyperCubeDef)||void 0===e||null===(e=e.qDimensions)||void 0===e?void 0:e.map((e=>{var t;return null===(t=e.qDef)||void 0===t?void 0:t.qSortCriterias}))}),[r]);return y((()=>(({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:m,qMeasureInfo:h,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,Gg),y:Math.min(e.qHyperCube.qSize.qcy,v)},x=m.slice(0,f),S=e=>x.some((t=>t===e)),E=S(WE),C=new Map(m.map((e=>{var t;return[null!==(t=g[e])&&void 0!==t?t:WE,e]}))),w=h.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:h.findIndex((e=>e===w[r]))},getDimensionInfo:e=>e===WE?WE: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"),indentModeFeatures:{isLinksSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS")},indentModeColumnWidth:null!==(s=e.qHyperCube.indentModeColumnWidth)&&void 0!==s?s:{type:rr.Auto,pixels:tr.PixelsDefault,percentage:tr.PercentageDefault},isSortedByFirstMeasure:o,searchSortFromDimension:"inherit"===(null===(u=e.search)||void 0===u?void 0:u.sorting)}})({layout:e,flags:t,qShowTotalsAbove:s,qAlwaysFullyExpanded:u,isSortedByFirstMeasure:c,qSortCriterias:d})),[e,s,u,c,t,d])},eP=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=pb(e);return t.current=e,t})(xw(o));return vb((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(Gg,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(BE,Sw(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},tP=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),rP=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:tP({rowsPerPage:r,totalRowCount:e,page:t})}),nP=15,oP=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{var i;return L((async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if(null!=n&&n.getHyperCubePivotData){const{scrollTop:e,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-nP,0),u=Math.max(l+o-nP,l,0),c=Gg-s,d=l+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=xw(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=Sw(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(BE,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i})),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 iP={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 aP=()=>{const e=A(),t=e.language();return y((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(iP).forEach((t=>{e.add(iP[t])}))}}(e)),[e]),{translator:e,language:t}},lP=e=>{const{flags:t}=e,r=M(),n=(e=>{const t=y((()=>Eb(e)),[e]);return C((()=>()=>t.unmount()),[t]),t})(r),o=D(),i=P(),a=k(),l=T(),s=O(),u=_(),c=fb(),[d,p]=((e,t)=>vb((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(i,o),f=QD(o,t,d),m=q(),h=bb(o,r),{translator:g,language:b}=aP(),{pageInfo:v,updatePageInfo:x}=((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]=E((()=>{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,...rP(n.qcy,a,i)}})),s=e.layout.qHyperCube.qSize.qcy;return C((()=>{l((t=>({...t,...rP(s,t.page,i),shouldShowPagination:s>e.size.y&&!o})))}),[s,e.size.y,l,o,i]),C((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=tP({...a,page:e});l({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>l({...a,...e,rowsOnCurrentPage:tP({...a,...e})})}})(f,c),w=((e,t,r)=>y((()=>((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),R=oP({rect:N(),layoutService:f,viewService:w,model:i,pageInfo:v}),[L,I]=eP({model:i,layoutService:f,viewService:w,pageInfo:v,rect:R}),A=y((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,m,h,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[$D.LineClamp])&&void 0!==i?i:oe(BD.Grid,WD.Grid,HD.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==ne?void 0:ne[$D.ColumnLineClamp])&&void 0!==l?l:oe(BD.Grid,WD.Grid,HD.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=YD(e,null==J?void 0:J[$D.Background]))&&void 0!==u?u:oe(BD.Dimension,WD.LabelName,HD.BackgroundColor))&&void 0!==s?s:Bg.Transparent,se={header:{fontSize:null!==(c=null!==(d=VD(null==J?void 0:J[$D.FontSize]))&&void 0!==d?d:oe(BD.Dimension,WD.LabelName,HD.FontSize))&&void 0!==c?c:Fg,fontFamily:null!==(p=null!==(f=null==J?void 0:J[$D.FontFamily])&&void 0!==f?f:oe(BD.Dimension,WD.LabelName,HD.FontFamily))&&void 0!==p?p:jg,fontWeight:KD(null==J?void 0:J[$D.FontStyle],zg),fontStyle:XD(null==J?void 0:J[$D.FontStyle]),textDecoration:JD(null==J?void 0:J[$D.FontStyle]),color:null!==(m=null!==(h=YD(e,null==J?void 0:J[$D.FontColor]))&&void 0!==h?h:oe(BD.Dimension,WD.LabelName,HD.FontColor))&&void 0!==m?m:Ym.TEXT,background:le,hoverBackground:Lg(le,nr),activeBackground:Lg(le,or)},dimensionValues:{fontSize:null!==(g=null!==(b=VD(null==Z?void 0:Z[$D.FontSize]))&&void 0!==b?b:oe(BD.Dimension,WD.LabelValue,HD.FontSize))&&void 0!==g?g:Fg,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[$D.FontFamily])&&void 0!==y?y:oe(BD.Dimension,WD.LabelValue,HD.FontFamily))&&void 0!==v?v:jg,fontWeight:KD(null==Z?void 0:Z[$D.FontStyle],void 0),fontStyle:XD(null==Z?void 0:Z[$D.FontStyle]),textDecoration:JD(null==Z?void 0:Z[$D.FontStyle]),color:null!==(x=null!==(S=YD(e,null==Z?void 0:Z[$D.FontColor]))&&void 0!==S?S:oe(BD.Dimension,WD.LabelValue,HD.FontColor))&&void 0!==x?x:Ym.TEXT,background:null!==(E=null!==(C=YD(e,null==Z?void 0:Z[$D.Background]))&&void 0!==C?C:oe(BD.Dimension,WD.LabelValue,HD.BackgroundColor))&&void 0!==E?E:Bg.Transparent},measureValues:{fontSize:null!==(w=null!==(R=VD(null==Q?void 0:Q[$D.FontSize]))&&void 0!==R?R:oe(BD.Measure,WD.LabelValue,HD.FontSize))&&void 0!==w?w:Fg,fontFamily:null!==(L=null!==(I=null==Q?void 0:Q[$D.FontFamily])&&void 0!==I?I:oe(BD.Measure,WD.LabelValue,HD.FontFamily))&&void 0!==L?L:jg,fontWeight:KD(null==Q?void 0:Q[$D.FontStyle],"normal"),fontStyle:XD(null==Q?void 0:Q[$D.FontStyle]),textDecoration:JD(null==Q?void 0:Q[$D.FontStyle]),color:null!==(A=null!==(M=YD(e,null==Q?void 0:Q[$D.FontColor]))&&void 0!==M?M:oe(BD.Measure,WD.LabelValue,HD.FontColor))&&void 0!==A?A:Bg.FontSecondary,background:null!==(D=null!==(P=YD(e,null==Q?void 0:Q[$D.Background]))&&void 0!==P?P:oe(BD.Measure,WD.LabelValue,HD.BackgroundColor))&&void 0!==D?D:Bg.Transparent},measureLabels:{fontWeight:KD(null==ee?void 0:ee[$D.FontStyle],"normal"),fontStyle:XD(null==ee?void 0:ee[$D.FontStyle]),textDecoration:JD(null==ee?void 0:ee[$D.FontStyle]),color:null!==(k=null!==(T=YD(e,null==ee?void 0:ee[$D.FontColor]))&&void 0!==T?T:oe(BD.Measure,WD.LabelName,HD.FontColor))&&void 0!==k?k:Bg.FontSecondary,background:null!==(O=null!==(_=YD(e,null==ee?void 0:ee[$D.Background]))&&void 0!==_?_:oe(BD.Measure,WD.LabelName,HD.BackgroundColor))&&void 0!==O?O:Bg.Transparent},totalValues:{fontWeight:KD(null==te?void 0:te[$D.FontStyle],zg),fontStyle:XD(null==te?void 0:te[$D.FontStyle]),textDecoration:JD(null==te?void 0:te[$D.FontStyle]),color:null!==(q=null!==(N=YD(e,null==te?void 0:te[$D.FontColor]))&&void 0!==N?N:oe(BD.Total,WD.LabelValue,HD.FontColor))&&void 0!==q?q:Ym.TEXT,background:null!==(F=null!==(j=YD(e,null==te?void 0:te[$D.Background]))&&void 0!==j?j:oe(BD.Total,WD.LabelValue,HD.BackgroundColor))&&void 0!==F?F:Bg.Transparent},nullValues:{fontWeight:KD(null==re?void 0:re[$D.FontStyle],"normal"),fontStyle:XD(null==re?void 0:re[$D.FontStyle]),textDecoration:JD(null==re?void 0:re[$D.FontStyle]),color:null!==(z=null!==(G=YD(e,null==re?void 0:re[$D.FontColor]))&&void 0!==G?G:oe(BD.Null,WD.LabelValue,HD.FontColor))&&void 0!==z?z:Ym.TEXT,background:null!==($=null!==(B=YD(e,null==re?void 0:re[$D.Background]))&&void 0!==B?B:oe(BD.Null,WD.LabelValue,HD.BackgroundColor))&&void 0!==$?$:Bg.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(H=YD(e,null==ne?void 0:ne[$D.Border]))&&void 0!==H?H:oe(BD.Grid,WD.Grid,HD.BorderColor))&&void 0!==W?W:Bg.DividerLight,divider:null!==(V=null!==(Y=YD(e,null==ne?void 0:ne[$D.Divider]))&&void 0!==Y?Y:oe(BD.Grid,WD.Divider,HD.BorderColor))&&void 0!==V?V:Bg.DividerDark,background:null!==(U=null!==(K=YD(e,null==ne?void 0:ne[$D.Background]))&&void 0!==K?K:oe(BD.Grid,WD.Grid,HD.BackgroundColor))&&void 0!==U?U:Bg.Transparent}};return se.headerCellHeight=Math.max(UD(se.header.fontSize,ae),UD(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(UD(se.measureValues.fontSize,ie),UD(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=UD(se.dimensionValues.fontSize,1),se.selectedColors=Rg({desiredColor:se.dimensionValues.color,theme:e,flags:r}),se})(h,f,t)),[h,f,t]),F=(e=>y((()=>[...new Set([ZD(e.header),ZD(e.dimensionValues),ZD({...e.dimensionValues,...e.measureLabels}),ZD({...e.dimensionValues,...e.nullValues}),ZD({...e.dimensionValues,...e.totalValues}),ZD(e.measureValues),ZD({...e.measureValues,...e.nullValues}),ZD({...e.measureValues,...e.totalValues})])]),[e]))(A),j=(e=>{const[t,r]=S((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return r?(console.warn("Failed to load font:",r),!0):!!t})(F);Mb(),C((()=>{!I&&i&&R&&m&&w&&f&&A&&!!L&&!p&&j&&GD(n,{selections:m,baseObjects:{rect:R,pageInfo:v,qPivotDataPages:L,updatePageInfo:x},nebulaObjects:{env:e,app:a,model:i,embed:l,theme:h,keyboard:s,translator:g,interactions:u},coreServices:{styleService:A,viewService:w,layoutService:f,downloadService:c}})}),[i,a,R,u,m,w,f,c,I,L,A,n,j,g,b,v,x,d,p,l,s,h,e])},sP={version:"4.0.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},uP=()=>({...sP,qHyperCubeDef:{...sP.qHyperCubeDef,qIndentMode:!1}})}}}));