@nebula.js/sn-pivot-table 3.6.0 → 3.7.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.
package/core/esm/index.js CHANGED
@@ -1,22 +1,12 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v3.6.0
2
+ * @nebula.js/sn-pivot-table v3.7.0
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- import{useTheme as e,useMemo as t,usePromise as r,useEffect as n,onContextMenu as o,useState as i,onTakeSnapshot as a,useImperativeHandle as l,useTranslator as s,useOptions as u,useElement as c,useStaleLayout as d,useModel as p,useApp as f,useEmbed as h,useKeyboard as m,useInteractionState as g,useSelections as v,useRect as b}from"@nebula.js/stardust";import*as y from"react";import x,{useMemo as S,useState as E,useContext as C,createElement as w,Children as R,isValidElement as L,cloneElement as A,useRef as I,forwardRef as M,useCallback as D,useEffect as P,createContext as _,memo as O,useLayoutEffect as k,PureComponent as T}from"react";import*as q from"react-dom";import N from"react-dom";function F(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var j={exports:{}};self,j.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Pe});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,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=b(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=b(d,f),v=b(p,m);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},A=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function M(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=M(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(e,t){var r=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){_(e[n],t[n])||(r=!1)})),r);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!_(e[n],t[n]))return!1;return!0}return e===t}L.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);_(i,a)||D(t,o)||(M(a)?n.push({op:"add",path:l,value:i}):I(i)&&I(a)?n=n.concat(L.generate(a,i,l)):A(i)&&A(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&M(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(_(t,o))return n;if(!M(t[0])&&M(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(L.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!D(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},L.apply=function(e,t){t.forEach((function(t){var r,n,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(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);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const O=L,k=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var j="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===j)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===j)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const B={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var v=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(G(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(G(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(G(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(G(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(G(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)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===W)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(W))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t,r){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,r){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t,r){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(r(e,be,i(e,ve)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(r(e,ve,i(e,be)),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,be),r=i(e,xe);return void 0!==t||void 0!==r}};const Ie=Ae;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:z,movingAverage:B,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:De,apply:Oe,applyModifiers:ke,cleanUpMeasure:Te,destroy:function(e){e&&_e[e.id]&&_e[e.id].masterItemSubscriber&&(_e[e.id].masterItemSubscriber&&_e[e.id].masterItemSubscriber.unsubscribe(),delete _e[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Ie.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=je(e);Ye({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var _e={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;_e[r.id]=_e[r.id]||{isFirstTime:!0};var u=_e[r.id].isFirstTime;if(_e[r.id].isFirstTime=!1,n&&"object"===Me(n))return ke({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[r.id].lastReloadTime;if(_e[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ye({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Ge(n);var o=Qe(n);return Ue({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return h&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===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&&Be(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),ke({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===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 ze(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function ke(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Ge(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ye({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(r)||Ie.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}),He(r)):Te(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 Te(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&!De[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:r,layout:n})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(De[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||De[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Ge(e){ze(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!De[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Be(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ye({modifiers:je(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):k(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=je(t);if(Ye({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>Ge});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},b=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function 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}const M=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},D=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},P=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},_=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return A(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},G=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var 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.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},H=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function B(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 W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:s}),m({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,v({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),b({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),v=i.getValue(n,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?_():w,L=s.defaultMeasure,A=void 0===L?O():L;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:b}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:b,defaultMeasure:A}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:b}),D("qMaxStackedCells",v,b),D("qNoOfLeftDims",v,b),P("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",v,b,"S"),P("qReductionMode",v,b,"N"),P("qSortbyYValue",v,b),P("qIndentMode",v,b),P("qShowTotalsAbove",v,b),M(g,t,n),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return H({measures:b.qMeasures,modifierTypes:I}),p&&B(m.qProperty,"storedFilters"),"S"===b.qMode&&h&&B(m.qProperty,"dynamicScript"),m}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function U(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(Y(a,t,n,o),U(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||l,key:r||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}n||(i.auto=!1,i.mode=a)}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},ve={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.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=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:v,properties:d})&&he(d):me(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?B(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):B(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}}),be.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=ve.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=ve.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",Ae="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const De={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ae,arrayName:Ie,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:Me,arrayName:Ie,quarantineName:Ae})}};var Pe="qHyperCubeDef.qMeasures",_e="measures",Oe="qHyperCubeDef.qDimensions",ke="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:je,arrayName:_e,itemPath:ze}),we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:je,arrayName:_e,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Te,quarantineName:je,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:je,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})}},Ge={hypercube:W,colorChart:ve,axisChart:Ee,quarantineProperty:x,unquarantineProperty:B,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:$e}})(),n.default})();var $=F(j.exports);const G="qHyperCubeDef.qDimensions",H="dimensions",B="qDef.representation",W="tableRepresentation",V=e=>{$.unquarantineArrayProp({properties:e,arrayPath:G,itemPath:B,arrayName:H,quarantineName:W})},Y=e=>{$.quarantineArrayProp({properties:e,arrayPath:G,itemPath:B,arrayName:H,quarantineName:W})};var U=["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"],K=["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 X(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?K:U}var J=Object.prototype.hasOwnProperty,Z=Object.prototype.toString,Q=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,te=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Z.call(e)},re=function(e){if(!e||"[object Object]"!==Z.call(e))return!1;var t,r=J.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&J.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||J.call(e,t)},ne=function(e,t){Q&&"__proto__"===t.name?Q(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},oe=function(e,t){if("__proto__"===t){if(!J.call(e,t))return;if(ee)return ee(e,t).value}return e[t]};function ie(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ae(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function le(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(r in t)n=oe(l,r),l!==(o=oe(t,r))&&(c&&o&&(re(o)||(i=te(o)))?(i?(i=!1,a=n&&te(n)?n:[]):a=n&&re(n)?n:{},ne(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&ne(l,{name:r,newValue:o}));return l}));var se=1/.7,ue="\\s*([+-]?\\d+)\\s*",ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",de="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pe=/^#([0-9a-f]{3,8})$/,fe=new RegExp(`^rgb\\(${ue},${ue},${ue}\\)$`),he=new RegExp(`^rgb\\(${de},${de},${de}\\)$`),me=new RegExp(`^rgba\\(${ue},${ue},${ue},${ce}\\)$`),ge=new RegExp(`^rgba\\(${de},${de},${de},${ce}\\)$`),ve=new RegExp(`^hsl\\(${ce},${de},${de}\\)$`),be=new RegExp(`^hsla\\(${ce},${de},${de},${ce}\\)$`),ye={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 xe(){return this.rgb().formatHex()}function Se(){return this.rgb().formatRgb()}function Ee(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=pe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ce(t):3===r?new Ae(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?we(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?we(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=fe.exec(e))?new Ae(t[1],t[2],t[3],1):(t=he.exec(e))?new Ae(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=me.exec(e))?we(t[1],t[2],t[3],t[4]):(t=ge.exec(e))?we(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ve.exec(e))?Oe(t[1],t[2]/100,t[3]/100,1):(t=be.exec(e))?Oe(t[1],t[2]/100,t[3]/100,t[4]):ye.hasOwnProperty(e)?Ce(ye[e]):"transparent"===e?new Ae(NaN,NaN,NaN,0):null}function Ce(e){return new Ae(e>>16&255,e>>8&255,255&e,1)}function we(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ae(e,t,r,n)}function Re(e){return e instanceof le||(e=Ee(e)),e?new Ae((e=e.rgb()).r,e.g,e.b,e.opacity):new Ae}function Le(e,t,r,n){return 1===arguments.length?Re(e):new Ae(e,t,r,null==n?1:n)}function Ae(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ie(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}`}function Me(){const e=De(this.opacity);return`${1===e?"rgb(":"rgba("}${Pe(this.r)}, ${Pe(this.g)}, ${Pe(this.b)}${1===e?")":`, ${e})`}`}function De(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Pe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _e(e){return((e=Pe(e))<16?"0":"")+e.toString(16)}function Oe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Te(e,t,r,n)}function ke(e){if(e instanceof Te)return new Te(e.h,e.s,e.l,e.opacity);if(e instanceof le||(e=Ee(e)),!e)return new Te;if(e instanceof Te)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 Te(a,l,s,e.opacity)}function Te(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function qe(e){return(e=(e||0)%360)<0?e+360:e}function Ne(e){return Math.max(0,Math.min(1,e||0))}function Fe(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}ie(le,Ee,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:xe,formatHex:xe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ke(this).formatHsl()},formatRgb:Se,toString:Se}),ie(Ae,Le,ae(le,{brighter(e){return e=null==e?se:Math.pow(se,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ae(Pe(this.r),Pe(this.g),Pe(this.b),De(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:Ie,formatHex:Ie,formatHex8:function(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}${_e(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Me,toString:Me})),ie(Te,(function(e,t,r,n){return 1===arguments.length?ke(e):new Te(e,t,r,null==n?1:n)}),ae(le,{brighter(e){return e=null==e?se:Math.pow(se,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Te(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 Ae(Fe(e>=240?e-240:e+120,o,n),Fe(e,o,n),Fe(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Te(qe(this.h),Ne(this.s),Ne(this.l),De(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=De(this.opacity);return`${1===e?"hsl(":"hsla("}${qe(this.h)}, ${100*Ne(this.s)}%, ${100*Ne(this.l)}%${1===e?")":`, ${e})`}`}}));const ze=Math.PI/180,je=180/Math.PI,$e=4/29,Ge=6/29,He=3*Ge*Ge;function Be(e){if(e instanceof We)return new We(e.l,e.a,e.b,e.opacity);if(e instanceof Xe)return Je(e);e instanceof Ae||(e=Re(e));var t,r,n=Ke(e.r),o=Ke(e.g),i=Ke(e.b),a=Ve((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Ve((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Ve((.0139322*n+.0971045*o+.7141733*i)/.82521)),new We(116*a-16,500*(t-a),200*(a-r),e.opacity)}function We(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Ve(e){return e>.008856451679035631?Math.pow(e,1/3):e/He+$e}function Ye(e){return e>Ge?e*e*e:He*(e-$e)}function Ue(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ke(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Xe(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Je(e){if(isNaN(e.h))return new We(e.l,0,0,e.opacity);var t=e.h*ze;return new We(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ie(We,(function(e,t,r,n){return 1===arguments.length?Be(e):new We(e,t,r,null==n?1:n)}),ae(le,{brighter(e){return new We(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new We(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 Ae(Ue(3.1338561*(t=.96422*Ye(t))-1.6168667*(e=1*Ye(e))-.4906146*(r=.82521*Ye(r))),Ue(-.9787684*t+1.9161415*e+.033454*r),Ue(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),ie(Xe,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Xe)return new Xe(e.h,e.c,e.l,e.opacity);if(e instanceof We||(e=Be(e)),0===e.a&&0===e.b)return new Xe(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*je;return new Xe(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Xe(e,t,r,null==n?1:n)}),ae(le,{brighter(e){return new Xe(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Xe(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Je(this).rgb()}}));var Ze=e=>()=>e;function Qe(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ze(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Qe: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):Ze(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Le(e)).r,(t=Le(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Qe(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 et="center",tt="bottom";[{key:"NoDataExist",alignment:et,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:et,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:et,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:et},{key:"DataRangeIncludingZero",alignment:tt},{key:"LimitedData",alignment:tt},{key:"NegativeOrZeroValues",alignment:tt}].reduce((function(e,t){return e[t.key]=t,e}),{});var rt,nt=["__proto__","constructor"];function ot(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!nt.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 it(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 at(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=st)):void 0===t&&(t=lt);for(var r,n,o,i,a,l=new dt(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 dt(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(ct)}function lt(e){return e.children}function st(e){return Array.isArray(e)?e[1]:null}function ut(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ct(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function dt(e){this.data=e,this.depth=this.height=0,this.parent=null}function pt(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")}}]}}dt.prototype=at.prototype={constructor:dt,count:function(){return this.eachAfter(it)},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 at(this).eachBefore(ut)},[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)}},rt=function(e){
7
+ import{useState as e,useEffect as t,useTheme as n,useMemo as r,usePromise as o,onContextMenu as i,useOptions as a,onTakeSnapshot as l,useImperativeHandle as s,useTranslator as u,useElement as c,useStaleLayout as d,useModel as p,useApp as f,useEmbed as h,useKeyboard as m,useInteractionState as g,useSelections as b,useRect as v}from"@nebula.js/stardust";import*as y from"react";import x,{useContext as S,createElement as E,Children as C,isValidElement as w,cloneElement as R,useMemo as L,useState as A,useRef as I,forwardRef as M,useCallback as D,useEffect as P,createContext as _,memo as O,useLayoutEffect as T,PureComponent as k}from"react";import*as q from"react-dom";import N from"react-dom";function F(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var j={exports:{}};self,j.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Pe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=h(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},A=Array.isArray;function I(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 n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?i:e[t],e=e[n||t]}})),e}function _(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){_(e[r],t[r])||(n=!1)})),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!_(e[r],t[r]))return!1;return!0}return e===t}L.generate=function(e,t,n){n=n||"";var r=[];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(n,"/").concat(o);_(i,a)||D(t,o)||(M(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(L.generate(a,i,l)):A(i)&&A(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(_(t,o))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(L.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!D(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},L.apply=function(e,t){t.forEach((function(t){var n,r,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(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!D(n,e)&&delete n[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);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const O=L,T=function(e,n,r){if(!e)return Promise.resolve();var o=O.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var k="accumulation";function q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===k)return n[r]}function N(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===k)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=q(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=q(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(k))return!1;var i=q(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const B={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),h=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(G(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(G(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(G(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(G(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(G(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var W="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function Y(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,U),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(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,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&n(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=Ae;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:z,movingAverage:B,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:De,apply:Oe,applyModifiers:Te,cleanUpMeasure:ke,destroy:function(e){e&&_e[e.id]&&_e[e.id].masterItemSubscriber&&(_e[e.id].masterItemSubscriber&&_e[e.id].masterItemSubscriber.unsubscribe(),delete _e[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return De[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var _e={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;_e[n.id]=_e[n.id]||{isFirstTime:!0};var u=_e[n.id].isFirstTime;if(_e[n.id].isFirstTime=!1,r&&"object"===Me(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[n.id].lastReloadTime;if(_e[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Ge(r);var o=Qe(r);return Ue({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return h&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Be(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Te({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Me(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return ke(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Ge(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!qe({measures:n,properties:r}))return n.forEach((function(e){return ke(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(l++,"object"!==Me(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,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:De[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[r.type].updateModifier&&De[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:De[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),He(n)):ke(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function ke(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&!De[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function qe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(De[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||De[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Ge(e){ze(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!De[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Be(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ue(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var i=We(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Ge});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var L=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},D=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},P=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},_=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},k=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=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,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.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,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return A(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},G=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function B(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:s}),m({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?_():w,L=s.defaultMeasure,A=void 0===L?O():L;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),k({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),D("qMaxStackedCells",b,v),D("qNoOfLeftDims",b,v),P("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",b,v,"S"),P("qReductionMode",b,v,"N"),P("qSortbyYValue",b,v),P("qIndentMode",b,v),P("qShowTotalsAbove",b,v),M(g,t,r),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return H({measures:v.qMeasures,modifierTypes:I}),p&&B(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&B(m.qProperty,"dynamicScript"),m}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function 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 n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(Y(a,t,r,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,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?B(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):B(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",Ae="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const De={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ae,arrayName:Ie,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:Me,arrayName:Ie,quarantineName:Ae})}};var Pe="qHyperCubeDef.qMeasures",_e="measures",Oe="qHyperCubeDef.qDimensions",Te="dimensions",ke="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:je,arrayName:_e,itemPath:ze}),we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:je,arrayName:_e,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:ke,quarantineName:je,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:ke,quarantineName:je,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})}},Ge={hypercube:W,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:B,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:$e}})(),r.default})();var $=F(j.exports);const G="qHyperCubeDef.qDimensions",H="dimensions",B="qDef.representation",W="tableRepresentation",V=e=>{$.unquarantineArrayProp({properties:e,arrayPath:G,itemPath:B,arrayName:H,quarantineName:W})},Y=e=>{$.quarantineArrayProp({properties:e,arrayPath:G,itemPath:B,arrayName:H,quarantineName:W})};var U=["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"],K=["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 X(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?K:U}var J=Object.prototype.hasOwnProperty,Z=Object.prototype.toString,Q=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,te=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Z.call(e)},ne=function(e){if(!e||"[object Object]"!==Z.call(e))return!1;var t,n=J.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&J.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||J.call(e,t)},re=function(e,t){Q&&"__proto__"===t.name?Q(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},oe=function(e,t){if("__proto__"===t){if(!J.call(e,t))return;if(ee)return ee(e,t).value}return e[t]};function ie(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ae(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function le(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=oe(l,n),l!==(o=oe(t,n))&&(c&&o&&(ne(o)||(i=te(o)))?(i?(i=!1,a=r&&te(r)?r:[]):a=r&&ne(r)?r:{},re(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&re(l,{name:n,newValue:o}));return l}));var se=1/.7,ue="\\s*([+-]?\\d+)\\s*",ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",de="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pe=/^#([0-9a-f]{3,8})$/,fe=new RegExp(`^rgb\\(${ue},${ue},${ue}\\)$`),he=new RegExp(`^rgb\\(${de},${de},${de}\\)$`),me=new RegExp(`^rgba\\(${ue},${ue},${ue},${ce}\\)$`),ge=new RegExp(`^rgba\\(${de},${de},${de},${ce}\\)$`),be=new RegExp(`^hsl\\(${ce},${de},${de}\\)$`),ve=new RegExp(`^hsla\\(${ce},${de},${de},${ce}\\)$`),ye={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 xe(){return this.rgb().formatHex()}function Se(){return this.rgb().formatRgb()}function Ee(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ce(t):3===n?new Ae(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?we(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?we(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=fe.exec(e))?new Ae(t[1],t[2],t[3],1):(t=he.exec(e))?new Ae(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=me.exec(e))?we(t[1],t[2],t[3],t[4]):(t=ge.exec(e))?we(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=be.exec(e))?Oe(t[1],t[2]/100,t[3]/100,1):(t=ve.exec(e))?Oe(t[1],t[2]/100,t[3]/100,t[4]):ye.hasOwnProperty(e)?Ce(ye[e]):"transparent"===e?new Ae(NaN,NaN,NaN,0):null}function Ce(e){return new Ae(e>>16&255,e>>8&255,255&e,1)}function we(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ae(e,t,n,r)}function Re(e){return e instanceof le||(e=Ee(e)),e?new Ae((e=e.rgb()).r,e.g,e.b,e.opacity):new Ae}function Le(e,t,n,r){return 1===arguments.length?Re(e):new Ae(e,t,n,null==r?1:r)}function Ae(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ie(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}`}function Me(){const e=De(this.opacity);return`${1===e?"rgb(":"rgba("}${Pe(this.r)}, ${Pe(this.g)}, ${Pe(this.b)}${1===e?")":`, ${e})`}`}function De(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Pe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _e(e){return((e=Pe(e))<16?"0":"")+e.toString(16)}function Oe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ke(e,t,n,r)}function Te(e){if(e instanceof ke)return new ke(e.h,e.s,e.l,e.opacity);if(e instanceof le||(e=Ee(e)),!e)return new ke;if(e instanceof ke)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new ke(a,l,s,e.opacity)}function ke(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function qe(e){return(e=(e||0)%360)<0?e+360:e}function Ne(e){return Math.max(0,Math.min(1,e||0))}function Fe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ie(le,Ee,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:xe,formatHex:xe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Te(this).formatHsl()},formatRgb:Se,toString:Se}),ie(Ae,Le,ae(le,{brighter(e){return e=null==e?se:Math.pow(se,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ae(Pe(this.r),Pe(this.g),Pe(this.b),De(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:Ie,formatHex:Ie,formatHex8:function(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}${_e(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Me,toString:Me})),ie(ke,(function(e,t,n,r){return 1===arguments.length?Te(e):new ke(e,t,n,null==r?1:r)}),ae(le,{brighter(e){return e=null==e?se:Math.pow(se,e),new ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ke(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ae(Fe(e>=240?e-240:e+120,o,r),Fe(e,o,r),Fe(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ke(qe(this.h),Ne(this.s),Ne(this.l),De(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=De(this.opacity);return`${1===e?"hsl(":"hsla("}${qe(this.h)}, ${100*Ne(this.s)}%, ${100*Ne(this.l)}%${1===e?")":`, ${e})`}`}}));const ze=Math.PI/180,je=180/Math.PI,$e=4/29,Ge=6/29,He=3*Ge*Ge;function Be(e){if(e instanceof We)return new We(e.l,e.a,e.b,e.opacity);if(e instanceof Xe)return Je(e);e instanceof Ae||(e=Re(e));var t,n,r=Ke(e.r),o=Ke(e.g),i=Ke(e.b),a=Ve((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Ve((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Ve((.0139322*r+.0971045*o+.7141733*i)/.82521)),new We(116*a-16,500*(t-a),200*(a-n),e.opacity)}function We(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ve(e){return e>.008856451679035631?Math.pow(e,1/3):e/He+$e}function Ye(e){return e>Ge?e*e*e:He*(e-$e)}function Ue(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ke(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Xe(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Je(e){if(isNaN(e.h))return new We(e.l,0,0,e.opacity);var t=e.h*ze;return new We(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ie(We,(function(e,t,n,r){return 1===arguments.length?Be(e):new We(e,t,n,null==r?1:r)}),ae(le,{brighter(e){return new We(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new We(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ae(Ue(3.1338561*(t=.96422*Ye(t))-1.6168667*(e=1*Ye(e))-.4906146*(n=.82521*Ye(n))),Ue(-.9787684*t+1.9161415*e+.033454*n),Ue(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ie(Xe,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Xe)return new Xe(e.h,e.c,e.l,e.opacity);if(e instanceof We||(e=Be(e)),0===e.a&&0===e.b)return new Xe(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*je;return new Xe(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Xe(e,t,n,null==r?1:r)}),ae(le,{brighter(e){return new Xe(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Xe(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Je(this).rgb()}}));var Ze=e=>()=>e;function Qe(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ze(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Qe:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ze(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Le(e)).r,(t=Le(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Qe(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var et="center",tt="bottom";[{key:"NoDataExist",alignment:et,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:et,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:et,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:et},{key:"DataRangeIncludingZero",alignment:tt},{key:"LimitedData",alignment:tt},{key:"NegativeOrZeroValues",alignment:tt}].reduce((function(e,t){return e[t.key]=t,e}),{});var nt,rt=["__proto__","constructor"];function ot(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!rt.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function it(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}function at(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function lt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ut)):void 0===t&&(t=st);for(var n,r,o,i,a,l=new pt(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new pt(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(dt)}function st(e){return e.children}function ut(e){return Array.isArray(e)?e[1]:null}function ct(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function dt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function pt(e){this.data=e,this.depth=this.height=0,this.parent=null}function ft(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o=r&&"rows"===r.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}pt.prototype=lt.prototype={constructor:pt,count:function(){return this.eachAfter(at)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return lt(this).eachBefore(ct)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},nt=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},rt({exports:{}});const ft="qHyperCubeDef.qDimensions",ht="dimensions",mt="qOtherTotalSpec.qTotalMode",gt="totalMode",vt={quarantine(e){$.quarantineArrayProp({properties:e,arrayPath:ft,quarantineName:gt,arrayName:ht,itemPath:mt})},unquarantine(e){$.unquarantineArrayProp({properties:e,arrayPath:ft,quarantineName:gt,arrayName:ht,itemPath:mt})}};function bt(e){const t=pt(e);return(e,r,n,o)=>{var i,a,l,s,u,c;const d=$.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),p=((null===(i=d.qProperty)||void 0===i||null===(i=i.qHyperCubeDef)||void 0===i?void 0:i.qDimensions)||[]).length,f=(null===(a=d.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a||null===(a=a.qMeasures)||void 0===a?void 0:a.length)||0;let h,m=(null===(l=d.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l?void 0:l.qInterColumnSortOrder)||[],g=!0;p+f===m.length&&ot(d,"qProperty.qLayoutExclude.quarantine.interColSortOrder",m.concat());const v=(null==d||null===(s=d.qProperty)||void 0===s||null===(s=s.qLayoutExclude)||void 0===s||null===(s=s.quarantine)||void 0===s?void 0:s.pivotInterColSortOrder)||void 0;v?(m=v,h=[...v],ot(d,"qProperty.qHyperCubeDef.qInterColumnSortOrder",m),delete d.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):m.length=0;const b=+(m.indexOf(-1)>-1),y=p+b;if(y>m.length)for(let e=m.length;e<y;e++)m.indexOf(e)<0&&m.push(e-b);for(let e=m.length-1;e>=0;e--)m[e]>=p&&m.splice(e,1);f>1&&m.indexOf(-1)<0?m.push(-1):f<2&&m.indexOf(-1)>-1&&m.splice(m.indexOf(-1),1);const x=null!==(u=null==d||null===(c=d.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qNoOfLeftDims)&&void 0!==u?u:-1;if(p>0&&-1===x&&ot(d,"qProperty.qHyperCubeDef.qNoOfLeftDims",p),h&&m&&h.length===m.length){for(let e=0;e<h.length;e++)if(h[e]!==m[e]){g=!1;break}g&&$.unquarantineProperty(d.qProperty,"noOfLeftDims")}return $.conditionalShow.unquarantine(d.qProperty),vt.unquarantine(d.qProperty),V(d.qProperty),d}}function yt(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=$.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;ot(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),$.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,ot(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),ot(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 $.conditionalShow.quarantine(s.properties),vt.quarantine(s.properties),Y(s.properties),s}const xt={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},St="12px",Et="nebula-table-utils-head-menu-button",Ct="sn-copy-cell";let wt=function(e){return e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c",e}({});const Rt="nebula-table-utils-column-adjuster",Lt=`${Rt}-border`;let At=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}({}),It=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Mt=(e,t)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",options(){const r=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&r.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),r}}},Dt=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},Pt=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},_t=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5715_LINKS"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=n&&null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:Mt(a,i),...Dt(i),...Pt(a)}},Ot=e=>{var t,r;const{flags:n,anything:o}=e,i=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:i?{uses:"measureRepresentationItems.representationType",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0}};var kt,Tt;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(kt||(kt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(Tt||(Tt={}));var qt,Nt,Ft,zt,jt=kt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(qt||(qt={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Nt||(Nt={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ft||(Ft={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(zt||(zt={}));const $t="TOTAL_OFF",Gt="image",Ht={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Nt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Nt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Nt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Nt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Nt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Nt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]};function Bt(e,t,r){if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=r.properties.qHyperCubeDef.qNoOfLeftDims;n>-1&&n<o&&(o-=1);const i=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o}const Wt=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),Vt=e=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:It.Auto,translation:"Common.Auto"},{value:It.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:It.Pixels,translation:"Object.Table.Column.Pixels"},{value:It.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:It.Auto,show:(t,r,n)=>Wt(n,e)},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:At.PixelsDefault,show:(t,r,n)=>{var o;return Wt(n,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===It.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(At.PixelsMin,Math.min(At.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:At.PercentageDefault,show:(t,r,n)=>{var o;return Wt(n,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===It.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(At.PercentageMin,Math.min(At.PercentageMax,e.qDef.columnWidth.percentage)))}}}),Yt=({key:e,translation:t,env:r})=>{var n,o;if(!r.flags.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN"))return;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)!==Gt}},[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)!==Gt)}}}},Ut=e=>{var t,r;const{translator:n,anything:o,flags:i}=e;return{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:$t,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:$t,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&Bt},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)!==$t&&Bt(e,0,r)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Ht,...Yt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Yt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),..._t(e),...Vt(i)}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Ht,...Yt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Yt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ot(e),...Vt(i)}}}}},Kt="12px",Xt="Source Sans Pro, sans-serif",Jt="600",Zt=15e3,Qt=15e3,er=4/3,tr=1;var rr,nr;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(rr||(rr={})),function(e){e.Solid="solid",e.None="none"}(nr||(nr={}));const or={display:"flex",justifyContent:"center",alignItems:"center"},ir={borderStyle:"solid"},ar={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},lr={lineHeight:"calc(1.3333333333333333)",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},sr=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),ur=(e,t)=>e>0?`${e}px ${nr.Solid} ${t}`:nr.None,cr=(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:ur(o,r),borderBottom:ur(i,r),borderLeft:nr.None,borderTop:nr.None}},dr=(e,t,r,n,o,i)=>{const a=cr(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=ur(2,o)),r||(a.borderLeft=ur(1,o))),a},pr=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=ur(1,r)),t&&(n.borderRight=ur(1,r)),n},fr=(e,t,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,n){const o=n.theme.current(),i=r(o);return{color:i===rr.Transparent.toString()?"none":i}}}),hr=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),mr=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:hr("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?hr("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:fr("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:rr.DividerLight})),divider:fr("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:rr.DividerDark})),background:fr("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:rr.Transparent}))}}}}),gr=(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},vr=({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:Xt,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=>gr(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...X(n).filter((e=>!s.includes(e))).map((e=>gr(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),br=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],yr=({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=>gr(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...br.filter((e=>!a.includes(e))).map((e=>gr(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),xr=(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}},Sr=({section:e,defaultFontStyle:t,translator:r,flags:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:vr({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=xr(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:yr({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=xr(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:fr(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=xr(t,e,"color"))&&void 0!==r?r:t.color}))}},background:fr(`${e}.background`,"properties.background",(t=>{var r;return null!==(r=xr(t,e,"backgroundColor"))&&void 0!==r?r:rr.Transparent}))}}}}),Er=({section:e,defaultFontStyle:t,fallbackBackground:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:fr(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=xr(t,e,"color"))&&void 0!==r?r:t.color}))}},background:fr(`${e}.background`,"properties.background",(t=>{var n,o;return null!==(n=null!==(o=xr(t,e,"backgroundColor"))&&void 0!==o?o:r)&&void 0!==n?n:rr.Transparent}))}}}}),Cr=(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:Sr({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:Sr({section:"dimensionValues",translator:e,flags:t}),measureValueSection:Sr({section:"measureValues",translator:e,flags:t}),measureLabelSection:Er({section:"measureLabels"}),totalValuesSection:Er({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:Er({section:"nullValues",fallbackBackground:rr.NullValueBackground}),gridSection:mr(t)}}]}),wr=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:It.Auto,translation:"Common.Auto"},{value:It.Pixels,translation:"Object.Table.Column.Pixels"},{value:It.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:It.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:At.PixelsDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===It.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(At.PixelsMin,Math.min(At.PixelsMax,r.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:At.PercentageDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===It.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(At.PercentageMin,Math.min(At.PercentageMaxInIndentMode,r.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){var t;return!e.qHyperCubeDef.qIndentMode&&(null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qDimensions)||void 0===t?void 0:t.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)})))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}),Rr=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Cr(e,t),wr(t)]}}}),Lr="auto",Ar={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:Lr,translation:"Object.Table.SortingInSearch",options:[{value:Lr,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Ir(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:Ut(e),sorting:Ar,addons:xt,settings:Rr(t,r)}}}function Mr(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Ir(e),importProperties:bt(e),exportProperties:yt}}function Dr(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Pr(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function _r(){}var Or=.7,kr=1/Or,Tr="\\s*([+-]?\\d+)\\s*",qr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Nr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fr=/^#([0-9a-f]{3,8})$/,zr=new RegExp(`^rgb\\(${Tr},${Tr},${Tr}\\)$`),jr=new RegExp(`^rgb\\(${Nr},${Nr},${Nr}\\)$`),$r=new RegExp(`^rgba\\(${Tr},${Tr},${Tr},${qr}\\)$`),Gr=new RegExp(`^rgba\\(${Nr},${Nr},${Nr},${qr}\\)$`),Hr=new RegExp(`^hsl\\(${qr},${Nr},${Nr}\\)$`),Br=new RegExp(`^hsla\\(${qr},${Nr},${Nr},${qr}\\)$`),Wr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Vr(){return this.rgb().formatHex()}function Yr(){return this.rgb().formatRgb()}function Ur(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Fr.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Kr(t):3===r?new Qr(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Xr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Xr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=zr.exec(e))?new Qr(t[1],t[2],t[3],1):(t=jr.exec(e))?new Qr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=$r.exec(e))?Xr(t[1],t[2],t[3],t[4]):(t=Gr.exec(e))?Xr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Hr.exec(e))?an(t[1],t[2]/100,t[3]/100,1):(t=Br.exec(e))?an(t[1],t[2]/100,t[3]/100,t[4]):Wr.hasOwnProperty(e)?Kr(Wr[e]):"transparent"===e?new Qr(NaN,NaN,NaN,0):null}function Kr(e){return new Qr(e>>16&255,e>>8&255,255&e,1)}function Xr(e,t,r,n){return n<=0&&(e=t=r=NaN),new Qr(e,t,r,n)}function Jr(e){return e instanceof _r||(e=Ur(e)),e?new Qr((e=e.rgb()).r,e.g,e.b,e.opacity):new Qr}function Zr(e,t,r,n){return 1===arguments.length?Jr(e):new Qr(e,t,r,null==n?1:n)}function Qr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function en(){return`#${on(this.r)}${on(this.g)}${on(this.b)}`}function tn(){const e=rn(this.opacity);return`${1===e?"rgb(":"rgba("}${nn(this.r)}, ${nn(this.g)}, ${nn(this.b)}${1===e?")":`, ${e})`}`}function rn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function on(e){return((e=nn(e))<16?"0":"")+e.toString(16)}function an(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new sn(e,t,r,n)}function ln(e){if(e instanceof sn)return new sn(e.h,e.s,e.l,e.opacity);if(e instanceof _r||(e=Ur(e)),!e)return new sn;if(e instanceof sn)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new sn(a,l,s,e.opacity)}function sn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function un(e){return(e=(e||0)%360)<0?e+360:e}function cn(e){return Math.max(0,Math.min(1,e||0))}function dn(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Dr(_r,Ur,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Vr,formatHex:Vr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ln(this).formatHsl()},formatRgb:Yr,toString:Yr}),Dr(Qr,Zr,Pr(_r,{brighter(e){return e=null==e?kr:Math.pow(kr,e),new Qr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Or:Math.pow(Or,e),new Qr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qr(nn(this.r),nn(this.g),nn(this.b),rn(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:en,formatHex:en,formatHex8:function(){return`#${on(this.r)}${on(this.g)}${on(this.b)}${on(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:tn,toString:tn})),Dr(sn,(function(e,t,r,n){return 1===arguments.length?ln(e):new sn(e,t,r,null==n?1:n)}),Pr(_r,{brighter(e){return e=null==e?kr:Math.pow(kr,e),new sn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Or:Math.pow(Or,e),new sn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Qr(dn(e>=240?e-240:e+120,o,n),dn(e,o,n),dn(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new sn(un(this.h),cn(this.s),cn(this.l),rn(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=rn(this.opacity);return`${1===e?"hsl(":"hsla("}${un(this.h)}, ${100*cn(this.s)}%, ${100*cn(this.l)}%${1===e?")":`, ${e})`}`}}));const pn=Math.PI/180,fn=180/Math.PI,hn=.96422,mn=1,gn=.82521,vn=4/29,bn=6/29,yn=3*bn*bn,xn=bn*bn*bn;function Sn(e){if(e instanceof En)return new En(e.l,e.a,e.b,e.opacity);if(e instanceof In)return Mn(e);e instanceof Qr||(e=Jr(e));var t,r,n=Ln(e.r),o=Ln(e.g),i=Ln(e.b),a=Cn((.2225045*n+.7168786*o+.0606169*i)/mn);return n===o&&o===i?t=r=a:(t=Cn((.4360747*n+.3850649*o+.1430804*i)/hn),r=Cn((.0139322*n+.0971045*o+.7141733*i)/gn)),new En(116*a-16,500*(t-a),200*(a-r),e.opacity)}function En(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Cn(e){return e>xn?Math.pow(e,1/3):e/yn+vn}function wn(e){return e>bn?e*e*e:yn*(e-vn)}function Rn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ln(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function An(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof In)return new In(e.h,e.c,e.l,e.opacity);if(e instanceof En||(e=Sn(e)),0===e.a&&0===e.b)return new In(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*fn;return new In(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new In(e,t,r,null==n?1:n)}function In(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Mn(e){if(isNaN(e.h))return new En(e.l,0,0,e.opacity);var t=e.h*pn;return new En(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Dr(En,(function(e,t,r,n){return 1===arguments.length?Sn(e):new En(e,t,r,null==n?1:n)}),Pr(_r,{brighter(e){return new En(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new En(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 Qr(Rn(3.1338561*(t=hn*wn(t))-1.6168667*(e=mn*wn(e))-.4906146*(r=gn*wn(r))),Rn(-.9787684*t+1.9161415*e+.033454*r),Rn(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Dr(In,An,Pr(_r,{brighter(e){return new In(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new In(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Mn(this).rgb()}}));const Dn=e=>{if(e){const t=Zr(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},Pn=(e,t,r,n)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==r?void 0:r(e),u=null==n?void 0:n(e),c=s||i||u,d=(e=>!!e&&0===Zr(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:Dn(d?l:c),isTransparent:d}};function _n(e,n){const o=t((()=>({isLoading:!0})),n),[i,a]=r((async()=>{try{return await e()}finally{o.isLoading=!1}}),n);return[i,o.isLoading,a]}var On=Object.prototype.hasOwnProperty,kn=Object.prototype.toString,Tn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,Nn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===kn.call(e)},Fn=function(e){if(!e||"[object Object]"!==kn.call(e))return!1;var t,r=On.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&On.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||On.call(e,t)},zn=function(e,t){Tn&&"__proto__"===t.name?Tn(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},jn=function(e,t){if("__proto__"===t){if(!On.call(e,t))return;if(qn)return qn(e,t).value}return e[t]};function $n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Gn(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Hn(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(r in t)n=jn(l,r),l!==(o=jn(t,r))&&(c&&o&&(Fn(o)||(i=Nn(o)))?(i?(i=!1,a=n&&Nn(n)?n:[]):a=n&&Fn(n)?n:{},zn(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&zn(l,{name:r,newValue:o}));return l}));var Bn=1/.7,Wn="\\s*([+-]?\\d+)\\s*",Vn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Un=/^#([0-9a-f]{3,8})$/,Kn=new RegExp(`^rgb\\(${Wn},${Wn},${Wn}\\)$`),Xn=new RegExp(`^rgb\\(${Yn},${Yn},${Yn}\\)$`),Jn=new RegExp(`^rgba\\(${Wn},${Wn},${Wn},${Vn}\\)$`),Zn=new RegExp(`^rgba\\(${Yn},${Yn},${Yn},${Vn}\\)$`),Qn=new RegExp(`^hsl\\(${Vn},${Yn},${Yn}\\)$`),eo=new RegExp(`^hsla\\(${Vn},${Yn},${Yn},${Vn}\\)$`),to={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 ro(){return this.rgb().formatHex()}function no(){return this.rgb().formatRgb()}function oo(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Un.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?io(t):3===r?new uo(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ao(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ao(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=Kn.exec(e))?new uo(t[1],t[2],t[3],1):(t=Xn.exec(e))?new uo(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Jn.exec(e))?ao(t[1],t[2],t[3],t[4]):(t=Zn.exec(e))?ao(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Qn.exec(e))?go(t[1],t[2]/100,t[3]/100,1):(t=eo.exec(e))?go(t[1],t[2]/100,t[3]/100,t[4]):to.hasOwnProperty(e)?io(to[e]):"transparent"===e?new uo(NaN,NaN,NaN,0):null}function io(e){return new uo(e>>16&255,e>>8&255,255&e,1)}function ao(e,t,r,n){return n<=0&&(e=t=r=NaN),new uo(e,t,r,n)}function lo(e){return e instanceof Hn||(e=oo(e)),e?new uo((e=e.rgb()).r,e.g,e.b,e.opacity):new uo}function so(e,t,r,n){return 1===arguments.length?lo(e):new uo(e,t,r,null==n?1:n)}function uo(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function co(){return`#${mo(this.r)}${mo(this.g)}${mo(this.b)}`}function po(){const e=fo(this.opacity);return`${1===e?"rgb(":"rgba("}${ho(this.r)}, ${ho(this.g)}, ${ho(this.b)}${1===e?")":`, ${e})`}`}function fo(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ho(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mo(e){return((e=ho(e))<16?"0":"")+e.toString(16)}function go(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new bo(e,t,r,n)}function vo(e){if(e instanceof bo)return new bo(e.h,e.s,e.l,e.opacity);if(e instanceof Hn||(e=oo(e)),!e)return new bo;if(e instanceof bo)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 bo(a,l,s,e.opacity)}function bo(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function yo(e){return(e=(e||0)%360)<0?e+360:e}function xo(e){return Math.max(0,Math.min(1,e||0))}function So(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}$n(Hn,oo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ro,formatHex:ro,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vo(this).formatHsl()},formatRgb:no,toString:no}),$n(uo,so,Gn(Hn,{brighter(e){return e=null==e?Bn:Math.pow(Bn,e),new uo(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new uo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new uo(ho(this.r),ho(this.g),ho(this.b),fo(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:co,formatHex:co,formatHex8:function(){return`#${mo(this.r)}${mo(this.g)}${mo(this.b)}${mo(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:po,toString:po})),$n(bo,(function(e,t,r,n){return 1===arguments.length?vo(e):new bo(e,t,r,null==n?1:n)}),Gn(Hn,{brighter(e){return e=null==e?Bn:Math.pow(Bn,e),new bo(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new bo(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 uo(So(e>=240?e-240:e+120,o,n),So(e,o,n),So(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new bo(yo(this.h),xo(this.s),xo(this.l),fo(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=fo(this.opacity);return`${1===e?"hsl(":"hsla("}${yo(this.h)}, ${100*xo(this.s)}%, ${100*xo(this.l)}%${1===e?")":`, ${e})`}`}}));const Eo=Math.PI/180,Co=180/Math.PI,wo=4/29,Ro=6/29,Lo=3*Ro*Ro;function Ao(e){if(e instanceof Io)return new Io(e.l,e.a,e.b,e.opacity);if(e instanceof Oo)return ko(e);e instanceof uo||(e=lo(e));var t,r,n=_o(e.r),o=_o(e.g),i=_o(e.b),a=Mo((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Mo((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Mo((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Io(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Io(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Mo(e){return e>.008856451679035631?Math.pow(e,1/3):e/Lo+wo}function Do(e){return e>Ro?e*e*e:Lo*(e-wo)}function Po(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function _o(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Oo(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ko(e){if(isNaN(e.h))return new Io(e.l,0,0,e.opacity);var t=e.h*Eo;return new Io(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}$n(Io,(function(e,t,r,n){return 1===arguments.length?Ao(e):new Io(e,t,r,null==n?1:n)}),Gn(Hn,{brighter(e){return new Io(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Io(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 uo(Po(3.1338561*(t=.96422*Do(t))-1.6168667*(e=1*Do(e))-.4906146*(r=.82521*Do(r))),Po(-.9787684*t+1.9161415*e+.033454*r),Po(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),$n(Oo,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Oo)return new Oo(e.h,e.c,e.l,e.opacity);if(e instanceof Io||(e=Ao(e)),0===e.a&&0===e.b)return new Oo(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Co;return new Oo(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Oo(e,t,r,null==n?1:n)}),Gn(Hn,{brighter(e){return new Oo(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Oo(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ko(this).rgb()}}));var To,qo=e=>()=>e;function No(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):qo(isNaN(e)?t:e)}function Fo(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 zo(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 jo(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Go)):void 0===t&&(t=$o);for(var r,n,o,i,a,l=new Wo(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 Wo(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Bo)}function $o(e){return e.children}function Go(e){return Array.isArray(e)?e[1]:null}function Ho(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Bo(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Wo(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var r=function(e){return 1==(e=+e)?No: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):qo(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=so(e)).r,(t=so(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=No(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),Wo.prototype=jo.prototype={constructor:Wo,count:function(){return this.eachAfter(zo)},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 jo(this).eachBefore(Ho)},[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)}},To=function(e){
10
- /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
11
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},To({exports:{}});const Vo=3,Yo="N";function Uo(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 Ko({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Vo}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=S((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=Fo(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=Fo((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=Uo(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(Yo).width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var Xo,Jo=N;Xo=Jo.createRoot,Jo.hydrateRoot;function Zo(e,t){const[r,n]=E(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Qo={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 ei=({translator:e})=>(S((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Qo).forEach((t=>{e.add(Qo[t])}))}}(e)),[e]),e),ti=document.createElement("textarea");function ri(e){ti.value=e,document.body.appendChild(ti),ti.select(),ti.setSelectionRange(0,ti.value.length),document.execCommand("copy"),document.body.removeChild(ti)}ti.style.position="absolute",ti.style.left="-9999px",ti.setAttribute("readonly","");function ni(){null==o||o(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${Ct}`);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((()=>ri(r))):ri(r))})(n)}})}))}var oi={exports:{}},ii={},ai=x,li=Symbol.for("react.element"),si=Symbol.for("react.fragment"),ui=Object.prototype.hasOwnProperty,ci=ai.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,di={key:!0,ref:!0,__self:!0,__source:!0};function pi(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)ui.call(t,n)&&!di.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:li,type:e,key:i,ref:a,props:o,_owner:ci.current}}ii.Fragment=si,ii.jsx=pi,ii.jsxs=pi,oi.exports=ii;var fi=oi.exports;function hi(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 mi=Object.freeze({__proto__:null,default:hi}),gi="$$material";function vi(){return vi=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},vi.apply(this,arguments)}function bi(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var yi=function(){return yi=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},yi.apply(this,arguments)};function xi(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 Si="-ms-",Ei="-moz-",Ci="-webkit-",wi="comm",Ri="rule",Li="decl",Ai="@import",Ii="@keyframes",Mi="@layer",Di=Math.abs,Pi=String.fromCharCode,_i=Object.assign;function Oi(e){return e.trim()}function ki(e,t){return(e=t.exec(e))?e[0]:e}function Ti(e,t,r){return e.replace(t,r)}function qi(e,t,r){return e.indexOf(t,r)}function Ni(e,t){return 0|e.charCodeAt(t)}function Fi(e,t,r){return e.slice(t,r)}function zi(e){return e.length}function ji(e){return e.length}function $i(e,t){return t.push(e),e}function Gi(e,t){return e.filter((function(e){return!ki(e,t)}))}var Hi=1,Bi=1,Wi=0,Vi=0,Yi=0,Ui="";function Ki(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Hi,column:Bi,length:a,return:"",siblings:l}}function Xi(e,t){return _i(Ki("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ji(e){for(;e.root;)e=Xi(e.root,{children:[e]});$i(e,e.siblings)}function Zi(){return Yi=Vi>0?Ni(Ui,--Vi):0,Bi--,10===Yi&&(Bi=1,Hi--),Yi}function Qi(){return Yi=Vi<Wi?Ni(Ui,Vi++):0,Bi++,10===Yi&&(Bi=1,Hi++),Yi}function ea(){return Ni(Ui,Vi)}function ta(){return Vi}function ra(e,t){return Fi(Ui,e,t)}function na(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 oa(e){return Oi(ra(Vi-1,la(91===e?e+2:40===e?e+1:e)))}function ia(e){for(;(Yi=ea())&&Yi<33;)Qi();return na(e)>2||na(Yi)>3?"":" "}function aa(e,t){for(;--t&&Qi()&&!(Yi<48||Yi>102||Yi>57&&Yi<65||Yi>70&&Yi<97););return ra(e,ta()+(t<6&&32==ea()&&32==Qi()))}function la(e){for(;Qi();)switch(Yi){case e:return Vi;case 34:case 39:34!==e&&39!==e&&la(Yi);break;case 40:41===e&&la(e);break;case 92:Qi()}return Vi}function sa(e,t){for(;Qi()&&e+Yi!==57&&(e+Yi!==84||47!==ea()););return"/*"+ra(t,Vi-1)+"*"+Pi(47===e?e:Qi())}function ua(e){for(;!na(ea());)Qi();return ra(e,Vi)}function ca(e){return function(e){return Ui="",e}(da("",null,null,null,[""],e=function(e){return Hi=Bi=1,Wi=zi(Ui=e),Vi=0,[]}(e),0,[0],e))}function da(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=i,E=n,C=y;g;)switch(h=b,b=Qi()){case 40:if(108!=h&&58==Ni(C,d-1)){-1!=qi(C+=Ti(oa(b),"&","&\f"),"&\f",Di(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=oa(b);break;case 9:case 10:case 13:case 32:C+=ia(h);break;case 92:C+=aa(ta()-1,7);continue;case 47:switch(ea()){case 42:case 47:$i(fa(sa(Qi(),ta()),t,r,s),s);break;default:C+="/"}break;case 123*m:l[u++]=zi(C)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=Ti(C,/\f/g,"")),f>0&&zi(C)-d&&$i(f>32?ha(C+";",n,r,d-1,s):ha(Ti(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if($i(E=pa(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)da(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Ni(C,3)?100:p){case 100:case 108:case 109:case 115:da(e,E,E,n&&$i(pa(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:da(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=v=1,y=C="",d=a;break;case 58:d=1+zi(C),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Zi())continue;switch(C+=Pi(b),b*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(zi(C)-1)*v,v=1;break;case 64:45===ea()&&(C+=oa(Qi())),p=ea(),c=d=zi(y=C+=ua(ta())),b++;break;case 45:45===h&&2==zi(C)&&(m=0)}}return i}function pa(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=ji(f),m=0,g=0,v=0;m<n;++m)for(var b=0,y=Fi(e,p+1,p=Di(g=a[m])),x=e;b<h;++b)(x=Oi(g>0?f[b]+" "+y:Ti(y,/&\f/g,f[b])))&&(s[v++]=x);return Ki(e,t,r,0===o?Ri:l,s,u,c,d)}function fa(e,t,r,n){return Ki(e,t,r,wi,Pi(Yi),Fi(e,2,-2),0,n)}function ha(e,t,r,n,o){return Ki(e,t,r,Li,Fi(e,0,n),Fi(e,n+1,-1),n,o)}function ma(e,t,r){switch(function(e,t){return 45^Ni(e,0)?(((t<<2^Ni(e,0))<<2^Ni(e,1))<<2^Ni(e,2))<<2^Ni(e,3):0}(e,t)){case 5103:return Ci+"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 Ci+e+e;case 4789:return Ei+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ci+e+Ei+e+Si+e+e;case 5936:switch(Ni(e,t+11)){case 114:return Ci+e+Si+Ti(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ci+e+Si+Ti(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ci+e+Si+Ti(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ci+e+Si+e+e;case 6165:return Ci+e+Si+"flex-"+e+e;case 5187:return Ci+e+Ti(e,/(\w+).+(:[^]+)/,Ci+"box-$1$2"+Si+"flex-$1$2")+e;case 5443:return Ci+e+Si+"flex-item-"+Ti(e,/flex-|-self/g,"")+(ki(e,/flex-|baseline/)?"":Si+"grid-row-"+Ti(e,/flex-|-self/g,""))+e;case 4675:return Ci+e+Si+"flex-line-pack"+Ti(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ci+e+Si+Ti(e,"shrink","negative")+e;case 5292:return Ci+e+Si+Ti(e,"basis","preferred-size")+e;case 6060:return Ci+"box-"+Ti(e,"-grow","")+Ci+e+Si+Ti(e,"grow","positive")+e;case 4554:return Ci+Ti(e,/([^-])(transform)/g,"$1"+Ci+"$2")+e;case 6187:return Ti(Ti(Ti(e,/(zoom-|grab)/,Ci+"$1"),/(image-set)/,Ci+"$1"),e,"")+e;case 5495:case 3959:return Ti(e,/(image-set\([^]*)/,Ci+"$1$`$1");case 4968:return Ti(Ti(e,/(.+:)(flex-)?(.*)/,Ci+"box-pack:$3"+Si+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ci+e+e;case 4200:if(!ki(e,/flex-|baseline/))return Si+"grid-column-align"+Fi(e,t)+e;break;case 2592:case 3360:return Si+Ti(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,ki(e.props,/grid-\w+-end/)}))?~qi(e+(r=r[t].value),"span",0)?e:Si+Ti(e,"-start","")+e+Si+"grid-row-span:"+(~qi(r,"span",0)?ki(r,/\d+/):+ki(r,/\d+/)-+ki(e,/\d+/))+";":Si+Ti(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return ki(e.props,/grid-\w+-start/)}))?e:Si+Ti(Ti(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ti(e,/(.+)-inline(.+)/,Ci+"$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(zi(e)-1-t>6)switch(Ni(e,t+1)){case 109:if(45!==Ni(e,t+4))break;case 102:return Ti(e,/(.+:)(.+)-([^]+)/,"$1"+Ci+"$2-$3$1"+Ei+(108==Ni(e,t+3)?"$3":"$2-$3"))+e;case 115:return~qi(e,"stretch",0)?ma(Ti(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ti(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return Si+r+":"+n+l+(o?Si+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===Ni(e,t+6))return Ti(e,":",":"+Ci)+e;break;case 6444:switch(Ni(e,45===Ni(e,14)?18:11)){case 120:return Ti(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ci+(45===Ni(e,14)?"inline-":"")+"box$3$1"+Ci+"$2$3$1"+Si+"$2box$3")+e;case 100:return Ti(e,":",":"+Si)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ti(e,"scroll-","scroll-snap-")+e}return e}function ga(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function va(e,t,r,n){switch(e.type){case Mi:if(e.children.length)break;case Ai:case Li:return e.return=e.return||e.value;case wi:return"";case Ii:return e.return=e.value+"{"+ga(e.children,n)+"}";case Ri:if(!zi(e.value=e.props.join(",")))return""}return zi(r=ga(e.children,n))?e.return=e.value+"{"+r+"}":""}function ba(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Li:return void(e.return=ma(e.value,e.length,r));case Ii:return ga([Xi(e,{value:Ti(e.value,"@","@"+Ci)})],n);case Ri:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(ki(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ji(Xi(e,{props:[Ti(t,/:(read-\w+)/,":"+Ei+"$1")]})),Ji(Xi(e,{props:[t]})),_i(e,{props:Gi(r,n)});break;case"::placeholder":Ji(Xi(e,{props:[Ti(t,/:(plac\w+)/,":"+Ci+"input-$1")]})),Ji(Xi(e,{props:[Ti(t,/:(plac\w+)/,":"+Ei+"$1")]})),Ji(Xi(e,{props:[Ti(t,/:(plac\w+)/,Si+"input-$1")]})),Ji(Xi(e,{props:[t]})),_i(e,{props:Gi(r,n)})}return""}))}}var ya={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},xa="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Sa="active",Ea="data-styled-version",Ca="6.1.9",wa="/*!sc*/\n",Ra="undefined"!=typeof window&&"HTMLElement"in window,La=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)),Aa={},Ia=Object.freeze([]),Ma=Object.freeze({});function Da(e,t,r){return void 0===r&&(r=Ma),e.theme!==r.theme&&e.theme||t||r.theme}var Pa=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"]),_a=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Oa=/(^-|-$)/g;function ka(e){return e.replace(_a,"-").replace(Oa,"")}var Ta=/(a)(d)/gi,qa=52,Na=function(e){return String.fromCharCode(e+(e>25?39:97))};function Fa(e){var t,r="";for(t=Math.abs(e);t>qa;t=t/qa|0)r=Na(t%qa)+r;return(Na(t%qa)+r).replace(Ta,"$1-$2")}var za,ja=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},$a=function(e){return ja(5381,e)};function Ga(e){return Fa($a(e)>>>0)}function Ha(e){return"string"==typeof e&&!0}var Ba="function"==typeof Symbol&&Symbol.for,Wa=Ba?Symbol.for("react.memo"):60115,Va=Ba?Symbol.for("react.forward_ref"):60112,Ya={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ua={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ka={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xa=((za={})[Va]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},za[Wa]=Ka,za);function Ja(e){return("type"in(t=e)&&t.type.$$typeof)===Wa?Ka:"$$typeof"in e?Xa[e.$$typeof]:Ya;var t}var Za=Object.defineProperty,Qa=Object.getOwnPropertyNames,el=Object.getOwnPropertySymbols,tl=Object.getOwnPropertyDescriptor,rl=Object.getPrototypeOf,nl=Object.prototype;function ol(e,t,r){if("string"!=typeof t){if(nl){var n=rl(t);n&&n!==nl&&ol(e,n,r)}var o=Qa(t);el&&(o=o.concat(el(t)));for(var i=Ja(e),a=Ja(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Ua||r&&r[s]||a&&s in a||i&&s in i)){var u=tl(t,s);try{Za(e,s,u)}catch(e){}}}}return e}function il(e){return"function"==typeof e}function al(e){return"object"==typeof e&&"styledComponentId"in e}function ll(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function sl(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 ul(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function cl(e,t,r){if(void 0===r&&(r=!1),!r&&!ul(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=cl(e[n],t[n]);else if(ul(t))for(var n in t)e[n]=cl(e[n],t[n]);return e}function dl(e,t){Object.defineProperty(e,"toString",{value:t})}function pl(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 fl=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 pl(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(wa);return t},e}(),hl=new Map,ml=new Map,gl=1,vl=function(e){if(hl.has(e))return hl.get(e);for(;ml.has(gl);)gl++;var t=gl++;return hl.set(e,t),ml.set(t,e),t},bl=function(e,t){gl=t+1,hl.set(e,t),ml.set(t,e)},yl="style[".concat(xa,"][").concat(Ea,'="').concat(Ca,'"]'),xl=new RegExp("^".concat(xa,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Sl=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)},El=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(wa),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(xl);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(bl(c,u),Sl(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var Cl=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(xa,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(xa,Sa),n.setAttribute(Ea,Ca);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},wl=function(){function e(e){this.element=Cl(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 pl(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}(),Rl=function(){function e(e){this.element=Cl(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}(),Ll=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}(),Al=Ra,Il={isServer:!Ra,useCSSOMInjection:!La},Ml=function(){function e(e,t,r){void 0===e&&(e=Ma),void 0===t&&(t={});var n=this;this.options=yi(yi({},Il),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Ra&&Al&&(Al=!1,function(e){for(var t=document.querySelectorAll(yl),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(xa)!==Sa&&(El(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),dl(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return ml.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||0===a.length)return"continue";var l="".concat(xa,".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(wa)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return vl(e)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(yi(yi({},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 Ll(r):t?new wl(r):new Rl(r)}(this.options),new fl(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(vl(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(vl(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(vl(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Dl=/&/g,Pl=/^\s*\/\/.*$/gm;function _l(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=_l(e.children,t)),e}))}var Ol=new Ml,kl=function(e){var t,r,n,o=void 0===e?Ma:e,i=o.options,a=void 0===i?Ma:i,l=o.plugins,s=void 0===l?Ia: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===Ri&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Dl,r).replace(n,u))})),a.prefix&&c.push(ba),c.push(va);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(Pl,""),u=ca(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=_l(u,a.namespace));var d,p=[];return ga(u,function(e){var t=ji(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||pl(15),ja(e,t.name)}),5381).toString():"",d}(),Tl=x.createContext({shouldForwardProp:void 0,styleSheet:Ol,stylis:kl});function ql(){return C(Tl)}Tl.Consumer;var Nl=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=kl);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,dl(this,(function(){throw pl(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=kl),this.name+e.hash},e}(),Fl=function(e){return e>="A"&&e<="Z"};function zl(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Fl(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var jl=function(e){return null==e||!1===e||""===e},$l=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!jl(i)&&(Array.isArray(i)&&i.isCss||il(i)?n.push("".concat(zl(o),":"),i,";"):ul(i)?n.push.apply(n,xi(xi(["".concat(o," {")],$l(i),!1),["}"],!1)):n.push("".concat(zl(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in ya||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Gl(e,t,r,n){return jl(e)?[]:al(e)?[".".concat(e.styledComponentId)]:il(e)?!il(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Gl(e(t),t,r,n):e instanceof Nl?r?(e.inject(r,n),[e.getName(n)]):[e]:ul(e)?$l(e):Array.isArray(e)?Array.prototype.concat.apply(Ia,e.map((function(e){return Gl(e,t,r,n)}))):[e.toString()];var o}function Hl(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(il(r)&&!al(r))return!1}return!0}var Bl=$a(Ca),Wl=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Hl(e),this.componentId=t,this.baseHash=ja(Bl,t),this.baseStyle=r,Ml.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=ll(n,this.staticRulesId);else{var o=sl(Gl(this.rules,e,t,r)),i=Fa(ja(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=ll(n,i),this.staticRulesId=i}else{for(var l=ja(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=sl(Gl(c,e,t,r));l=ja(l,d+u),s+=d}}if(s){var p=Fa(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=ll(n,p)}}return n},e}(),Vl=x.createContext(void 0);Vl.Consumer;var Yl={};new Set;function Ul(e,t,r){var n=al(e),o=e,i=!Ha(e),a=t.attrs,l=void 0===a?Ia:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":ka(e);Yl[r]=(Yl[r]||0)+1;var n="".concat(r,"-").concat(Ga(Ca+r+Yl[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Ha(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(ka(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,h=t.shouldForwardProp;if(n&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var v=new Wl(r,p,n?o.componentStyle:void 0);function b(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=x.useContext(Vl),c=ql(),d=e.shouldForwardProp||c.shouldForwardProp,p=Da(t,u,i)||Ma,f=function(e,t,r){for(var n,o=yi(yi({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=il(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?ll(o[l],a[l]):"style"===l?yi(yi({},o[l]),a[l]):a[l]}return t.className&&(o.className=ll(o.className,t.className)),o}(n,t,p),h=f.as||s,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var v=function(e,t){var r=ql();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),b=ll(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),m[Ha(h)&&!Pa.has(h)?"class":"className"]=b,m.ref=r,w(h,m)}(y,e,t)}b.displayName=d;var y=x.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=n?ll(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)cl(e,o[n],!0);return e}({},o.defaultProps,e):e}}),dl(y,(function(){return".".concat(y.styledComponentId)})),i&&ol(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Kl(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 Xl=function(e){return Object.assign(e,{isCss:!0})};function Jl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(il(e)||ul(e))return Xl(Gl(Kl(Ia,xi([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Gl(n):Xl(Gl(Kl(n,t)))}function Zl(e,t,r){if(void 0===r&&(r=Ma),!t)throw pl(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Jl.apply(void 0,xi([n],o,!1)))};return n.attrs=function(n){return Zl(e,t,yi(yi({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Zl(e,t,yi(yi({},r),n))},n}var Ql=function(e){return Zl(Ul,e)},es=Ql;Pa.forEach((function(e){es[e]=Ql(e)}));var ts=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Hl(e),Ml.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(sl(Gl(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&&Ml.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function rs(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Jl.apply(void 0,xi([e],t,!1)),o="sc-global-".concat(Ga(JSON.stringify(n))),i=new ts(n,o),a=function(e){var t=ql(),r=x.useContext(Vl),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Aa,r,o);else{var l=yi(yi({},t),{theme:Da(t,n,a.defaultProps)});i.renderStyles(e,l,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};return x.memo(a)}function ns(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=sl(Jl.apply(void 0,xi([e],t,!1))),o=Ga(n);return new Nl(o,n)}var os={exports:{}};function is(){}function as(){}as.resetWarningCache=is;os.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:as,resetWarningCache:is};return r.PropTypes=r,r}();var ls=F(os.exports);function ss(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}ss.propTypes={children:ls.node,injectFirst:ls.bool};const us=rs((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 cs=us;
12
- /**
13
- * @mui/styled-engine-sc v6.0.0-alpha.18
14
- *
15
- * @license MIT
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */
19
- function ds(e,t){let r;return r=t?es(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):es(e),r}us.propTypes={defaultTheme:ls.object,styles:ls.oneOfType([ls.array,ls.string,ls.object,ls.func])};var ps=Object.freeze({__proto__:null,GlobalStyles:cs,StyledEngineProvider:ss,ThemeContext:Vl,css:Jl,default:ds,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:ns});function fs(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function hs(e){if(!fs(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=hs(e[r])})),t}function ms(e,t,r={clone:!0}){const n=r.clone?vi({},e):e;return fs(e)&&fs(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(fs(t[o])&&o in e&&fs(e[o])?n[o]=ms(e[o],t[o],r):r.clone?n[o]=fs(t[o])?hs(t[o]):t[o]:n[o]=t[o])})),n}var gs=Object.freeze({__proto__:null,default:ms,isPlainObject:fs});const vs=["values","unit","step"],bs=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)=>vi({},e,{[t.key]:t.val})),{})};function ys(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=bi(e,vs),i=bs(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 vi({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 xs={borderRadius:4};function Ss(e,t){return t?ms(e,t,{clone:!1}):e}const Es={xs:0,sm:600,md:900,lg:1200,xl:1536},Cs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Es[e]}px)`};function ws(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Cs;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Cs;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Es).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Rs(e){if("string"!=typeof e)throw new Error(hi(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ls=Object.freeze({__proto__:null,default:Rs});function As(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 Is(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:As(e,r)||n,t&&(o=t(o,n,e)),o}function Ms(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=As(e.theme,n)||{};return ws(e,i,(e=>{let n=Is(a,o,e);return e===n&&"string"==typeof e&&(n=Is(a,o,`${t}${"default"===e?"":Rs(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Ds={m:"margin",p:"padding"},Ps={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Os=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!_s[e])return[e];e=_s[e]}const[t,r]=e.split(""),n=Ds[t],o=Ps[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),ks=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ts=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function qs(e,t,r,n){var o;const i=null!=(o=As(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 Ns(e){return qs(e,"spacing",8)}function Fs(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 zs(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Fs(t,r),e)),{})}(Os(r),n);return ws(e,e[r],o)}function js(e,t){const r=Ns(e.theme);return Object.keys(e).map((n=>zs(e,t,n,r))).reduce(Ss,{})}function $s(e){return js(e,ks)}function Gs(e){return js(e,Ts)}function Hs(...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]?Ss(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Bs(e){return"number"!=typeof e?e:`${e}px solid`}function Ws(e,t){return Ms({prop:e,themeKey:"borders",transform:t})}$s.propTypes={},$s.filterProps=ks,Gs.propTypes={},Gs.filterProps=Ts;const Vs=Ws("border",Bs),Ys=Ws("borderTop",Bs),Us=Ws("borderRight",Bs),Ks=Ws("borderBottom",Bs),Xs=Ws("borderLeft",Bs),Js=Ws("borderColor"),Zs=Ws("borderTopColor"),Qs=Ws("borderRightColor"),eu=Ws("borderBottomColor"),tu=Ws("borderLeftColor"),ru=Ws("outline",Bs),nu=Ws("outlineColor"),ou=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=qs(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Fs(t,e)});return ws(e,e.borderRadius,r)}return null};ou.propTypes={},ou.filterProps=["borderRadius"],Hs(Vs,Ys,Us,Ks,Xs,Js,Zs,Qs,eu,tu,ou,ru,nu);const iu=e=>{if(void 0!==e.gap&&null!==e.gap){const t=qs(e.theme,"spacing",8),r=e=>({gap:Fs(t,e)});return ws(e,e.gap,r)}return null};iu.propTypes={},iu.filterProps=["gap"];const au=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=qs(e.theme,"spacing",8),r=e=>({columnGap:Fs(t,e)});return ws(e,e.columnGap,r)}return null};au.propTypes={},au.filterProps=["columnGap"];const lu=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=qs(e.theme,"spacing",8),r=e=>({rowGap:Fs(t,e)});return ws(e,e.rowGap,r)}return null};lu.propTypes={},lu.filterProps=["rowGap"];function su(e,t){return"grey"===t?t:e}Hs(iu,au,lu,Ms({prop:"gridColumn"}),Ms({prop:"gridRow"}),Ms({prop:"gridAutoFlow"}),Ms({prop:"gridAutoColumns"}),Ms({prop:"gridAutoRows"}),Ms({prop:"gridTemplateColumns"}),Ms({prop:"gridTemplateRows"}),Ms({prop:"gridTemplateAreas"}),Ms({prop:"gridArea"}));function uu(e){return e<=1&&0!==e?100*e+"%":e}Hs(Ms({prop:"color",themeKey:"palette",transform:su}),Ms({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:su}),Ms({prop:"backgroundColor",themeKey:"palette",transform:su}));const cu=Ms({prop:"width",transform:uu}),du=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])||Es[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:uu(t)}};return ws(e,e.maxWidth,t)}return null};du.filterProps=["maxWidth"];const pu=Ms({prop:"minWidth",transform:uu}),fu=Ms({prop:"height",transform:uu}),hu=Ms({prop:"maxHeight",transform:uu}),mu=Ms({prop:"minHeight",transform:uu});Ms({prop:"size",cssProperty:"width",transform:uu}),Ms({prop:"size",cssProperty:"height",transform:uu});Hs(cu,du,pu,fu,hu,mu,Ms({prop:"boxSizing"}));var gu={border:{themeKey:"borders",transform:Bs},borderTop:{themeKey:"borders",transform:Bs},borderRight:{themeKey:"borders",transform:Bs},borderBottom:{themeKey:"borders",transform:Bs},borderLeft:{themeKey:"borders",transform:Bs},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Bs},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ou},color:{themeKey:"palette",transform:su},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:su},backgroundColor:{themeKey:"palette",transform:su},p:{style:Gs},pt:{style:Gs},pr:{style:Gs},pb:{style:Gs},pl:{style:Gs},px:{style:Gs},py:{style:Gs},padding:{style:Gs},paddingTop:{style:Gs},paddingRight:{style:Gs},paddingBottom:{style:Gs},paddingLeft:{style:Gs},paddingX:{style:Gs},paddingY:{style:Gs},paddingInline:{style:Gs},paddingInlineStart:{style:Gs},paddingInlineEnd:{style:Gs},paddingBlock:{style:Gs},paddingBlockStart:{style:Gs},paddingBlockEnd:{style:Gs},m:{style:$s},mt:{style:$s},mr:{style:$s},mb:{style:$s},ml:{style:$s},mx:{style:$s},my:{style:$s},margin:{style:$s},marginTop:{style:$s},marginRight:{style:$s},marginBottom:{style:$s},marginLeft:{style:$s},marginX:{style:$s},marginY:{style:$s},marginInline:{style:$s},marginInlineStart:{style:$s},marginInlineEnd:{style:$s},marginBlock:{style:$s},marginBlockStart:{style:$s},marginBlockEnd:{style:$s},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:iu},rowGap:{style:lu},columnGap:{style:au},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:uu},maxWidth:{style:du},minWidth:{transform:uu},height:{transform:uu},maxHeight:{transform:uu},minHeight:{transform:uu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vu(){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=As(r,l)||{};if(u)return u(o);return ws(o,t,(t=>{let r=Is(c,s,t);return t===r&&"string"==typeof t&&(r=Is(c,s,`${e}${"default"===t?"":Rs(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:gu;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=Ss(s,e(r,o,i,a));else{const e=ws({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=Ss(s,e):s[r]=t({sx:o,theme:i})}else s=Ss(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 bu=vu();bu.filterProps=["sx"];var yu=bu;function xu(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 Su=["breakpoints","palette","spacing","shape"];function Eu(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=bi(e,Su),l=ys(r),s=function(e=8){if(e.mui)return e;const t=Ns({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=ms({breakpoints:l,direction:"ltr",components:{},palette:vi({mode:"light"},n),spacing:s,shape:vi({},xs,i)},a);return u.applyStyles=xu,u=t.reduce(((e,t)=>ms(e,t)),u),u.unstable_sxConfig=vi({},gu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return yu({sx:e,theme:this})},u}var Cu=Object.freeze({__proto__:null,default:Eu,private_createBreakpoints:ys,unstable_applyStyles:xu});function wu(e=null){const t=y.useContext(Vl);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Ru=Eu();function Lu(e=Ru){return wu(e)}const Au=["sx"],Iu=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:gu;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function Mu(e){const{sx:t}=e,r=bi(e,Au),{systemProps:n,otherProps:o}=Iu(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return fs(r)?vi({},n,r):n}:vi({},n,t),vi({},o,{sx:i})}var Du=Object.freeze({__proto__:null,default:yu,extendSxProp:Mu,unstable_createStyleFunctionSx:vu,unstable_defaultSxConfig:gu});const Pu=e=>e;var _u=(()=>{let e=Pu;return{configure(t){e=t},generate:t=>e(t),reset(){e=Pu}}})();function Ou(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=Ou(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ku(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ou(e))&&(n&&(n+=" "),n+=t);return n}const Tu=["className","component"];const qu={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 Nu(e,t,r="Mui"){const n=qu[t];return n?`${r}-${n}`:`${_u.generate(e)}-${t}`}function Fu(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Nu(e,t,r)})),n}var zu,ju={exports:{}},$u={},Gu=Symbol.for("react.element"),Hu=Symbol.for("react.portal"),Bu=Symbol.for("react.fragment"),Wu=Symbol.for("react.strict_mode"),Vu=Symbol.for("react.profiler"),Yu=Symbol.for("react.provider"),Uu=Symbol.for("react.context"),Ku=Symbol.for("react.server_context"),Xu=Symbol.for("react.forward_ref"),Ju=Symbol.for("react.suspense"),Zu=Symbol.for("react.suspense_list"),Qu=Symbol.for("react.memo"),ec=Symbol.for("react.lazy"),tc=Symbol.for("react.offscreen");function rc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Gu:switch(e=e.type){case Bu:case Vu:case Wu:case Ju:case Zu:return e;default:switch(e=e&&e.$$typeof){case Ku:case Uu:case Xu:case ec:case Qu:case Yu:return e;default:return t}}case Hu:return t}}}zu=Symbol.for("react.module.reference"),$u.ContextConsumer=Uu,$u.ContextProvider=Yu,$u.Element=Gu,$u.ForwardRef=Xu,$u.Fragment=Bu,$u.Lazy=ec,$u.Memo=Qu,$u.Portal=Hu,$u.Profiler=Vu,$u.StrictMode=Wu,$u.Suspense=Ju,$u.SuspenseList=Zu,$u.isAsyncMode=function(){return!1},$u.isConcurrentMode=function(){return!1},$u.isContextConsumer=function(e){return rc(e)===Uu},$u.isContextProvider=function(e){return rc(e)===Yu},$u.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Gu},$u.isForwardRef=function(e){return rc(e)===Xu},$u.isFragment=function(e){return rc(e)===Bu},$u.isLazy=function(e){return rc(e)===ec},$u.isMemo=function(e){return rc(e)===Qu},$u.isPortal=function(e){return rc(e)===Hu},$u.isProfiler=function(e){return rc(e)===Vu},$u.isStrictMode=function(e){return rc(e)===Wu},$u.isSuspense=function(e){return rc(e)===Ju},$u.isSuspenseList=function(e){return rc(e)===Zu},$u.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Bu||e===Vu||e===Wu||e===Ju||e===Zu||e===tc||"object"==typeof e&&null!==e&&(e.$$typeof===ec||e.$$typeof===Qu||e.$$typeof===Yu||e.$$typeof===Uu||e.$$typeof===Xu||e.$$typeof===zu||void 0!==e.getModuleId)},$u.typeOf=rc,ju.exports=$u;var nc=ju.exports;const oc=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ic(e){const t=`${e}`.match(oc);return t&&t[1]||""}function ac(e,t=""){return e.displayName||e.name||ic(e)||t}function lc(e,t,r){const n=ac(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var sc=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return ac(e,"Component");if("object"==typeof e)switch(e.$$typeof){case nc.ForwardRef:return lc(e,e.render,"ForwardRef");case nc.Memo:return lc(e,e.type,"memo");default:return}}},getFunctionName:ic});function uc(e,t){const r=vi({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=vi({},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]=vi({},i),Object.keys(o).forEach((e=>{r[n][e]=uc(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function cc({props:e,name:t,defaultTheme:r,themeId:n}){let o=Lu(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?uc(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}var dc="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function pc(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var fc=Object.freeze({__proto__:null,default:pc});function hc(e){if(e.type)return e;if("#"===e.charAt(0))return hc(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(hi(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(hi(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function mc(e,t){return e=hc(e),t=function(e,t=0,r=1){return pc(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function gc(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function vc(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function bc(e){return e&&e.ownerDocument||document}function yc(e){return bc(e).defaultView||window}function xc(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Sc(e){const t=y.useRef(e);return dc((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Ec(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{xc(e,t)}))}),e)}const Cc={};const wc=[];let Rc=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 Lc(){const e=function(e,t){const r=y.useRef(Cc);return r.current===Cc&&(r.current=e(t)),r}(Rc.create).current;var t;return t=e.disposeEffect,y.useEffect(t,wc),e}let Ac=!0,Ic=!1;const Mc=new Rc,Dc={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 Pc(e){e.metaKey||e.altKey||e.ctrlKey||(Ac=!0)}function _c(){Ac=!1}function Oc(){"hidden"===this.visibilityState&&Ic&&(Ac=!0)}function kc(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ac||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Dc[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Tc(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Pc,!0),t.addEventListener("mousedown",_c,!0),t.addEventListener("pointerdown",_c,!0),t.addEventListener("touchstart",_c,!0),t.addEventListener("visibilitychange",Oc,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!kc(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Ic=!0,Mc.start(100,(()=>{Ic=!1})),t.current=!1,!0)},ref:e}}function qc(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Nc(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}var Fc=y.createContext(null);function zc(){return y.useContext(Fc)}var jc="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function $c(e){const{children:t,theme:r}=e,n=zc(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return vi({},e,t)}(n,r);return null!=e&&(e[jc]=null!==n),e}),[r,n]);return fi.jsx(Fc.Provider,{value:o,children:t})}const Gc=["value"],Hc=y.createContext();function Bc(e){let{value:t}=e,r=bi(e,Gc);return fi.jsx(Hc.Provider,vi({value:null==t||t},r))}const Wc={};function Vc(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?vi({},t,{[e]:i}):i;return n?()=>a:a}return vi({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Yc(e){const{children:t,theme:r,themeId:n}=e,o=wu(Wc),i=zc()||Wc,a=Vc(n,o,r),l=Vc(n,i,r,!0),s="rtl"===a.direction;return fi.jsx($c,{theme:l,children:fi.jsx(Vl.Provider,{value:a,children:fi.jsx(Bc,{value:s,children:t})})})}var Uc,Kc={},Xc={exports:{}};(Uc=Xc).exports=function(e){return e&&e.__esModule?e:{default:e}},Uc.exports.__esModule=!0,Uc.exports.default=Uc.exports;var Jc=Xc.exports,Zc=z(mi),Qc=z(fc),ed=Jc;Object.defineProperty(Kc,"__esModule",{value:!0});var td=Kc.alpha=hd;Kc.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=ud(e),a=ud(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return dd({type:"rgb",values:l})},Kc.colorChannel=void 0;var rd=Kc.darken=md;Kc.decomposeColor=ud,Kc.emphasize=vd;var nd=Kc.getContrastRatio=function(e,t){const r=fd(e),n=fd(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Kc.getLuminance=fd,Kc.hexToRgb=sd,Kc.hslToRgb=pd;var od=Kc.lighten=gd;Kc.private_safeAlpha=function(e,t,r){try{return hd(e,t)}catch(t){return e}},Kc.private_safeColorChannel=void 0,Kc.private_safeDarken=function(e,t,r){try{return md(e,t)}catch(t){return e}},Kc.private_safeEmphasize=function(e,t,r){try{return vd(e,t)}catch(t){return e}},Kc.private_safeLighten=function(e,t,r){try{return gd(e,t)}catch(t){return e}},Kc.recomposeColor=dd,Kc.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=ud(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 id=ed(Zc),ad=ed(Qc);function ld(e,t=0,r=1){return(0,ad.default)(e,t,r)}function sd(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 ud(e){if(e.type)return e;if("#"===e.charAt(0))return ud(sd(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,id.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,id.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const cd=e=>{const t=ud(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Kc.colorChannel=cd;function dd(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 pd(e){e=ud(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])),dd({type:l,values:s})}function fd(e){let t="hsl"===(e=ud(e)).type||"hsla"===e.type?ud(pd(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 hd(e,t){return e=ud(e),t=ld(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,dd(e)}function md(e,t){if(e=ud(e),t=ld(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 dd(e)}function gd(e,t){if(e=ud(e),t=ld(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 dd(e)}function vd(e,t=.15){return fd(e)>.5?md(e,t):gd(e,t)}Kc.private_safeColorChannel=(e,t)=>{try{return cd(e)}catch(t){return e}};var bd={black:"#000",white:"#fff"};var yd={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 xd={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 Sd={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 Ed={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 Cd={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 wd={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 Rd={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 Ld=["mode","contrastThreshold","tonalOffset"],Ad={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:bd.white,default:bd.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}},Id={text:{primary:bd.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:bd.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 Md(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=od(e.main,o):"dark"===t&&(e.dark=rd(e.main,i)))}function Dd(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=bi(e,Ld),i=e.primary||function(e="light"){return"dark"===e?{main:Cd[200],light:Cd[50],dark:Cd[400]}:{main:Cd[700],light:Cd[400],dark:Cd[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:xd[200],light:xd[50],dark:xd[400]}:{main:xd[500],light:xd[300],dark:xd[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Sd[500],light:Sd[300],dark:Sd[700]}:{main:Sd[700],light:Sd[400],dark:Sd[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:wd[400],light:wd[300],dark:wd[700]}:{main:wd[700],light:wd[500],dark:wd[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Rd[400],light:Rd[300],dark:Rd[700]}:{main:Rd[800],light:Rd[500],dark:Rd[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ed[400],light:Ed[300],dark:Ed[700]}:{main:"#ed6c02",light:Ed[500],dark:Ed[900]}}(t);function d(e){return nd(e,Id.text.primary)>=r?Id.text.primary:Ad.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=vi({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(hi(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(hi(12,t?` (${t})`:"",JSON.stringify(e.main)));return Md(e,"light",o,n),Md(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Id,light:Ad};return ms(vi({common:vi({},bd),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:yd,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Pd=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const _d={textTransform:"uppercase"},Od='"Roboto", "Helvetica", "Arial", sans-serif';function kd(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Od,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=bi(r,Pd),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return vi({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Od?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,_d),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,_d),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ms(vi({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Td(...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 qd=["none",Td(0,2,1,-1,0,1,1,0,0,1,3,0),Td(0,3,1,-2,0,2,2,0,0,1,5,0),Td(0,3,3,-2,0,3,4,0,0,1,8,0),Td(0,2,4,-1,0,4,5,0,0,1,10,0),Td(0,3,5,-1,0,5,8,0,0,1,14,0),Td(0,3,5,-1,0,6,10,0,0,1,18,0),Td(0,4,5,-2,0,7,10,1,0,2,16,1),Td(0,5,5,-3,0,8,10,1,0,3,14,2),Td(0,5,6,-3,0,9,12,1,0,3,16,2),Td(0,6,6,-3,0,10,14,1,0,4,18,3),Td(0,6,7,-4,0,11,15,1,0,4,20,3),Td(0,7,8,-4,0,12,17,2,0,5,22,4),Td(0,7,8,-4,0,13,19,2,0,5,24,4),Td(0,7,9,-4,0,14,21,2,0,5,26,4),Td(0,8,9,-5,0,15,22,2,0,6,28,5),Td(0,8,10,-5,0,16,24,2,0,6,30,5),Td(0,8,11,-5,0,17,26,2,0,6,32,5),Td(0,9,11,-5,0,18,28,2,0,7,34,6),Td(0,9,12,-6,0,19,29,2,0,7,36,6),Td(0,10,13,-6,0,20,31,3,0,8,38,7),Td(0,10,13,-6,0,21,33,3,0,8,40,7),Td(0,10,14,-6,0,22,35,3,0,8,42,7),Td(0,11,14,-7,0,23,36,3,0,9,44,8),Td(0,11,15,-7,0,24,38,3,0,9,46,8)];const Nd=["duration","easing","delay"],Fd={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},zd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function jd(e){return`${Math.round(e)}ms`}function $d(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Gd(e){const t=vi({},Fd,e.easing),r=vi({},zd,e.duration);return vi({getAutoHeightDuration:$d,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return bi(n,Nd),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:jd(o)} ${i} ${"string"==typeof a?a:jd(a)}`)).join(",")}},e,{easing:t,duration:r})}var Hd={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Bd=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Wd(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=bi(e,Bd);if(e.vars)throw new Error(hi(18));const l=Dd(n),s=Eu(e);let u=ms(s,{mixins:(c=s.breakpoints,d=r,vi({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:qd.slice(),typography:kd(l,i),transitions:Gd(o),zIndex:vi({},Hd)});var c,d;return u=ms(u,a),u=t.reduce(((e,t)=>ms(e,t)),u),u.unstable_sxConfig=vi({},gu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return yu({sx:e,theme:this})},u}var Vd=Wd();function Yd(){const e=Lu(Vd);return e[gi]||e}function Ud({props:e,name:t}){return cc({props:e,name:t,defaultTheme:Vd,themeId:gi})}var Kd,Xd={},Jd={exports:{}};var Zd,Qd={exports:{}};var ep=z(ps),tp=z(gs),rp=z(Ls),np=z(sc),op=z(Cu),ip=z(Du),ap=Jc;Object.defineProperty(Xd,"__esModule",{value:!0});var lp=Xd.default=function(e={}){const{themeId:t,defaultTheme:r=yp,rootShouldForwardProp:n=bp,slotShouldForwardProp:o=bp}=e,i=e=>(0,fp.default)((0,sp.default)({},e,{theme:Sp((0,sp.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,cp.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Ep(xp(s))}=a,p=(0,up.default)(a,gp),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=bp;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,cp.default)(e,(0,sp.default)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,dp.isPlainObject)(e)?n=>Cp(e,(0,sp.default)({},n,{theme:Sp({theme:n.theme,defaultTheme:r,themeId:t})})):e,b=(n,...o)=>{let a=v(n);const s=o?o.map(v):[];l&&d&&s.push((e=>{const n=Sp((0,sp.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]=Cp(r,(0,sp.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Sp((0,sp.default)({},e,{defaultTheme:r,themeId:t}));return Cp({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,sp.default)({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}};Xd.shouldForwardProp=bp,Xd.systemDefaultTheme=void 0;var sp=ap((Kd||(Kd=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Jd)),Jd.exports)),up=ap((Zd||(Zd=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Qd)),Qd.exports)),cp=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=vp(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}(ep),dp=tp;ap(rp),ap(np);var pp=ap(op),fp=ap(ip);const hp=["ownerState"],mp=["variants"],gp=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function vp(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(vp=function(e){return e?r:t})(e)}function bp(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const yp=Xd.systemDefaultTheme=(0,pp.default)(),xp=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Sp({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Ep(e){return e?(t,r)=>r[e]:null}function Cp(e,t){let{ownerState:r}=t,n=(0,up.default)(t,hp);const o="function"==typeof e?e((0,sp.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Cp(e,(0,sp.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,up.default)(o,mp);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,sp.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,sp.default)({ownerState:r},n,r)):e.style))})),t}return o}var wp=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var Rp=lp({themeId:gi,defaultTheme:Vd,rootShouldForwardProp:wp});const Lp=["theme"];function Ap(e){let{theme:t}=e,r=bi(e,Lp);const n=t[gi];return fi.jsx(Yc,vi({},r,{themeId:n?gi:void 0,theme:n||t}))}var Ip=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Mp(e){if(e.type)return e;if("#"===e.charAt(0))return Mp(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 Dp(e,t){return e=Mp(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 Pp(e,t){return Pp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pp(e,t)}function _p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pp(e,t)}const Op={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"},kp={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Op,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Tp=12,qp=14,Np=16,Fp=24,zp=3,jp=300,$p=400,Gp=600,Hp=700,Bp={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Dp(kp.GREYSCALE_0,.05),Dp(kp.GREEN_PALE,.5),Dp(kp.BLUE_PALE,.5),Dp(kp.GREEN_PALE,.5),Dp(kp.BLUE_PALE,.5),Dp(kp.GREEN_PALE,.5),Dp(kp.BLUE_PALE,.5);var Wp;function Vp(){return Vp=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},Vp.apply(this,arguments)}Dp(kp.GREEN_PALE,.5),Dp(kp.BLUE_PALE,.5),Dp(kp.GREEN_PALE,.5),Dp(kp.BLUE_PALE,.5);var Yp,Up=function(e){return y.createElement("svg",Vp({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Wp||(Wp=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Kp(){return Kp=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},Kp.apply(this,arguments)}var Xp=function(e){return y.createElement("svg",Kp({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Yp||(Yp=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function Jp({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var Zp=(e={})=>x.createElement(Jp,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),Qp=(e={})=>x.createElement(Jp,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),ef=(e={})=>x.createElement(Jp,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),tf=(e={})=>x.createElement(Jp,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),rf=({className:e})=>x.createElement(Jp,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),x.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));var nf={black:"#000",white:"#fff"};var of={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 af={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 lf={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 sf={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 uf={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 cf={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 df={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 pf(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 ff="$$material";function hf(){return hf=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},hf.apply(this,arguments)}function mf(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}const gf=rs((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 vf=gf;
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},nt({exports:{}});const ht="qHyperCubeDef.qDimensions",mt="dimensions",gt="qOtherTotalSpec.qTotalMode",bt="totalMode",vt={quarantine(e){$.quarantineArrayProp({properties:e,arrayPath:ht,quarantineName:bt,arrayName:mt,itemPath:gt})},unquarantine(e){$.unquarantineArrayProp({properties:e,arrayPath:ht,quarantineName:bt,arrayName:mt,itemPath:gt})}};function yt(e){const t=ft(e);return(e,n,r,o)=>{var i,a,l,s,u,c;const d=$.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),p=((null===(i=d.qProperty)||void 0===i||null===(i=i.qHyperCubeDef)||void 0===i?void 0:i.qDimensions)||[]).length,f=(null===(a=d.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a||null===(a=a.qMeasures)||void 0===a?void 0:a.length)||0;let h,m=(null===(l=d.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l?void 0:l.qInterColumnSortOrder)||[],g=!0;p+f===m.length&&ot(d,"qProperty.qLayoutExclude.quarantine.interColSortOrder",m.concat());const b=(null==d||null===(s=d.qProperty)||void 0===s||null===(s=s.qLayoutExclude)||void 0===s||null===(s=s.quarantine)||void 0===s?void 0:s.pivotInterColSortOrder)||void 0;b?(m=b,h=[...b],ot(d,"qProperty.qHyperCubeDef.qInterColumnSortOrder",m),delete d.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):m.length=0;const v=+(m.indexOf(-1)>-1),y=p+v;if(y>m.length)for(let e=m.length;e<y;e++)m.indexOf(e)<0&&m.push(e-v);for(let e=m.length-1;e>=0;e--)m[e]>=p&&m.splice(e,1);f>1&&m.indexOf(-1)<0?m.push(-1):f<2&&m.indexOf(-1)>-1&&m.splice(m.indexOf(-1),1);const x=null!==(u=null==d||null===(c=d.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qNoOfLeftDims)&&void 0!==u?u:-1;if(p>0&&-1===x&&ot(d,"qProperty.qHyperCubeDef.qNoOfLeftDims",p),h&&m&&h.length===m.length){for(let e=0;e<h.length;e++)if(h[e]!==m[e]){g=!1;break}g&&$.unquarantineProperty(d.qProperty,"noOfLeftDims")}return $.conditionalShow.unquarantine(d.qProperty),vt.unquarantine(d.qProperty),V(d.qProperty),d}}function xt(e,t){var n,r,o;const i=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=$.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;ot(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),$.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,ot(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),ot(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 $.conditionalShow.quarantine(s.properties),vt.quarantine(s.properties),Y(s.properties),s}const St={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Et=(e,t)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},Ct=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},wt=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},Rt=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5715_LINKS"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:Et(a,i),...Ct(i),...wt(a)}},Lt=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:i?{uses:"measureRepresentationItems.representationType",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0}};var At,It,Mt,Dt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(At||(At={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(It||(It={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Mt||(Mt={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Dt||(Dt={}));const Pt="12px",_t="nebula-table-utils-head-menu-button",Ot="sn-copy-cell";let Tt=function(e){return e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c",e}({});const kt="nebula-table-utils-column-adjuster",qt=`${kt}-border`;let Nt=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}({}),Ft=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});var zt,jt;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(zt||(zt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(jt||(jt={}));var $t=zt;const Gt="image",Ht=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},Bt=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),Wt=e=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Ft.Auto,translation:"Common.Auto"},{value:Ft.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Ft.Pixels,translation:"Object.Table.Column.Pixels"},{value:Ft.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Ft.Auto,show:(t,n,r)=>Bt(r,e)},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Nt.PixelsDefault,show:(t,n,r)=>{var o;return Bt(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===Ft.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(Nt.PixelsMin,Math.min(Nt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Nt.PercentageDefault,show:(t,n,r)=>{var o;return Bt(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===Ft.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(Nt.PercentageMin,Math.min(Nt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),Vt=({key:e,translation:t,env:n})=>{var r,o;if(!n.flags.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN"))return;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"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 n;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==Gt}},[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 n,r;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!i||"labelTextAlign"===e||(null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==Gt)}}}},Yt="TOTAL_OFF",Ut={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:It.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:It.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Kt="TOTAL_OFF",Xt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:It.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:It.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Jt=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o,flags:i}=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:Yt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Yt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&Ht},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==Yt&&Ht(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0}},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:Ut,...Vt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Vt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Rt(e),...Wt(i)}}}},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:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0}},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:Ut,...Vt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Vt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Lt(e),...Wt(i)}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:Kt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Kt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&Ht},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==Kt&&Ht(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Xt,...Vt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Vt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Rt(e),...Wt(i)}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Xt,...Vt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Vt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Lt(e),...Wt(i)}}}}},Zt="12px",Qt="Source Sans Pro, sans-serif",en="600",tn=15e3,nn=4/3,rn=1;var on,an;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(on||(on={})),function(e){e.Solid="solid",e.None="none"}(an||(an={}));const ln={display:"flex",justifyContent:"center",alignItems:"center"},sn={borderStyle:"solid"},un={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},cn={lineHeight:nn,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},dn=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),pn=(e,t)=>e>0?`${e}px ${an.Solid} ${t}`:an.None,fn=(e,t,n,r)=>{const o=Number(!t||(null==r?void 0:r.right)),i=Number(!e||(null==r?void 0:r.bottom));return{borderRight:pn(o,n),borderBottom:pn(i,n),borderLeft:an.None,borderTop:an.None}},hn=(e,t,n,r,o,i)=>{const a=fn(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=pn(2,o)),n||(a.borderLeft=pn(1,o))),a},mn=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=pn(1,n)),t&&(r.borderRight=pn(1,n)),r},gn=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:i===on.Transparent.toString()?"none":i}}}),bn=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),vn=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:bn("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?bn("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:gn("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:on.DividerLight})),divider:gn("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:on.DividerDark})),background:gn("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:on.Transparent}))}}}}),yn=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},xn=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:Qt,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>yn(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...X(r).filter((e=>!s.includes(e))).map((e=>yn(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Sn=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],En=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>yn(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Sn.filter((e=>!a.includes(e))).map((e=>yn(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),Cn=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},wn=({section:e,defaultFontStyle:t,translator:n,flags:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:xn({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=Cn(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:En({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=Cn(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:gn(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=Cn(t,e,"color"))&&void 0!==n?n:t.color}))}},background:gn(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=Cn(t,e,"backgroundColor"))&&void 0!==n?n:on.Transparent}))}}}}),Rn=({section:e,defaultFontStyle:t,fallbackBackground:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:gn(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=Cn(t,e,"color"))&&void 0!==n?n:t.color}))}},background:gn(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=Cn(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:on.Transparent}))}}}}),Ln=(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:wn({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:wn({section:"dimensionValues",translator:e,flags:t}),measureValueSection:wn({section:"measureValues",translator:e,flags:t}),measureLabelSection:Rn({section:"measureLabels"}),totalValuesSection:Rn({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:Rn({section:"nullValues",fallbackBackground:on.NullValueBackground}),gridSection:vn(t)}}]}),An=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:Ft.Auto,translation:"Common.Auto"},{value:Ft.Pixels,translation:"Object.Table.Column.Pixels"},{value:Ft.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Ft.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Nt.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===Ft.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(Nt.PixelsMin,Math.min(Nt.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Nt.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===Ft.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(Nt.PercentageMin,Math.min(Nt.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){var t;return!e.qHyperCubeDef.qIndentMode&&(null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qDimensions)||void 0===t?void 0:t.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)})))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}),In=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Ln(e,t),An(t)]}}}),Mn="auto",Dn={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:Mn,translation:"Object.Table.SortingInSearch",options:[{value:Mn,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Pn(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:Jt(e),sorting:Dn,addons:St,settings:In(t,n)}}}function _n(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Pn(e),importProperties:yt(e),exportProperties:xt}}function On(){return On=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},On.apply(this,arguments)}var Tn={exports:{}};function kn(){}function qn(){}qn.resetWarningCache=kn;Tn.exports=function(){function e(e,t,n,r,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 n={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:qn,resetWarningCache:kn};return n.PropTypes=n,n}();var Nn=F(Tn.exports);function Fn(e){if(e.type)return e;if("#"===e.charAt(0))return Fn(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function zn(e,t){return e=Fn(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function jn(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function $n(e,t){return $n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$n(e,t)}function Gn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$n(e,t)}const Hn={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"},Bn={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Hn,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Wn=12,Vn=14,Yn=16,Un=24,Kn=3,Xn=300,Jn=400,Zn=600,Qn=700,er={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};zn(Bn.GREYSCALE_0,.05),zn(Bn.GREEN_PALE,.5),zn(Bn.BLUE_PALE,.5),zn(Bn.GREEN_PALE,.5),zn(Bn.BLUE_PALE,.5),zn(Bn.GREEN_PALE,.5),zn(Bn.BLUE_PALE,.5);var tr;function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nr.apply(this,arguments)}zn(Bn.GREEN_PALE,.5),zn(Bn.BLUE_PALE,.5),zn(Bn.GREEN_PALE,.5),zn(Bn.BLUE_PALE,.5);var rr,or=function(e){return y.createElement("svg",nr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),tr||(tr=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}var ar=function(e){return y.createElement("svg",ir({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),rr||(rr=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function lr({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var sr=(e={})=>x.createElement(lr,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),ur=(e={})=>x.createElement(lr,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),cr=(e={})=>x.createElement(lr,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),dr=(e={})=>x.createElement(lr,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),pr=({className:e})=>x.createElement(lr,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),x.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));var fr={black:"#000",white:"#fff"};var hr={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 mr={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 gr={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 br={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 vr={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 yr={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 xr={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 Sr(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 Er="$$material";function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cr.apply(this,arguments)}function wr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Rr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Lr=Object.freeze({__proto__:null,default:Rr}),Ar=function(){return Ar=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ar.apply(this,arguments)};function Ir(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Mr="-ms-",Dr="-moz-",Pr="-webkit-",_r="comm",Or="rule",Tr="decl",kr="@import",qr="@keyframes",Nr="@layer",Fr=Math.abs,zr=String.fromCharCode,jr=Object.assign;function $r(e){return e.trim()}function Gr(e,t){return(e=t.exec(e))?e[0]:e}function Hr(e,t,n){return e.replace(t,n)}function Br(e,t,n){return e.indexOf(t,n)}function Wr(e,t){return 0|e.charCodeAt(t)}function Vr(e,t,n){return e.slice(t,n)}function Yr(e){return e.length}function Ur(e){return e.length}function Kr(e,t){return t.push(e),e}function Xr(e,t){return e.filter((function(e){return!Gr(e,t)}))}var Jr=1,Zr=1,Qr=0,eo=0,to=0,no="";function ro(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Jr,column:Zr,length:a,return:"",siblings:l}}function oo(e,t){return jr(ro("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function io(e){for(;e.root;)e=oo(e.root,{children:[e]});Kr(e,e.siblings)}function ao(){return to=eo>0?Wr(no,--eo):0,Zr--,10===to&&(Zr=1,Jr--),to}function lo(){return to=eo<Qr?Wr(no,eo++):0,Zr++,10===to&&(Zr=1,Jr++),to}function so(){return Wr(no,eo)}function uo(){return eo}function co(e,t){return Vr(no,e,t)}function po(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 fo(e){return $r(co(eo-1,go(91===e?e+2:40===e?e+1:e)))}function ho(e){for(;(to=so())&&to<33;)lo();return po(e)>2||po(to)>3?"":" "}function mo(e,t){for(;--t&&lo()&&!(to<48||to>102||to>57&&to<65||to>70&&to<97););return co(e,uo()+(t<6&&32==so()&&32==lo()))}function go(e){for(;lo();)switch(to){case e:return eo;case 34:case 39:34!==e&&39!==e&&go(to);break;case 40:41===e&&go(e);break;case 92:lo()}return eo}function bo(e,t){for(;lo()&&e+to!==57&&(e+to!==84||47!==so()););return"/*"+co(t,eo-1)+"*"+zr(47===e?e:lo())}function vo(e){for(;!po(so());)lo();return co(e,eo)}function yo(e){return function(e){return no="",e}(xo("",null,null,null,[""],e=function(e){return Jr=Zr=1,Qr=Yr(no=e),eo=0,[]}(e),0,[0],e))}function xo(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,E=r,C=y;g;)switch(h=v,v=lo()){case 40:if(108!=h&&58==Wr(C,d-1)){-1!=Br(C+=Hr(fo(v),"&","&\f"),"&\f",Fr(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=fo(v);break;case 9:case 10:case 13:case 32:C+=ho(h);break;case 92:C+=mo(uo()-1,7);continue;case 47:switch(so()){case 42:case 47:Kr(Eo(bo(lo(),uo()),t,n,s),s);break;default:C+="/"}break;case 123*m:l[u++]=Yr(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Hr(C,/\f/g,"")),f>0&&Yr(C)-d&&Kr(f>32?Co(C+";",r,n,d-1,s):Co(Hr(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Kr(E=So(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)xo(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Wr(C,3)?100:p){case 100:case 108:case 109:case 115:xo(e,E,E,r&&Kr(So(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:xo(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Yr(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ao())continue;switch(C+=zr(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Yr(C)-1)*b,b=1;break;case 64:45===so()&&(C+=fo(lo())),p=so(),c=d=Yr(y=C+=vo(uo())),v++;break;case 45:45===h&&2==Yr(C)&&(m=0)}}return i}function So(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Ur(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=Vr(e,p+1,p=Fr(g=a[m])),x=e;v<h;++v)(x=$r(g>0?f[v]+" "+y:Hr(y,/&\f/g,f[v])))&&(s[b++]=x);return ro(e,t,n,0===o?Or:l,s,u,c,d)}function Eo(e,t,n,r){return ro(e,t,n,_r,zr(to),Vr(e,2,-2),0,r)}function Co(e,t,n,r,o){return ro(e,t,n,Tr,Vr(e,0,r),Vr(e,r+1,-1),r,o)}function wo(e,t,n){switch(function(e,t){return 45^Wr(e,0)?(((t<<2^Wr(e,0))<<2^Wr(e,1))<<2^Wr(e,2))<<2^Wr(e,3):0}(e,t)){case 5103:return Pr+"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 Pr+e+e;case 4789:return Dr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pr+e+Dr+e+Mr+e+e;case 5936:switch(Wr(e,t+11)){case 114:return Pr+e+Mr+Hr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pr+e+Mr+Hr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pr+e+Mr+Hr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Pr+e+Mr+e+e;case 6165:return Pr+e+Mr+"flex-"+e+e;case 5187:return Pr+e+Hr(e,/(\w+).+(:[^]+)/,Pr+"box-$1$2"+Mr+"flex-$1$2")+e;case 5443:return Pr+e+Mr+"flex-item-"+Hr(e,/flex-|-self/g,"")+(Gr(e,/flex-|baseline/)?"":Mr+"grid-row-"+Hr(e,/flex-|-self/g,""))+e;case 4675:return Pr+e+Mr+"flex-line-pack"+Hr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Pr+e+Mr+Hr(e,"shrink","negative")+e;case 5292:return Pr+e+Mr+Hr(e,"basis","preferred-size")+e;case 6060:return Pr+"box-"+Hr(e,"-grow","")+Pr+e+Mr+Hr(e,"grow","positive")+e;case 4554:return Pr+Hr(e,/([^-])(transform)/g,"$1"+Pr+"$2")+e;case 6187:return Hr(Hr(Hr(e,/(zoom-|grab)/,Pr+"$1"),/(image-set)/,Pr+"$1"),e,"")+e;case 5495:case 3959:return Hr(e,/(image-set\([^]*)/,Pr+"$1$`$1");case 4968:return Hr(Hr(e,/(.+:)(flex-)?(.*)/,Pr+"box-pack:$3"+Mr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pr+e+e;case 4200:if(!Gr(e,/flex-|baseline/))return Mr+"grid-column-align"+Vr(e,t)+e;break;case 2592:case 3360:return Mr+Hr(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Gr(e.props,/grid-\w+-end/)}))?~Br(e+(n=n[t].value),"span",0)?e:Mr+Hr(e,"-start","")+e+Mr+"grid-row-span:"+(~Br(n,"span",0)?Gr(n,/\d+/):+Gr(n,/\d+/)-+Gr(e,/\d+/))+";":Mr+Hr(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Gr(e.props,/grid-\w+-start/)}))?e:Mr+Hr(Hr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Hr(e,/(.+)-inline(.+)/,Pr+"$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(Yr(e)-1-t>6)switch(Wr(e,t+1)){case 109:if(45!==Wr(e,t+4))break;case 102:return Hr(e,/(.+:)(.+)-([^]+)/,"$1"+Pr+"$2-$3$1"+Dr+(108==Wr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Br(e,"stretch",0)?wo(Hr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Hr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Mr+n+":"+r+l+(o?Mr+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===Wr(e,t+6))return Hr(e,":",":"+Pr)+e;break;case 6444:switch(Wr(e,45===Wr(e,14)?18:11)){case 120:return Hr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Pr+(45===Wr(e,14)?"inline-":"")+"box$3$1"+Pr+"$2$3$1"+Mr+"$2box$3")+e;case 100:return Hr(e,":",":"+Mr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Hr(e,"scroll-","scroll-snap-")+e}return e}function Ro(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Lo(e,t,n,r){switch(e.type){case Nr:if(e.children.length)break;case kr:case Tr:return e.return=e.return||e.value;case _r:return"";case qr:return e.return=e.value+"{"+Ro(e.children,r)+"}";case Or:if(!Yr(e.value=e.props.join(",")))return""}return Yr(n=Ro(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ao(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Tr:return void(e.return=wo(e.value,e.length,n));case qr:return Ro([oo(e,{value:Hr(e.value,"@","@"+Pr)})],r);case Or:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Gr(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":io(oo(e,{props:[Hr(t,/:(read-\w+)/,":"+Dr+"$1")]})),io(oo(e,{props:[t]})),jr(e,{props:Xr(n,r)});break;case"::placeholder":io(oo(e,{props:[Hr(t,/:(plac\w+)/,":"+Pr+"input-$1")]})),io(oo(e,{props:[Hr(t,/:(plac\w+)/,":"+Dr+"$1")]})),io(oo(e,{props:[Hr(t,/:(plac\w+)/,Mr+"input-$1")]})),io(oo(e,{props:[t]})),jr(e,{props:Xr(n,r)})}return""}))}}var Io={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",Do="active",Po="data-styled-version",_o="6.1.11",Oo="/*!sc*/\n",To="undefined"!=typeof window&&"HTMLElement"in window,ko=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)),qo={},No=Object.freeze([]),Fo=Object.freeze({});function zo(e,t,n){return void 0===n&&(n=Fo),e.theme!==n.theme&&e.theme||t||n.theme}var jo=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"]),$o=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Go=/(^-|-$)/g;function Ho(e){return e.replace($o,"-").replace(Go,"")}var Bo=/(a)(d)/gi,Wo=52,Vo=function(e){return String.fromCharCode(e+(e>25?39:97))};function Yo(e){var t,n="";for(t=Math.abs(e);t>Wo;t=t/Wo|0)n=Vo(t%Wo)+n;return(Vo(t%Wo)+n).replace(Bo,"$1-$2")}var Uo,Ko=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Xo=function(e){return Ko(5381,e)};function Jo(e){return Yo(Xo(e)>>>0)}function Zo(e){return"string"==typeof e&&!0}var Qo="function"==typeof Symbol&&Symbol.for,ei=Qo?Symbol.for("react.memo"):60115,ti=Qo?Symbol.for("react.forward_ref"):60112,ni={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ri={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ii=((Uo={})[ti]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uo[ei]=oi,Uo);function ai(e){return("type"in(t=e)&&t.type.$$typeof)===ei?oi:"$$typeof"in e?ii[e.$$typeof]:ni;var t}var li=Object.defineProperty,si=Object.getOwnPropertyNames,ui=Object.getOwnPropertySymbols,ci=Object.getOwnPropertyDescriptor,di=Object.getPrototypeOf,pi=Object.prototype;function fi(e,t,n){if("string"!=typeof t){if(pi){var r=di(t);r&&r!==pi&&fi(e,r,n)}var o=si(t);ui&&(o=o.concat(ui(t)));for(var i=ai(e),a=ai(t),l=0;l<o.length;++l){var s=o[l];if(!(s in ri||n&&n[s]||a&&s in a||i&&s in i)){var u=ci(t,s);try{li(e,s,u)}catch(e){}}}}return e}function hi(e){return"function"==typeof e}function mi(e){return"object"==typeof e&&"styledComponentId"in e}function gi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function bi(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function vi(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function yi(e,t,n){if(void 0===n&&(n=!1),!n&&!vi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=yi(e[r],t[r]);else if(vi(t))for(var r in t)e[r]=yi(e[r],t[r]);return e}function xi(e,t){Object.defineProperty(e,"toString",{value:t})}function Si(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];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 Ei=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,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Si(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;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],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Oo);return t},e}(),Ci=new Map,wi=new Map,Ri=1,Li=function(e){if(Ci.has(e))return Ci.get(e);for(;wi.has(Ri);)Ri++;var t=Ri++;return Ci.set(e,t),wi.set(t,e),t},Ai=function(e,t){Ri=t+1,Ci.set(e,t),wi.set(t,e)},Ii="style[".concat(Mo,"][").concat(Po,'="').concat(_o,'"]'),Mi=new RegExp("^".concat(Mo,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Di=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Pi=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Oo),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Mi);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Ai(c,u),Di(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var _i=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Mo,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Mo,Do),r.setAttribute(Po,_o);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Oi=function(){function e(e){this.element=_i(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Si(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ti=function(){function e(e){this.element=_i(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,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}(),ki=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}(),qi=To,Ni={isServer:!To,useCSSOMInjection:!ko},Fi=function(){function e(e,t,n){void 0===e&&(e=Fo),void 0===t&&(t={});var r=this;this.options=Ar(Ar({},Ni),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&To&&qi&&(qi=!1,function(e){for(var t=document.querySelectorAll(Ii),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Mo)!==Do&&(Pi(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),xi(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return wi.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var l="".concat(Mo,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Oo)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Li(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Ar(Ar({},this.options),t),this.gs,n&&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,n=e.target;return e.isServer?new ki(n):t?new Oi(n):new Ti(n)}(this.options),new Ei(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(Li(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Li(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Li(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),zi=/&/g,ji=/^\s*\/\/.*$/gm;function $i(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=$i(e.children,t)),e}))}var Gi=new Fi,Hi=function(e){var t,n,r,o=void 0===e?Fo:e,i=o.options,a=void 0===i?Fo:i,l=o.plugins,s=void 0===l?No:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Or&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(zi,n).replace(r,u))})),a.prefix&&c.push(Ao),c.push(Lo);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(ji,""),u=yo(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=$i(u,a.namespace));var d,p=[];return Ro(u,function(e){var t=Ur(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,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||Si(15),Ko(e,t.name)}),5381).toString():"",d}(),Bi=x.createContext({shouldForwardProp:void 0,styleSheet:Gi,stylis:Hi});function Wi(){return S(Bi)}Bi.Consumer;var Vi=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Hi);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,xi(this,(function(){throw Si(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Hi),this.name+e.hash},e}(),Yi=function(e){return e>="A"&&e<="Z"};function Ui(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Yi(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ki=function(e){return null==e||!1===e||""===e},Xi=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ki(i)&&(Array.isArray(i)&&i.isCss||hi(i)?r.push("".concat(Ui(o),":"),i,";"):vi(i)?r.push.apply(r,Ir(Ir(["".concat(o," {")],Xi(i),!1),["}"],!1)):r.push("".concat(Ui(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Io||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ji(e,t,n,r){return Ki(e)?[]:mi(e)?[".".concat(e.styledComponentId)]:hi(e)?!hi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Ji(e(t),t,n,r):e instanceof Vi?n?(e.inject(n,r),[e.getName(r)]):[e]:vi(e)?Xi(e):Array.isArray(e)?Array.prototype.concat.apply(No,e.map((function(e){return Ji(e,t,n,r)}))):[e.toString()];var o}function Zi(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(hi(n)&&!mi(n))return!1}return!0}var Qi=Xo(_o),ea=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Zi(e),this.componentId=t,this.baseHash=Ko(Qi,t),this.baseStyle=n,Fi.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=gi(r,this.staticRulesId);else{var o=bi(Ji(this.rules,e,t,n)),i=Yo(Ko(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=gi(r,i),this.staticRulesId=i}else{for(var l=Ko(this.baseHash,n.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=bi(Ji(c,e,t,n));l=Ko(l,d+u),s+=d}}if(s){var p=Yo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=gi(r,p)}}return r},e}(),ta=x.createContext(void 0);ta.Consumer;var na={};new Set;function ra(e,t,n){var r=mi(e),o=e,i=!Zo(e),a=t.attrs,l=void 0===a?No:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Ho(e);na[n]=(na[n]||0)+1;var r="".concat(n,"-").concat(Jo(_o+n+na[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Zo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Ho(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,h=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var b=new ea(n,p,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=x.useContext(ta),c=Wi(),d=e.shouldForwardProp||c.shouldForwardProp,p=zo(t,u,i)||Fo,f=function(e,t,n){for(var r,o=Ar(Ar({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=hi(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?gi(o[l],a[l]):"style"===l?Ar(Ar({},o[l]),a[l]):a[l]}return t.className&&(o.className=gi(o.className,t.className)),o}(r,t,p),h=f.as||s,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var b=function(e,t){var n=Wi();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),v=gi(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[Zo(h)&&!jo.has(h)?"class":"className"]=v,m.ref=n,E(h,m)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=r?gi(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)yi(e,o[r],!0);return e}({},o.defaultProps,e):e}}),xi(y,(function(){return".".concat(y.styledComponentId)})),i&&fi(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function oa(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ia=function(e){return Object.assign(e,{isCss:!0})};function aa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(hi(e)||vi(e))return ia(Ji(oa(No,Ir([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Ji(r):ia(Ji(oa(r,t)))}function la(e,t,n){if(void 0===n&&(n=Fo),!t)throw Si(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,aa.apply(void 0,Ir([r],o,!1)))};return r.attrs=function(r){return la(e,t,Ar(Ar({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return la(e,t,Ar(Ar({},n),r))},r}var sa=function(e){return la(ra,e)},ua=sa;jo.forEach((function(e){ua[e]=sa(e)}));var ca=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Zi(e),Fi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(bi(Ji(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Fi.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function da(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=aa.apply(void 0,Ir([e],t,!1)),o="sc-global-".concat(Jo(JSON.stringify(r))),i=new ca(r,o),a=function(e){var t=Wi(),n=x.useContext(ta),r=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,qo,n,o);else{var l=Ar(Ar({},t),{theme:zo(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return x.memo(a)}function pa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=bi(aa.apply(void 0,Ir([e],t,!1))),o=Jo(r);return new Vi(o,r)}const fa=da((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var ha=fa;
20
10
  /**
21
11
  * @mui/styled-engine-sc v6.0.0-alpha.17
22
12
  *
@@ -24,7 +14,7 @@ function ds(e,t){let r;return r=t?es(e).withConfig({displayName:t.label,shouldFo
24
14
  * This source code is licensed under the MIT license found in the
25
15
  * LICENSE file in the root directory of this source tree.
26
16
  */
27
- function bf(e,t){let r;return r=t?es(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):es(e),r}gf.propTypes={defaultTheme:ls.object,styles:ls.oneOfType([ls.array,ls.string,ls.object,ls.func])};const yf=["values","unit","step"],xf=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)=>vi({},e,{[t.key]:t.val})),{})};var Sf={borderRadius:4};function Ef(e,t){return t?ms(e,t,{clone:!1}):e}const Cf={xs:0,sm:600,md:900,lg:1200,xl:1536},wf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Cf[e]}px)`};function Rf(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||wf;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||wf;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Cf).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Lf(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 Af(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Lf(e,r)||n,t&&(o=t(o,n,e)),o}function If(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=Lf(e.theme,n)||{};return Rf(e,i,(e=>{let n=Af(a,o,e);return e===n&&"string"==typeof e&&(n=Af(a,o,`${t}${"default"===e?"":Rs(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Mf={m:"margin",p:"padding"},Df={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Pf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_f=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Pf[e])return[e];e=Pf[e]}const[t,r]=e.split(""),n=Mf[t],o=Df[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Of=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],kf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Tf(e,t,r,n){var o;const i=null!=(o=Lf(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 qf(e){return Tf(e,"spacing",8)}function Nf(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 Ff(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Nf(t,r),e)),{})}(_f(r),n);return Rf(e,e[r],o)}function zf(e,t){const r=qf(e.theme);return Object.keys(e).map((n=>Ff(e,t,n,r))).reduce(Ef,{})}function jf(e){return zf(e,Of)}function $f(e){return zf(e,kf)}function Gf(...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]?Ef(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Hf(e){return"number"!=typeof e?e:`${e}px solid`}function Bf(e,t){return If({prop:e,themeKey:"borders",transform:t})}jf.propTypes={},jf.filterProps=Of,$f.propTypes={},$f.filterProps=kf;const Wf=Bf("border",Hf),Vf=Bf("borderTop",Hf),Yf=Bf("borderRight",Hf),Uf=Bf("borderBottom",Hf),Kf=Bf("borderLeft",Hf),Xf=Bf("borderColor"),Jf=Bf("borderTopColor"),Zf=Bf("borderRightColor"),Qf=Bf("borderBottomColor"),eh=Bf("borderLeftColor"),th=Bf("outline",Hf),rh=Bf("outlineColor"),nh=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Tf(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Nf(t,e)});return Rf(e,e.borderRadius,r)}return null};nh.propTypes={},nh.filterProps=["borderRadius"],Gf(Wf,Vf,Yf,Uf,Kf,Xf,Jf,Zf,Qf,eh,nh,th,rh);const oh=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Tf(e.theme,"spacing",8),r=e=>({gap:Nf(t,e)});return Rf(e,e.gap,r)}return null};oh.propTypes={},oh.filterProps=["gap"];const ih=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Tf(e.theme,"spacing",8),r=e=>({columnGap:Nf(t,e)});return Rf(e,e.columnGap,r)}return null};ih.propTypes={},ih.filterProps=["columnGap"];const ah=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Tf(e.theme,"spacing",8),r=e=>({rowGap:Nf(t,e)});return Rf(e,e.rowGap,r)}return null};ah.propTypes={},ah.filterProps=["rowGap"];function lh(e,t){return"grey"===t?t:e}Gf(oh,ih,ah,If({prop:"gridColumn"}),If({prop:"gridRow"}),If({prop:"gridAutoFlow"}),If({prop:"gridAutoColumns"}),If({prop:"gridAutoRows"}),If({prop:"gridTemplateColumns"}),If({prop:"gridTemplateRows"}),If({prop:"gridTemplateAreas"}),If({prop:"gridArea"}));function sh(e){return e<=1&&0!==e?100*e+"%":e}Gf(If({prop:"color",themeKey:"palette",transform:lh}),If({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lh}),If({prop:"backgroundColor",themeKey:"palette",transform:lh}));const uh=If({prop:"width",transform:sh}),ch=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])||Cf[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:sh(t)}};return Rf(e,e.maxWidth,t)}return null};ch.filterProps=["maxWidth"];const dh=If({prop:"minWidth",transform:sh}),ph=If({prop:"height",transform:sh}),fh=If({prop:"maxHeight",transform:sh}),hh=If({prop:"minHeight",transform:sh});If({prop:"size",cssProperty:"width",transform:sh}),If({prop:"size",cssProperty:"height",transform:sh});Gf(uh,ch,dh,ph,fh,hh,If({prop:"boxSizing"}));var mh={border:{themeKey:"borders",transform:Hf},borderTop:{themeKey:"borders",transform:Hf},borderRight:{themeKey:"borders",transform:Hf},borderBottom:{themeKey:"borders",transform:Hf},borderLeft:{themeKey:"borders",transform:Hf},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Hf},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:nh},color:{themeKey:"palette",transform:lh},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lh},backgroundColor:{themeKey:"palette",transform:lh},p:{style:$f},pt:{style:$f},pr:{style:$f},pb:{style:$f},pl:{style:$f},px:{style:$f},py:{style:$f},padding:{style:$f},paddingTop:{style:$f},paddingRight:{style:$f},paddingBottom:{style:$f},paddingLeft:{style:$f},paddingX:{style:$f},paddingY:{style:$f},paddingInline:{style:$f},paddingInlineStart:{style:$f},paddingInlineEnd:{style:$f},paddingBlock:{style:$f},paddingBlockStart:{style:$f},paddingBlockEnd:{style:$f},m:{style:jf},mt:{style:jf},mr:{style:jf},mb:{style:jf},ml:{style:jf},mx:{style:jf},my:{style:jf},margin:{style:jf},marginTop:{style:jf},marginRight:{style:jf},marginBottom:{style:jf},marginLeft:{style:jf},marginX:{style:jf},marginY:{style:jf},marginInline:{style:jf},marginInlineStart:{style:jf},marginInlineEnd:{style:jf},marginBlock:{style:jf},marginBlockStart:{style:jf},marginBlockEnd:{style:jf},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:oh},rowGap:{style:ah},columnGap:{style:ih},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sh},maxWidth:{style:ch},minWidth:{transform:sh},height:{transform:sh},maxHeight:{transform:sh},minHeight:{transform:sh},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const gh=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=Lf(r,l)||{};if(u)return u(o);return Rf(o,t,(t=>{let r=Af(c,s,t);return t===r&&"string"==typeof t&&(r=Af(c,s,`${e}${"default"===t?"":Rs(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:mh;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=Ef(s,e(r,o,i,a));else{const e=Rf({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=Ef(s,e):s[r]=t({sx:o,theme:i})}else s=Ef(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)}}();gh.filterProps=["sx"];var vh=gh;function bh(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 yh=["breakpoints","palette","spacing","shape"];function xh(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=bi(e,yh),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=bi(e,yf),i=xf(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 vi({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),s=function(e=8){if(e.mui)return e;const t=qf({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=ms({breakpoints:l,direction:"ltr",components:{},palette:vi({mode:"light"},n),spacing:s,shape:vi({},Sf,i)},a);return u.applyStyles=bh,u=t.reduce(((e,t)=>ms(e,t)),u),u.unstable_sxConfig=vi({},mh,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return vh({sx:e,theme:this})},u}function Sh(e=null){const t=y.useContext(Vl);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Eh=xh();function Ch(e=Eh){return Sh(e)}function wh({styles:e,themeId:t,defaultTheme:r={}}){const n=Ch(r),o="function"==typeof e?e(t&&n[t]||n):e;return fi.jsx(vf,{styles:o})}const Rh=["sx"],Lh=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:mh;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function Ah(e){const{sx:t}=e,r=bi(e,Rh),{systemProps:n,otherProps:o}=Lh(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return fs(r)?vi({},n,r):n}:vi({},n,t),vi({},o,{sx:i})}const Ih=["className","component"];const Mh=["ownerState"],Dh=["variants"],Ph=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _h(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Oh=xh(),kh=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Th({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function qh(e){return e?(t,r)=>r[e]:null}function Nh(e,t){let{ownerState:r}=t,n=bi(t,Mh);const o="function"==typeof e?e(vi({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Nh(e,vi({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=bi(o,Dh);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(vi({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(vi({ownerState:r},n)):e.style))})),t}return o}function Fh({props:e,name:t,defaultTheme:r,themeId:n}){let o=Ch(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?uc(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function zh(e,t=0,r=1){return pc(e,t,r)}function jh(e){if(e.type)return e;if("#"===e.charAt(0))return jh(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(hi(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(hi(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function $h(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 Gh(e){let t="hsl"===(e=jh(e)).type||"hsla"===e.type?jh(function(e){e=jh(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])),$h({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 Hh(e,t){return e=jh(e),t=zh(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,$h(e)}function Bh(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 Wh(e){if(!Bh(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Wh(e[r])})),t}function Vh(e,t,r={clone:!0}){const n=r.clone?vi({},e):e;return Bh(e)&&Bh(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Bh(t[o])&&o in e&&Bh(e[o])?n[o]=Vh(e[o],t[o],r):r.clone?n[o]=Bh(t[o])?Wh(t[o]):t[o]:n[o]=t[o])})),n}function Yh(e){if("string"!=typeof e)throw new Error(pf(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Uh(e){return e&&e.ownerDocument||document}function Kh(e){return Uh(e).defaultView||window}var Xh="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;let Jh=0;const Zh=y["useId".toString()];function Qh(e){if(void 0!==Zh){const t=Zh();return null!=e?e:t}return function(e){const[t,r]=y.useState(e),n=e||t;return y.useEffect((()=>{null==t&&(Jh+=1,r(`mui-${Jh}`))}),[t]),n}(e)}function em({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function tm(e){const t=y.useRef(e);return Xh((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function rm(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class nm{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new nm}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let om=!0,im=!1;const am=new nm,lm={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 sm(e){e.metaKey||e.altKey||e.ctrlKey||(om=!0)}function um(){om=!1}function cm(){"hidden"===this.visibilityState&&im&&(om=!0)}function dm(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return om||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!lm[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function pm(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",sm,!0),t.addEventListener("mousedown",um,!0),t.addEventListener("pointerdown",um,!0),t.addEventListener("touchstart",um,!0),t.addEventListener("visibilitychange",cm,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!dm(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(im=!0,am.start(100,(()=>{im=!1})),t.current=!1,!0)},ref:e}}function fm(e,t){const r=vi({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=vi({},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]=vi({},i),Object.keys(o).forEach((e=>{r[n][e]=fm(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const hm=e=>e;var mm=(()=>{let e=hm;return{configure(t){e=t},generate:t=>e(t),reset(){e=hm}}})();const gm={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 vm(e,t,r="Mui"){const n=gm[t];return n?`${r}-${n}`:`${mm.generate(e)}-${t}`}function bm(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=vm(e,t,r)})),n}const ym=["mode","contrastThreshold","tonalOffset"],xm={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:nf.white,default:nf.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}},Sm={text:{primary:nf.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:nf.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 Em(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=jh(e),t=zh(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 $h(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=jh(e),t=zh(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 $h(e)}(e.main,i)))}function Cm(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=mf(e,ym),i=e.primary||function(e="light"){return"dark"===e?{main:lf[200],light:lf[50],dark:lf[400]}:{main:lf[700],light:lf[400],dark:lf[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:af[200],light:af[50],dark:af[400]}:{main:af[500],light:af[300],dark:af[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:of[500],light:of[300],dark:of[700]}:{main:of[700],light:of[400],dark:of[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:sf[400],light:sf[300],dark:sf[700]}:{main:sf[700],light:sf[500],dark:sf[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:uf[400],light:uf[300],dark:uf[700]}:{main:uf[800],light:uf[500],dark:uf[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:cf[400],light:cf[300],dark:cf[700]}:{main:"#ed6c02",light:cf[500],dark:cf[900]}}(t);function d(e){const t=function(e,t){const r=Gh(e),n=Gh(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Sm.text.primary)>=r?Sm.text.primary:xm.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=hf({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(pf(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(pf(12,t?` (${t})`:"",JSON.stringify(e.main)));return Em(e,"light",o,n),Em(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Sm,light:xm};return Vh(hf({common:hf({},nf),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:df,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const wm=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Rm={textTransform:"uppercase"},Lm='"Roboto", "Helvetica", "Arial", sans-serif';function Am(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Lm,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=mf(r,wm),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return hf({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Lm?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Rm),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Rm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Vh(hf({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Im(...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 Mm=["none",Im(0,2,1,-1,0,1,1,0,0,1,3,0),Im(0,3,1,-2,0,2,2,0,0,1,5,0),Im(0,3,3,-2,0,3,4,0,0,1,8,0),Im(0,2,4,-1,0,4,5,0,0,1,10,0),Im(0,3,5,-1,0,5,8,0,0,1,14,0),Im(0,3,5,-1,0,6,10,0,0,1,18,0),Im(0,4,5,-2,0,7,10,1,0,2,16,1),Im(0,5,5,-3,0,8,10,1,0,3,14,2),Im(0,5,6,-3,0,9,12,1,0,3,16,2),Im(0,6,6,-3,0,10,14,1,0,4,18,3),Im(0,6,7,-4,0,11,15,1,0,4,20,3),Im(0,7,8,-4,0,12,17,2,0,5,22,4),Im(0,7,8,-4,0,13,19,2,0,5,24,4),Im(0,7,9,-4,0,14,21,2,0,5,26,4),Im(0,8,9,-5,0,15,22,2,0,6,28,5),Im(0,8,10,-5,0,16,24,2,0,6,30,5),Im(0,8,11,-5,0,17,26,2,0,6,32,5),Im(0,9,11,-5,0,18,28,2,0,7,34,6),Im(0,9,12,-6,0,19,29,2,0,7,36,6),Im(0,10,13,-6,0,20,31,3,0,8,38,7),Im(0,10,13,-6,0,21,33,3,0,8,40,7),Im(0,10,14,-6,0,22,35,3,0,8,42,7),Im(0,11,14,-7,0,23,36,3,0,9,44,8),Im(0,11,15,-7,0,24,38,3,0,9,46,8)];const Dm=["duration","easing","delay"],Pm={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)"},_m={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Om(e){return`${Math.round(e)}ms`}function km(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Tm(e){const t=hf({},Pm,e.easing),r=hf({},_m,e.duration);return hf({getAutoHeightDuration:km,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return mf(n,Dm),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Om(o)} ${i} ${"string"==typeof a?a:Om(a)}`)).join(",")}},e,{easing:t,duration:r})}var qm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Nm=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fm(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=mf(e,Nm);if(e.vars)throw new Error(pf(18));const l=Cm(n),s=xh(e);let u=Vh(s,{mixins:(c=s.breakpoints,d=r,hf({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Mm.slice(),typography:Am(l,i),transitions:Tm(o),zIndex:hf({},qm),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=Vh(u,a),u=t.reduce(((e,t)=>Vh(e,t)),u),u.unstable_sxConfig=hf({},mh,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return vh({sx:e,theme:this})},u}var zm=Fm();function jm(){const e=Ch(zm);return e[ff]||e}function $m({props:e,name:t}){return Fh({props:e,name:t,defaultTheme:zm,themeId:ff})}const Gm=e=>_h(e)&&"classes"!==e,Hm=_h,Bm=function(e={}){const{themeId:t,defaultTheme:r=Oh,rootShouldForwardProp:n=_h,slotShouldForwardProp:o=_h}=e,i=e=>vh(vi({},e,{theme:Th(vi({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=qh(kh(s))}=a,p=bi(a,Ph),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=_h;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=bf(e,vi({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||fs(e)?n=>Nh(e,vi({},n,{theme:Th({theme:n.theme,defaultTheme:r,themeId:t})})):e,b=(n,...o)=>{let a=v(n);const s=o?o.map(v):[];l&&d&&s.push((e=>{const n=Th(vi({},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]=Nh(r,vi({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Th(vi({},e,{defaultTheme:r,themeId:t}));return Nh({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},vi({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:ff,defaultTheme:zm,rootShouldForwardProp:Gm});var Wm=Bm;var Vm=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ym(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=Ym(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Um(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ym(e))&&(n&&(n+=" "),n+=t);return n}function Km(e){return vm("MuiSvgIcon",e)}bm("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Xm=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Jm=Wm("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Yh(r.color)}`],t[`fontSize${Yh(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),Zm=y.forwardRef((function(e,t){const r=$m({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=mf(r,Xm),f=y.isValidElement(n)&&"svg"===n.type,h=hf({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Nc({root:["root","inherit"!==t&&`color${Yh(t)}`,`fontSize${Yh(r)}`]},Km,n)})(h);return fi.jsxs(Jm,hf({as:a,className:Um(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,c?fi.jsx("title",{children:c}):null]}))}));Zm.muiName="SvgIcon";var Qm=Zm;var eg,tg={},rg=Symbol.for("react.element"),ng=Symbol.for("react.portal"),og=Symbol.for("react.fragment"),ig=Symbol.for("react.strict_mode"),ag=Symbol.for("react.profiler"),lg=Symbol.for("react.provider"),sg=Symbol.for("react.context"),ug=Symbol.for("react.server_context"),cg=Symbol.for("react.forward_ref"),dg=Symbol.for("react.suspense"),pg=Symbol.for("react.suspense_list"),fg=Symbol.for("react.memo"),hg=Symbol.for("react.lazy"),mg=Symbol.for("react.offscreen");
17
+ function ma(e,t){let n;return n=t?ua(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ua(e),n}fa.propTypes={defaultTheme:Nn.object,styles:Nn.oneOfType([Nn.array,Nn.string,Nn.object,Nn.func])};function ga(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 ba(e){if(!ga(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=ba(e[n])})),t}function va(e,t,n={clone:!0}){const r=n.clone?On({},e):e;return ga(e)&&ga(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(ga(t[o])&&o in e&&ga(e[o])?r[o]=va(e[o],t[o],n):n.clone?r[o]=ga(t[o])?ba(t[o]):t[o]:r[o]=t[o])})),r}var ya,xa=Object.freeze({__proto__:null,default:va,isPlainObject:ga}),Sa={exports:{}},Ea={},Ca=Symbol.for("react.element"),wa=Symbol.for("react.portal"),Ra=Symbol.for("react.fragment"),La=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ia=Symbol.for("react.provider"),Ma=Symbol.for("react.context"),Da=Symbol.for("react.server_context"),Pa=Symbol.for("react.forward_ref"),_a=Symbol.for("react.suspense"),Oa=Symbol.for("react.suspense_list"),Ta=Symbol.for("react.memo"),ka=Symbol.for("react.lazy"),qa=Symbol.for("react.offscreen");function Na(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ca:switch(e=e.type){case Ra:case Aa:case La:case _a:case Oa:return e;default:switch(e=e&&e.$$typeof){case Da:case Ma:case Pa:case ka:case Ta:case Ia:return e;default:return t}}case wa:return t}}}ya=Symbol.for("react.module.reference"),Ea.ContextConsumer=Ma,Ea.ContextProvider=Ia,Ea.Element=Ca,Ea.ForwardRef=Pa,Ea.Fragment=Ra,Ea.Lazy=ka,Ea.Memo=Ta,Ea.Portal=wa,Ea.Profiler=Aa,Ea.StrictMode=La,Ea.Suspense=_a,Ea.SuspenseList=Oa,Ea.isAsyncMode=function(){return!1},Ea.isConcurrentMode=function(){return!1},Ea.isContextConsumer=function(e){return Na(e)===Ma},Ea.isContextProvider=function(e){return Na(e)===Ia},Ea.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ca},Ea.isForwardRef=function(e){return Na(e)===Pa},Ea.isFragment=function(e){return Na(e)===Ra},Ea.isLazy=function(e){return Na(e)===ka},Ea.isMemo=function(e){return Na(e)===Ta},Ea.isPortal=function(e){return Na(e)===wa},Ea.isProfiler=function(e){return Na(e)===Aa},Ea.isStrictMode=function(e){return Na(e)===La},Ea.isSuspense=function(e){return Na(e)===_a},Ea.isSuspenseList=function(e){return Na(e)===Oa},Ea.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ra||e===Aa||e===La||e===_a||e===Oa||e===qa||"object"==typeof e&&null!==e&&(e.$$typeof===ka||e.$$typeof===Ta||e.$$typeof===Ia||e.$$typeof===Ma||e.$$typeof===Pa||e.$$typeof===ya||void 0!==e.getModuleId)},Ea.typeOf=Na,Sa.exports=Ea;var Fa=Sa.exports;const za=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ja(e){const t=`${e}`.match(za);return t&&t[1]||""}function $a(e,t=""){return e.displayName||e.name||ja(e)||t}function Ga(e,t,n){const r=$a(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ha=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return $a(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Fa.ForwardRef:return Ga(e,e.render,"ForwardRef");case Fa.Memo:return Ga(e,e.type,"memo");default:return}}},getFunctionName:ja});function Ba(e){if("string"!=typeof e)throw new Error(Rr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Wa=Object.freeze({__proto__:null,default:Ba});function Va(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Ya(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Ua(e){return e&&e.ownerDocument||document}function Ka(e){return Ua(e).defaultView||window}function Xa(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ja="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Za(e){const t=y.useRef(e);return Ja((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Qa(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Xa(e,t)}))}),e)}const el={};const tl=[];let nl=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 rl(){const e=function(e,t){const n=y.useRef(el);return n.current===el&&(n.current=e(t)),n}(nl.create).current;var t;return t=e.disposeEffect,y.useEffect(t,tl),e}let ol=!0,il=!1;const al=new nl,ll={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 sl(e){e.metaKey||e.altKey||e.ctrlKey||(ol=!0)}function ul(){ol=!1}function cl(){"hidden"===this.visibilityState&&il&&(ol=!0)}function dl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ol||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ll[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function pl(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",sl,!0),t.addEventListener("mousedown",ul,!0),t.addEventListener("pointerdown",ul,!0),t.addEventListener("touchstart",ul,!0),t.addEventListener("visibilitychange",cl,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!dl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(il=!0,al.start(100,(()=>{il=!1})),t.current=!1,!0)},ref:e}}function fl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function hl(e,t){const n=On({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=On({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=On({},i),Object.keys(o).forEach((e=>{n[r][e]=hl(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function ml(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const gl=e=>e;var bl=(()=>{let e=gl;return{configure(t){e=t},generate:t=>e(t),reset(){e=gl}}})();const vl={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 yl(e,t,n="Mui"){const r=vl[t];return r?`${n}-${r}`:`${bl.generate(e)}-${t}`}function xl(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=yl(e,t,n)})),r}function Sl(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var El=Object.freeze({__proto__:null,default:Sl});const Cl=["values","unit","step"],wl=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)=>On({},e,{[t.key]:t.val})),{})};var Rl={borderRadius:4};function Ll(e,t){return t?va(e,t,{clone:!1}):e}const Al={xs:0,sm:600,md:900,lg:1200,xl:1536},Il={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Al[e]}px)`};function Ml(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Il;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Il;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Al).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Dl(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Pl(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Dl(e,n)||r,t&&(o=t(o,r,e)),o}function _l(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Dl(e.theme,r)||{};return Ml(e,i,(e=>{let r=Pl(a,o,e);return e===r&&"string"==typeof e&&(r=Pl(a,o,`${t}${"default"===e?"":Ba(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Ol={m:"margin",p:"padding"},Tl={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ql=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!kl[e])return[e];e=kl[e]}const[t,n]=e.split(""),r=Ol[t],o=Tl[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Nl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function zl(e,t,n,r){var o;const i=null!=(o=Dl(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function jl(e){return zl(e,"spacing",8)}function $l(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Gl(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=$l(t,n),e)),{})}(ql(n),r);return Ml(e,e[n],o)}function Hl(e,t){const n=jl(e.theme);return Object.keys(e).map((r=>Gl(e,t,r,n))).reduce(Ll,{})}function Bl(e){return Hl(e,Nl)}function Wl(e){return Hl(e,Fl)}function Vl(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Ll(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Yl(e){return"number"!=typeof e?e:`${e}px solid`}function Ul(e,t){return _l({prop:e,themeKey:"borders",transform:t})}Bl.propTypes={},Bl.filterProps=Nl,Wl.propTypes={},Wl.filterProps=Fl;const Kl=Ul("border",Yl),Xl=Ul("borderTop",Yl),Jl=Ul("borderRight",Yl),Zl=Ul("borderBottom",Yl),Ql=Ul("borderLeft",Yl),es=Ul("borderColor"),ts=Ul("borderTopColor"),ns=Ul("borderRightColor"),rs=Ul("borderBottomColor"),os=Ul("borderLeftColor"),is=Ul("outline",Yl),as=Ul("outlineColor"),ls=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=zl(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:$l(t,e)});return Ml(e,e.borderRadius,n)}return null};ls.propTypes={},ls.filterProps=["borderRadius"],Vl(Kl,Xl,Jl,Zl,Ql,es,ts,ns,rs,os,ls,is,as);const ss=e=>{if(void 0!==e.gap&&null!==e.gap){const t=zl(e.theme,"spacing",8),n=e=>({gap:$l(t,e)});return Ml(e,e.gap,n)}return null};ss.propTypes={},ss.filterProps=["gap"];const us=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=zl(e.theme,"spacing",8),n=e=>({columnGap:$l(t,e)});return Ml(e,e.columnGap,n)}return null};us.propTypes={},us.filterProps=["columnGap"];const cs=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=zl(e.theme,"spacing",8),n=e=>({rowGap:$l(t,e)});return Ml(e,e.rowGap,n)}return null};cs.propTypes={},cs.filterProps=["rowGap"];function ds(e,t){return"grey"===t?t:e}Vl(ss,us,cs,_l({prop:"gridColumn"}),_l({prop:"gridRow"}),_l({prop:"gridAutoFlow"}),_l({prop:"gridAutoColumns"}),_l({prop:"gridAutoRows"}),_l({prop:"gridTemplateColumns"}),_l({prop:"gridTemplateRows"}),_l({prop:"gridTemplateAreas"}),_l({prop:"gridArea"}));function ps(e){return e<=1&&0!==e?100*e+"%":e}Vl(_l({prop:"color",themeKey:"palette",transform:ds}),_l({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ds}),_l({prop:"backgroundColor",themeKey:"palette",transform:ds}));const fs=_l({prop:"width",transform:ps}),hs=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Al[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ps(t)}};return Ml(e,e.maxWidth,t)}return null};hs.filterProps=["maxWidth"];const ms=_l({prop:"minWidth",transform:ps}),gs=_l({prop:"height",transform:ps}),bs=_l({prop:"maxHeight",transform:ps}),vs=_l({prop:"minHeight",transform:ps});_l({prop:"size",cssProperty:"width",transform:ps}),_l({prop:"size",cssProperty:"height",transform:ps});Vl(fs,hs,ms,gs,bs,vs,_l({prop:"boxSizing"}));var ys={border:{themeKey:"borders",transform:Yl},borderTop:{themeKey:"borders",transform:Yl},borderRight:{themeKey:"borders",transform:Yl},borderBottom:{themeKey:"borders",transform:Yl},borderLeft:{themeKey:"borders",transform:Yl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Yl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ls},color:{themeKey:"palette",transform:ds},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ds},backgroundColor:{themeKey:"palette",transform:ds},p:{style:Wl},pt:{style:Wl},pr:{style:Wl},pb:{style:Wl},pl:{style:Wl},px:{style:Wl},py:{style:Wl},padding:{style:Wl},paddingTop:{style:Wl},paddingRight:{style:Wl},paddingBottom:{style:Wl},paddingLeft:{style:Wl},paddingX:{style:Wl},paddingY:{style:Wl},paddingInline:{style:Wl},paddingInlineStart:{style:Wl},paddingInlineEnd:{style:Wl},paddingBlock:{style:Wl},paddingBlockStart:{style:Wl},paddingBlockEnd:{style:Wl},m:{style:Bl},mt:{style:Bl},mr:{style:Bl},mb:{style:Bl},ml:{style:Bl},mx:{style:Bl},my:{style:Bl},margin:{style:Bl},marginTop:{style:Bl},marginRight:{style:Bl},marginBottom:{style:Bl},marginLeft:{style:Bl},marginX:{style:Bl},marginY:{style:Bl},marginInline:{style:Bl},marginInlineStart:{style:Bl},marginInlineEnd:{style:Bl},marginBlock:{style:Bl},marginBlockStart:{style:Bl},marginBlockEnd:{style:Bl},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:ss},rowGap:{style:cs},columnGap:{style:us},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ps},maxWidth:{style:hs},minWidth:{transform:ps},height:{transform:ps},maxHeight:{transform:ps},minHeight:{transform:ps},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const xs=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Dl(n,l)||{};if(u)return u(o);return Ml(o,t,(t=>{let n=Pl(c,s,t);return t===n&&"string"==typeof t&&(n=Pl(c,s,`${e}${"default"===t?"":Ba(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:ys;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=Ll(s,e(n,o,i,a));else{const e=Ml({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Ll(s,e):s[n]=t({sx:o,theme:i})}else s=Ll(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();xs.filterProps=["sx"];var Ss=xs;function Es(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const Cs=["breakpoints","palette","spacing","shape"];function ws(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=jn(e,Cs),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=jn(e,Cl),i=wl(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return On({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=jl({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=va({breakpoints:l,direction:"ltr",components:{},palette:On({mode:"light"},r),spacing:s,shape:On({},Rl,i)},a);return u.applyStyles=Es,u=t.reduce(((e,t)=>va(e,t)),u),u.unstable_sxConfig=On({},ys,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ss({sx:e,theme:this})},u}function Rs(e=null){const t=y.useContext(ta);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Ls=ws();function As(e=Ls){return Rs(e)}var Is={exports:{}},Ms={},Ds=x,Ps=Symbol.for("react.element"),_s=Symbol.for("react.fragment"),Os=Object.prototype.hasOwnProperty,Ts=Ds.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ks={key:!0,ref:!0,__self:!0,__source:!0};function qs(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Os.call(t,r)&&!ks.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Ps,type:e,key:i,ref:a,props:o,_owner:Ts.current}}Ms.Fragment=_s,Ms.jsx=qs,Ms.jsxs=qs,Is.exports=Ms;var Ns=Is.exports;function Fs({styles:e,themeId:t,defaultTheme:n={}}){const r=As(n),o="function"==typeof e?e(t&&r[t]||r):e;return Ns.jsx(ha,{styles:o})}const zs=["sx"],js=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:ys;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function $s(e){const{sx:t}=e,n=jn(e,zs),{systemProps:r,otherProps:o}=js(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return ga(n)?On({},r,n):r}:On({},r,t),On({},o,{sx:i})}function Gs(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Gs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Hs(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Gs(e))&&(r&&(r+=" "),r+=t);return r}const Bs=["className","component"];const Ws=["ownerState"],Vs=["variants"],Ys=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Us(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ks=ws(),Xs=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Js({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Zs(e){return e?(t,n)=>n[e]:null}function Qs(e,t){let{ownerState:n}=t,r=jn(t,Ws);const o="function"==typeof e?e(On({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Qs(e,On({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=jn(o,Vs);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(On({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(On({ownerState:n},r)):e.style))})),t}return o}function eu({props:e,name:t,defaultTheme:n,themeId:r}){let o=As(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?hl(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function tu(e,t=0,n=1){return Sl(e,t,n)}function nu(e){if(e.type)return e;if("#"===e.charAt(0))return nu(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Rr(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Rr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function ru(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function ou(e){let t="hsl"===(e=nu(e)).type||"hsla"===e.type?nu(function(e){e=nu(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),ru({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 iu(e,t){return e=nu(e),t=tu(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ru(e)}var au=y.createContext(null);function lu(){return y.useContext(au)}var su="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function uu(e){const{children:t,theme:n}=e,r=lu(),o=y.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return On({},e,t)}(r,n);return null!=e&&(e[su]=null!==r),e}),[n,r]);return Ns.jsx(au.Provider,{value:o,children:t})}function cu(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 du(e){if(!cu(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=du(e[n])})),t}function pu(e,t,n={clone:!0}){const r=n.clone?On({},e):e;return cu(e)&&cu(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(cu(t[o])&&o in e&&cu(e[o])?r[o]=pu(e[o],t[o],n):n.clone?r[o]=cu(t[o])?du(t[o]):t[o]:r[o]=t[o])})),r}function fu(e){if("string"!=typeof e)throw new Error(Sr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function hu(e){return e&&e.ownerDocument||document}function mu(e){return hu(e).defaultView||window}var gu="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;let bu=0;const vu=y["useId".toString()];function yu(e){if(void 0!==vu){const t=vu();return null!=e?e:t}return function(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect((()=>{null==t&&(bu+=1,n(`mui-${bu}`))}),[t]),r}(e)}function xu({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function Su(e){const t=y.useRef(e);return gu((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Eu(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class 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 wu=!0,Ru=!1;const Lu=new Cu,Au={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Iu(e){e.metaKey||e.altKey||e.ctrlKey||(wu=!0)}function Mu(){wu=!1}function Du(){"hidden"===this.visibilityState&&Ru&&(wu=!0)}function Pu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return wu||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Au[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function _u(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Iu,!0),t.addEventListener("mousedown",Mu,!0),t.addEventListener("pointerdown",Mu,!0),t.addEventListener("touchstart",Mu,!0),t.addEventListener("visibilitychange",Du,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Pu(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Ru=!0,Lu.start(100,(()=>{Ru=!1})),t.current=!1,!0)},ref:e}}function Ou(e,t){const n=On({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=On({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=On({},i),Object.keys(o).forEach((e=>{n[r][e]=Ou(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const Tu=e=>e;var ku=(()=>{let e=Tu;return{configure(t){e=t},generate:t=>e(t),reset(){e=Tu}}})();const qu={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 Nu(e,t,n="Mui"){const r=qu[t];return r?`${n}-${r}`:`${ku.generate(e)}-${t}`}function Fu(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Nu(e,t,n)})),r}const zu=["mode","contrastThreshold","tonalOffset"],ju={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:fr.white,default:fr.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}},$u={text:{primary:fr.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:fr.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 Gu(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=nu(e),t=tu(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ru(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=nu(e),t=tu(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ru(e)}(e.main,i)))}function Hu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=wr(e,zu),i=e.primary||function(e="light"){return"dark"===e?{main:gr[200],light:gr[50],dark:gr[400]}:{main:gr[700],light:gr[400],dark:gr[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:mr[200],light:mr[50],dark:mr[400]}:{main:mr[500],light:mr[300],dark:mr[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:hr[500],light:hr[300],dark:hr[700]}:{main:hr[700],light:hr[400],dark:hr[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:br[400],light:br[300],dark:br[700]}:{main:br[700],light:br[500],dark:br[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:vr[400],light:vr[300],dark:vr[700]}:{main:vr[800],light:vr[500],dark:vr[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:yr[400],light:yr[300],dark:yr[700]}:{main:"#ed6c02",light:yr[500],dark:yr[900]}}(t);function d(e){const t=function(e,t){const n=ou(e),r=ou(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,$u.text.primary)>=n?$u.text.primary:ju.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Cr({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Sr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Sr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Gu(e,"light",o,r),Gu(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:$u,light:ju};return pu(Cr({common:Cr({},fr),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:xr,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Bu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Wu={textTransform:"uppercase"},Vu='"Roboto", "Helvetica", "Arial", sans-serif';function Yu(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Vu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=wr(n,Bu),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return Cr({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Vu?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Wu),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Wu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return pu(Cr({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Uu(...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 Ku=["none",Uu(0,2,1,-1,0,1,1,0,0,1,3,0),Uu(0,3,1,-2,0,2,2,0,0,1,5,0),Uu(0,3,3,-2,0,3,4,0,0,1,8,0),Uu(0,2,4,-1,0,4,5,0,0,1,10,0),Uu(0,3,5,-1,0,5,8,0,0,1,14,0),Uu(0,3,5,-1,0,6,10,0,0,1,18,0),Uu(0,4,5,-2,0,7,10,1,0,2,16,1),Uu(0,5,5,-3,0,8,10,1,0,3,14,2),Uu(0,5,6,-3,0,9,12,1,0,3,16,2),Uu(0,6,6,-3,0,10,14,1,0,4,18,3),Uu(0,6,7,-4,0,11,15,1,0,4,20,3),Uu(0,7,8,-4,0,12,17,2,0,5,22,4),Uu(0,7,8,-4,0,13,19,2,0,5,24,4),Uu(0,7,9,-4,0,14,21,2,0,5,26,4),Uu(0,8,9,-5,0,15,22,2,0,6,28,5),Uu(0,8,10,-5,0,16,24,2,0,6,30,5),Uu(0,8,11,-5,0,17,26,2,0,6,32,5),Uu(0,9,11,-5,0,18,28,2,0,7,34,6),Uu(0,9,12,-6,0,19,29,2,0,7,36,6),Uu(0,10,13,-6,0,20,31,3,0,8,38,7),Uu(0,10,13,-6,0,21,33,3,0,8,40,7),Uu(0,10,14,-6,0,22,35,3,0,8,42,7),Uu(0,11,14,-7,0,23,36,3,0,9,44,8),Uu(0,11,15,-7,0,24,38,3,0,9,46,8)];const Xu=["duration","easing","delay"],Ju={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)"},Zu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Qu(e){return`${Math.round(e)}ms`}function ec(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function tc(e){const t=Cr({},Ju,e.easing),n=Cr({},Zu,e.duration);return Cr({getAutoHeightDuration:ec,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return wr(r,Xu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Qu(o)} ${i} ${"string"==typeof a?a:Qu(a)}`)).join(",")}},e,{easing:t,duration:n})}var nc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const rc=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function oc(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=wr(e,rc);if(e.vars)throw new Error(Sr(18));const l=Hu(r),s=ws(e);let u=pu(s,{mixins:(c=s.breakpoints,d=n,Cr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Ku.slice(),typography:Yu(l,i),transitions:tc(o),zIndex:Cr({},nc),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=pu(u,a),u=t.reduce(((e,t)=>pu(e,t)),u),u.unstable_sxConfig=Cr({},ys,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ss({sx:e,theme:this})},u}var ic=oc();function ac(){const e=As(ic);return e[Er]||e}function lc({props:e,name:t}){return eu({props:e,name:t,defaultTheme:ic,themeId:Er})}const sc=e=>Us(e)&&"classes"!==e,uc=Us,cc=function(e={}){const{themeId:t,defaultTheme:n=Ks,rootShouldForwardProp:r=Us,slotShouldForwardProp:o=Us}=e,i=e=>Ss(On({},e,{theme:Js(On({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Zs(Xs(s))}=a,p=jn(a,Ys),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Us;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=ma(e,On({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||ga(e)?r=>Qs(e,On({},r,{theme:Js({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=Js(On({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Qs(n,On({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=Js(On({},e,{defaultTheme:n,themeId:t}));return Qs({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},On({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Er,defaultTheme:ic,rootShouldForwardProp:sc});var dc=cc;var pc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function fc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=fc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function hc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fc(e))&&(r&&(r+=" "),r+=t);return r}function mc(e){return Nu("MuiSvgIcon",e)}Fu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const gc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],bc=dc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${fu(n.color)}`],t[`fontSize${fu(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),vc=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=wr(n,gc),f=y.isValidElement(r)&&"svg"===r.type,h=Cr({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return ml({root:["root","inherit"!==t&&`color${fu(t)}`,`fontSize${fu(n)}`]},mc,r)})(h);return Ns.jsxs(bc,Cr({as:a,className:hc(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,c?Ns.jsx("title",{children:c}):null]}))}));vc.muiName="SvgIcon";var yc=vc;var xc,Sc={},Ec=Symbol.for("react.element"),Cc=Symbol.for("react.portal"),wc=Symbol.for("react.fragment"),Rc=Symbol.for("react.strict_mode"),Lc=Symbol.for("react.profiler"),Ac=Symbol.for("react.provider"),Ic=Symbol.for("react.context"),Mc=Symbol.for("react.server_context"),Dc=Symbol.for("react.forward_ref"),Pc=Symbol.for("react.suspense"),_c=Symbol.for("react.suspense_list"),Oc=Symbol.for("react.memo"),Tc=Symbol.for("react.lazy"),kc=Symbol.for("react.offscreen");
28
18
  /**
29
19
  * @license React
30
20
  * react-is.production.min.js
@@ -33,7 +23,7 @@ function bf(e,t){let r;return r=t?es(e).withConfig({displayName:t.label,shouldFo
33
23
  *
34
24
  * This source code is licensed under the MIT license found in the
35
25
  * LICENSE file in the root directory of this source tree.
36
- */function gg(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case rg:switch(e=e.type){case og:case ag:case ig:case dg:case pg:return e;default:switch(e=e&&e.$$typeof){case ug:case sg:case cg:case hg:case fg:case lg:return e;default:return t}}case ng:return t}}}eg=Symbol.for("react.module.reference"),tg.ContextConsumer=sg,tg.ContextProvider=lg,tg.Element=rg,tg.ForwardRef=cg,tg.Fragment=og,tg.Lazy=hg,tg.Memo=fg,tg.Portal=ng,tg.Profiler=ag,tg.StrictMode=ig,tg.Suspense=dg,tg.SuspenseList=pg,tg.isAsyncMode=function(){return!1},tg.isConcurrentMode=function(){return!1},tg.isContextConsumer=function(e){return gg(e)===sg},tg.isContextProvider=function(e){return gg(e)===lg},tg.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===rg},tg.isForwardRef=function(e){return gg(e)===cg},tg.isFragment=function(e){return gg(e)===og},tg.isLazy=function(e){return gg(e)===hg},tg.isMemo=function(e){return gg(e)===fg},tg.isPortal=function(e){return gg(e)===ng},tg.isProfiler=function(e){return gg(e)===ag},tg.isStrictMode=function(e){return gg(e)===ig},tg.isSuspense=function(e){return gg(e)===dg},tg.isSuspenseList=function(e){return gg(e)===pg},tg.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===og||e===ag||e===ig||e===dg||e===pg||e===mg||"object"==typeof e&&null!==e&&(e.$$typeof===hg||e.$$typeof===fg||e.$$typeof===lg||e.$$typeof===sg||e.$$typeof===cg||e.$$typeof===eg||void 0!==e.getModuleId)},tg.typeOf=gg;var vg=!1,bg=x.createContext(null),yg="unmounted",xg="exited",Sg="entering",Eg="entered",Cg="exiting",wg=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=xg,n.appearStatus=Sg):o=Eg:o=t.unmountOnExit||t.mountOnEnter?yg:xg,n.state={status:o},n.nextCallback=null,n}_p(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===yg?{status:xg}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Sg&&r!==Eg&&(t=Sg):r!==Sg&&r!==Eg||(t=Cg)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Sg){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:N.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xg&&this.setState({status:yg})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[N.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||vg?this.safeSetState({status:Eg},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Sg},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Eg},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:N.findDOMNode(this);t&&!vg?(this.props.onExit(n),this.safeSetState({status:Cg},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:xg},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:xg},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:N.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===yg)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=bi(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(bg.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Rg(){}wg.contextType=bg,wg.propTypes={},wg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rg,onEntering:Rg,onEntered:Rg,onExit:Rg,onExiting:Rg,onExited:Rg},wg.UNMOUNTED=yg,wg.EXITED=xg,wg.ENTERING=Sg,wg.ENTERED=Eg,wg.EXITING=Cg;var Lg=wg;function Ag(e,t){var r=Object.create(null);return e&&R.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&L(e)?t(e):e}(e)})),r}function Ig(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Mg(e,t,r){var n=Ag(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(L(a)){var l=i in t,s=i in n,u=t[i],c=L(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&L(u)&&(o[i]=A(a,{onExited:r.bind(null,a),in:u.props.in,exit:Ig(a,"exit",e),enter:Ig(a,"enter",e)})):o[i]=A(a,{in:!1}):o[i]=A(a,{onExited:r.bind(null,a),in:!0,exit:Ig(a,"exit",e),enter:Ig(a,"enter",e)})}})),o}var Dg=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Pg=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}_p(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Ag(r.children,(function(e){return A(e,{onExited:n.bind(null,e),in:!0,appear:Ig(e,"appear",r),enter:Ig(e,"enter",r),exit:Ig(e,"exit",r)})}))):Mg(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Ag(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=vi({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=bi(e,["component","childFactory"]),o=this.state.contextValue,i=Dg(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(bg.Provider,{value:o},i):x.createElement(bg.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);Pg.propTypes={},Pg.defaultProps={component:"div",childFactory:function(e){return e}};var _g=Pg;const Og=e=>e.scrollTop;function kg(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Tg(e){return vm("MuiPaper",e)}bm("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 qg=["className","component","elevation","square","variant"],Ng=Wm("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 hf({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&&hf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Hh("#fff",Vm(t.elevation))}, ${Hh("#fff",Vm(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var Fg=y.forwardRef((function(e,t){const r=$m({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=mf(r,qg),u=hf({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Nc({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Tg,o)})(u);return fi.jsx(Ng,hf({as:o,ownerState:u,className:Um(c.root,n),ref:t},s))}));function zg(e){return"string"==typeof e}function jg(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 $g(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 Gg=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Hg(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=bi(e,Gg),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=ku(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=vi({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=vi({},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=jg(vi({},o,n)),l=$g(n),s=$g(o),u=t(a),c=ku(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=vi({},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=vi({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(vi({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||zg(e)?t:vi({},t,{ownerState:vi({},t.ownerState,r)})}(r,vi({},s,{ref:Ec(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Bg=bm("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Wg=["center","classes","className"];let Vg,Yg,Ug,Kg,Xg=e=>e;const Jg=ns(Vg||(Vg=Xg`
26
+ */function qc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ec:switch(e=e.type){case wc:case Lc:case Rc:case Pc:case _c:return e;default:switch(e=e&&e.$$typeof){case Mc:case Ic:case Dc:case Tc:case Oc:case Ac:return e;default:return t}}case Cc:return t}}}xc=Symbol.for("react.module.reference"),Sc.ContextConsumer=Ic,Sc.ContextProvider=Ac,Sc.Element=Ec,Sc.ForwardRef=Dc,Sc.Fragment=wc,Sc.Lazy=Tc,Sc.Memo=Oc,Sc.Portal=Cc,Sc.Profiler=Lc,Sc.StrictMode=Rc,Sc.Suspense=Pc,Sc.SuspenseList=_c,Sc.isAsyncMode=function(){return!1},Sc.isConcurrentMode=function(){return!1},Sc.isContextConsumer=function(e){return qc(e)===Ic},Sc.isContextProvider=function(e){return qc(e)===Ac},Sc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ec},Sc.isForwardRef=function(e){return qc(e)===Dc},Sc.isFragment=function(e){return qc(e)===wc},Sc.isLazy=function(e){return qc(e)===Tc},Sc.isMemo=function(e){return qc(e)===Oc},Sc.isPortal=function(e){return qc(e)===Cc},Sc.isProfiler=function(e){return qc(e)===Lc},Sc.isStrictMode=function(e){return qc(e)===Rc},Sc.isSuspense=function(e){return qc(e)===Pc},Sc.isSuspenseList=function(e){return qc(e)===_c},Sc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===wc||e===Lc||e===Rc||e===Pc||e===_c||e===kc||"object"==typeof e&&null!==e&&(e.$$typeof===Tc||e.$$typeof===Oc||e.$$typeof===Ac||e.$$typeof===Ic||e.$$typeof===Dc||e.$$typeof===xc||void 0!==e.getModuleId)},Sc.typeOf=qc;var Nc=!1,Fc=x.createContext(null),zc="unmounted",jc="exited",$c="entering",Gc="entered",Hc="exiting",Bc=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=jc,r.appearStatus=$c):o=Gc:o=t.unmountOnExit||t.mountOnEnter?zc:jc,r.state={status:o},r.nextCallback=null,r}Gn(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===zc?{status:jc}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==$c&&n!==Gc&&(t=$c):n!==$c&&n!==Gc||(t=Hc)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===$c){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:N.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jc&&this.setState({status:zc})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[N.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Nc?this.safeSetState({status:Gc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:$c},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Gc},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:N.findDOMNode(this);t&&!Nc?(this.props.onExit(r),this.safeSetState({status:Hc},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:jc},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:jc},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:N.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===zc)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=jn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Fc.Provider,{value:null},"function"==typeof n?n(e,r):x.cloneElement(x.Children.only(n),r))},t}(x.Component);function Wc(){}Bc.contextType=Fc,Bc.propTypes={},Bc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wc,onEntering:Wc,onEntered:Wc,onExit:Wc,onExiting:Wc,onExited:Wc},Bc.UNMOUNTED=zc,Bc.EXITED=jc,Bc.ENTERING=$c,Bc.ENTERED=Gc,Bc.EXITING=Hc;var Vc=Bc;function Yc(e,t){var n=Object.create(null);return e&&C.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&w(e)?t(e):e}(e)})),n}function Uc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Kc(e,t,n){var r=Yc(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(w(a)){var l=i in t,s=i in r,u=t[i],c=w(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&w(u)&&(o[i]=R(a,{onExited:n.bind(null,a),in:u.props.in,exit:Uc(a,"exit",e),enter:Uc(a,"enter",e)})):o[i]=R(a,{in:!1}):o[i]=R(a,{onExited:n.bind(null,a),in:!0,exit:Uc(a,"exit",e),enter:Uc(a,"enter",e)})}})),o}var Xc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Jc=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Gn(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Yc(n.children,(function(e){return R(e,{onExited:r.bind(null,e),in:!0,appear:Uc(e,"appear",n),enter:Uc(e,"enter",n),exit:Uc(e,"exit",n)})}))):Kc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Yc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=On({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=jn(e,["component","childFactory"]),o=this.state.contextValue,i=Xc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?x.createElement(Fc.Provider,{value:o},i):x.createElement(Fc.Provider,{value:o},x.createElement(t,r,i))},t}(x.Component);Jc.propTypes={},Jc.defaultProps={component:"div",childFactory:function(e){return e}};var Zc=Jc;const Qc=e=>e.scrollTop;function ed(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function td(e){return Nu("MuiPaper",e)}Fu("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 nd=["className","component","elevation","square","variant"],rd=dc("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Cr({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&&Cr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${iu("#fff",pc(t.elevation))}, ${iu("#fff",pc(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var od=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=wr(n,nd),u=Cr({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return ml({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},td,o)})(u);return Ns.jsx(rd,Cr({as:o,ownerState:u,className:hc(c.root,r),ref:t},s))}));function id(e){return"string"==typeof e}function ad(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function ld(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const sd=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ud(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=jn(e,sd),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Hs(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=On({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=On({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=ad(On({},o,r)),l=ld(r),s=ld(o),u=t(a),c=Hs(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=On({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=On({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(On({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||id(e)?t:On({},t,{ownerState:On({},t.ownerState,n)})}(n,On({},s,{ref:Qa(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var cd=Fu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const dd=["center","classes","className"];let pd,fd,hd,md,gd=e=>e;const bd=pa(pd||(pd=gd`
37
27
  0% {
38
28
  transform: scale(0);
39
29
  opacity: 0.1;
@@ -43,7 +33,7 @@ function bf(e,t){let r;return r=t?es(e).withConfig({displayName:t.label,shouldFo
43
33
  transform: scale(1);
44
34
  opacity: 0.3;
45
35
  }
46
- `)),Zg=ns(Yg||(Yg=Xg`
36
+ `)),vd=pa(fd||(fd=gd`
47
37
  0% {
48
38
  opacity: 1;
49
39
  }
@@ -51,7 +41,7 @@ function bf(e,t){let r;return r=t?es(e).withConfig({displayName:t.label,shouldFo
51
41
  100% {
52
42
  opacity: 0;
53
43
  }
54
- `)),Qg=ns(Ug||(Ug=Xg`
44
+ `)),yd=pa(hd||(hd=gd`
55
45
  0% {
56
46
  transform: scale(1);
57
47
  }
@@ -63,7 +53,7 @@ function bf(e,t){let r;return r=t?es(e).withConfig({displayName:t.label,shouldFo
63
53
  100% {
64
54
  transform: scale(1);
65
55
  }
66
- `)),ev=Wm("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),tv=Wm((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=Um(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Um(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),fi.jsx("span",{className:p,style:f,children:fi.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Kg||(Kg=Xg`
56
+ `)),xd=dc("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Sd=dc((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=hc(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=hc(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Ns.jsx("span",{className:p,style:f,children:Ns.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(md||(md=gd`
67
57
  opacity: 0;
68
58
  position: absolute;
69
59
 
@@ -106,7 +96,17 @@ function bf(e,t){let r;return r=t?es(e).withConfig({displayName:t.label,shouldFo
106
96
  animation-iteration-count: infinite;
107
97
  animation-delay: 200ms;
108
98
  }
109
- `),Bg.rippleVisible,Jg,550,(({theme:e})=>e.transitions.easing.easeInOut),Bg.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Bg.child,Bg.childLeaving,Zg,550,(({theme:e})=>e.transitions.easing.easeInOut),Bg.childPulsate,Qg,(({theme:e})=>e.transitions.easing.easeInOut));var rv=y.forwardRef((function(e,t){const r=$m({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=mf(r,Wg),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=y.useRef(0),f=y.useRef(null),h=y.useRef(null);y.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,fi.jsx(tv,{classes:{ripple:Um(o.ripple,Bg.ripple),rippleVisible:Um(o.rippleVisible,Bg.rippleVisible),ripplePulsate:Um(o.ripplePulsate,Bg.ripplePulsate),child:Um(o.child,Bg.child),childLeaving:Um(o.childLeaving,Bg.childLeaving),childPulsate:Um(o.childPulsate,Bg.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m]),v=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=y.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),fi.jsx(ev,hf({className:Um(Bg.root,o.root,i),ref:h},a,{children:fi.jsx(_g,{component:null,exit:!0,children:l})}))}));function nv(e){return vm("MuiButtonBase",e)}var ov=bm("MuiButtonBase",["root","disabled","focusVisible"]);const iv=["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"],av=Wm("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"},[`&.${ov.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),lv=y.forwardRef((function(e,t){const r=$m({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=r,_=mf(r,iv),O=y.useRef(null),k=y.useRef(null),T=rm(k,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=pm(),[j,$]=y.useState(!1);s&&j&&$(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,H]=y.useState(!1);y.useEffect((()=>{H(!0)}),[]);const B=G&&!u&&!s;function W(e,t,r=c){return tm((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}y.useEffect((()=>{j&&d&&!u&&G&&k.current.pulsate()}),[u,d,j,G]);const V=W("start",E),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=tm((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),b&&b(e)),v&&v(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=tm((e=>{d&&!ne.current&&j&&k.current&&" "===e.key&&(ne.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=tm((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=rm(t,z,O),ue=hf({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Nc({root:["root",t&&"disabled",r&&"focusVisible"]},nv,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return fi.jsxs(av,hf({as:ae,className:Um(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:P},le,_,{children:[i,B?fi.jsx(rv,hf({ref:T,center:o},M)):null]}))}));var sv=lv;function uv(e){return vm("MuiTypography",e)}bm("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const cv=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],dv=Wm("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${Yh(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>hf({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}))),pv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},fv={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},hv=y.forwardRef((function(e,t){const r=$m({props:e,name:"MuiTypography"}),n=(e=>fv[e]||e)(r.color),o=Ah(hf({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=pv}=o,f=mf(o,cv),h=hf({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||pv[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Nc({root:["root",i,"inherit"!==e.align&&`align${Yh(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},uv,a)})(h);return fi.jsx(dv,hf({as:m,ref:t,ownerState:h,className:Um(g.root,a)},f))}));var mv=hv;const gv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function vv(e){const t=[],r=[];return Array.from(e.querySelectorAll(gv)).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 bv(){return!0}function yv(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=vv,isEnabled:a=bv,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=Ec(t.ref,h),g=y.useRef(null);y.useEffect((()=>{l&&h.current&&(f.current=!r)}),[r,l]),y.useEffect((()=>{if(!l||!h.current)return;const e=bc(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!h.current)return;const e=bc(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return fi.jsxs(y.Fragment,{children:[fi.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),fi.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const xv=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=Ec(y.isValidElement(r)?r.ref:null,t);if(dc((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),dc((()=>{if(i&&!o)return xc(t,i),()=>{xc(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:l};return y.cloneElement(r,e)}return fi.jsx(y.Fragment,{children:r})}return fi.jsx(y.Fragment,{children:i?q.createPortal(r,i):i})}));function Sv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ev(e){return parseInt(yc(e).getComputedStyle(e).paddingRight,10)||0}function Cv(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&&Sv(e,o)}))}function wv(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Rv(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=bc(e);return t.body===e?yc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=qc(bc(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Ev(n)+e}px`;const t=bc(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ev(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=bc(n).body;else{const t=n.parentElement,r=yc(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 Lv=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&&Sv(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);Cv(t,e.mount,e.modalRef,n,!0);const o=wv(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=wv(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Rv(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=wv(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&&Sv(e.modalRef,t),Cv(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&&Sv(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Av(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Lv,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=Ec(h,d),[g,v]=y.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=Sc((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||bc(f.current).body;o.add(S(),e),h.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=Sc((e=>{f.current=e,e&&(c&&w()?E():h.current&&Sv(h.current,x))})),L=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{L()}),[L]),y.useEffect((()=>{c?C():b&&i||L()}),[c,L,b,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=jg(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=vi({},r,t);return vi({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>vi({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:gc((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:gc((()=>{v(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:b}}const Iv=["onChange","maxRows","minRows","style","value"];function Mv(e){return parseInt(e,10)||0}const Dv={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Pv(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const _v=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=bi(e,Iv),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=Ec(t,u),d=y.useRef(null),p=y.useRef(0),[f,h]=y.useState({outerHeightStyle:0}),m=y.useCallback((()=>{const t=u.current,r=yc(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,l=Mv(r.paddingBottom)+Mv(r.paddingTop),s=Mv(r.borderBottomWidth)+Mv(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},v=y.useCallback((()=>{const e=m();Pv(e)||h((t=>g(t,e)))}),[m]);dc((()=>{const e=()=>{p.current=0,(()=>{const e=m();Pv(e)||q.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=vc(e),r=u.current,n=yc(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[m]),dc((()=>{v()})),y.useEffect((()=>{p.current=0}),[a]);return fi.jsxs(y.Fragment,{children:[fi.jsx("textarea",vi({value:a,onChange:e=>{p.current=0,s||v(),r&&r(e)},ref:c,rows:o,style:vi({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),fi.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:vi({},Dv,i,{paddingTop:0,paddingBottom:0})})]})}));function Ov({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 kv=y.createContext(void 0);function Tv(){return y.useContext(kv)}function qv(e){return fi.jsx(wh,hf({},e,{defaultTheme:zm,themeId:ff}))}function Nv(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Fv(e,t=!1){return e&&(Nv(e.value)&&""!==e.value||t&&Nv(e.defaultValue)&&""!==e.defaultValue)}function zv(e){return vm("MuiInputBase",e)}var jv=bm("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const $v=["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"],Gv=(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${Yh(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Hv=(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]},Bv=Wm("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Gv})((({theme:e,ownerState:t})=>hf({},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",[`&.${jv.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&hf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Wv=Wm("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Hv})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=hf({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 hf({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] + .${jv.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},[`&.${jv.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"})})),Vv=fi.jsx(qv,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Yv=y.forwardRef((function(e,t){var r;const n=$m({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:A,onKeyDown:I,onKeyUp:M,placeholder:D,readOnly:P,renderSuffix:_,rows:O,slotProps:k={},slots:T={},startAdornment:q,type:N="text",value:F}=n,z=mf(n,$v),j=null!=v.value?v.value:F,{current:$}=y.useRef(null!=j),G=y.useRef(),H=y.useCallback((e=>{}),[]),B=rm(G,b,v.ref,H),[W,V]=y.useState(!1),Y=Tv(),U=Ov({props:n,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:W,y.useEffect((()=>{!Y&&d&&W&&(V(!1),w&&w())}),[Y,d,W,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=y.useCallback((e=>{Fv(e)?K&&K():X&&X()}),[K,X]);Xh((()=>{$&&J({value:j})}),[j,J,$]);y.useEffect((()=>{J(G.current)}),[]);let Z=g,Q=v;E&&"input"===Z&&(Q=hf(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=_v);y.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=hf({},n,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:Y,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:E,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return Nc({root:["root",`color${Yh(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Yh(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},zv,t)})(ee),re=T.root||s.Root||Bv,ne=k.root||u.root||{},oe=T.input||s.Input||Wv;return Q=hf({},Q,null!=(r=k.input)?r:u.input),fi.jsxs(y.Fragment,{children:[!p&&Vv,fi.jsxs(re,hf({},ne,!zg(re)&&{ownerState:hf({},ee,ne.ownerState)},{ref:t,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),L&&L(e)}},z,{className:Um(te.root,ne.className,l,P&&"MuiInputBase-readOnly"),children:[q,fi.jsx(kv.Provider,{value:null,children:fi.jsx(oe,hf({ownerState:ee,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?G.current:{value:"x"})},name:C,placeholder:D,readOnly:P,required:U.required,rows:O,value:j,onKeyDown:I,onKeyUp:M,type:N},Q,!zg(oe)&&{as:Z,ownerState:hf({},ee,Q.ownerState)},{ref:B,className:Um(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||G.current;if(null==t)throw new Error(pf(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(A&&A(e),v.onFocus&&v.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),f,_?_(hf({},U,{startAdornment:q})):null]}))]})}));var Uv=Yv;function Kv(e){return vm("MuiInput",e)}var Xv=hf({},jv,bm("MuiInput",["root","underline","input"]));function Jv(e){return vm("MuiOutlinedInput",e)}var Zv=hf({},jv,bm("MuiOutlinedInput",["root","notchedOutline","input"]));function Qv(e){return vm("MuiFilledInput",e)}var eb=hf({},jv,bm("MuiFilledInput",["root","underline","input"])),tb=function(e,t){function r(r,n){return fi.jsx(Qm,hf({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Qm.muiName,y.memo(y.forwardRef(r))}(fi.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const rb=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],nb={entering:{opacity:1},entered:{opacity:1}},ob=y.forwardRef((function(e,t){const r=jm(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:v=Lg}=e,b=mf(e,rb),x=y.useRef(null),S=rm(x,a.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{Og(e);const n=kg({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=kg({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),I=E(f);return fi.jsx(v,hf({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:g},b,{children:(e,t)=>y.cloneElement(a,hf({style:hf({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},nb[e],m,a.props.style),ref:S},t))}))}));var ib=ob;function ab(e){return vm("MuiBackdrop",e)}bm("MuiBackdrop",["root","invisible"]);const lb=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],sb=Wm("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>hf({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"}))),ub=y.forwardRef((function(e,t){var r,n,o;const i=$m({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=ib,transitionDuration:g}=i,v=mf(i,lb),b=hf({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Nc({root:["root",r&&"invisible"]},ab,t)})(b),x=null!=(r=f.root)?r:c.root;return fi.jsx(m,hf({in:p,timeout:g},v,{children:fi.jsx(sb,hf({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:s,className:Um(y.root,l,null==x?void 0:x.className),ownerState:hf({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var cb=ub;var db=bm("MuiBox",["root"]);const pb=Fm(),fb=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=bf("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(vh);return y.forwardRef((function(e,a){const l=Ch(r),s=Ah(e),{className:u,component:c="div"}=s,d=bi(s,Ih);return fi.jsx(i,vi({as:c,ref:a,className:ku(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:ff,defaultTheme:pb,defaultClassName:db.root,generateClassName:mm.generate});var hb=fb;function mb(e){return vm("MuiButton",e)}var gb=bm("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 vb=y.createContext({});var bb=y.createContext(void 0);const yb=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],xb=e=>hf({},"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}}),Sb=Wm(sv,{shouldForwardProp:e=>Gm(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Yh(r.color)}`],t[`size${Yh(r.size)}`],t[`${r.variant}Size${Yh(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 hf({},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":hf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Hh(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})`:Hh(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})`:Hh(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":hf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${gb.focusVisible}`]:hf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${gb.disabled}`]:hf({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 ${Hh(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"},[`&.${gb.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gb.disabled}`]:{boxShadow:"none"}})),Eb=Wm("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Yh(r.size)}`]]}})((({ownerState:e})=>hf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},xb(e)))),Cb=Wm("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Yh(r.size)}`]]}})((({ownerState:e})=>hf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},xb(e)))),wb=y.forwardRef((function(e,t){const r=y.useContext(vb),n=y.useContext(bb),o=$m({props:fm(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,x=mf(o,yb),S=hf({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return hf({},a,Nc({root:["root",i,`${i}${Yh(t)}`,`size${Yh(o)}`,`${i}Size${Yh(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Yh(o)}`],endIcon:["endIcon",`iconSize${Yh(o)}`]},mb,a))})(S),C=g&&fi.jsx(Eb,{className:E.startIcon,ownerState:S,children:g}),w=p&&fi.jsx(Cb,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return fi.jsxs(Sb,hf({ownerState:S,className:Um(r.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Um(E.focusVisible,f),ref:t,type:v},x,{classes:E,children:[C,i,w]}))}));var Rb=wb;function Lb(e){return vm("MuiModal",e)}bm("MuiModal",["root","hidden","backdrop"]);const Ab=["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"],Ib=Wm("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})=>hf({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Mb=Wm(cb,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Db=y.forwardRef((function(e,t){var r,n,o,i,a,l;const s=$m({name:"MuiModal",props:e}),{BackdropComponent:u=Mb,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=s,P=mf(s,Ab),_=hf({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:k,getTransitionProps:T,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=Av(hf({},_,{rootRef:t})),j=hf({},_,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Nc({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Lb,n)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=T();G.onEnter=e,G.onExited=t}const H=null!=(r=null!=(n=null==D?void 0:D.root)?n:g.Root)?r:Ib,B=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:v.root,V=null!=(l=null==M?void 0:M.backdrop)?l:v.backdrop,Y=Hg({elementType:H,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:Um(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=Hg({elementType:B,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(hf({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Um(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?fi.jsx(xv,{ref:q,container:h,disablePortal:E,children:fi.jsxs(H,hf({},Y,{children:[!R&&u?fi.jsx(B,hf({},U)):null,fi.jsx(yv,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,G)})]}))}):null}));var Pb=Db;function _b(e){return vm("MuiDivider",e)}var Ob=bm("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const kb=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Tb=Wm("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})=>hf({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)`:Hh(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})=>hf({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>hf({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>hf({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>hf({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),qb=Wm("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>hf({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)`}))),Nb=y.forwardRef((function(e,t){const r=$m({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=mf(r,kb),h=hf({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Nc({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"]},_b,n)})(h);return fi.jsx(Tb,hf({as:a,className:Um(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?fi.jsx(qb,{className:m.wrapper,ownerState:h,children:o}):null}))}));Nb.muiSkipListHighlight=!0;var Fb=Nb;const zb=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],jb=Wm(Bv,{shouldForwardProp:e=>Gm(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Gv(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 hf({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}},[`&.${eb.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${eb.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"},[`&.${eb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${eb.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(.${eb.disabled}, .${eb.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${eb.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&hf({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}))})),$b=Wm(Wv,{name:"MuiFilledInput",slot:"Input",overridesResolver:Hv})((({theme:e,ownerState:t})=>hf({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}))),Gb=y.forwardRef((function(e,t){var r,n,o,i;const a=$m({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=mf(a,zb),g=hf({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:r}=e;return hf({},t,Nc({root:["root",!r&&"underline"],input:["input"]},Qv,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Vh(b,null!=p?p:s):b,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:jb,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:$b;return fi.jsx(Uv,hf({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))}));Gb.muiName="Input";var Hb=Gb;const Bb=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Wb(e){return`scale(${e}, ${e**2})`}const Vb={entering:{opacity:1,transform:Wb(1)},entered:{opacity:1,transform:"none"}},Yb="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ub=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Lg}=e,g=mf(e,Bb),v=y.useRef(),b=y.useRef(),x=jm(),S=y.useRef(null),E=rm(S,o.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{Og(e);const{duration:r,delay:n,easing:o}=kg({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:Yb?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:r,easing:n}=kg({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Yb?o:.666*o,delay:Yb?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Wb(.75),c&&c(e)})),M=C(d);return y.useEffect((()=>()=>{clearTimeout(v.current)}),[]),fi.jsx(m,hf({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,b.current||0)),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,hf({style:hf({opacity:0,transform:Wb(.75),visibility:"exited"!==e||a?void 0:"hidden"},Vb[e],f,o.props.style),ref:E},t))}))}));Ub.muiSupportAuto=!0;var Kb=Ub;const Xb=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Jb=Wm(Bv,{shouldForwardProp:e=>Gm(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Gv(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})`),hf({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"},[`&.${Xv.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xv.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(.${Xv.disabled}, .${Xv.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Xv.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Zb=Wm(Wv,{name:"MuiInput",slot:"Input",overridesResolver:Hv})({}),Qb=y.forwardRef((function(e,t){var r,n,o,i;const a=$m({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=mf(a,Xb),v=(e=>{const{classes:t,disableUnderline:r}=e;return hf({},t,Nc({root:["root",!r&&"underline"],input:["input"]},Kv,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Vh(null!=f?f:u,b):b,x=null!=(r=null!=(n=h.root)?n:s.Root)?r:Jb,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:Zb;return fi.jsx(Uv,hf({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))}));Qb.muiName="Input";var ey=Qb;function ty(e){return vm("MuiLink",e)}var ry=bm("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const ny={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var oy=({theme:e,ownerState:t})=>{const r=(e=>ny[e]||e)(t.color),n=Lf(e,`palette.${r}`,!1)||t.color,o=Lf(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Hh(n,.4)};const iy=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],ay=Wm(mv,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Yh(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>hf({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&hf({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:oy({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"},[`&.${ry.focusVisible}`]:{outline:"auto"}}))),ly=y.forwardRef((function(e,t){const r=$m({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=r,p=mf(r,iy),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=pm(),[v,b]=y.useState(!1),x=rm(t,g),S=hf({},r,{color:o,component:i,focusVisible:v,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Nc({root:["root",`underline${Yh(o)}`,"button"===r&&"button",n&&"focusVisible"]},ty,t)})(S);return fi.jsx(ay,hf({color:o,className:Um(E.root,n),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&b(!0),l&&l(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(ny).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var sy=ly;var uy=y.createContext({});function cy(e){return vm("MuiList",e)}bm("MuiList",["root","padding","dense","subheader"]);const dy=["children","className","component","dense","disablePadding","subheader"],py=Wm("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})=>hf({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var fy=y.forwardRef((function(e,t){const r=$m({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=mf(r,dy),c=y.useMemo((()=>({dense:a})),[a]),d=hf({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Nc({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},cy,t)})(d);return fi.jsx(uy.Provider,{value:c,children:fi.jsxs(py,hf({as:i,className:Um(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function hy(e){return vm("MuiListItemIcon",e)}var my=bm("MuiListItemIcon",["root","alignItemsFlexStart"]);const gy=["className"],vy=Wm("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})=>hf({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var by=y.forwardRef((function(e,t){const r=$m({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=mf(r,gy),i=hf({},r,{alignItems:y.useContext(uy).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Nc({root:["root","flex-start"===t&&"alignItemsFlexStart"]},hy,r)})(i);return fi.jsx(vy,hf({className:Um(a.root,n),ownerState:i,ref:t},o))}));var yy=bm("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const xy=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Sy(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ey(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Cy(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 wy(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")&&Cy(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Ry=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=mf(e,xy),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xh((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Uh(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=rm(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return fi.jsx(fy,hf({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Uh(t).activeElement;if("ArrowDown"===r)e.preventDefault(),wy(t,n,s,l,Sy);else if("ArrowUp"===r)e.preventDefault(),wy(t,n,s,l,Ey);else if("Home"===r)e.preventDefault(),wy(t,null,s,l,Sy);else if("End"===r)e.preventDefault(),wy(t,null,s,l,Ey);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&Cy(n,o);o.previousKeyMatched&&(s||wy(t,n,!1,l,Sy,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Ly(e){return vm("MuiPopover",e)}bm("MuiPopover",["root","paper"]);const Ay=["onEntering"],Iy=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],My=["slotProps"];function Dy(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Py(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function _y(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Oy(e){return"function"==typeof e?e():e}const ky=Wm(Pb,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ty=Wm(Fg,{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 qy=y.forwardRef((function(e,t){var r,n,o;const i=$m({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Kb,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=mf(i.TransitionProps,Ay),A=mf(i,Iy),I=null!=(r=null==x?void 0:x.paper)?r:v,M=y.useRef(),D=rm(M,I.ref),P=hf({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return Nc({root:["root"],paper:["paper"]},Ly,t)})(P),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=Oy(l),t=(e&&1===e.nodeType?e:Uh(M.current).body).getBoundingClientRect();return{top:t.top+Dy(t,s.vertical),left:t.left+Py(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=y.useCallback((e=>({vertical:Dy(e,S.vertical),horizontal:Py(e,S.horizontal)})),[S.horizontal,S.vertical]),T=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=k(t);if("none"===c)return{top:null,left:null,transformOrigin:_y(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Kh(Oy(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:_y(r)}}),[l,c,O,k,m]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=M.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Kh(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?Uh(Oy(l)).body:void 0),$=null!=(n=null==b?void 0:b.root)?n:ky,G=null!=(o=null==b?void 0:b.paper)?o:Ty,H=Hg({elementType:G,externalSlotProps:hf({},I,{style:q?I.style:hf({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:Um(_.paper,null==I?void 0:I.className)}),B=Hg({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:Um(_.root,p)}),{slotProps:W}=B,V=mf(B,My);return fi.jsx($,hf({},V,!zg($)&&{slotProps:W,disableScrollLock:R},{children:fi.jsx(E,hf({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:fi.jsx(G,hf({},H,{children:d}))}))}))}));function Ny(e){return vm("MuiMenu",e)}bm("MuiMenu",["root","paper","list"]);const Fy=["onEntering"],zy=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],jy={vertical:"top",horizontal:"right"},$y={vertical:"top",horizontal:"left"},Gy=Wm(qy,{shouldForwardProp:e=>Gm(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hy=Wm(Ty,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),By=Wm(Ry,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Wy=y.forwardRef((function(e,t){var r,n;const o=$m({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,x=mf(o.TransitionProps,Fy),S=mf(o,zy),E=jm(),C="rtl"===E.direction,w=hf({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return Nc({root:["root"],paper:["paper"],list:["list"]},Ny,t)})(w),L=i&&!s&&d,A=y.useRef(null);let I=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const M=null!=(r=v.paper)?r:Hy,D=null!=(n=b.paper)?n:p,P=Hg({elementType:v.root,externalSlotProps:b.root,ownerState:w,className:[R.root,l]}),_=Hg({elementType:M,externalSlotProps:D,ownerState:w,className:R.paper});return fi.jsx(Gy,hf({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?jy:$y,slots:{paper:M,root:v.root},slotProps:{root:P,paper:_},open:d,ref:t,transitionDuration:h,TransitionProps:hf({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,E),m&&m(e,t)}},x),ownerState:w},S,{classes:f,children:fi.jsx(By,hf({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||s),autoFocusItem:L,variant:g},u,{className:Um(R.list,u.className),children:a}))}))}));function Vy(e){return vm("MuiMenuItem",e)}var Yy=bm("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Uy=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ky=Wm(sv,{shouldForwardProp:e=>Gm(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})=>hf({},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"}},[`&.${Yy.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Hh(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Yy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Hh(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Yy.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Hh(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})`:Hh(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Yy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yy.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ob.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ob.inset}`]:{marginLeft:52},[`& .${yy.root}`]:{marginTop:0,marginBottom:0},[`& .${yy.inset}`]:{paddingLeft:36},[`& .${my.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&hf({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${my.root} svg`]:{fontSize:"1.25rem"}}))));var Xy=y.forwardRef((function(e,t){const r=$m({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=mf(r,Uy),f=y.useContext(uy),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=y.useRef(null);Xh((()=>{n&&m.current&&m.current.focus()}),[n]);const g=hf({},r,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return hf({},a,Nc({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Vy,a))})(r),b=rm(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),fi.jsx(uy.Provider,{value:h,children:fi.jsx(Ky,hf({ref:b,role:u,tabIndex:x,component:o,focusVisibleClassName:Um(v.focusVisible,s),className:Um(v.root,d)},p,{ownerState:g,classes:v}))})}));function Jy(e){return vm("MuiNativeSelect",e)}var Zy=bm("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Qy=["className","disabled","error","IconComponent","inputRef","variant"],ex=({ownerState:e,theme:t})=>hf({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":hf({},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"},[`&.${Zy.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}}),tx=Wm("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Gm,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Zy.multiple}`]:t.multiple}]}})(ex),rx=({ownerState:e,theme:t})=>hf({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Zy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),nx=Wm("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Yh(r.variant)}`],r.open&&t.iconOpen]}})(rx),ox=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=mf(e,Qy),u=hf({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Nc({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Yh(r)}`,i&&"iconOpen",n&&"disabled"]},Jy,t)})(u);return fi.jsxs(y.Fragment,{children:[fi.jsx(tx,hf({ownerState:u,className:Um(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:fi.jsx(nx,{as:i,ownerState:u,className:c.icon})]})}));var ix,ax=ox;const lx=["children","classes","className","label","notched"],sx=Wm("fieldset",{shouldForwardProp:Gm})({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%"}),ux=Wm("legend",{shouldForwardProp:Gm})((({ownerState:e,theme:t})=>hf({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&&hf({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 cx=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],dx=Wm(Bv,{shouldForwardProp:e=>Gm(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Gv})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return hf({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Zv.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Zv.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Zv.focused} .${Zv.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Zv.error} .${Zv.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Zv.disabled} .${Zv.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&hf({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),px=Wm((function(e){const{className:t,label:r,notched:n}=e,o=mf(e,lx),i=null!=r&&""!==r,a=hf({},e,{notched:n,withLabel:i});return fi.jsx(sx,hf({"aria-hidden":!0,className:t,ownerState:a},o,{children:fi.jsx(ux,{ownerState:a,children:i?fi.jsx("span",{children:r}):ix||(ix=fi.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}})),fx=Wm(Wv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Hv})((({theme:e,ownerState:t})=>hf({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}))),hx=y.forwardRef((function(e,t){var r,n,o,i,a;const l=$m({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=mf(l,cx),v=(e=>{const{classes:t}=e;return hf({},t,Nc({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Jv,t))})(l),b=Tv(),x=Ov({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=hf({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:m}),E=null!=(r=null!=(n=h.root)?n:s.Root)?r:dx,C=null!=(o=null!=(i=h.input)?i:s.Input)?o:fx;return fi.jsx(Uv,hf({slots:{root:E,input:C},renderSuffix:e=>fi.jsx(px,{ownerState:S,className:v.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=fi.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:hf({},v,{notchedOutline:null})}))}));hx.muiName="Input";var mx=hx;function gx(e){return vm("MuiSelect",e)}var vx,bx=bm("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const yx=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],xx=Wm("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${bx.select}`]:t.select},{[`&.${bx.select}`]:t[r.variant]},{[`&.${bx.error}`]:t.error},{[`&.${bx.multiple}`]:t.multiple}]}})(ex,{[`&.${bx.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Sx=Wm("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Yh(r.variant)}`],r.open&&t.iconOpen]}})(rx),Ex=Wm("input",{shouldForwardProp:e=>Hm(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 Cx(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function wx(e){return null==e||"string"==typeof e&&!e.trim()}const Rx=y.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:v={},multiple:b,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:A,renderValue:I,SelectDisplayProps:M={},tabIndex:D,value:P,variant:_="standard"}=e,O=mf(e,yx),[k,T]=em({controlled:P,default:c,name:"Select"}),[q,N]=em({controlled:L,default:u,name:"Select"}),F=y.useRef(null),z=y.useRef(null),[j,$]=y.useState(null),{current:G}=y.useRef(null!=L),[H,B]=y.useState(),W=rm(t,m),V=y.useCallback((e=>{z.current=e,e&&$(e)}),[]),Y=null==j?void 0:j.parentNode;y.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),y.useEffect((()=>{u&&q&&j&&!G&&(B(a?null:Y.clientWidth),z.current.focus())}),[j,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Uh(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?R&&R(t):C&&C(t),G||(B(a?null:Y.clientWidth),N(e))},K=y.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(k)?k.slice():[];const t=k.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),k!==r&&(T(r),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)}b||U(!1,t)}},J=null!==j&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Fv({value:k})||p)&&(I?Z=I(k):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(b){if(!Array.isArray(k))throw new Error(pf(2));t=k.some((t=>Cx(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Cx(k,e.props.value),t&&te&&(Q=e.props.children);return y.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=b?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=H;!a&&G&&j&&(oe=Y.clientWidth),ne=void 0!==D?D:d?null:0;const ie=M.id||(x?`mui-component-select-${x}`:void 0),ae=hf({},e,{variant:_,value:k,open:J,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Nc({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Yh(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},gx,t)})(ae),se=hf({},v.PaperProps,null==(r=v.slotProps)?void 0:r.paper),ue=Qh();return fi.jsxs(y.Fragment,{children:[fi.jsx(xx,hf({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),U(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:x}}),S(e))},onFocus:w},M,{ownerState:ae,className:Um(M.className,le.select,s),id:ie,children:wx(Z)?vx||(vx=fi.jsx("span",{className:"notranslate",children:"​"})):Z})),fi.jsx(Ex,hf({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),fi.jsx(Sx,{as:h,className:le.icon,ownerState:ae}),fi.jsx(Wy,hf({id:`menu-${x||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:hf({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:hf({},v.slotProps,{paper:hf({},se,{style:hf({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var Lx=Rx;const Ax=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ix=["root"],Mx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Gm(e)&&"variant"!==e,slot:"Root"},Dx=Wm(ey,Mx)(""),Px=Wm(mx,Mx)(""),_x=Wm(Hb,Mx)(""),Ox=y.forwardRef((function(e,t){const r=$m({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=tb,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:v=!1,onClose:b,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=r,R=mf(r,Ax),L=v?ax:Lx,A=Ov({props:r,muiFormControl:Tv(),states:["variant","error"]}),I=A.variant||w,M=hf({},r,{variant:I,classes:i}),D=(e=>{const{classes:t}=e;return t})(M),P=mf(D,Ix),_=d||{standard:fi.jsx(Dx,{ownerState:M}),outlined:fi.jsx(Px,{label:f,ownerState:M}),filled:fi.jsx(_x,{ownerState:M})}[I],O=rm(t,_.ref);return fi.jsx(y.Fragment,{children:y.cloneElement(_,hf({inputComponent:L,inputProps:hf({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},v?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:b,onOpen:x,open:S,renderValue:E,SelectDisplayProps:hf({id:c},C)},p,{classes:p?Vh(P,p.classes):P},d?d.props.inputProps:{})},g&&v&&"outlined"===I?{notched:!0}:{},{ref:O,className:Um(_.props.className,a,D.root)},!d&&{variant:I},R))})}));Ox.muiName="Select";var kx=Ox,Tx=(e={})=>x.createElement(Jp,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:kp.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const qx={MuiAccordion:{styleOverrides:{root:{backgroundColor:kp.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:kp.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(Up,{"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 ${kp.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:kp.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${kp.MISC_FOCUS_BORDER}`,borderRadius:zp,backgroundColor:kp.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 ${kp.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:kp.WHITE,color:kp.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:zp},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${kp.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:kp.GREYSCALE_0_15,backgroundColor:kp.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:kp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${kp.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:kp.GREEN_PALE},"&:active":{backgroundColor:kp.GREEN_DARK},"&.Mui-focusVisible":{borderColor:kp.GREEN_PALE,boxShadow:`0 0 0 3px ${Hh(kp.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:kp.BLUE_PALE},"&:active":{backgroundColor:kp.BLUE_DARK},"&.Mui-focusVisible":{borderColor:kp.BLUE_PALE,boxShadow:`0 0 0 3px ${Hh(kp.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:zp,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:kp.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${kp.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:kp.GREYSCALE_0_15,backgroundColor:kp.GREYSCALE_100_60,"&:active":{backgroundColor:kp.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:kp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${kp.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:kp.PURPLE,"&.Mui-focusVisible":{borderColor:kp.PURPLE,boxShadow:`0 0 0 3px ${Hh(kp.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:kp.GREEN,"&.Mui-focusVisible":{borderColor:kp.GREEN,boxShadow:`0 0 0 3px ${Hh(kp.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:kp.BLUE,"&.Mui-focusVisible":{borderColor:kp.BLUE,boxShadow:`0 0 0 3px ${Hh(kp.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:kp.ORANGE,"&.Mui-focusVisible":{borderColor:kp.ORANGE,boxShadow:`0 0 0 3px ${Hh(kp.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:kp.RED,"&.Mui-focusVisible":{borderColor:kp.RED,boxShadow:`0 0 0 3px ${Hh(kp.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:kp.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:kp.PURPLE_PALE},"&:active":{backgroundColor:kp.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:kp.PURPLE_PALE,boxShadow:`0 0 0 3px ${Hh(kp.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:kp.GREEN_PALE},"&:active":{backgroundColor:kp.GREEN_DARK},"&.Mui-focusVisible":{borderColor:kp.GREEN_PALE,boxShadow:`0 0 0 3px ${Hh(kp.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:kp.BLUE_PALE},"&:active":{backgroundColor:kp.BLUE_DARK},"&.Mui-focusVisible":{borderColor:kp.BLUE_PALE,boxShadow:`0 0 0 3px ${Hh(kp.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:kp.ORANGE_PALE},"&:active":{backgroundColor:kp.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:kp.ORANGE_PALE,boxShadow:`0 0 0 3px ${Hh(kp.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:kp.RED_PALE},"&:active":{backgroundColor:kp.RED_DARK},"&.Mui-focusVisible":{borderColor:kp.RED_PALE,boxShadow:`0 0 0 3px ${Hh(kp.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:kp.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:kp.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:zp,boxShadow:`inset 0 0 0 2px ${kp.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(Xp,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Tp,borderRadius:zp,color:kp.TEXT_PRIMARY,backgroundColor:kp.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:kp.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${kp.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:kp.GREYSCALE_0_05,color:kp.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:kp.GREEN,borderColor:kp.GREEN},"&.MuiChip-outlinedInfo":{color:kp.BLUE,borderColor:kp.BLUE},"&.MuiChip-outlinedWarning":{color:kp.ORANGE,borderColor:kp.ORANGE},"&.MuiChip-outlinedError":{color:kp.RED,borderColor:kp.RED}},outlined:{border:`solid 1px ${kp.GREYSCALE_0_15}`,backgroundColor:kp.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:zp,boxShadow:"none",backgroundColor:kp.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:kp.GREEN,borderColor:kp.GREEN},outlinedSecondary:{color:kp.BLUE,borderColor:kp.BLUE},label:{fontFamily:Bp.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(Xp,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(Up,{"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:zp},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:zp,fontSize:qp,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:kp.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${kp.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:kp.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:kp.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:kp.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:zp,border:`solid 1px ${kp.GREYSCALE_0_15}`,color:kp.GREYSCALE_0_60,marginRight:0,width:Fp,height:Fp},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${kp.GREYSCALE_0_15}`},clearIndicator:{borderRadius:zp,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:kp.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:qp}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Tp,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:kp.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:kp.GREYSCALE_25,fontSize:Tp,fontFamily:Bp.FONT_FAMILY,fontWeight:Gp,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:kp.TEXT_PRIMARY},"&.Mui-error":{color:kp.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:kp.TEXT_SECONDARY,content:"'(optional)'",fontWeight:$p,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:kp.TEXT_SECONDARY,content:"'(required)'",fontWeight:$p,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:qp,lineHeight:"16px",backgroundColor:kp.WHITE,borderRadius:zp,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kp.GREYSCALE_0_05}`,borderColor:kp.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kp.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${kp.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${kp.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kp.RED}`,boxShadow:`0px 0px 0px 1px ${kp.RED}, inset 0 2px 0 0 ${kp.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kp.GREYSCALE_0_10}`,borderColor:kp.GREYSCALE_0_10,backgroundColor:kp.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:kp.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:kp.GREYSCALE_0_15,borderRadius:zp,boxShadow:`inset 0 2px 0 0 ${kp.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(Up,{...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:kp.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:kp.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:kp.GREYSCALE_0_03},"&:active":{backgroundColor:kp.GREYSCALE_0_10},"&:focus":{backgroundColor:kp.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${kp.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${kp.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:kp.GREYSCALE_0_30,"&:hover":{backgroundColor:kp.GREYSCALE_0_0,borderColor:kp.GREYSCALE_0_15},"& ~svg":{color:kp.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${kp.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:zp}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:kp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${kp.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:kp.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:qp,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Tp,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Tp,fontWeight:Gp,color:kp.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Gp}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${kp.GREYSCALE_0_15}, 0px 0px 0px 1px ${kp.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(ef,null),checkedIcon:x.createElement(tf,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:kp.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${kp.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:kp.GREEN_PALE,boxShadow:`0 0 0 3px ${Hh(kp.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:kp.BLUE_PALE,boxShadow:`0 0 0 3px ${Hh(kp.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:kp.GREYSCALE_0_20}},"&.Mui-disabled":{fill:kp.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(Tx,null),checkedIcon:x.createElement(Zp,null),indeterminateIcon:x.createElement(Qp,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:zp,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:kp.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:kp.GREYSCALE_0_55,color:kp.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:kp.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:kp.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:kp.GREYSCALE_0_55,"&:hover":{color:kp.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:kp.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:kp.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:qp,color:kp.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Gp},secondary:{fontSize:Tp,color:kp.GREYSCALE_45,fontWeight:$p,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:qp,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:kp.GREYSCALE_0_03},"&:active":{backgroundColor:kp.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:qp,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:kp.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Tp,borderBottom:`solid 1px ${kp.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:qp,color:kp.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:kp.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:kp.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:kp.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:kp.RED}}},"&.Mui-focusVisible":{backgroundColor:kp.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:kp.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:kp.GREEN,height:"24px","&.Mui-disabled":{color:kp.GREYSCALE_0_15}},rail:{backgroundColor:kp.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${kp.GREYSCALE_0_05}`,borderRadius:zp,boxShadow:`inset 0px 0px 0px 1px ${kp.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${kp.GREYSCALE_0_05}`,borderRadius:zp},thumb:{height:"16px",width:"16px",borderRadius:zp,backgroundColor:kp.WHITE,boxShadow:`0px 1px 2px 0px ${kp.GREYSCALE_0_15}, 0px 0px 0px 1px ${kp.GREYSCALE_0_05}`,"&:hover":{borderRadius:zp,boxShadow:`0 2px 4px 0 ${kp.GREYSCALE_0_30}, 0 0 0 1px ${kp.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${kp.GREYSCALE_0_15}, 0 0 0 1px ${kp.GREYSCALE_0_06}, 0 0 0 2px ${kp.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${kp.GREYSCALE_0_15}, 0 0 0 1px ${kp.GREYSCALE_0_06}, 0 0 0 2px ${kp.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:kp.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:kp.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:kp.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:kp.GREYSCALE_0_15},markLabel:{color:kp.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:kp.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:kp.WHITE,color:kp.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:kp.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:kp.GREEN_PALE,boxShadow:`0 0 0 3px ${Hh(kp.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:kp.BLUE_PALE,boxShadow:`0 0 0 3px ${Hh(kp.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:kp.GREYSCALE_0_15,borderRadius:zp},thumb:{height:"16px",width:"16px",borderRadius:zp,backgroundColor:kp.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:qp,fontWeight:Gp,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${kp.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${kp.MISC_FOCUS_BORDER}`,backgroundColor:kp.GREYSCALE_0_03,borderRadius:zp},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:kp.GREYSCALE_25,"&.Mui-selected":{color:kp.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:qp,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${kp.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${kp.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${kp.GREYSCALE_85}`,borderRight:`1px solid ${kp.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Gp,backgroundColor:kp.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:kp.GREYSCALE_98,borderBottom:`1px solid ${kp.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${kp.GREYSCALE_85}`,borderTop:`1px solid ${kp.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:kp.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:kp.GREYSCALE_0_05,"&:hover":{backgroundColor:kp.GREYSCALE_0_03}},"&&:hover":{backgroundColor:kp.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(rf,{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 ${kp.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:qp,borderRadius:zp,padding:"7px 16px",border:`1px solid ${kp.GREYSCALE_0_15}`,backgroundColor:kp.GREYSCALE_100_60,color:kp.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:kp.GREYSCALE_0_10,border:`1px solid ${kp.GREYSCALE_0_30}`},"&:hover":{backgroundColor:kp.GREYSCALE_0_03,border:`1px solid ${kp.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:kp.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${kp.MISC_FOCUS_BORDER}`,border:`1px solid ${kp.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:kp.GREYSCALE_25,backgroundColor:kp.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:kp.GREYSCALE_0_10,border:`1px solid ${kp.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Tp,height:24,width:24,padding:7},sizeLarge:{fontSize:Np,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:qp,borderRadius:zp}}},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:kp.GREYSCALE_20},tooltip:{backgroundColor:kp.GREYSCALE_20,fontSize:Tp,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Nx={mode:"light",primary:{light:kp.GREEN_PALE,main:kp.GREEN,dark:kp.GREEN_DARK,contrastText:kp.WHITE},secondary:{light:kp.BLUE_PALE,main:kp.BLUE,dark:kp.BLUE_DARK,contrastText:kp.WHITE},error:{light:kp.RED_PALE,main:kp.RED,dark:kp.RED_DARK,contrastText:kp.WHITE},warning:{light:kp.ORANGE_PALE,main:kp.ORANGE,dark:kp.ORANGE_DARK,contrastText:kp.WHITE},success:{light:kp.GREEN_PALE,main:kp.GREEN,dark:kp.GREEN_DARK,contrastText:kp.WHITE},info:{light:kp.BLUE_PALE,main:kp.BLUE,dark:kp.BLUE_DARK,contrastText:kp.WHITE},text:{primary:kp.TEXT_PRIMARY,secondary:kp.TEXT_SECONDARY,disabled:kp.GREYSCALE_0_30},action:{hover:kp.GREYSCALE_0_03,hoverOpacity:.05,selected:kp.GREYSCALE_0_05,focus:kp.MISC_FOCUS_BORDER},amethyst:{main:kp.PURPLE,light:kp.PURPLE_PALE,dark:kp.PURPLE_DARK,contrastText:kp.WHITE},background:{paper:kp.WHITE,default:kp.GREYSCALE_95},divider:kp.GREYSCALE_0_15},Fx=e=>({components:qx,palette:Nx,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:qp,fontWeightLight:jp,fontWeightRegular:$p,fontWeightMedium:Gp,fontWeightBold:Hp,htmlFontSize:qp,fontFamily:Bp.FONT_FAMILY,button:{fontWeight:Gp,fontSize:qp,textTransform:"none"},body1:{fontSize:Np,lineHeight:"24px"},body2:{fontSize:qp,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Fp,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Np,fontWeight:Gp,lineHeight:"16px"},h6:{fontSize:qp,fontWeight:Gp,lineHeight:"16px"},caption:{color:kp.TEXT_SECONDARY},subtitle1:{fontSize:qp,color:kp.TEXT_SECONDARY},subtitle2:{fontSize:Tp,color:kp.TEXT_SECONDARY}},shape:{borderRadius:zp}}),zx={...Op,MISC_FOCUS_BORDER:kp.MISC_FOCUS_BORDER},jx=Fx().palette,$x={TEXT:jx.text.primary,DISABLED:jx.text.disabled,HOVER:jx.action.hover,WHITE:zx.GREYSCALE_100,BORDER_LIGHT:zx.GREYSCALE_90,BORDER_MEDIUM:zx.GREYSCALE_85,BORDER_HEAVY:zx.GREYSCALE_50,DARK_MODE_TEXT:zx.GREYSCALE_95,DARK_MODE_BORDER:zx.GREYSCALE_95,DARK_MODE_DISABLED:zx.GREYSCALE_70,DARK_MODE_BACKGROUND:zx.GREYSCALE_20},Gx=(e,t)=>{const r=An(e),n=r.l<70;return 0===r.opacity?(r.opacity=t.opacity,r.toString()):n?r.brighter(t.brighter).toString():r.darker(t.darker).toString()},Hx=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Bx=e=>{const t=(e=>{const t=Hx.exec(e);if(t){const[,e,r,n,o]=t;return Zr(+r,+n,+o,+e/255)}return Zr(e)})(e);return Number.isNaN(t.r)?null:t.toString()},Wx=e=>{e.stopPropagation(),e.preventDefault()},Vx=Wm(hb,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${Lt}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${Lt}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),Yx=Wm(hb)({position:"absolute",height:"100%",width:"3px"}),Ux=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=I({initWidth:e,columnWidth:e,initX:0}),d=r?0:1,p=n&&!u,f={left:p?c.current.columnWidth-d:"100%"},h=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};Zo((()=>p&&h()),[e]);const m=e=>{const t=Math.max(e,At.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:It.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},v=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;m(t)},b=e=>{Wx(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;m(t)},S=e=>{Wx(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",S),g()},E=!n&&l?e=>{if(e.key===wt.LEFT||e.key===wt.RIGHT){Wx(e);const t=5,r=e.key===wt.LEFT?-t:t;m(c.current.columnWidth+r)}else e.key===wt.SPACE||e.key===wt.ENTER?(Wx(e),l(e),g()):e.key===wt.ESC&&(Wx(e),l(e),m(c.current.initWidth))}:void 0;return x.createElement(Vx,{className:Rt,isLastColumn:r,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),null==s||s(!0),h(e.clientX)},onDoubleClick:()=>a({type:It.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),null==s||s(!0),h(e.touches[0].clientX))},onKeyDown:E,onBlur:l,onFocus:()=>h(),"data-testid":Rt},x.createElement(Yx,{className:Lt}))};function Kx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Xx=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Kx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"}))));function Jx(){return Jx=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},Jx.apply(this,arguments)}const Zx=Wm(hb,{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"}))),Qx=Wm(Xx,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),eS=Wm(Wy)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),tS=Wm(Fb)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),rS=Wm(Xy)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),nS=Wm(Xy,{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")}))),oS=Wm("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"}))),iS=Wm("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),aS=Wm(mv)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),lS=Wm(by)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function sS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){sS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let cS={};const dS=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=E(!1),p=I(null),f=D((e=>{e.stopPropagation(),d(!1)}),[d]);return x.createElement(x.Fragment,null,x.createElement(nS,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),cS={}),null!=a&&a.length&&(d(!0),cS[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&x.createElement(oS,null),x.createElement(iS,null,x.createElement(lS,null,x.createElement(o,null)),x.createElement(aS,{variant:"body2"},n)),null!=a&&a.length?x.createElement(uS,null):null),(null==a?void 0:a.length)&&x.createElement(fS,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=cS,h.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(m).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var h,m},pS=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&x.createElement(rS,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>x.createElement(dS,Jx({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),fS=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>n.length?x.createElement(eS,Jx({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[pS({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?x.createElement(tS,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:n,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,hS={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},mS=(e,t)=>e.some((e=>t[e]>0));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 vS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){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),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"}))));function 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 yS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){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),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"}))));function 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=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){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),x.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"}))));function 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=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){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),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function 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 RS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){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),x.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"}))));function 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 AS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){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),x.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"}))));function IS(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=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){IS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function 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=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){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),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function _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 OS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){_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),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function 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=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){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),x.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"}))));let qS=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const NS=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(r[qS.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),n(!1),await(null==i?void 0:i(e))},icon:vS,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),n(!1),await(null==i?void 0:i(e))},icon:CS,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];r[qS.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),l()},icon:RS,enabled:!0}]}]),r[qS.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:TS,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectAll())},icon:AS,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectPossible())},icon:OS,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectAlternative())},icon:MS,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectExcluded())},icon:PS,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.clear())},icon:yS,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[qS.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==d||d(c)},icon:SS,enabled:!0}]}]),p},FS=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const h=ei({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:v}=n,{fieldInstance:b,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:S,updateSelectionActionsEnabledStatus:C}=(({headerData:e,app:t})=>{const[r,n]=E(null),[o,i]=E(hS);return P((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(n).catch(console.error)}),[t,e]),{fieldInstance:r,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:D((()=>i(hS)),[]),updateSelectionActionsEnabledStatus:D((t=>{const r=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));r&&i({canSelectAll:mS(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:mS(["qSelected"],r.qStateCounts),canSelectPossible:mS(["qOption"],r.qStateCounts),canSelectAlternative:mS(["qAlternative"],r.qStateCounts),canSelectExcluded:mS(["qAlternative","qExcluded"],r.qStateCounts)})}),[e.label,i])}})({headerData:n,app:null==d?void 0:d.app}),w=D((()=>{const e=g?{qLibraryId:g,type:"dimension"}:v;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,v,g]);P((()=>{e||(S(),null!=d&&d.model&&d.model.getLayout().then((e=>{C(e)})).catch((e=>console.error(e))))}),[e,S,C,null==d?void 0:d.model]);const R=D((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(Zx,{rightAligned:"right"===m,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&x.createElement(Qx,{height:St,className:Et,"data-testid":Et,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},x.createElement(Xx,null)),x.createElement(fS,{open:e,anchorEl:r.current,onClose:R,menuGroups:NS({headerData:n,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:w,interactions:i,fieldInstance:b,selectionActionsEnabledStatus:y,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},zS=e=>e.isDark?{background:e.color,borderColor:$x.DARK_MODE_BORDER,color:$x.DARK_MODE_TEXT,disabledColor:$x.DARK_MODE_DISABLED,iconColor:$x.DARK_MODE_TEXT}:{background:e.color,borderColor:$x.BORDER_MEDIUM,color:$x.TEXT,disabledColor:$x.DISABLED},jS=Wm(hb,{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}`}))),$S=Wm(kx,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),GS=Wm(Rb,{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)}))),HS=Wm(mv)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),BS=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=S((()=>zS(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(jS,{footerStyle:i},e):null;return t?N.createPortal(e,t):a},WS=_({}),VS=()=>C(WS),YS=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,v=S((()=>zS(p.background)),[p]),b=o?o.getBoundingClientRect().width:h.width,y=ei({translator:d}),E=S((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:g,width:b})),[t,r,n,o,i,a,l,s,u,c,y,p,f,h,m,v,g,b]);return x.createElement(WS.Provider,{value:E},e)};let US=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),KS=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 XS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const JS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){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),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));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 QS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){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),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"}))));function eE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tE=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){eE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})))),rE={FirstPage:QS,PreviousPage:JS,NextPage:uS,LastPage:tE,FirstPageRTL:tE,PreviousPageRTL:uS,NextPageRTL:JS,LastPageRTL:QS},nE=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=VS(),u=rE[`${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}},oE=()=>{const{pageInfo:e,width:t}=VS(),r=0===e.page,{IconComponent:n,styledProps:o}=nE({type:US.FirstPage,disabledCondition:r,pageNumber:0});return t<=KS.FirstPage?null:x.createElement(GS,o,x.createElement(n,{height:St}))},iE=(e,t,r=!1)=>{r&&e.key===wt.TAB&&!e.shiftKey&&(Wx(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))},aE=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=VS(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=nE({type:US.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>iE(e,t,n):null;return o<=KS.LastPage?null:x.createElement(GS,Jx({},l,{onKeyDown:s}),x.createElement(a,{height:St}))},lE=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=VS(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=nE({type:US.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>KS.FirstPage&&o>KS.LastPage)&&t.enabled?e=>iE(e,t,n):null;return x.createElement(GS,Jx({},l,{onKeyDown:s}),x.createElement(a,{height:St}))},sE=()=>{const{pageInfo:e}=VS(),t=0===e.page,{IconComponent:r,styledProps:n}=nE({type:US.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(GS,n,x.createElement(r,{height:St}))},uE=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=VS(),{page:o,rowsPerPage:i}=r;if(t<=KS.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(HS,{variant:"caption"},a)},cE=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=VS(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(HS,{variant:"caption",id:d},u,":"),x.createElement($S,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},dE=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=VS();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>KS.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(cE,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},pE=1e3,fE="…",hE=({totalPages:e,page:t})=>{const r=Math.min(e,pE),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-pE):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:fE,disabled:!0},fE)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:fE,disabled:!0},fE)),x.createElement(x.Fragment,null,a)},mE=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=VS(),{page:o}=e;if(t<=KS.SelectPage)return null;const i=x.createElement(hE,{totalPages:r,page:o});return x.createElement(cE,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var gE=O((e=>x.createElement(YS,e,x.createElement(dE,null),x.createElement(mE,null),x.createElement(uE,null),x.createElement(oE,null),x.createElement(sE,null),x.createElement(lE,null),x.createElement(aE,null))));const vE=e=>x.createElement(BS,e,x.createElement(gE,e)),bE=_({}),yE=()=>C(bE),xE=({children:e,model:t,app:r,interactions:n,embed:o,theme:i,keyboard:a,env:l})=>{const s=S((()=>({model:t,app:r,interactions:n,embed:o,theme:i,keyboard:a,env:l})),[r,n,t,o,i,a,l]);return fi.jsx(bE.Provider,{value:s,children:e})},SE=e=>{const{text:t,fontFamily:r,fontSize:n,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var r;const{theme:n}=yE(),o=null!==(r=n.getStyle("","","fontFamily"))&&void 0!==r?r:Xt;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:fi.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:fi.jsx("span",{style:{...lr,fontFamily:r,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:t})})},EE=_({}),CE=()=>C(EE),wE=({children:e,styleService:t})=>fi.jsx(EE.Provider,{value:t,children:e}),RE=21,LE=20,AE=LE,IE=16+tr+1,ME=.75;let DE=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),PE=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const _E=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===DE.Image},OE="/qHyperCubeDef",kE=-1,TE="PSEUDO-DIM",qE=e=>void 0===e?Jt:e,NE=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,FE=e=>NE(e,At.PixelsDefault),zE=(e,t)=>NE(e,At.PercentageDefault)*t/100,jE=(e,t,r)=>{switch(null==t?void 0:t.type){case It.Pixels:return FE(t.pixels);case It.Percentage:return zE(t.percentage,e);case It.FitToContent:case It.Auto:default:return r}},$E=({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===TE)return e+0;const h=r(p),m=!u&&f&&d<s-1?RE:0;let g=0;if(n&&o&&i){g=o("-")+i}return Math.max(e,24*l+IE+m+h+g)}),0),GE=(e,t,r,n)=>{const o=100*e/t,i=n*ME*(o/100),a=r*(o/100);return Math.min(a,i)},HE=(e,t,r,n)=>n*(r/100)*(100*e/t/100),BE=({layoutService:e,headersData:t,columnWidths:r,tableWidth:n,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a})=>{let l=[];const s=t.data[t.data.length-1][0],u=r.at(-1),c=$E({headers:s,layoutService:e,estimateWidthForDimensionValue:a}),d=((e,t)=>e.reduce(((e,r)=>Math.max(e,IE+t(r.qFallbackTitle))),0))(e.visibleMeasureInfo,i);let p=0;const f=s.findIndex((e=>e.id===TE));if(e.hasPseudoDimOnLeft)if(0===f){const e=Math.max(u,c,d);l=[Math.max(24,e-u),u]}else{p=$E({headers:s.slice(0,f),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:d});const t=Math.max(u,c,p);l=[Math.max(24,t-u),u]}else l=[Math.max(24,c-u),u];const h=l.reduce(((e,t)=>e+t),0),{indentModeColumnWidth:m}=e.layout.qHyperCube,g=m&&[It.Pixels,It.Percentage].includes(m.type);return o&&o<=n*ME&&(m.type=It.Pixels,m.pixels=o),g?((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;s===It.Pixels&&u&&(o=GE(e[0],l,u,r),i=GE(e[1],l,u,r)),s===It.Percentage&&c&&(o=HE(e[0],l,c,r),i=HE(e[1],l,c,r));const d=i-n;d>0&&(o+=d,i-=d),a=[o,i];const p=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:p,leftGridFullWidth:p}})(l,m,n,u):{leftGridWidth:h,leftGridColumnWidths:l,leftGridFullWidth:h}};function WE({layoutService:e,tableWidth:t,headersData:r}){const n=CE(),{measureText:o}=Ko(n.header),{estimateWidth:i}=Ko({...n.dimensionValues,fontWeight:qE(n.dimensionValues.fontWeight)}),{measureText:a}=Ko({...n.dimensionValues,...n.measureLabels}),l=D(((n,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s,topHeadersColumnWidth:u}},visibleMeasureInfo:c,isFullyExpanded:d,isIndentModeEnabled:p}=e,f=(e=0)=>c.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=a(n)+IE,l=Math.max(i,e);return Math.max(r,p?l:jE(t,o,l))}),0),h=e=>r.data.reduce(((t,r)=>{const n=r[e];if(!n)return t;if(n.id===TE)return t;const i=(e=>{const{label:t,isLocked:r}=e,n=r?AE:0;return IE+o(t)+LE+n})(n);return Math.max(i,t)}),0);let m=0,g=r.data.at(-1);p&&r.size.x>1&&g&&g[0]&&(g=g[0]);const v=g.map(((r,o)=>{let a=IE;if(!p&&n&&void 0!==l&&l===r.colIdx)a=n;else{let n;r.columnWidthLocation===qt.Pivot?n=u:r.columnWidthLocation===qt.Dimension&&({columnWidth:n}=r);let l=0;r.isLeftDimension?l=r.id===TE?f():Math.max(h(o),((t,r)=>{const{qApprMaxGlyphCount:n,isLeftDimension:o,dimensionInfoIndex:a}=t,l=e.getDimensionInfo(a);if(_E(l))return At.PixelsDefault;const u=!d&&o&&r<s-1?RE:0;return IE+i(n)+u})(r,o)):r.isLeftDimension||(l=h(o),r.columnWidthLocation===qt.Measures&&(l=f(l))),a=p?l:jE(t,n,l)}return m+=a,a}));return p&&r.size.x>1?BE({layoutService:e,headersData:r,columnWidths:v,tableWidth:t,widthOverride:n,measureTextForHeader:o,estimateWidthForDimensionValue:i}):{leftGridWidth:Math.min(t*ME,m),leftGridColumnWidths:v,leftGridFullWidth:m}}),[i,r,e,o,a,t]),[s,u]=E(l);Zo((()=>{u(l())}),[l]);const c=D(((e,t)=>{u(l(e,t))}),[l]);return{...s,overrideLeftGridWidth:c}}function VE({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:n,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=CE(),{estimateWidth:c,measureText:d}=Ko(u.measureValues),{estimateWidth:p}=Ko({...u.dimensionValues,fontWeight:qE(u.dimensionValues.fontWeight)}),f=t-o-tr,h=r.at(-1),m=h===kE,g=a.length-i>r.length?RE:0,v=S((()=>{const e=m?s:[h],t=l.x/e.length,r=[],n=[];let o=f;const i=(e,n)=>{r[e]=Math.min(At.PixelsMax,Math.max(At.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(r){case It.Pixels:i(t,FE(o));break;case It.Percentage:i(t,zE(a,f));break;case It.FitToContent:i(t,((e,t,r)=>r?At.PixelsDefault:IE+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,_E(e)));break;case It.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(At.AutoMinPivot,i)}))}return r}),[m,s,h,l.x,f,c,d,p,g]),b=S((()=>{if(m){return s.reduce(((e,t,r)=>e+v[r]),0)/s.length}return v[0]}),[m,v,s]),y=parseFloat((n/e.size.x).toFixed(12)),x=D((t=>m&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:b-y),[m,v,e,b,y]),E=l.x*b;return{rightGridFullWidth:E,rightGridWidth:Math.min(E,f),getRightGridColumnWidth:x}}let YE;const UE=new Uint8Array(16);function KE(){if(!YE&&(YE="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!YE))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return YE(UE)}const XE=[];for(let e=0;e<256;++e)XE.push((e+256).toString(16).slice(1));var JE={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ZE(e,t,r){if(JE.randomUUID&&!t&&!e)return JE.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 XE[e[t+0]]+XE[e[t+1]]+XE[e[t+2]]+XE[e[t+3]]+"-"+XE[e[t+4]]+XE[e[t+5]]+"-"+XE[e[t+6]]+XE[e[t+7]]+"-"+XE[e[t+8]]+XE[e[t+9]]+"-"+XE[e[t+10]]+XE[e[t+11]]+XE[e[t+12]]+XE[e[t+13]]+XE[e[t+14]]+XE[e[t+15]]}(n)}const QE=()=>{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:ZE()},eC=e=>e===kE?TE:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:QE()})(e),tC=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{var o,i;r&&(r.canBeResized=!0,r.isActivelySorted=n===(null!==(o=null===(i=e.layout.qHyperCube.activelySortedColumn)||void 0===i?void 0:i.colIdx)&&void 0!==o?o:0),r.colIdx=r.colIdx||n,r.dimensionInfoIndex===kE?r.columnWidthLocation=qt.Measures:r.isLeftDimension?r.columnWidthLocation=qt.Dimension:t.at(-1)===kE?r.columnWidthLocation=qt.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=qt.Pivot))},rC=(e,t,r)=>{var n;const o=eC(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===kE?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isActivelySorted:!1,isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:qt.Measures}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isActivelySorted:!1,isLocked:null!==(n=t.qLocked)&&void 0!==n&&n,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:qt.Dimension}},nC=({layoutService:e,lastRow:t,lastCol:r})=>{let n=r;var o;t.length>0&&(n=(o=r).at(-1)===kE?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]=rC(e,t,o)})),n.forEach(((t,r,n)=>{const o=r===n.length-1;l[r][a-1]=rC(e,t,o)})),l},oC=(e,t,r)=>{var n,o;const i=((e,t,r)=>{let n;var o;return n=0===t.length||t.includes(kE)?nC({layoutService:e,lastRow:r,lastCol:t}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(nC({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++)tC({layoutService:e,visibleLeftDimensionInfos:r,cell:n[t],colIdx:t})}else tC({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 iC(e){return iC="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},iC(e)}function aC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lC(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 sC(e,t,r){return t&&lC(e.prototype,t),r&&lC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uC(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&&dC(e,t)}function cC(e){return cC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cC(e)}function dC(e,t){return dC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dC(e,t)}function pC(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 fC(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=cC(e);if(t){var o=cC(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return pC(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 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 gC={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 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 gC.fromSearchString(t.search)}}})}function yC(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+=yC((t=e[n]).key),t.value?r+="=".concat(yC(t.value)):r+=t.useEqualSign?"=":"";return r};var xC,SC=function(){function e(t){aC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return sC(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}(),EC=function(){function e(){aC(this,e)}return sC(e,[{key:"decode",value:function(e){for(var t,r="",n=new SC(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),CC=function(e){return e>=0&&e<=1114111},wC=function(e){return e.match(/[\s]/)},RC=function(e){uC(r,EC);var t=fC(r);function r(){return aC(this,r),t.apply(this,arguments)}return sC(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())&&!wC(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return CC(a)?String.fromCharCode(a):"�"}}]),r}(),LC=function(){function e(t,r){aC(this,e),this._key=t,this._value=r}return sC(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(){aC(this,e)}return sC(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 LC.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return LC.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||LC.newInstanceIfNeeded(e,t,this._value)}}]),e}(),IC=function(){function e(){aC(this,e),this.clear()}return sC(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}(),MC=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}(),DC=function(e){uC(r,EC);var t=fC(r);function r(){return aC(this,r),t.apply(this,arguments)}return sC(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,MC.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=MC.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)&&CC(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)&&CC(n)?String.fromCharCode(n):null}}]),r}(),PC=function(e){uC(r,EC);var t=fC(r);function r(){return aC(this,r),t.apply(this,arguments)}return sC(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),CC(o))?String.fromCharCode(o):(e.reset(),null)}}]),r}(),_C=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(xC=document.createElement("div"));var OC=Array.prototype.indexOf,kC=[",",".","_"," "],TC={default:[",",".","-","_"," "]},qC={width:["%"],height:["%"]},NC={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},FC={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":NC.image,"background-color":NC.color,"border-color":NC.color,"border-image":NC.image,color:NC.color,icon:NC.image,"list-style-image":NC.image,"outline-color":NC.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 jC(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 xC.appendChild(r),t=xC.innerHTML,xC.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,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=qC[e])||(n=TC.default),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 HC(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=BC(e).toLowerCase(),t=BC(t),jC(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=FC[e])||(o=NC.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 DC,new PC,new RC];!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=[],VC=0;VC<255;VC++)WC[VC]=VC>=48&&VC<=57||VC>=65&&VC<=90||VC>=97&&VC<=122?null:VC.toString(16);var YC=function(e){return $C(e.unsafe)},UC=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]=HC(t,r[t],!0),i+=HC(t,r[t],!0),o[t]=n[t]);return e.map?o:i},KC=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 XC(e,t){throw new Error(t)}var JC={canonicalize:BC,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===iC(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?YC(e):"css"===e.context?(null!=e.map&&"object"!==iC(e.map)&&XC(this,"Invalid parameter type"),UC(e)):"attr"===e.context?(null!=e.map&&"object"!==iC(e.map)&&XC(this,"Invalid parameter type"),KC(e)):void XC(this,"Invalid parameter type")},encodeForAttr:GC,encodeForAttr2:function(e){return GC("nonsens",e,!0)},encodeForCSS:HC,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=kC),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:$C,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=BC(t).toLowerCase():XC(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=_C.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 ZC=(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]},QC=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"}}},ew=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&JC.isSafeDataURL(t)?{type:DE.Image,url:t,text:e,imageSize:r,resolvedImagePosition:QC(n)}:{type:DE.Text,url:void 0,text:e},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)===PE.Attribute||null==r?void 0:r.urlLabel},rw=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:DE.Link,url:JC.encodeForHref(t),text:e}}catch(t){return{type:DE.Text,url:void 0,text:e}}},nw=(e,t,r,n)=>{var o,i;const a=(e=>{switch(null==e?void 0:e.type){case"url":return DE.Link;case"image":return DE.Image;default:return DE.Text}})(t);return a!==DE.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=n.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===DE.Link&&n.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,r)=>{const{urlPosition:n}=null!=t?t:{};if(n===PE.Attribute){var o;const n=tw(null!==(o=r.url)&&void 0!==o?o:-1,e,t),i=e.qText||n||"";return rw({text:i,url:n})}if(n===PE.Dimension){var i;const n=tw(null!==(i=r.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return rw({text:n,url:e.qText})}return{type:DE.Text,url:void 0,text:e.qText}})(e,t,r):{type:DE.Text,url:void 0,text:e.qText}:((e,t,r)=>{const{imageSize:n,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=ZC(null!==(s=r.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return ew({text:t,url:i,imageSize:n,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===r.imageLabel)return ew({text:a||t||"",url:t,imageSize:n,imagePosition:o});const i=null!==(u=null===(c=ZC(null!==(d=r.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return ew({text:i,url:t,imageSize:n,imagePosition:o})}return{type:DE.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?Bx(s):null,c=l?Bx(l):null,d=((e,t)=>e||!t?null:Dn(t)?$x.WHITE:$x.TEXT)(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)=>{if(o)return iw(0,e);const a=i?Zt-r:Qt-n;let l=e.qUp+e.qDown;if(i&&0===r){const r=(t+e.qUp)%Zt;l=e.qDown+r}return Math.min(a,iw(l,e))},lw=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p})=>{const f=!c&&e.qType===jt.NX_DIM_CELL_PSEUDO;let h="";if(u&&e.indentLabel){const{label:t,delimeter:r,suffix:n}=e.indentLabel;h=`${t} ${!n||!t&&n?"":r} ${n}`.trim()}else h=e.qText;const m={id:QE(),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,a.isSnapshot,u),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===jt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===jt.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===jt.NX_DIM_CELL_NULL,isPseudoDimension:f,expressionColor:ow(s,e),selectionCellType:u?Tt.NX_CELL_LEFT:Tt.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:f?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:nw({...e,qText:h},l===kE?void 0:l.representation,s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[m.mainAxisPageCoord-t.mainAxisPageCoord]=m),m},sw=(e,t,r,n,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,h=-1){e[f]||(e[f]={}),s&&h++;const m=o.leftDimensionInfoIndexes.indexOf(kE);p.forEach(((p,g)=>{var v;u+=0===g?0:1;const b=r.qTop-n.page*n.rowsPerPage,y=Math.max(0,b+u-p.qUp),x=r.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&h<=m){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===jt.NX_DIM_CELL_NORMAL||p.qType===jt.NX_DIM_CELL_NULL||p.qType===jt.NX_DIM_CELL_TOTAL)h<m&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===jt.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},h=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let L=f;s&&(L=m>=1&&h>=m?h+1:h,0===h&&0===m&&0===p.qSubNodes.length&&(L=0));const A=s&&void 0===(null===(v=e[f][y])||void 0===v?void 0:v.ref.qText)||!e[f][y]?lw({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:h},env:l}):e[f][y];if(e[f][y]=A,p.qSubNodes.length){const e=s?0:f+1;t(c||A,A,p.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},uw=(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)}))}))},cw=(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},dw=({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=sw(e.grid,l,s,r,n,o,i,a);uw(u,r.rowsOnCurrentPage);const c=cw(u,n);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},pw=({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===jt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:QE(),ref:t,isNull:u}}))})),o},fw=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n.length?pw({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},hw=(e,t,r,n,o,i,a,l)=>{if(!t.length)return e;let s=0;!function t(a,u,c,d=0){e[d]||(e[d]={}),c.forEach(((c,p)=>{var f;s+=0===p?0:1;const h=r.qLeft+s-c.qUp,m=null!==(f=e[d][h])&&void 0!==f?f:lw({node:c,parent:u,root:a,x:h,y:d,pageY:d,layoutService:n,dimensionInfo:o[d],attrExprInfoIndex:i[d],isLeftColumn:!1,env:l});e[d][h]=m,c.qSubNodes.length&&t(a||m,m,c.qSubNodes,d+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},mw=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a})=>{const{qTop:l,qArea:s}=t;if(!l.length)return e;const u=hw(e.grid,l,s,r,n,o,i,a);uw(u,r.size.x);const c=cw(u);return{...e,grid:u,rowCount:u.length,totalDividerIndex:c}},gw=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),vw=(e,t,r,n,o)=>{const{env:i}=yE(),[a,l]=E(null),s=((e,t,r)=>S((()=>({left:e.map(gw),top:t.map(gw),measures:r.map(gw)})),[r,e,t]))(n,o,t.visibleMeasureInfo),u=S((()=>oC(t,o,n)),[t,o,n]),c=D((()=>e.slice(1).reduce(((e,t)=>fw({prevData:e,dataPage:t,pageInfo:r})),((e,t)=>{const{qData:r,qArea:n}=e;return pw({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(e[0],r))),[e,r]),d=D((()=>e.slice(1).reduce(((e,r)=>mw({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i})),((e,t,r,n,o,i)=>{const{qArea:a,qTop:l}=e,s=hw([],l,a,t,r,n,o,i);uw(s,t.size.x);const u=cw(s);return{grid:s,rowCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(e[0],t,o,s.top,u.size.y,i))),[e,t,o,s.top,u.size.y,i]),p=D((()=>e.slice(1).reduce(((e,o)=>dw({prevData:e,nextDataPage:o,pageInfo:r,layoutService:t,visibleLeftDimensionInfo:n,attrExprInfoIndexes:s.left,env:i})),((e,t,r,n,o,i)=>{const{qArea:a,qLeft:l}=e,s=sw([],l,a,r,t,n,o,i);uw(s,r.rowsOnCurrentPage);const u=cw(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(e[0],t,r,n,s.left,i))),[e,t,r,n,s,i]),[f,h]=E((()=>c())),[m,g]=E((()=>d())),[v,b]=E((()=>p()));Zo((()=>{h(c())}),[c]),Zo((()=>{g(d())}),[d]),Zo((()=>{b(p())}),[p]),Zo((()=>{a&&a.forEach((e=>{h((t=>fw({prevData:t,dataPage:e,pageInfo:r}))),g((r=>mw({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i}))),b((o=>dw({prevData:o,nextDataPage:e,pageInfo:r,layoutService:t,visibleLeftDimensionInfo:n,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=D((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:m,leftDimensionData:v,attrExprInfoIndexes:s,nextPageHandler:y}},bw=Math.sqrt(1e4),yw=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/bw),n=Math.ceil(e.qHeight/bw);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*bw,qTop:e.qTop+r*bw,qWidth:Math.min(bw,e.qWidth-o*bw),qHeight:Math.min(bw,e.qHeight-r*bw)});return t};function xw({model:e,nextPageHandler:t,pageInfo:r,layoutService:n}){const o=(e=>{const t=I(e);return t.current=e,t})(r.page),i=e,a=D((async(e,t)=>{var r;await(null==i||null===(r=i.collapseLeft)||void 0===r?void 0:r.call(i,OE,e,t,!1))}),[i]),l=D((async(e,t)=>{await(null==i?void 0:i.collapseTop(OE,e,t,!1))}),[i]),s=D((async(e,t)=>{await(null==i?void 0:i.expandLeft(OE,e,t,!1))}),[i]),u=D((async(e,t)=>{await(null==i?void 0:i.expandTop(OE,e,t,!1))}),[i]),c=D((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const n=await i.getHyperCubePivotData(OE,e.reduce(((e,t)=>[...e,...yw(t)]),[]));o.current===r.page&&t(n)}catch(e){console.error(e)}}),[i,t,r,o]),d=D(((t,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case qt.Dimension:c=[{qPath:`${OE}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case qt.Measures:if(o)c=l.map(((e,t)=>({qPath:`${OE}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${OE}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case qt.Pivot:c=[{qPath:`${OE}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:r,oldValue:n}=e;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...t})}}));null==e||e.applyPatches(d,!0)}),[e,n]),p=D((async e=>{const{indentModeColumnWidth:t}=n.layout.qHyperCube;await(null==i?void 0:i.applyPatches([{qPath:`${OE}/indentModeColumnWidth`,qOp:"Replace",qValue:JSON.stringify({...t,...e})}],!0))}),[i,n.layout.qHyperCube]);return S((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const Sw=(e,t)=>e>t?zt.Forward:e<t?zt.Backward:zt.None,Ew=(e,t,r)=>(n,o)=>{if(n===jt.NX_DIM_CELL_PSEUDO)return kE;const i=t[r+o];return e[i]},Cw=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},ww=({width:e,height:t,children:r,isLeftGrid:n})=>fi.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:n?"fit-content":e,height:t+tr},children:r}),Rw=e=>`scrollable-container--${e}`,Lw=(e,t)=>{const{width:r,height:n,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=yE();return fi.jsx("div",{ref:t,"data-key":Rw(u),style:{width:r,height:n,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var Aw=x.forwardRef(Lw);const Iw=({width:e,height:t,children:r,style:n,isLeftGrid:o})=>fi.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...n},children:r});function Mw(){return Mw=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},Mw.apply(this,arguments)}function Dw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pw(e,t){return Pw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pw(e,t)}function _w(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pw(e,t)}var Ow=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function kw(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||Ow(n)&&Ow(o)))return!1;var n,o;return!0}function Tw(e,t){var r;void 0===t&&(t=kw);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}}function qw(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var Nw="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Fw(e){cancelAnimationFrame(e.id)}function zw(e,t){var r=Nw();var n={id:requestAnimationFrame((function o(){Nw()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var jw=-1;function $w(e){if(void 0===e&&(e=!1),-1===jw||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),jw=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return jw}var Gw=null;function Hw(e){if(void 0===e&&(e=!1),null===Gw||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?Gw="positive-descending":(t.scrollLeft=1,Gw=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Gw}return Gw}var Bw=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Ww(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,Dw(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Dw(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=Tw((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=Tw((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&l,m&&s,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=Tw((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(Hw()){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&&Fw(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=zw(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}_w(t,e),t.getDerivedStateFromProps=function(e,t){return Vw(e,t),g(e),null};var v=t.prototype;return v.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)},v.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=$w();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},v.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()},v.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(Hw()){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()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Fw(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?Bw:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],R=this._getVerticalRangeToRender(),L=R[0],A=R[1],I=[];if(n>0&&g)for(var M=L;M<=A;M++)for(var D=E;D<=C;D++)I.push(w(t,{columnIndex:D,data:d,isScrolling:b?x:void 0,key:f({columnIndex:D,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,D)}));var P=a(this.props,this._instanceProps),_=l(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:Mw({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},w(u||c||"div",{children:I,ref:s,style:{height:P,pointerEvents:x?"none":void 0,width:_}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(T),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Vw=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Yw=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},Uw=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},Kw=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]},Xw=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?Jw(e,t,r,i,0,n):Zw(e,t,r,Math.max(0,i),n)},Jw=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=Kw(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},Zw=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&Kw(e,t,n,r).offset<o;)n+=a,a*=2;return Jw(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},Qw=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=Kw(e,t,r,i),u="column"===e?Uw(t,i):Yw(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}},eR=Ww({getColumnOffset:function(e,t,r){return Kw("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return Xw("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=Kw("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=Kw("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:Yw,getEstimatedTotalWidth:Uw,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return Qw("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return Qw("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return Kw("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return Xw("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=Kw("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=Kw("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}}),tR=function(e,t){return e};function rR(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,Dw(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Dw(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Tw((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=Tw((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Tw((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(Hw()){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&&Fw(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=zw(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}_w(t,e),t.getDerivedStateFromProps=function(e,t){return nR(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?$w():0:s.scrollHeight>s.clientHeight?$w():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(Hw()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Fw(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?tR:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],R=E[1],L=[];if(u>0)for(var A=C;A<=R;A++)L.push(w(t,{data:c,key:p(A,c),index:A,isScrolling:v?y:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:Mw({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(l||s||"div",{children:L,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(T),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var nR=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},oR=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]},iR=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=oR(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},aR=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&oR(e,r,t).offset<n;)r+=i,i*=2;return iR(e,t,Math.min(r,o-1),Math.floor(r/2),n)},lR=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},sR=rR({getItemOffset:function(e,t,r){return oR(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:lR,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=oR(e,t,o),p=lR(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?iR(e,t,o,0,r):aR(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=oR(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=oR(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 uR(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 cR=["style"],dR=["style"];function pR(e,t){var r=e.style,n=qw(e,cR),o=t.style,i=qw(t,dR);return!uR(r,o)&&!uR(n,i)}const fR=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),hR=10,mR=(e,t)=>e.current===zt.Backward?t:0,gR=(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},vR=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,bR=({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(gR(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&vR(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},yR=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===zt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return bR({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},xR=({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=mR(r,hR),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+hR,l-u),pageTop:o,qHeight:a}})(n,o,r),u=bR({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...yR({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},SR=(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},ER=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,CR=({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(SR(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&ER(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},wR=({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=mR(r,hR),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+hR,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=CR({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===zt.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=CR({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},RR=async(e,t,r,n,o,i,a)=>{const{gridColumnStartIndex:l,gridRowStartIndex:s,gridWidth:u,gridHeight:c}=o;let d=[],p=[];i.current!==zt.None&&(d=wR({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==zt.None&&(p=xR({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===zt.None&&a.current===zt.None&&(d=CR({measureData:r,pageInfo:n,qLeft:l,qWidth:u,startTop:s,endTop:s+c})),await e.fetchPages([...d,...p])},LR=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))}}(RR,100),AR=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)}}(RR,75),IR=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=CE();return fi.jsx("div",{style:{...e,...ar,...cr(r,n,l,o),...pr({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},MR=({children:e,verticalAlign:t,width:r,right:n})=>fi.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}),DR=e=>{const{type:t,imageSize:r}=e;return t!==DE.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"};function PR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _R=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){PR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"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"}))));function OR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kR=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){OR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"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"})))),TR=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Rt)};function qR(e,t){const r=e.isActive(),[n,o]=E(new Map),[i,a]=E(null);P((()=>{const r=()=>{a(null),o(new Map)},n=()=>{r(),t({page:0})};return e.on("deactivated",r),e.on("canceled",r),e.on("confirmed",n),e.on("cleared",r),()=>{e.removeListener("deactivated",r),e.removeListener("canceled",r),e.removeListener("confirmed",n),e.removeListener("cleared",r)}}),[e,t]);const l=D((e=>0!==n.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===Tt.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[n,i]),s=D((t=>async r=>{if(TR(r))return;if(e.isActive()||await e.begin([OE]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,r)=>{const n=new Map(t);return n.has(e.ref.qElemNo)?(n.delete(e.ref.qElemNo),{nextSelectedPivotCells:n,nextSelectedField:0===n.size?null:r}):(n.set(e.ref.qElemNo,e),{nextSelectedPivotCells:n,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===Tt.NX_CELL_LEFT?e.x:e.y}})})(t,n,i);try{await e.select({method:"selectPivotCells",params:[OE,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,n,i]),u=D((e=>r&&!l(e)&&n.has(e.ref.qElemNo)),[n,l,r]);return S((()=>({select:s,isSelected:u,isActive:r,isLocked:l})),[s,u,r,l])}const NR=_({select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),FR=()=>C(NR),zR=({children:e,selections:t,updatePageInfo:r})=>{const n=qR(t,r);return fi.jsx(NR.Provider,{value:n,children:e})};var jR;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(jR||(jR={}));const $R={brighter:.5,darker:.3,opacity:.03},GR=(e,{cell:t,styleService:r})=>{if(e===jR.Background||e===jR.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]},HR=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return"#0aaf54";const o=GR(jR.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?GR(jR.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Gx(i=o,$R)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},BR=({cell:e,styleService:t,isCellSelected:r})=>r?"white":GR(jR.Color,{cell:e,styleService:t}),WR=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=GR(jR.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?Jt:o},VR=({cell:e,styleService:t})=>GR(jR.FontStyle,{cell:e,styleService:t}),YR=({cell:e,styleService:t})=>GR(jR.TextDecoration,{cell:e,styleService:t}),UR=e=>e?"pointer":"default",KR=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},XR=({cell:e,dataModel:t,isLeftColumn:r,isCellSelected:n})=>{const o=CE(),{interactions:i}=yE(),{isActive:a}=FR();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=BR({cell:e,styleService:o,isCellSelected:n}),u=a?.4:1,c=o.contentRowHeight/2,d=e.ref.qCanExpand?kR:_R;let p;return p=e.ref.qCanExpand?r?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:r?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,fi.jsx(d,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",padding:4,marginTop:r?c-6.5-4:void 0},onClick:l?void 0:KR({cell:e,expandOrCollapse:p})})},JR=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},ZR=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},QR=({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}}},eL=(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"}},tL=e=>{if("alwaysFit"===e)return"contain"},rL=({representation:e,styleService:t,textStyle:r,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})=>{const{url:a,text:l,imageSize:s,resolvedImagePosition:u}=e,{overflow:c,...d}=r;return fi.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==u?void 0:u.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...QR({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})},children:fi.jsx("img",{src:a,alt:l,style:{width:ZR(s),height:JR(s),objectFit:tL(s),objectPosition:eL(s,u),...d}})})},nL=(e,t,r)=>{if(!r.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN")||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}},oL={display:"flex",flexDirection:"row",alignItems:"center"},iL={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},aL=(e,t,r,n)=>t?{...iL,...e.nullValues}:r?{...oL,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...oL,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},lL=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...lr,...!r&&sr(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?Jt:s,fontStyle:u,textDecoration:c}},sL=(e,t,r,n,o)=>{const{textAlign:i}=t,a=n?"flex-end":"center";var l,s;return e.isNull||r.type!==DE.Image?nL(i,a,o):null!==(l=null===(s=r.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},uL=({cell:e,layoutService:t,styleService:r,representation:n,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():n.text,s=lL(r,o,i,a,e.isNull);return n.type!==DE.Image||e.isNull?fi.jsx("span",{style:{padding:4,...s},children:l}):fi.jsx(rL,{representation:n,styleService:r,textStyle:s,isLeftColumn:!0})},cL=(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},dL="flex-start",pL=(e,t)=>{return e.isNull?dL:t.type===DE.Image&&"fill"!==t.imageSize?null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.vertical:dL;var r},fL=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const i=CE(),{env:a}=yE(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:v}=n,b=null===(o=s[t])||void 0===o?void 0:o[e],y=t===h.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!b)return fi.jsx(IR,{style:{...r,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?cL(g,t):cL(m,e),E=u.visibleMeasureInfo[S],C=nw(b.ref,E.representation,v[S],a),w=!b.isNull&&f(e,t),R=b.isNull?u.getNullValueText():C.text,L=!b.isNull||!Number.isNaN(+R),A=ow(v[S],b.ref),I={...aL(i,b.isNull,w,A.background),...cr(y,x,i.grid.border,c),...pr({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...ar,padding:"0px 4px",display:"flex",justifyContent:sL(b,E,C,L,a.flags)};return fi.jsx("div",{className:Ct,title:R,style:{...I,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:fi.jsx(MR,{width:DR(C),verticalAlign:pL(b,C),children:fi.jsx(uL,{cell:b,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:A.color})})})};var hL=x.memo(fL,pR);const mL=(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()},gL=({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}`},vL={...ir,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},bL=({dataModel:e,dataGridRef:t,height:r,rowHightCallback:n,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:h,pageInfo:m,verticalScrollDirection:g,horizontalScrollDirection:v})=>{const{grid:{divider:b},contentCellHeight:y}=CE(),x={...vL,borderColor:b,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,r=!1)=>D((n=>{var o;const i=r?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[n];return fR(a,e.totalDividerIndex,r)}),[e,r,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>D((r=>{var n;const o=null===(n=e.grid.at(t-1))||void 0===n?void 0:n[r];return fR(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,r,n)=>D(((o,i)=>{var a,l;return!!(null!==(a=t.grid.at(n-1))&&void 0!==a&&null!==(a=a[o])&&void 0!==a&&a.isTotal||null!==(l=e.grid.at(r-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal)}),[t,e,r,n]))(s,u,d.length,c.length),w=(({viewService:e,dataModel:t,measureData:r,layoutService:n,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>D((async({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p})=>{e.gridColumnStartIndex=u,e.gridRowStartIndex=d,e.gridWidth=c-u+1,e.gridHeight=p-d+1;const f=e.gridWidth+i+(s.current===zt.None?0:hR),h=e.gridHeight+a+(l.current===zt.None?0:hR);let m=LR;h*f>1500&&(m=AR),await m(t,n,r,o,e,l,s)}),[e,n,t,r,l,s,o,i,a]))({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:v});return Zo((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),k((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,r,t,y]),0===a.size.x?null:fi.jsx(eR,{ref:t,style:x,columnCount:a.size.x,columnWidth:h,height:r,rowCount:m.rowsOnCurrentPage,rowHeight:n,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:m,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:n(),estimatedColumnWidth:h(),itemKey:gL,children:hL})};var yL=O(bL);function xL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const SL=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){xL(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),x.createElement("use",{fillRule:"evenodd"})))),EL=e=>{const[t,r]=E(!1);return Zo((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},CL=({interactions:e,dataModel:t})=>{const[r,n]=E(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=EL([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e.active&&!TR(t)&&!o&&n(!0),setIsAdjustingWidth:i}};function wL(e,t){var r,n,o,i;const a=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===rr.Transparent?$x.WHITE:l,u=null===(o=Ur(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=Ur(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}const RL=({cellInfo:e,columnWidth:t,dataModel:r,isLastColumn:n,overrideLeftGridWidth:o,setIsAdjustingWidth:i})=>{const{interactions:a}=yE(),{isActive:l}=FR(),s=CE(),[,u]=E({});if(!(e.canBeResized&&!!a.active&&!l))return null;const c=wL(s,e);return fi.jsx(Ux,{isPivot:!0,columnWidth:t,isLastColumn:n,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:c,updateWidthCallback:t=>{u({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>null==r?void 0:r.applyColumnWidth(t,e),setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})},LL=e=>e.scrollTop;function AL(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 IL(e){return Nu("MuiPaper",e)}Fu("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 ML=["className","component","elevation","square","variant"],DL=Rp("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 vi({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&&vi({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${td("#fff",Ip(t.elevation))}, ${td("#fff",Ip(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var PL=y.forwardRef((function(e,t){const r=Ud({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=bi(r,ML),u=vi({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Nc({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},IL,o)})(u);return fi.jsx(DL,vi({as:o,ownerState:u,className:ku(c.root,n),ref:t},s))}));function _L(e){return"string"==typeof e}function OL(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 kL(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 TL=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function qL(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=bi(e,TL),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=ku(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=vi({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=vi({},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=OL(vi({},o,n)),l=kL(n),s=kL(o),u=t(a),c=ku(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=vi({},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=vi({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(vi({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||_L(e)?t:vi({},t,{ownerState:vi({},t.ownerState,r)})}(r,vi({},s,{ref:Ec(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var NL=Fu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const FL=["center","classes","className"];let zL,jL,$L,GL,HL=e=>e;const BL=ns(zL||(zL=HL`
99
+ `),cd.rippleVisible,bd,550,(({theme:e})=>e.transitions.easing.easeInOut),cd.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),cd.child,cd.childLeaving,vd,550,(({theme:e})=>e.transitions.easing.easeInOut),cd.childPulsate,yd,(({theme:e})=>e.transitions.easing.easeInOut));var Ed=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=wr(n,dd),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=y.useRef(0),f=y.useRef(null),h=y.useRef(null);y.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Ns.jsx(Sd,{classes:{ripple:hc(o.ripple,cd.ripple),rippleVisible:hc(o.rippleVisible,cd.rippleVisible),ripplePulsate:hc(o.ripplePulsate,cd.ripplePulsate),child:hc(o.child,cd.child),childLeaving:hc(o.childLeaving,cd.childLeaving),childPulsate:hc(o.childPulsate,cd.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ns.jsx(xd,Cr({className:hc(cd.root,o.root,i),ref:h},a,{children:Ns.jsx(Zc,{component:null,exit:!0,children:l})}))}));function Cd(e){return Nu("MuiButtonBase",e)}var wd=Fu("MuiButtonBase",["root","disabled","focusVisible"]);const Rd=["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"],Ld=dc("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"},[`&.${wd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ad=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=wr(n,Rd),O=y.useRef(null),T=y.useRef(null),k=Eu(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=_u(),[j,$]=y.useState(!1);s&&j&&$(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,H]=y.useState(!1);y.useEffect((()=>{H(!0)}),[]);const B=G&&!u&&!s;function W(e,t,n=c){return Su((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}y.useEffect((()=>{j&&d&&!u&&G&&T.current.pulsate()}),[u,d,j,G]);const V=W("start",E),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Su((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=Su((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=Su((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Eu(t,z,O),ue=Cr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=ml({root:["root",t&&"disabled",n&&"focusVisible"]},Cd,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ns.jsxs(Ld,Cr({as:ae,className:hc(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:P},le,_,{children:[i,B?Ns.jsx(Ed,Cr({ref:k,center:o},M)):null]}))}));var Id=Ad;function Md(e){return Nu("MuiTypography",e)}Fu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Dd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Pd=dc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${fu(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Cr({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}))),_d={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Od={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Td=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiTypography"}),r=(e=>Od[e]||e)(n.color),o=$s(Cr({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=_d}=o,f=wr(o,Dd),h=Cr({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||_d[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return ml({root:["root",i,"inherit"!==e.align&&`align${fu(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Md,a)})(h);return Ns.jsx(Pd,Cr({as:m,ref:t,ownerState:h,className:hc(g.root,a)},f))}));var kd=Td;const qd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Nd(e){const t=[],n=[];return Array.from(e.querySelectorAll(qd)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Fd(){return!0}function zd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Nd,isEnabled:a=Fd,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=Qa(t.ref,h),g=y.useRef(null);y.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!h.current)return;const e=Ua(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!h.current)return;const e=Ua(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Ns.jsxs(y.Fragment,{children:[Ns.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Ns.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const jd=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=Qa(y.isValidElement(n)?n.ref:null,t);if(Ja((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Ja((()=>{if(i&&!o)return Xa(t,i),()=>{Xa(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return Ns.jsx(y.Fragment,{children:n})}return Ns.jsx(y.Fragment,{children:i?q.createPortal(n,i):i})}));function $d(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Gd(e){return parseInt(Ka(e).getComputedStyle(e).paddingRight,10)||0}function Hd(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&$d(e,o)}))}function Bd(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Wd(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ua(e);return t.body===e?Ka(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=fl(Ua(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Gd(r)+e}px`;const t=Ua(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Gd(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Ua(r).body;else{const t=r.parentElement,n=Ka(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const Vd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&$d(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Hd(t,e.mount,e.modalRef,r,!0);const o=Bd(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Bd(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Wd(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Bd(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&$d(e.modalRef,t),Hd(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&$d(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Yd(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Vd,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=Qa(h,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},C=Za((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ua(f.current).body;o.add(S(),e),h.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=Za((e=>{f.current=e,e&&(c&&w()?E():h.current&&$d(h.current,x))})),L=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{L()}),[L]),y.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=ad(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=On({},n,t);return On({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>On({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Va((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Va((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const Ud=["onChange","maxRows","minRows","style","value"];function Kd(e){return parseInt(e,10)||0}const Xd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Jd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Zd=y.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=jn(e,Ud),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=Qa(t,u),d=y.useRef(null),p=y.useRef(0),[f,h]=y.useState({outerHeightStyle:0}),m=y.useCallback((()=>{const t=u.current,n=Ka(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=Kd(n.paddingBottom)+Kd(n.paddingTop),s=Kd(n.borderBottomWidth)+Kd(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},b=y.useCallback((()=>{const e=m();Jd(e)||h((t=>g(t,e)))}),[m]);Ja((()=>{const e=()=>{p.current=0,(()=>{const e=m();Jd(e)||q.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=Ya(e),n=u.current,r=Ka(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[m]),Ja((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return Ns.jsxs(y.Fragment,{children:[Ns.jsx("textarea",On({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:On({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Ns.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:On({},Xd,i,{paddingTop:0,paddingBottom:0})})]})}));function Qd({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var ep=y.createContext(void 0);function tp(){return y.useContext(ep)}function np(e){return Ns.jsx(Fs,Cr({},e,{defaultTheme:ic,themeId:Er}))}function rp(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function op(e,t=!1){return e&&(rp(e.value)&&""!==e.value||t&&rp(e.defaultValue)&&""!==e.defaultValue)}function ip(e){return Nu("MuiInputBase",e)}var ap=Fu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const lp=["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"],sp=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${fu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},up=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},cp=dc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:sp})((({theme:e,ownerState:t})=>Cr({},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",[`&.${ap.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Cr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),dp=dc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:up})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Cr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Cr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ap.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},[`&.${ap.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"})})),pp=Ns.jsx(np,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),fp=y.forwardRef((function(e,t){var n;const r=lc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:A,onKeyDown:I,onKeyUp:M,placeholder:D,readOnly:P,renderSuffix:_,rows:O,slotProps:T={},slots:k={},startAdornment:q,type:N="text",value:F}=r,z=wr(r,lp),j=null!=b.value?b.value:F,{current:$}=y.useRef(null!=j),G=y.useRef(),H=y.useCallback((e=>{}),[]),B=Eu(G,v,b.ref,H),[W,V]=y.useState(!1),Y=tp(),U=Qd({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:W,y.useEffect((()=>{!Y&&d&&W&&(V(!1),w&&w())}),[Y,d,W,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=y.useCallback((e=>{op(e)?K&&K():X&&X()}),[K,X]);gu((()=>{$&&J({value:j})}),[j,J,$]);y.useEffect((()=>{J(G.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=Cr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=Zd);y.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=Cr({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:Y,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:E,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return ml({root:["root",`color${fu(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${fu(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},ip,t)})(ee),ne=k.root||s.Root||cp,re=T.root||u.root||{},oe=k.input||s.Input||dp;return Q=Cr({},Q,null!=(n=T.input)?n:u.input),Ns.jsxs(y.Fragment,{children:[!p&&pp,Ns.jsxs(ne,Cr({},re,!id(ne)&&{ownerState:Cr({},ee,re.ownerState)},{ref:t,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),L&&L(e)}},z,{className:hc(te.root,re.className,l,P&&"MuiInputBase-readOnly"),children:[q,Ns.jsx(ep.Provider,{value:null,children:Ns.jsx(oe,Cr({ownerState:ee,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?G.current:{value:"x"})},name:C,placeholder:D,readOnly:P,required:U.required,rows:O,value:j,onKeyDown:I,onKeyUp:M,type:N},Q,!id(oe)&&{as:Z,ownerState:Cr({},ee,Q.ownerState)},{ref:B,className:hc(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||G.current;if(null==t)throw new Error(Sr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),f,_?_(Cr({},U,{startAdornment:q})):null]}))]})}));var hp=fp;function mp(e){return Nu("MuiInput",e)}var gp=Cr({},ap,Fu("MuiInput",["root","underline","input"]));function bp(e){return Nu("MuiOutlinedInput",e)}var vp=Cr({},ap,Fu("MuiOutlinedInput",["root","notchedOutline","input"]));function yp(e){return Nu("MuiFilledInput",e)}var xp=Cr({},ap,Fu("MuiFilledInput",["root","underline","input"])),Sp=function(e,t){function n(n,r){return Ns.jsx(yc,Cr({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=yc.muiName,y.memo(y.forwardRef(n))}(Ns.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Ep=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Cp={entering:{opacity:1},entered:{opacity:1}},wp=y.forwardRef((function(e,t){const n=ac(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=Vc}=e,v=wr(e,Ep),x=y.useRef(null),S=Eu(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{Qc(e);const r=ed({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=ed({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return Ns.jsx(b,Cr({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Cr({style:Cr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Cp[e],m,a.props.style),ref:S},t))}))}));var Rp=wp;function Lp(e){return Nu("MuiBackdrop",e)}Fu("MuiBackdrop",["root","invisible"]);const Ap=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ip=dc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Cr({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=y.forwardRef((function(e,t){var n,r,o;const i=lc({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Rp,transitionDuration:g}=i,b=wr(i,Ap),v=Cr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return ml({root:["root",n&&"invisible"]},Lp,t)})(v),x=null!=(n=f.root)?n:c.root;return Ns.jsx(m,Cr({in:p,timeout:g},b,{children:Ns.jsx(Ip,Cr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:hc(y.root,l,null==x?void 0:x.className),ownerState:Cr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Dp=Mp;var Pp=Fu("MuiBox",["root"]);const _p=oc(),Op=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ma("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ss);return y.forwardRef((function(e,a){const l=As(n),s=$s(e),{className:u,component:c="div"}=s,d=jn(s,Bs);return Ns.jsx(i,On({as:c,ref:a,className:Hs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Er,defaultTheme:_p,defaultClassName:Pp.root,generateClassName:ku.generate});var Tp=Op;function kp(e){return Nu("MuiButton",e)}var qp=Fu("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 Np=y.createContext({});var Fp=y.createContext(void 0);const zp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],jp=e=>Cr({},"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}}),$p=dc(Id,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fu(n.color)}`],t[`size${fu(n.size)}`],t[`${n.variant}Size${fu(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Cr({},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":Cr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:iu(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})`:iu(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})`:iu(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":Cr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${qp.focusVisible}`]:Cr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${qp.disabled}`]:Cr({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 ${iu(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${qp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${qp.disabled}`]:{boxShadow:"none"}})),Gp=dc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${fu(n.size)}`]]}})((({ownerState:e})=>Cr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},jp(e)))),Hp=dc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${fu(n.size)}`]]}})((({ownerState:e})=>Cr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},jp(e)))),Bp=y.forwardRef((function(e,t){const n=y.useContext(Np),r=y.useContext(Fp),o=lc({props:Ou(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,x=wr(o,zp),S=Cr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Cr({},a,ml({root:["root",i,`${i}${fu(t)}`,`size${fu(o)}`,`${i}Size${fu(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${fu(o)}`],endIcon:["endIcon",`iconSize${fu(o)}`]},kp,a))})(S),C=g&&Ns.jsx(Gp,{className:E.startIcon,ownerState:S,children:g}),w=p&&Ns.jsx(Hp,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return Ns.jsxs($p,Cr({ownerState:S,className:hc(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:hc(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var Wp=Bp;function Vp(e){return Nu("MuiModal",e)}Fu("MuiModal",["root","hidden","backdrop"]);const Yp=["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"],Up=dc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Cr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Kp=dc(Dp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Xp=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=lc({name:"MuiModal",props:e}),{BackdropComponent:u=Kp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=s,P=wr(s,Yp),_=Cr({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=Yd(Cr({},_,{rootRef:t})),j=Cr({},_,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return ml({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Vp,r)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();G.onEnter=e,G.onExited=t}const H=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:Up,B=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,Y=ud({elementType:H,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:hc(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=ud({elementType:B,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(Cr({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:hc(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?Ns.jsx(jd,{ref:q,container:h,disablePortal:E,children:Ns.jsxs(H,Cr({},Y,{children:[!R&&u?Ns.jsx(B,Cr({},U)):null,Ns.jsx(zd,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,G)})]}))}):null}));var Jp=Xp;function Zp(e){return Nu("MuiDivider",e)}var Qp=Fu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const ef=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],tf=dc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Cr({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)`:iu(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})=>Cr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Cr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Cr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Cr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),nf=dc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Cr({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)`}))),rf=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=wr(n,ef),h=Cr({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return ml({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Zp,r)})(h);return Ns.jsx(tf,Cr({as:a,className:hc(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Ns.jsx(nf,{className:m.wrapper,ownerState:h,children:o}):null}))}));rf.muiSkipListHighlight=!0;var of=rf;const af=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],lf=dc(cp,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...sp(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Cr({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}},[`&.${xp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${xp.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xp.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(.${xp.disabled}, .${xp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xp.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Cr({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}))})),sf=dc(dp,{name:"MuiFilledInput",slot:"Input",overridesResolver:up})((({theme:e,ownerState:t})=>Cr({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}))),uf=y.forwardRef((function(e,t){var n,r,o,i;const a=lc({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=wr(a,af),g=Cr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:n}=e;return Cr({},t,ml({root:["root",!n&&"underline"],input:["input"]},yp,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?pu(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:lf,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:sf;return Ns.jsx(hp,Cr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));uf.muiName="Input";var cf=uf;const df=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function pf(e){return`scale(${e}, ${e**2})`}const ff={entering:{opacity:1,transform:pf(1)},entered:{opacity:1,transform:"none"}},hf="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),mf=y.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Vc}=e,g=wr(e,df),b=y.useRef(),v=y.useRef(),x=ac(),S=y.useRef(null),E=Eu(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{Qc(e);const{duration:n,delay:r,easing:o}=ed({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:hf?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=ed({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:hf?o:.666*o,delay:hf?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=pf(.75),c&&c(e)})),M=C(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Ns.jsx(m,Cr({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&(b.current=setTimeout(e,v.current||0)),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,Cr({style:Cr({opacity:0,transform:pf(.75),visibility:"exited"!==e||a?void 0:"hidden"},ff[e],f,o.props.style),ref:E},t))}))}));mf.muiSupportAuto=!0;var gf=mf;const bf=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],vf=dc(cp,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...sp(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Cr({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"},[`&.${gp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${gp.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${gp.disabled}, .${gp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${gp.disabled}:before`]:{borderBottomStyle:"dotted"}})})),yf=dc(dp,{name:"MuiInput",slot:"Input",overridesResolver:up})({}),xf=y.forwardRef((function(e,t){var n,r,o,i;const a=lc({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=wr(a,bf),b=(e=>{const{classes:t,disableUnderline:n}=e;return Cr({},t,ml({root:["root",!n&&"underline"],input:["input"]},mp,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?pu(null!=f?f:u,v):v,x=null!=(n=null!=(r=h.root)?r:s.Root)?n:vf,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:yf;return Ns.jsx(hp,Cr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));xf.muiName="Input";var Sf=xf;function Ef(e){return Nu("MuiLink",e)}var Cf=Fu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const wf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Rf=({theme:e,ownerState:t})=>{const n=(e=>wf[e]||e)(t.color),r=Dl(e,`palette.${n}`,!1)||t.color,o=Dl(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:iu(r,.4)};const Lf=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Af=dc(kd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${fu(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Cr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Cr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Rf({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"}}))),If=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=wr(n,Lf),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=_u(),[b,v]=y.useState(!1),x=Eu(t,g),S=Cr({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return ml({root:["root",`underline${fu(o)}`,"button"===n&&"button",r&&"focusVisible"]},Ef,t)})(S);return Ns.jsx(Af,Cr({color:o,className:hc(E.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),l&&l(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(wf).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var Mf=If;var Df=y.createContext({});function Pf(e){return Nu("MuiList",e)}Fu("MuiList",["root","padding","dense","subheader"]);const _f=["children","className","component","dense","disablePadding","subheader"],Of=dc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Cr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Tf=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=wr(n,_f),c=y.useMemo((()=>({dense:a})),[a]),d=Cr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ml({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Pf,t)})(d);return Ns.jsx(Df.Provider,{value:c,children:Ns.jsxs(Of,Cr({as:i,className:hc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function kf(e){return Nu("MuiListItemIcon",e)}var qf=Fu("MuiListItemIcon",["root","alignItemsFlexStart"]);const Nf=["className"],Ff=dc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Cr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var zf=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=wr(n,Nf),i=Cr({},n,{alignItems:y.useContext(Df).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return ml({root:["root","flex-start"===t&&"alignItemsFlexStart"]},kf,n)})(i);return Ns.jsx(Ff,Cr({className:hc(a.root,r),ownerState:i,ref:t},o))}));var jf=Fu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const $f=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Gf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Hf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Bf(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Wf(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Bf(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Vf=y.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=wr(e,$f),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});gu((()=>{r&&p.current.focus()}),[r]),y.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(hu(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Eu(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Ns.jsx(Tf,Cr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=hu(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Wf(t,r,s,l,Gf);else if("ArrowUp"===n)e.preventDefault(),Wf(t,r,s,l,Hf);else if("Home"===n)e.preventDefault(),Wf(t,null,s,l,Gf);else if("End"===n)e.preventDefault(),Wf(t,null,s,l,Hf);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Bf(r,o);o.previousKeyMatched&&(s||Wf(t,r,!1,l,Gf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Yf(e){return Nu("MuiPopover",e)}Fu("MuiPopover",["root","paper"]);const Uf=["onEntering"],Kf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Xf=["slotProps"];function Jf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Zf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Qf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function eh(e){return"function"==typeof e?e():e}const th=dc(Jp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nh=dc(od,{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 rh=y.forwardRef((function(e,t){var n,r,o;const i=lc({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=gf,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=wr(i.TransitionProps,Uf),A=wr(i,Kf),I=null!=(n=null==x?void 0:x.paper)?n:b,M=y.useRef(),D=Eu(M,I.ref),P=Cr({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return ml({root:["root"],paper:["paper"]},Yf,t)})(P),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=eh(l),t=(e&&1===e.nodeType?e:hu(M.current).body).getBoundingClientRect();return{top:t.top+Jf(t,s.vertical),left:t.left+Zf(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=y.useCallback((e=>({vertical:Jf(e,S.vertical),horizontal:Zf(e,S.horizontal)})),[S.horizontal,S.vertical]),k=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:Qf(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=mu(eh(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Qf(n)}}),[l,c,O,T,m]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=M.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{F()})),t=mu(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?hu(eh(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:th,G=null!=(o=null==v?void 0:v.paper)?o:nh,H=ud({elementType:G,externalSlotProps:Cr({},I,{style:q?I.style:Cr({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:hc(_.paper,null==I?void 0:I.className)}),B=ud({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:hc(_.root,p)}),{slotProps:W}=B,V=wr(B,Xf);return Ns.jsx($,Cr({},V,!id($)&&{slotProps:W,disableScrollLock:R},{children:Ns.jsx(E,Cr({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:Ns.jsx(G,Cr({},H,{children:d}))}))}))}));function oh(e){return Nu("MuiMenu",e)}Fu("MuiMenu",["root","paper","list"]);const ih=["onEntering"],ah=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],lh={vertical:"top",horizontal:"right"},sh={vertical:"top",horizontal:"left"},uh=dc(rh,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ch=dc(nh,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),dh=dc(Vf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var ph=y.forwardRef((function(e,t){var n,r;const o=lc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=wr(o.TransitionProps,ih),S=wr(o,ah),E=ac(),C="rtl"===E.direction,w=Cr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return ml({root:["root"],paper:["paper"],list:["list"]},oh,t)})(w),L=i&&!s&&d,A=y.useRef(null);let I=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const M=null!=(n=b.paper)?n:ch,D=null!=(r=v.paper)?r:p,P=ud({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),_=ud({elementType:M,externalSlotProps:D,ownerState:w,className:R.paper});return Ns.jsx(uh,Cr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?lh:sh,slots:{paper:M,root:b.root},slotProps:{root:P,paper:_},open:d,ref:t,transitionDuration:h,TransitionProps:Cr({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,E),m&&m(e,t)}},x),ownerState:w},S,{classes:f,children:Ns.jsx(dh,Cr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||s),autoFocusItem:L,variant:g},u,{className:hc(R.list,u.className),children:a}))}))}));function fh(e){return Nu("MuiMenuItem",e)}var hh=Fu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const mh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],gh=dc(Id,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Cr({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${hh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:iu(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${hh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:iu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${hh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:iu(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})`:iu(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${hh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${hh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Qp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Qp.inset}`]:{marginLeft:52},[`& .${jf.root}`]:{marginTop:0,marginBottom:0},[`& .${jf.inset}`]:{paddingLeft:36},[`& .${qf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Cr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${qf.root} svg`]:{fontSize:"1.25rem"}}))));var bh=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=wr(n,mh),f=y.useContext(Df),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=y.useRef(null);gu((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Cr({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Cr({},a,ml({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},fh,a))})(n),v=Eu(m,t);let x;return n.disabled||(x=void 0!==c?c:-1),Ns.jsx(Df.Provider,{value:h,children:Ns.jsx(gh,Cr({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:hc(b.focusVisible,s),className:hc(b.root,d)},p,{ownerState:g,classes:b}))})}));function vh(e){return Nu("MuiNativeSelect",e)}var yh=Fu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const xh=["className","disabled","error","IconComponent","inputRef","variant"],Sh=({ownerState:e,theme:t})=>Cr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Cr({},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"},[`&.${yh.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}}),Eh=dc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:sc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${yh.multiple}`]:t.multiple}]}})(Sh),Ch=({ownerState:e,theme:t})=>Cr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${yh.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),wh=dc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fu(n.variant)}`],n.open&&t.iconOpen]}})(Ch),Rh=y.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=wr(e,xh),u=Cr({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return ml({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${fu(n)}`,i&&"iconOpen",r&&"disabled"]},vh,t)})(u);return Ns.jsxs(y.Fragment,{children:[Ns.jsx(Eh,Cr({ownerState:u,className:hc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Ns.jsx(wh,{as:i,ownerState:u,className:c.icon})]})}));var Lh,Ah=Rh;const Ih=["children","classes","className","label","notched"],Mh=dc("fieldset",{shouldForwardProp:sc})({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%"}),Dh=dc("legend",{shouldForwardProp:sc})((({ownerState:e,theme:t})=>Cr({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&&Cr({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 Ph=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],_h=dc(cp,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:sp})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Cr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vp.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vp.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${vp.focused} .${vp.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${vp.error} .${vp.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${vp.disabled} .${vp.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Cr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Oh=dc((function(e){const{className:t,label:n,notched:r}=e,o=wr(e,Ih),i=null!=n&&""!==n,a=Cr({},e,{notched:r,withLabel:i});return Ns.jsx(Mh,Cr({"aria-hidden":!0,className:t,ownerState:a},o,{children:Ns.jsx(Dh,{ownerState:a,children:i?Ns.jsx("span",{children:n}):Lh||(Lh=Ns.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Th=dc(dp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:up})((({theme:e,ownerState:t})=>Cr({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}))),kh=y.forwardRef((function(e,t){var n,r,o,i,a;const l=lc({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=wr(l,Ph),b=(e=>{const{classes:t}=e;return Cr({},t,ml({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bp,t))})(l),v=tp(),x=Qd({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Cr({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:m}),E=null!=(n=null!=(r=h.root)?r:s.Root)?n:_h,C=null!=(o=null!=(i=h.input)?i:s.Input)?o:Th;return Ns.jsx(hp,Cr({slots:{root:E,input:C},renderSuffix:e=>Ns.jsx(Oh,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=Ns.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:Cr({},b,{notchedOutline:null})}))}));kh.muiName="Input";var qh=kh;function Nh(e){return Nu("MuiSelect",e)}var Fh,zh=Fu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const jh=["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"],$h=dc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${zh.select}`]:t.select},{[`&.${zh.select}`]:t[n.variant]},{[`&.${zh.error}`]:t.error},{[`&.${zh.multiple}`]:t.multiple}]}})(Sh,{[`&.${zh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Gh=dc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fu(n.variant)}`],n.open&&t.iconOpen]}})(Ch),Hh=dc("input",{shouldForwardProp:e=>uc(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 Bh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Wh(e){return null==e||"string"==typeof e&&!e.trim()}const Vh=y.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:A,renderValue:I,SelectDisplayProps:M={},tabIndex:D,value:P,variant:_="standard"}=e,O=wr(e,jh),[T,k]=xu({controlled:P,default:c,name:"Select"}),[q,N]=xu({controlled:L,default:u,name:"Select"}),F=y.useRef(null),z=y.useRef(null),[j,$]=y.useState(null),{current:G}=y.useRef(null!=L),[H,B]=y.useState(),W=Eu(t,m),V=y.useCallback((e=>{z.current=e,e&&$(e)}),[]),Y=null==j?void 0:j.parentNode;y.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:F.current,value:T})),[T]),y.useEffect((()=>{u&&q&&j&&!G&&(B(a?null:Y.clientWidth),z.current.focus())}),[j,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=hu(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?R&&R(t):C&&C(t),G||(B(a?null:Y.clientWidth),N(e))},K=y.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==n&&(k(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:x}}),E(o,e)}v||U(!1,t)}},J=null!==j&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(op({value:T})||p)&&(I?Z=I(T):te=!0);const ne=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(Sr(2));t=T.some((t=>Bh(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Bh(T,e.props.value),t&&te&&(Q=e.props.children);return y.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=H;!a&&G&&j&&(oe=Y.clientWidth),re=void 0!==D?D:d?null:0;const ie=M.id||(x?`mui-component-select-${x}`:void 0),ae=Cr({},e,{variant:_,value:T,open:J,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return ml({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${fu(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Nh,t)})(ae),se=Cr({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=yu();return Ns.jsxs(y.Fragment,{children:[Ns.jsx($h,Cr({ref:V,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),U(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:x}}),S(e))},onFocus:w},M,{ownerState:ae,className:hc(M.className,le.select,s),id:ie,children:Wh(Z)?Fh||(Fh=Ns.jsx("span",{className:"notranslate",children:"​"})):Z})),Ns.jsx(Hh,Cr({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(k(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),Ns.jsx(Gh,{as:h,className:le.icon,ownerState:ae}),Ns.jsx(ph,Cr({id:`menu-${x||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Cr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Cr({},b.slotProps,{paper:Cr({},se,{style:Cr({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var Yh=Vh;const Uh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Kh=["root"],Xh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>sc(e)&&"variant"!==e,slot:"Root"},Jh=dc(Sf,Xh)(""),Zh=dc(qh,Xh)(""),Qh=dc(cf,Xh)(""),em=y.forwardRef((function(e,t){const n=lc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Sp,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=wr(n,Uh),L=b?Ah:Yh,A=Qd({props:n,muiFormControl:tp(),states:["variant","error"]}),I=A.variant||w,M=Cr({},n,{variant:I,classes:i}),D=(e=>{const{classes:t}=e;return t})(M),P=wr(D,Kh),_=d||{standard:Ns.jsx(Jh,{ownerState:M}),outlined:Ns.jsx(Zh,{label:f,ownerState:M}),filled:Ns.jsx(Qh,{ownerState:M})}[I],O=Eu(t,_.ref);return Ns.jsx(y.Fragment,{children:y.cloneElement(_,Cr({inputComponent:L,inputProps:Cr({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:Cr({id:c},C)},p,{classes:p?pu(P,p.classes):P},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:O,className:hc(_.props.className,a,D.root)},!d&&{variant:I},R))})}));em.muiName="Select";var tm=em,nm=(e={})=>x.createElement(lr,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:Bn.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const rm={MuiAccordion:{styleOverrides:{root:{backgroundColor:Bn.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Bn.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(or,{"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 ${Bn.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Bn.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Bn.MISC_FOCUS_BORDER}`,borderRadius:Kn,backgroundColor:Bn.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 ${Bn.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Bn.WHITE,color:Bn.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:Kn},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Bn.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Bn.GREYSCALE_0_15,backgroundColor:Bn.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Bn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Bn.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Bn.GREEN_PALE},"&:active":{backgroundColor:Bn.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Bn.GREEN_PALE,boxShadow:`0 0 0 3px ${iu(Bn.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Bn.BLUE_PALE},"&:active":{backgroundColor:Bn.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Bn.BLUE_PALE,boxShadow:`0 0 0 3px ${iu(Bn.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:Kn,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Bn.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Bn.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Bn.GREYSCALE_0_15,backgroundColor:Bn.GREYSCALE_100_60,"&:active":{backgroundColor:Bn.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Bn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Bn.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Bn.PURPLE,"&.Mui-focusVisible":{borderColor:Bn.PURPLE,boxShadow:`0 0 0 3px ${iu(Bn.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Bn.GREEN,"&.Mui-focusVisible":{borderColor:Bn.GREEN,boxShadow:`0 0 0 3px ${iu(Bn.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Bn.BLUE,"&.Mui-focusVisible":{borderColor:Bn.BLUE,boxShadow:`0 0 0 3px ${iu(Bn.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Bn.ORANGE,"&.Mui-focusVisible":{borderColor:Bn.ORANGE,boxShadow:`0 0 0 3px ${iu(Bn.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Bn.RED,"&.Mui-focusVisible":{borderColor:Bn.RED,boxShadow:`0 0 0 3px ${iu(Bn.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Bn.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Bn.PURPLE_PALE},"&:active":{backgroundColor:Bn.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Bn.PURPLE_PALE,boxShadow:`0 0 0 3px ${iu(Bn.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Bn.GREEN_PALE},"&:active":{backgroundColor:Bn.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Bn.GREEN_PALE,boxShadow:`0 0 0 3px ${iu(Bn.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Bn.BLUE_PALE},"&:active":{backgroundColor:Bn.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Bn.BLUE_PALE,boxShadow:`0 0 0 3px ${iu(Bn.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Bn.ORANGE_PALE},"&:active":{backgroundColor:Bn.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Bn.ORANGE_PALE,boxShadow:`0 0 0 3px ${iu(Bn.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Bn.RED_PALE},"&:active":{backgroundColor:Bn.RED_DARK},"&.Mui-focusVisible":{borderColor:Bn.RED_PALE,boxShadow:`0 0 0 3px ${iu(Bn.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:Bn.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Bn.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Kn,boxShadow:`inset 0 0 0 2px ${Bn.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(ar,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Wn,borderRadius:Kn,color:Bn.TEXT_PRIMARY,backgroundColor:Bn.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Bn.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Bn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Bn.GREYSCALE_0_05,color:Bn.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Bn.GREEN,borderColor:Bn.GREEN},"&.MuiChip-outlinedInfo":{color:Bn.BLUE,borderColor:Bn.BLUE},"&.MuiChip-outlinedWarning":{color:Bn.ORANGE,borderColor:Bn.ORANGE},"&.MuiChip-outlinedError":{color:Bn.RED,borderColor:Bn.RED}},outlined:{border:`solid 1px ${Bn.GREYSCALE_0_15}`,backgroundColor:Bn.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Kn,boxShadow:"none",backgroundColor:Bn.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Bn.GREEN,borderColor:Bn.GREEN},outlinedSecondary:{color:Bn.BLUE,borderColor:Bn.BLUE},label:{fontFamily:er.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(ar,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(or,{"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:Kn},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Kn,fontSize:Vn,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Bn.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Bn.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Bn.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Bn.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Bn.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Kn,border:`solid 1px ${Bn.GREYSCALE_0_15}`,color:Bn.GREYSCALE_0_60,marginRight:0,width:Un,height:Un},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Bn.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Kn,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Bn.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Vn}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Wn,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Bn.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Bn.GREYSCALE_25,fontSize:Wn,fontFamily:er.FONT_FAMILY,fontWeight:Zn,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Bn.TEXT_PRIMARY},"&.Mui-error":{color:Bn.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Bn.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Jn,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Bn.TEXT_SECONDARY,content:"'(required)'",fontWeight:Jn,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Vn,lineHeight:"16px",backgroundColor:Bn.WHITE,borderRadius:Kn,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bn.GREYSCALE_0_05}`,borderColor:Bn.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bn.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Bn.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Bn.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bn.RED}`,boxShadow:`0px 0px 0px 1px ${Bn.RED}, inset 0 2px 0 0 ${Bn.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Bn.GREYSCALE_0_10}`,borderColor:Bn.GREYSCALE_0_10,backgroundColor:Bn.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Bn.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Bn.GREYSCALE_0_15,borderRadius:Kn,boxShadow:`inset 0 2px 0 0 ${Bn.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(or,{...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:Bn.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Bn.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Bn.GREYSCALE_0_03},"&:active":{backgroundColor:Bn.GREYSCALE_0_10},"&:focus":{backgroundColor:Bn.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Bn.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Bn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Bn.GREYSCALE_0_30,"&:hover":{backgroundColor:Bn.GREYSCALE_0_0,borderColor:Bn.GREYSCALE_0_15},"& ~svg":{color:Bn.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Bn.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Kn}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Bn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Bn.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Bn.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Vn,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Wn,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Wn,fontWeight:Zn,color:Bn.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Zn}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Bn.GREYSCALE_0_15}, 0px 0px 0px 1px ${Bn.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(cr,null),checkedIcon:x.createElement(dr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Bn.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Bn.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Bn.GREEN_PALE,boxShadow:`0 0 0 3px ${iu(Bn.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Bn.BLUE_PALE,boxShadow:`0 0 0 3px ${iu(Bn.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Bn.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Bn.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(nm,null),checkedIcon:x.createElement(sr,null),indeterminateIcon:x.createElement(ur,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Kn,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Bn.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Bn.GREYSCALE_0_55,color:Bn.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:Bn.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Bn.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Bn.GREYSCALE_0_55,"&:hover":{color:Bn.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:Bn.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Bn.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Vn,color:Bn.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Zn},secondary:{fontSize:Wn,color:Bn.GREYSCALE_45,fontWeight:Jn,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Vn,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Bn.GREYSCALE_0_03},"&:active":{backgroundColor:Bn.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Vn,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Bn.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Wn,borderBottom:`solid 1px ${Bn.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Vn,color:Bn.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Bn.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Bn.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Bn.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:Bn.RED}}},"&.Mui-focusVisible":{backgroundColor:Bn.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:Bn.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:Bn.GREEN,height:"24px","&.Mui-disabled":{color:Bn.GREYSCALE_0_15}},rail:{backgroundColor:Bn.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Bn.GREYSCALE_0_05}`,borderRadius:Kn,boxShadow:`inset 0px 0px 0px 1px ${Bn.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Bn.GREYSCALE_0_05}`,borderRadius:Kn},thumb:{height:"16px",width:"16px",borderRadius:Kn,backgroundColor:Bn.WHITE,boxShadow:`0px 1px 2px 0px ${Bn.GREYSCALE_0_15}, 0px 0px 0px 1px ${Bn.GREYSCALE_0_05}`,"&:hover":{borderRadius:Kn,boxShadow:`0 2px 4px 0 ${Bn.GREYSCALE_0_30}, 0 0 0 1px ${Bn.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Bn.GREYSCALE_0_15}, 0 0 0 1px ${Bn.GREYSCALE_0_06}, 0 0 0 2px ${Bn.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Bn.GREYSCALE_0_15}, 0 0 0 1px ${Bn.GREYSCALE_0_06}, 0 0 0 2px ${Bn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Bn.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Bn.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Bn.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Bn.GREYSCALE_0_15},markLabel:{color:Bn.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Bn.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Bn.WHITE,color:Bn.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:Bn.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:Bn.GREEN_PALE,boxShadow:`0 0 0 3px ${iu(Bn.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Bn.BLUE_PALE,boxShadow:`0 0 0 3px ${iu(Bn.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Bn.GREYSCALE_0_15,borderRadius:Kn},thumb:{height:"16px",width:"16px",borderRadius:Kn,backgroundColor:Bn.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:Vn,fontWeight:Zn,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Bn.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Bn.MISC_FOCUS_BORDER}`,backgroundColor:Bn.GREYSCALE_0_03,borderRadius:Kn},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Bn.GREYSCALE_25,"&.Mui-selected":{color:Bn.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Vn,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Bn.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Bn.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Bn.GREYSCALE_85}`,borderRight:`1px solid ${Bn.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Zn,backgroundColor:Bn.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:Bn.GREYSCALE_98,borderBottom:`1px solid ${Bn.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Bn.GREYSCALE_85}`,borderTop:`1px solid ${Bn.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Bn.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Bn.GREYSCALE_0_05,"&:hover":{backgroundColor:Bn.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Bn.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(pr,{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 ${Bn.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Vn,borderRadius:Kn,padding:"7px 16px",border:`1px solid ${Bn.GREYSCALE_0_15}`,backgroundColor:Bn.GREYSCALE_100_60,color:Bn.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Bn.GREYSCALE_0_10,border:`1px solid ${Bn.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Bn.GREYSCALE_0_03,border:`1px solid ${Bn.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Bn.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Bn.MISC_FOCUS_BORDER}`,border:`1px solid ${Bn.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Bn.GREYSCALE_25,backgroundColor:Bn.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Bn.GREYSCALE_0_10,border:`1px solid ${Bn.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Wn,height:24,width:24,padding:7},sizeLarge:{fontSize:Yn,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Vn,borderRadius:Kn}}},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:Bn.GREYSCALE_20},tooltip:{backgroundColor:Bn.GREYSCALE_20,fontSize:Wn,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const om={mode:"light",primary:{light:Bn.GREEN_PALE,main:Bn.GREEN,dark:Bn.GREEN_DARK,contrastText:Bn.WHITE},secondary:{light:Bn.BLUE_PALE,main:Bn.BLUE,dark:Bn.BLUE_DARK,contrastText:Bn.WHITE},error:{light:Bn.RED_PALE,main:Bn.RED,dark:Bn.RED_DARK,contrastText:Bn.WHITE},warning:{light:Bn.ORANGE_PALE,main:Bn.ORANGE,dark:Bn.ORANGE_DARK,contrastText:Bn.WHITE},success:{light:Bn.GREEN_PALE,main:Bn.GREEN,dark:Bn.GREEN_DARK,contrastText:Bn.WHITE},info:{light:Bn.BLUE_PALE,main:Bn.BLUE,dark:Bn.BLUE_DARK,contrastText:Bn.WHITE},text:{primary:Bn.TEXT_PRIMARY,secondary:Bn.TEXT_SECONDARY,disabled:Bn.GREYSCALE_0_30},action:{hover:Bn.GREYSCALE_0_03,hoverOpacity:.05,selected:Bn.GREYSCALE_0_05,focus:Bn.MISC_FOCUS_BORDER},amethyst:{main:Bn.PURPLE,light:Bn.PURPLE_PALE,dark:Bn.PURPLE_DARK,contrastText:Bn.WHITE},background:{paper:Bn.WHITE,default:Bn.GREYSCALE_95},divider:Bn.GREYSCALE_0_15},im=e=>({components:rm,palette:om,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:Vn,fontWeightLight:Xn,fontWeightRegular:Jn,fontWeightMedium:Zn,fontWeightBold:Qn,htmlFontSize:Vn,fontFamily:er.FONT_FAMILY,button:{fontWeight:Zn,fontSize:Vn,textTransform:"none"},body1:{fontSize:Yn,lineHeight:"24px"},body2:{fontSize:Vn,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Un,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Yn,fontWeight:Zn,lineHeight:"16px"},h6:{fontSize:Vn,fontWeight:Zn,lineHeight:"16px"},caption:{color:Bn.TEXT_SECONDARY},subtitle1:{fontSize:Vn,color:Bn.TEXT_SECONDARY},subtitle2:{fontSize:Wn,color:Bn.TEXT_SECONDARY}},shape:{borderRadius:Kn}}),am={...Hn,MISC_FOCUS_BORDER:Bn.MISC_FOCUS_BORDER},lm=im().palette,sm={TEXT:lm.text.primary,DISABLED:lm.text.disabled,HOVER:lm.action.hover,WHITE:am.GREYSCALE_100,BORDER_LIGHT:am.GREYSCALE_90,BORDER_MEDIUM:am.GREYSCALE_85,BORDER_HEAVY:am.GREYSCALE_50,DARK_MODE_TEXT:am.GREYSCALE_95,DARK_MODE_BORDER:am.GREYSCALE_95,DARK_MODE_DISABLED:am.GREYSCALE_70,DARK_MODE_BACKGROUND:am.GREYSCALE_20};function um(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function cm(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function dm(){}var pm=.7,fm=1/pm,hm="\\s*([+-]?\\d+)\\s*",mm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bm=/^#([0-9a-f]{3,8})$/,vm=new RegExp(`^rgb\\(${hm},${hm},${hm}\\)$`),ym=new RegExp(`^rgb\\(${gm},${gm},${gm}\\)$`),xm=new RegExp(`^rgba\\(${hm},${hm},${hm},${mm}\\)$`),Sm=new RegExp(`^rgba\\(${gm},${gm},${gm},${mm}\\)$`),Em=new RegExp(`^hsl\\(${mm},${gm},${gm}\\)$`),Cm=new RegExp(`^hsla\\(${mm},${gm},${gm},${mm}\\)$`),wm={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 Rm(){return this.rgb().formatHex()}function Lm(){return this.rgb().formatRgb()}function Am(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=bm.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Im(t):3===n?new _m(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Mm(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Mm(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=vm.exec(e))?new _m(t[1],t[2],t[3],1):(t=ym.exec(e))?new _m(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=xm.exec(e))?Mm(t[1],t[2],t[3],t[4]):(t=Sm.exec(e))?Mm(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Em.exec(e))?Fm(t[1],t[2]/100,t[3]/100,1):(t=Cm.exec(e))?Fm(t[1],t[2]/100,t[3]/100,t[4]):wm.hasOwnProperty(e)?Im(wm[e]):"transparent"===e?new _m(NaN,NaN,NaN,0):null}function Im(e){return new _m(e>>16&255,e>>8&255,255&e,1)}function Mm(e,t,n,r){return r<=0&&(e=t=n=NaN),new _m(e,t,n,r)}function Dm(e){return e instanceof dm||(e=Am(e)),e?new _m((e=e.rgb()).r,e.g,e.b,e.opacity):new _m}function Pm(e,t,n,r){return 1===arguments.length?Dm(e):new _m(e,t,n,null==r?1:r)}function _m(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Om(){return`#${Nm(this.r)}${Nm(this.g)}${Nm(this.b)}`}function Tm(){const e=km(this.opacity);return`${1===e?"rgb(":"rgba("}${qm(this.r)}, ${qm(this.g)}, ${qm(this.b)}${1===e?")":`, ${e})`}`}function km(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qm(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Nm(e){return((e=qm(e))<16?"0":"")+e.toString(16)}function Fm(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new jm(e,t,n,r)}function zm(e){if(e instanceof jm)return new jm(e.h,e.s,e.l,e.opacity);if(e instanceof dm||(e=Am(e)),!e)return new jm;if(e instanceof jm)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new jm(a,l,s,e.opacity)}function jm(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function $m(e){return(e=(e||0)%360)<0?e+360:e}function Gm(e){return Math.max(0,Math.min(1,e||0))}function Hm(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}um(dm,Am,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Rm,formatHex:Rm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return zm(this).formatHsl()},formatRgb:Lm,toString:Lm}),um(_m,Pm,cm(dm,{brighter(e){return e=null==e?fm:Math.pow(fm,e),new _m(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?pm:Math.pow(pm,e),new _m(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _m(qm(this.r),qm(this.g),qm(this.b),km(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:Om,formatHex:Om,formatHex8:function(){return`#${Nm(this.r)}${Nm(this.g)}${Nm(this.b)}${Nm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Tm,toString:Tm})),um(jm,(function(e,t,n,r){return 1===arguments.length?zm(e):new jm(e,t,n,null==r?1:r)}),cm(dm,{brighter(e){return e=null==e?fm:Math.pow(fm,e),new jm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?pm:Math.pow(pm,e),new jm(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new _m(Hm(e>=240?e-240:e+120,o,r),Hm(e,o,r),Hm(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new jm($m(this.h),Gm(this.s),Gm(this.l),km(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=km(this.opacity);return`${1===e?"hsl(":"hsla("}${$m(this.h)}, ${100*Gm(this.s)}%, ${100*Gm(this.l)}%${1===e?")":`, ${e})`}`}}));const Bm=Math.PI/180,Wm=180/Math.PI,Vm=.96422,Ym=1,Um=.82521,Km=4/29,Xm=6/29,Jm=3*Xm*Xm,Zm=Xm*Xm*Xm;function Qm(e){if(e instanceof eg)return new eg(e.l,e.a,e.b,e.opacity);if(e instanceof ag)return lg(e);e instanceof _m||(e=Dm(e));var t,n,r=og(e.r),o=og(e.g),i=og(e.b),a=tg((.2225045*r+.7168786*o+.0606169*i)/Ym);return r===o&&o===i?t=n=a:(t=tg((.4360747*r+.3850649*o+.1430804*i)/Vm),n=tg((.0139322*r+.0971045*o+.7141733*i)/Um)),new eg(116*a-16,500*(t-a),200*(a-n),e.opacity)}function eg(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function tg(e){return e>Zm?Math.pow(e,1/3):e/Jm+Km}function ng(e){return e>Xm?e*e*e:Jm*(e-Km)}function rg(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function og(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ig(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ag)return new ag(e.h,e.c,e.l,e.opacity);if(e instanceof eg||(e=Qm(e)),0===e.a&&0===e.b)return new ag(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Wm;return new ag(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ag(e,t,n,null==r?1:r)}function ag(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function lg(e){if(isNaN(e.h))return new eg(e.l,0,0,e.opacity);var t=e.h*Bm;return new eg(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}um(eg,(function(e,t,n,r){return 1===arguments.length?Qm(e):new eg(e,t,n,null==r?1:r)}),cm(dm,{brighter(e){return new eg(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new eg(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new _m(rg(3.1338561*(t=Vm*ng(t))-1.6168667*(e=Ym*ng(e))-.4906146*(n=Um*ng(n))),rg(-.9787684*t+1.9161415*e+.033454*n),rg(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),um(ag,ig,cm(dm,{brighter(e){return new ag(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ag(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return lg(this).rgb()}}));const sg=(e,t)=>{const n=ig(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},ug=e=>{if(e){const t=Pm(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},cg=e=>!!e&&0===Pm(e).opacity,dg=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,pg=e=>{const t=dg.exec(e);if(t){const[,e,n,r,o]=t;return Pm(+n,+r,+o,+e/255)}return Pm(e)},fg=e=>{const t=pg(e);return Number.isNaN(t.r)?null:t.toString()},hg=e=>{e.stopPropagation(),e.preventDefault()},mg="#grid",gg=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},bg=(e,t,n,r,o)=>{const i=gg(".qv-object .qv-inner-object",n),a=gg(".qv-panel-sheet",n),l=gg(mg,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return fg(s);if("none"===u)return"transparent";if(void 0===u)return;const c=pg(u);return c.opacity=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.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=cg(p),h=ug(f?s:p),m=((e,t,n)=>cg(e)||!e?cg(t)?null!=n?n:sm.WHITE:t:e)(u,p,s);return{color:p,headerColor:m,isDark:h}},vg=(o,i,a,l)=>{const s=n(),u=((n,r={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[o,i]=e([]);return t((()=>{let e;return n&&(e=new MutationObserver((e=>{i(e)})),e.observe(n,r)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[n,r]),o})(null==i?void 0:i.closest(mg),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return r((()=>({...s,background:bg(o,s,i,a,l)})),[s.name(),i,a,l,o,u])};function yg(e,t){const n=r((()=>({isLoading:!0})),t),[i,a]=o((async()=>{try{return await e()}finally{n.isLoading=!1}}),t);return[i,n.isLoading,a]}var xg=Object.prototype.hasOwnProperty,Sg=Object.prototype.toString,Eg=Object.defineProperty,Cg=Object.getOwnPropertyDescriptor,wg=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Sg.call(e)},Rg=function(e){if(!e||"[object Object]"!==Sg.call(e))return!1;var t,n=xg.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&xg.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||xg.call(e,t)},Lg=function(e,t){Eg&&"__proto__"===t.name?Eg(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ag=function(e,t){if("__proto__"===t){if(!xg.call(e,t))return;if(Cg)return Cg(e,t).value}return e[t]};function Ig(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Mg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Dg(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=Ag(l,n),l!==(o=Ag(t,n))&&(c&&o&&(Rg(o)||(i=wg(o)))?(i?(i=!1,a=r&&wg(r)?r:[]):a=r&&Rg(r)?r:{},Lg(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Lg(l,{name:n,newValue:o}));return l}));var Pg=1/.7,_g="\\s*([+-]?\\d+)\\s*",Og="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kg=/^#([0-9a-f]{3,8})$/,qg=new RegExp(`^rgb\\(${_g},${_g},${_g}\\)$`),Ng=new RegExp(`^rgb\\(${Tg},${Tg},${Tg}\\)$`),Fg=new RegExp(`^rgba\\(${_g},${_g},${_g},${Og}\\)$`),zg=new RegExp(`^rgba\\(${Tg},${Tg},${Tg},${Og}\\)$`),jg=new RegExp(`^hsl\\(${Og},${Tg},${Tg}\\)$`),$g=new RegExp(`^hsla\\(${Og},${Tg},${Tg},${Og}\\)$`),Gg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Hg(){return this.rgb().formatHex()}function Bg(){return this.rgb().formatRgb()}function Wg(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=kg.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Vg(t):3===n?new Xg(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Yg(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Yg(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=qg.exec(e))?new Xg(t[1],t[2],t[3],1):(t=Ng.exec(e))?new Xg(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Fg.exec(e))?Yg(t[1],t[2],t[3],t[4]):(t=zg.exec(e))?Yg(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=jg.exec(e))?nb(t[1],t[2]/100,t[3]/100,1):(t=$g.exec(e))?nb(t[1],t[2]/100,t[3]/100,t[4]):Gg.hasOwnProperty(e)?Vg(Gg[e]):"transparent"===e?new Xg(NaN,NaN,NaN,0):null}function Vg(e){return new Xg(e>>16&255,e>>8&255,255&e,1)}function Yg(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xg(e,t,n,r)}function Ug(e){return e instanceof Dg||(e=Wg(e)),e?new Xg((e=e.rgb()).r,e.g,e.b,e.opacity):new Xg}function Kg(e,t,n,r){return 1===arguments.length?Ug(e):new Xg(e,t,n,null==r?1:r)}function Xg(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Jg(){return`#${tb(this.r)}${tb(this.g)}${tb(this.b)}`}function Zg(){const e=Qg(this.opacity);return`${1===e?"rgb(":"rgba("}${eb(this.r)}, ${eb(this.g)}, ${eb(this.b)}${1===e?")":`, ${e})`}`}function Qg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function eb(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tb(e){return((e=eb(e))<16?"0":"")+e.toString(16)}function nb(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ob(e,t,n,r)}function rb(e){if(e instanceof ob)return new ob(e.h,e.s,e.l,e.opacity);if(e instanceof Dg||(e=Wg(e)),!e)return new ob;if(e instanceof ob)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new ob(a,l,s,e.opacity)}function ob(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ib(e){return(e=(e||0)%360)<0?e+360:e}function ab(e){return Math.max(0,Math.min(1,e||0))}function lb(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ig(Dg,Wg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hg,formatHex:Hg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return rb(this).formatHsl()},formatRgb:Bg,toString:Bg}),Ig(Xg,Kg,Mg(Dg,{brighter(e){return e=null==e?Pg:Math.pow(Pg,e),new Xg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Xg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xg(eb(this.r),eb(this.g),eb(this.b),Qg(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:Jg,formatHex:Jg,formatHex8:function(){return`#${tb(this.r)}${tb(this.g)}${tb(this.b)}${tb(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zg,toString:Zg})),Ig(ob,(function(e,t,n,r){return 1===arguments.length?rb(e):new ob(e,t,n,null==r?1:r)}),Mg(Dg,{brighter(e){return e=null==e?Pg:Math.pow(Pg,e),new ob(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ob(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Xg(lb(e>=240?e-240:e+120,o,r),lb(e,o,r),lb(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ob(ib(this.h),ab(this.s),ab(this.l),Qg(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=Qg(this.opacity);return`${1===e?"hsl(":"hsla("}${ib(this.h)}, ${100*ab(this.s)}%, ${100*ab(this.l)}%${1===e?")":`, ${e})`}`}}));const sb=Math.PI/180,ub=180/Math.PI,cb=4/29,db=6/29,pb=3*db*db;function fb(e){if(e instanceof hb)return new hb(e.l,e.a,e.b,e.opacity);if(e instanceof yb)return xb(e);e instanceof Xg||(e=Ug(e));var t,n,r=vb(e.r),o=vb(e.g),i=vb(e.b),a=mb((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=mb((.4360747*r+.3850649*o+.1430804*i)/.96422),n=mb((.0139322*r+.0971045*o+.7141733*i)/.82521)),new hb(116*a-16,500*(t-a),200*(a-n),e.opacity)}function hb(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function mb(e){return e>.008856451679035631?Math.pow(e,1/3):e/pb+cb}function gb(e){return e>db?e*e*e:pb*(e-cb)}function bb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function vb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yb(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function xb(e){if(isNaN(e.h))return new hb(e.l,0,0,e.opacity);var t=e.h*sb;return new hb(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ig(hb,(function(e,t,n,r){return 1===arguments.length?fb(e):new hb(e,t,n,null==r?1:r)}),Mg(Dg,{brighter(e){return new hb(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new hb(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Xg(bb(3.1338561*(t=.96422*gb(t))-1.6168667*(e=1*gb(e))-.4906146*(n=.82521*gb(n))),bb(-.9787684*t+1.9161415*e+.033454*n),bb(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ig(yb,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof yb)return new yb(e.h,e.c,e.l,e.opacity);if(e instanceof hb||(e=fb(e)),0===e.a&&0===e.b)return new yb(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ub;return new yb(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new yb(e,t,n,null==r?1:r)}),Mg(Dg,{brighter(e){return new yb(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new yb(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return xb(this).rgb()}}));var Sb,Eb=e=>()=>e;function Cb(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Eb(isNaN(e)?t:e)}function wb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function Rb(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Lb(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ib)):void 0===t&&(t=Ab);for(var n,r,o,i,a,l=new Pb(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Pb(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Db)}function Ab(e){return e.children}function Ib(e){return Array.isArray(e)?e[1]:null}function Mb(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Db(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Pb(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?Cb:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Eb(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Kg(e)).r,(t=Kg(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Cb(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),Pb.prototype=Lb.prototype={constructor:Pb,count:function(){return this.eachAfter(Rb)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Lb(this).eachBefore(Mb)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},Sb=function(e){
100
+ /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
101
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},Sb({exports:{}});const _b=3,Ob="N";function Tb(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function kb({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=_b}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=L((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=wb(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=wb((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=Tb(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(Ob).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var qb,Nb=N;qb=Nb.createRoot,Nb.hydrateRoot;function Fb(e,t){const[n,r]=A(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var zb={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 jb=({translator:e})=>(L((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(zb).forEach((t=>{e.add(zb[t])}))}}(e)),[e]),e),$b=document.createElement("textarea");function Gb(e){$b.value=e,document.body.appendChild($b),$b.select(),$b.setSelectionRange(0,$b.value.length),document.execCommand("copy"),document.body.removeChild($b)}$b.style.position="absolute",$b.style.left="-9999px",$b.setAttribute("readonly","");function Hb(){null==i||i(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Ot}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>Gb(n))):Gb(n))})(r)}})}))}var Bb="$$material";function Wb(e){const{injectFirst:t,children:n}=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 n}Wb.propTypes={children:Nn.node,injectFirst:Nn.bool};const Vb=da((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var Yb=Vb;
102
+ /**
103
+ * @mui/styled-engine-sc v6.0.0-alpha.18
104
+ *
105
+ * @license MIT
106
+ * This source code is licensed under the MIT license found in the
107
+ * LICENSE file in the root directory of this source tree.
108
+ */
109
+ function Ub(e,t){let n;return n=t?ua(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ua(e),n}Vb.propTypes={defaultTheme:Nn.object,styles:Nn.oneOfType([Nn.array,Nn.string,Nn.object,Nn.func])};var Kb=Object.freeze({__proto__:null,GlobalStyles:Yb,StyledEngineProvider:Wb,ThemeContext:ta,css:aa,default:Ub,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:pa});const Xb=["values","unit","step"],Jb=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)=>On({},e,{[t.key]:t.val})),{})};function Zb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=jn(e,Xb),i=Jb(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return On({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var Qb={borderRadius:4};function ev(e,t){return t?va(e,t,{clone:!1}):e}const tv={xs:0,sm:600,md:900,lg:1200,xl:1536},nv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${tv[e]}px)`};function rv(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||nv;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||nv;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||tv).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function ov(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function iv(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ov(e,n)||r,t&&(o=t(o,r,e)),o}function av(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=ov(e.theme,r)||{};return rv(e,i,(e=>{let r=iv(a,o,e);return e===r&&"string"==typeof e&&(r=iv(a,o,`${t}${"default"===e?"":Ba(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const lv={m:"margin",p:"padding"},sv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},uv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cv=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!uv[e])return[e];e=uv[e]}const[t,n]=e.split(""),r=lv[t],o=sv[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),dv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function fv(e,t,n,r){var o;const i=null!=(o=ov(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function hv(e){return fv(e,"spacing",8)}function mv(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function gv(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=mv(t,n),e)),{})}(cv(n),r);return rv(e,e[n],o)}function bv(e,t){const n=hv(e.theme);return Object.keys(e).map((r=>gv(e,t,r,n))).reduce(ev,{})}function vv(e){return bv(e,dv)}function yv(e){return bv(e,pv)}function xv(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?ev(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Sv(e){return"number"!=typeof e?e:`${e}px solid`}function Ev(e,t){return av({prop:e,themeKey:"borders",transform:t})}vv.propTypes={},vv.filterProps=dv,yv.propTypes={},yv.filterProps=pv;const Cv=Ev("border",Sv),wv=Ev("borderTop",Sv),Rv=Ev("borderRight",Sv),Lv=Ev("borderBottom",Sv),Av=Ev("borderLeft",Sv),Iv=Ev("borderColor"),Mv=Ev("borderTopColor"),Dv=Ev("borderRightColor"),Pv=Ev("borderBottomColor"),_v=Ev("borderLeftColor"),Ov=Ev("outline",Sv),Tv=Ev("outlineColor"),kv=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=fv(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:mv(t,e)});return rv(e,e.borderRadius,n)}return null};kv.propTypes={},kv.filterProps=["borderRadius"],xv(Cv,wv,Rv,Lv,Av,Iv,Mv,Dv,Pv,_v,kv,Ov,Tv);const qv=e=>{if(void 0!==e.gap&&null!==e.gap){const t=fv(e.theme,"spacing",8),n=e=>({gap:mv(t,e)});return rv(e,e.gap,n)}return null};qv.propTypes={},qv.filterProps=["gap"];const Nv=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=fv(e.theme,"spacing",8),n=e=>({columnGap:mv(t,e)});return rv(e,e.columnGap,n)}return null};Nv.propTypes={},Nv.filterProps=["columnGap"];const Fv=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=fv(e.theme,"spacing",8),n=e=>({rowGap:mv(t,e)});return rv(e,e.rowGap,n)}return null};Fv.propTypes={},Fv.filterProps=["rowGap"];function zv(e,t){return"grey"===t?t:e}xv(qv,Nv,Fv,av({prop:"gridColumn"}),av({prop:"gridRow"}),av({prop:"gridAutoFlow"}),av({prop:"gridAutoColumns"}),av({prop:"gridAutoRows"}),av({prop:"gridTemplateColumns"}),av({prop:"gridTemplateRows"}),av({prop:"gridTemplateAreas"}),av({prop:"gridArea"}));function jv(e){return e<=1&&0!==e?100*e+"%":e}xv(av({prop:"color",themeKey:"palette",transform:zv}),av({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zv}),av({prop:"backgroundColor",themeKey:"palette",transform:zv}));const $v=av({prop:"width",transform:jv}),Gv=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||tv[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:jv(t)}};return rv(e,e.maxWidth,t)}return null};Gv.filterProps=["maxWidth"];const Hv=av({prop:"minWidth",transform:jv}),Bv=av({prop:"height",transform:jv}),Wv=av({prop:"maxHeight",transform:jv}),Vv=av({prop:"minHeight",transform:jv});av({prop:"size",cssProperty:"width",transform:jv}),av({prop:"size",cssProperty:"height",transform:jv});xv($v,Gv,Hv,Bv,Wv,Vv,av({prop:"boxSizing"}));var Yv={border:{themeKey:"borders",transform:Sv},borderTop:{themeKey:"borders",transform:Sv},borderRight:{themeKey:"borders",transform:Sv},borderBottom:{themeKey:"borders",transform:Sv},borderLeft:{themeKey:"borders",transform:Sv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Sv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:kv},color:{themeKey:"palette",transform:zv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zv},backgroundColor:{themeKey:"palette",transform:zv},p:{style:yv},pt:{style:yv},pr:{style:yv},pb:{style:yv},pl:{style:yv},px:{style:yv},py:{style:yv},padding:{style:yv},paddingTop:{style:yv},paddingRight:{style:yv},paddingBottom:{style:yv},paddingLeft:{style:yv},paddingX:{style:yv},paddingY:{style:yv},paddingInline:{style:yv},paddingInlineStart:{style:yv},paddingInlineEnd:{style:yv},paddingBlock:{style:yv},paddingBlockStart:{style:yv},paddingBlockEnd:{style:yv},m:{style:vv},mt:{style:vv},mr:{style:vv},mb:{style:vv},ml:{style:vv},mx:{style:vv},my:{style:vv},margin:{style:vv},marginTop:{style:vv},marginRight:{style:vv},marginBottom:{style:vv},marginLeft:{style:vv},marginX:{style:vv},marginY:{style:vv},marginInline:{style:vv},marginInlineStart:{style:vv},marginInlineEnd:{style:vv},marginBlock:{style:vv},marginBlockStart:{style:vv},marginBlockEnd:{style:vv},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:qv},rowGap:{style:Fv},columnGap:{style:Nv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:jv},maxWidth:{style:Gv},minWidth:{transform:jv},height:{transform:jv},maxHeight:{transform:jv},minHeight:{transform:jv},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Uv(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=ov(n,l)||{};if(u)return u(o);return rv(o,t,(t=>{let n=iv(c,s,t);return t===n&&"string"==typeof t&&(n=iv(c,s,`${e}${"default"===t?"":Ba(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Yv;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=ev(s,e(n,o,i,a));else{const e=rv({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=ev(s,e):s[n]=t({sx:o,theme:i})}else s=ev(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Kv=Uv();Kv.filterProps=["sx"];var Xv=Kv;function Jv(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const Zv=["breakpoints","palette","spacing","shape"];function Qv(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=jn(e,Zv),l=Zb(n),s=function(e=8){if(e.mui)return e;const t=hv({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=va({breakpoints:l,direction:"ltr",components:{},palette:On({mode:"light"},r),spacing:s,shape:On({},Qb,i)},a);return u.applyStyles=Jv,u=t.reduce(((e,t)=>va(e,t)),u),u.unstable_sxConfig=On({},Yv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Xv({sx:e,theme:this})},u}var ey=Object.freeze({__proto__:null,default:Qv,private_createBreakpoints:Zb,unstable_applyStyles:Jv});function ty(e=null){const t=y.useContext(ta);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ny=Qv();function ry(e=ny){return ty(e)}const oy=["sx"],iy=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Yv;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function ay(e){const{sx:t}=e,n=jn(e,oy),{systemProps:r,otherProps:o}=iy(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return ga(n)?On({},r,n):r}:On({},r,t),On({},o,{sx:i})}var ly=Object.freeze({__proto__:null,default:Xv,extendSxProp:ay,unstable_createStyleFunctionSx:Uv,unstable_defaultSxConfig:Yv});const sy=["className","component"];function uy({props:e,name:t,defaultTheme:n,themeId:r}){let o=ry(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?hl(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function cy(e){if(e.type)return e;if("#"===e.charAt(0))return cy(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Rr(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Rr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function dy(e,t){return e=cy(e),t=function(e,t=0,n=1){return Sl(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}const py=["value"],fy=y.createContext();function hy(e){let{value:t}=e,n=jn(e,py);return Ns.jsx(fy.Provider,On({value:null==t||t},n))}const my={};function gy(e,t,n,r=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?On({},t,{[e]:i}):i;return r?()=>a:a}return On({},t,e?{[e]:n}:n)}),[e,t,n,r])}function by(e){const{children:t,theme:n,themeId:r}=e,o=ty(my),i=lu()||my,a=gy(r,o,n),l=gy(r,i,n,!0),s="rtl"===a.direction;return Ns.jsx(uu,{theme:l,children:Ns.jsx(ta.Provider,{value:a,children:Ns.jsx(hy,{value:s,children:t})})})}var vy,yy={},xy={exports:{}};(vy=xy).exports=function(e){return e&&e.__esModule?e:{default:e}},vy.exports.__esModule=!0,vy.exports.default=vy.exports;var Sy=xy.exports,Ey=z(Lr),Cy=z(El),wy=Sy;Object.defineProperty(yy,"__esModule",{value:!0});var Ry=yy.alpha=Fy;yy.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Oy(e),a=Oy(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ky({type:"rgb",values:l})},yy.colorChannel=void 0;var Ly=yy.darken=zy;yy.decomposeColor=Oy,yy.emphasize=$y;var Ay=yy.getContrastRatio=function(e,t){const n=Ny(e),r=Ny(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};yy.getLuminance=Ny,yy.hexToRgb=_y,yy.hslToRgb=qy;var Iy=yy.lighten=jy;yy.private_safeAlpha=function(e,t,n){try{return Fy(e,t)}catch(t){return e}},yy.private_safeColorChannel=void 0,yy.private_safeDarken=function(e,t,n){try{return zy(e,t)}catch(t){return e}},yy.private_safeEmphasize=function(e,t,n){try{return $y(e,t)}catch(t){return e}},yy.private_safeLighten=function(e,t,n){try{return jy(e,t)}catch(t){return e}},yy.recomposeColor=ky,yy.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Oy(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 My=wy(Ey),Dy=wy(Cy);function Py(e,t=0,n=1){return(0,Dy.default)(e,t,n)}function _y(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Oy(e){if(e.type)return e;if("#"===e.charAt(0))return Oy(_y(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,My.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,My.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Ty=e=>{const t=Oy(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};yy.colorChannel=Ty;function ky(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function qy(e){e=Oy(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),ky({type:l,values:s})}function Ny(e){let t="hsl"===(e=Oy(e)).type||"hsla"===e.type?Oy(qy(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 Fy(e,t){return e=Oy(e),t=Py(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ky(e)}function zy(e,t){if(e=Oy(e),t=Py(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ky(e)}function jy(e,t){if(e=Oy(e),t=Py(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ky(e)}function $y(e,t=.15){return Ny(e)>.5?zy(e,t):jy(e,t)}yy.private_safeColorChannel=(e,t)=>{try{return Ty(e)}catch(t){return e}};var Gy={black:"#000",white:"#fff"};var Hy={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 By={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 Wy={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 Vy={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 Yy={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 Uy={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 Ky={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 Xy=["mode","contrastThreshold","tonalOffset"],Jy={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:Gy.white,default:Gy.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}},Zy={text:{primary:Gy.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:Gy.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 Qy(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Iy(e.main,o):"dark"===t&&(e.dark=Ly(e.main,i)))}function ex(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=jn(e,Xy),i=e.primary||function(e="light"){return"dark"===e?{main:Yy[200],light:Yy[50],dark:Yy[400]}:{main:Yy[700],light:Yy[400],dark:Yy[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:By[200],light:By[50],dark:By[400]}:{main:By[500],light:By[300],dark:By[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Wy[500],light:Wy[300],dark:Wy[700]}:{main:Wy[700],light:Wy[400],dark:Wy[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Uy[400],light:Uy[300],dark:Uy[700]}:{main:Uy[700],light:Uy[500],dark:Uy[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ky[400],light:Ky[300],dark:Ky[700]}:{main:Ky[800],light:Ky[500],dark:Ky[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Vy[400],light:Vy[300],dark:Vy[700]}:{main:"#ed6c02",light:Vy[500],dark:Vy[900]}}(t);function d(e){return Ay(e,Zy.text.primary)>=n?Zy.text.primary:Jy.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=On({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Rr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Rr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Qy(e,"light",o,r),Qy(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Zy,light:Jy};return va(On({common:On({},Gy),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:Hy,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const tx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const nx={textTransform:"uppercase"},rx='"Roboto", "Helvetica", "Arial", sans-serif';function ox(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=rx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=jn(n,tx),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return On({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===rx?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,nx),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,nx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return va(On({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function ix(...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 ax=["none",ix(0,2,1,-1,0,1,1,0,0,1,3,0),ix(0,3,1,-2,0,2,2,0,0,1,5,0),ix(0,3,3,-2,0,3,4,0,0,1,8,0),ix(0,2,4,-1,0,4,5,0,0,1,10,0),ix(0,3,5,-1,0,5,8,0,0,1,14,0),ix(0,3,5,-1,0,6,10,0,0,1,18,0),ix(0,4,5,-2,0,7,10,1,0,2,16,1),ix(0,5,5,-3,0,8,10,1,0,3,14,2),ix(0,5,6,-3,0,9,12,1,0,3,16,2),ix(0,6,6,-3,0,10,14,1,0,4,18,3),ix(0,6,7,-4,0,11,15,1,0,4,20,3),ix(0,7,8,-4,0,12,17,2,0,5,22,4),ix(0,7,8,-4,0,13,19,2,0,5,24,4),ix(0,7,9,-4,0,14,21,2,0,5,26,4),ix(0,8,9,-5,0,15,22,2,0,6,28,5),ix(0,8,10,-5,0,16,24,2,0,6,30,5),ix(0,8,11,-5,0,17,26,2,0,6,32,5),ix(0,9,11,-5,0,18,28,2,0,7,34,6),ix(0,9,12,-6,0,19,29,2,0,7,36,6),ix(0,10,13,-6,0,20,31,3,0,8,38,7),ix(0,10,13,-6,0,21,33,3,0,8,40,7),ix(0,10,14,-6,0,22,35,3,0,8,42,7),ix(0,11,14,-7,0,23,36,3,0,9,44,8),ix(0,11,15,-7,0,24,38,3,0,9,46,8)];const lx=["duration","easing","delay"],sx={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)"},ux={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function cx(e){return`${Math.round(e)}ms`}function dx(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function px(e){const t=On({},sx,e.easing),n=On({},ux,e.duration);return On({getAutoHeightDuration:dx,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return jn(r,lx),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:cx(o)} ${i} ${"string"==typeof a?a:cx(a)}`)).join(",")}},e,{easing:t,duration:n})}var fx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const hx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function mx(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=jn(e,hx);if(e.vars)throw new Error(Rr(18));const l=ex(r),s=Qv(e);let u=va(s,{mixins:(c=s.breakpoints,d=n,On({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:ax.slice(),typography:ox(l,i),transitions:px(o),zIndex:On({},fx)});var c,d;return u=va(u,a),u=t.reduce(((e,t)=>va(e,t)),u),u.unstable_sxConfig=On({},Yv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Xv({sx:e,theme:this})},u}var gx=mx();function bx(){const e=ry(gx);return e[Bb]||e}function vx({props:e,name:t}){return uy({props:e,name:t,defaultTheme:gx,themeId:Bb})}var yx,xx={},Sx={exports:{}};var Ex,Cx={exports:{}};var wx=z(Kb),Rx=z(xa),Lx=z(Wa),Ax=z(Ha),Ix=z(ey),Mx=z(ly),Dx=Sy;Object.defineProperty(xx,"__esModule",{value:!0});var Px=xx.default=function(e={}){const{themeId:t,defaultTheme:n=Hx,rootShouldForwardProp:r=Gx,slotShouldForwardProp:o=Gx}=e,i=e=>(0,Nx.default)((0,_x.default)({},e,{theme:Wx((0,_x.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Tx.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Vx(Bx(s))}=a,p=(0,Ox.default)(a,jx),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Gx;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,Tx.default)(e,(0,_x.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,kx.isPlainObject)(e)?r=>Yx(e,(0,_x.default)({},r,{theme:Wx({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=Wx((0,_x.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Yx(n,(0,_x.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=Wx((0,_x.default)({},e,{defaultTheme:n,themeId:t}));return Yx({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,_x.default)({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};xx.shouldForwardProp=Gx,xx.systemDefaultTheme=void 0;var _x=Dx((yx||(yx=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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Sx)),Sx.exports)),Ox=Dx((Ex||(Ex=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(Cx)),Cx.exports)),Tx=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=$x(t);if(n&&n.has(e))return n.get(e);var r={__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(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(wx),kx=Rx;Dx(Lx),Dx(Ax);var qx=Dx(Ix),Nx=Dx(Mx);const Fx=["ownerState"],zx=["variants"],jx=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return($x=function(e){return e?n:t})(e)}function Gx(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Hx=xx.systemDefaultTheme=(0,qx.default)(),Bx=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Wx({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Vx(e){return e?(t,n)=>n[e]:null}function Yx(e,t){let{ownerState:n}=t,r=(0,Ox.default)(t,Fx);const o="function"==typeof e?e((0,_x.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Yx(e,(0,_x.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Ox.default)(o,zx);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,_x.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,_x.default)({ownerState:n},r,n)):e.style))})),t}return o}var Ux=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var Kx=Px({themeId:Bb,defaultTheme:gx,rootShouldForwardProp:Ux});const Xx=["theme"];function Jx(e){let{theme:t}=e,n=jn(e,Xx);const r=t[Bb];return Ns.jsx(by,On({},n,{themeId:r?Bb:void 0,theme:r||t}))}var Zx=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const Qx=dc(Tp,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${qt}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${qt}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),eS=dc(Tp)({position:"absolute",height:"100%",width:"3px"}),tS=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=I({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},h=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};Fb((()=>p&&h()),[e]);const m=e=>{const t=Math.max(e,Nt.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:Ft.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},b=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;m(t)},v=e=>{hg(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;m(t)},S=e=>{hg(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",S),g()},E=!r&&l?e=>{if(e.key===Tt.LEFT||e.key===Tt.RIGHT){hg(e);const t=5,n=e.key===Tt.LEFT?-t:t;m(c.current.columnWidth+n)}else e.key===Tt.SPACE||e.key===Tt.ENTER?(hg(e),l(e),g()):e.key===Tt.ESC&&(hg(e),l(e),m(c.current.initWidth))}:void 0;return x.createElement(Qx,{className:kt,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==s||s(!0),h(e.clientX)},onDoubleClick:()=>a({type:Ft.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),null==s||s(!0),h(e.touches[0].clientX))},onKeyDown:E,onBlur:l,onFocus:()=>h(),"data-testid":kt},x.createElement(eS,{className:qt}))};function nS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"}))));function oS(){return oS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oS.apply(this,arguments)}const iS=dc(Tp,{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"}))),aS=dc(rS,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),lS=dc(ph)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),sS=dc(of)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),uS=dc(bh)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),cS=dc(bh,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !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:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),dS=dc("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"}))),pS=dc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),fS=dc(kd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),hS=dc(zf)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function mS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let bS={};const vS=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=A(!1),p=I(null),f=D((e=>{e.stopPropagation(),d(!1)}),[d]);return x.createElement(x.Fragment,null,x.createElement(cS,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),bS={}),null!=a&&a.length&&(d(!0),bS[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&x.createElement(dS,null),x.createElement(pS,null,x.createElement(hS,null,x.createElement(o,null)),x.createElement(fS,{variant:"body2"},r)),null!=a&&a.length?x.createElement(gS,null):null),(null==a?void 0:a.length)&&x.createElement(SS,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=bS,h.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(m).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var h,m},yS=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&x.createElement(uS,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>x.createElement(vS,oS({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),xS={appear:200,enter:200,exit:100},SS=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?x.createElement(lS,oS({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:xS,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[yS({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?x.createElement(sS,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,ES={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},CS=(e,t)=>e.some((e=>t[e]>0));function wS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const RS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"}))));function LS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const AS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){LS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"}))));function IS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const MS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){IS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"}))));function DS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const PS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){DS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function _S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_S(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"}))));function TS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"}))));function qS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const NS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function FS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function jS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $S=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function GS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const HS=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){GS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"}))));let BS=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const WS=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(n[BS.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),r(!1),await(null==i?void 0:i(e))},icon:RS,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),r(!1),await(null==i?void 0:i(e))},icon:PS,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[BS.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:OS,enabled:!0}]}]),n[BS.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:HS,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAll())},icon:kS,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectPossible())},icon:$S,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAlternative())},icon:NS,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectExcluded())},icon:zS,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clear())},icon:AS,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[BS.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(c)},icon:MS,enabled:!0}]}]),p},VS=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const h=jb({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:S,updateSelectionActionsEnabledStatus:E}=(({headerData:e,app:t})=>{const[n,r]=A(null),[o,i]=A(ES);return P((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:D((()=>i(ES)),[]),updateSelectionActionsEnabledStatus:D((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:CS(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:CS(["qSelected"],n.qStateCounts),canSelectPossible:CS(["qOption"],n.qStateCounts),canSelectAlternative:CS(["qAlternative"],n.qStateCounts),canSelectExcluded:CS(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),C=D((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,b,g]);P((()=>{e||(S(),null!=d&&d.model&&d.model.getLayout().then((e=>{E(e)})).catch((e=>console.error(e))))}),[e,S,E,null==d?void 0:d.model]);const w=D((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(iS,{rightAligned:"right"===m,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&x.createElement(aS,{height:Pt,className:_t,"data-testid":_t,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},x.createElement(rS,null)),x.createElement(SS,{open:e,anchorEl:n.current,onClose:w,menuGroups:WS({headerData:r,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:C,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},YS=e=>e.isDark?{background:e.color,borderColor:sm.DARK_MODE_BORDER,color:sm.DARK_MODE_TEXT,disabledColor:sm.DARK_MODE_DISABLED,iconColor:sm.DARK_MODE_TEXT}:{background:e.color,borderColor:sm.BORDER_MEDIUM,color:sm.TEXT,disabledColor:sm.DISABLED},US=dc(Tp,{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}`}))),KS=dc(tm,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),XS=dc(Wp,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),JS=dc(kd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),ZS=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=L((()=>YS(r.background)),[r]);if(!n.active)return null;const a=o?x.createElement(US,{footerStyle:i},e):null;return t?N.createPortal(e,t):a},QS=_({}),eE=()=>S(QS),tE=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=L((()=>YS(p.background)),[p]),v=o?o.getBoundingClientRect().width:h.width,y=jb({translator:d}),S=L((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:g,width:v})),[t,n,r,o,i,a,l,s,u,c,y,p,f,h,m,b,g,v]);return x.createElement(QS.Provider,{value:S},e)};let nE=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),rE=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 oE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iE=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){oE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function aE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lE=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){aE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"}))));function sE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uE=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})))),cE={FirstPage:lE,PreviousPage:iE,NextPage:gS,LastPage:uE,FirstPageRTL:uE,PreviousPageRTL:gS,NextPageRTL:iE,LastPageRTL:lE},dE=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=eE(),u=cE[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},pE=()=>{const{pageInfo:e,width:t}=eE(),n=0===e.page,{IconComponent:r,styledProps:o}=dE({type:nE.FirstPage,disabledCondition:n,pageNumber:0});return t<=rE.FirstPage?null:x.createElement(XS,o,x.createElement(r,{height:Pt}))},fE=(e,t,n=!1)=>{n&&e.key===Tt.TAB&&!e.shiftKey&&(hg(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},hE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=eE(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=dE({type:nE.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>fE(e,t,r):null;return o<=rE.LastPage?null:x.createElement(XS,oS({},l,{onKeyDown:s}),x.createElement(a,{height:Pt}))},mE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=eE(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=dE({type:nE.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>rE.FirstPage&&o>rE.LastPage)&&t.enabled?e=>fE(e,t,r):null;return x.createElement(XS,oS({},l,{onKeyDown:s}),x.createElement(a,{height:Pt}))},gE=()=>{const{pageInfo:e}=eE(),t=0===e.page,{IconComponent:n,styledProps:r}=dE({type:nE.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(XS,r,x.createElement(n,{height:Pt}))},bE=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=eE(),{page:o,rowsPerPage:i}=n;if(t<=rE.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return x.createElement(JS,{variant:"caption"},a)},vE=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=eE(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(JS,{variant:"caption",id:d},u,":"),x.createElement(KS,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},yE=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=eE();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>rE.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(vE,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},xE=1e3,SE="…",EE=({totalPages:e,page:t})=>{const n=Math.min(e,xE),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-xE):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:SE,disabled:!0},SE)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:SE,disabled:!0},SE)),x.createElement(x.Fragment,null,a)},CE=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=eE(),{page:o}=e;if(t<=rE.SelectPage)return null;const i=x.createElement(EE,{totalPages:n,page:o});return x.createElement(vE,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};var wE=O((e=>x.createElement(tE,e,x.createElement(yE,null),x.createElement(CE,null),x.createElement(bE,null),x.createElement(pE,null),x.createElement(gE,null),x.createElement(mE,null),x.createElement(hE,null))));const RE=e=>x.createElement(ZS,e,x.createElement(wE,e)),LE=_({}),AE=()=>S(LE),IE=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})=>{const u=L((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})),[n,r,t,o,i,a,l,s]);return Ns.jsx(LE.Provider,{value:u,children:e})},ME=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=AE(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:Qt;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:Ns.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:Ns.jsx("span",{style:{...cn,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},DE=_({}),PE=()=>S(DE),_E=({children:e,styleService:t})=>Ns.jsx(DE.Provider,{value:t,children:e}),OE=21,TE=20,kE=TE,qE=16+rn+1,NE=.75;let FE=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),zE=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const jE=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===FE.Image},$E="/qHyperCubeDef",GE=-1,HE="PSEUDO-DIM",BE=e=>void 0===e?en:e,WE=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,VE=e=>WE(e,Nt.PixelsDefault),YE=(e,t)=>WE(e,Nt.PercentageDefault)*t/100,UE=({layoutService:e,fitToContentWidth:t,tableWidth:n,lastRowHeader:r,isOnlyOneColumnInXAxis:o})=>{let i=t;const{indentModeColumnWidth:a}=e;if(a.type===Ft.Auto)i=t;else if(a.type===Ft.Pixels){var l;o&&a.pixels&&(r.columnWidthLocation===At.Measures||r.id===HE)?i=a.pixels:null!==(l=r.columnWidth)&&void 0!==l&&l.pixels&&(i=r.columnWidth.pixels)}else a.type===Ft.Percentage&&a.percentage&&(i=n*(a.percentage/100));return Math.min(n*NE,i)},KE=(e,t,n)=>{switch(null==t?void 0:t.type){case Ft.Pixels:return VE(t.pixels);case Ft.Percentage:return YE(t.percentage,e);case Ft.FitToContent:case Ft.Auto:default:return n}},XE=({headers:e,layoutService:t,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:r,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 h=n(p),m=!u&&f&&d<s-1?OE:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+qE+m+h+g)}),0),JE=(e,t,n,r)=>{const o=100*e/t,i=r*NE*(o/100),a=n*(o/100);return Math.min(a,i)},ZE=(e,t,n,r)=>r*(n/100)*(100*e/t/100),QE=(e,t)=>e.some((e=>e===t*NE)),eC=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a})=>{let l=[];const s=r*NE,u=t.data[t.data.length-1][0],c=Math.min(s,n.at(-1)),d=Math.min(s,XE({headers:u,layoutService:e,estimateWidthForDimensionValue:a})),p=Math.min(s,((e,t)=>e.reduce(((e,n)=>Math.max(e,qE+t(n.qFallbackTitle))),0))(e.visibleMeasureInfo,i));let f=0;const h=u.findIndex((e=>e.id===HE));if(e.hasPseudoDimOnLeft)if(0===h){const e=Math.max(c,d,p);l=[Math.max(24,e-c),c]}else{f=Math.min(s,XE({headers:u.slice(0,h),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:p}));const t=Math.max(c,d,f);l=[Math.max(24,t-c),c]}else l=[Math.max(24,d-c),c];const m=Math.min(s,l.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:g}=e;o&&o<=s&&(g.type=Ft.Pixels,g.pixels=o);return[Ft.Pixels,Ft.Percentage].includes(g.type)||QE(l,r)?((e,t,n,r)=>{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=QE(e,n);s===Ft.Auto&&d&&(o>i?o-=i:i-=o),s===Ft.Pixels&&u&&(o=JE(e[0],l,u,n),i=JE(e[1],l,u,n)),s===Ft.Percentage&&c&&(o=ZE(e[0],l,c,n),i=ZE(e[1],l,c,n));const p=i-r;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}})(l,g,r,c):{leftGridWidth:m,leftGridColumnWidths:l,leftGridFullWidth:m}};function tC({layoutService:e,tableWidth:t,headersData:n}){const r=t*NE,o=PE(),{measureText:i}=kb(o.header),{estimateWidth:a}=kb({...o.dimensionValues,fontWeight:BE(o.dimensionValues.fontWeight)}),{measureText:l}=kb({...o.dimensionValues,...o.measureLabels}),s=D(((o,s)=>{const{layout:{qHyperCube:{qNoOfLeftDims:u,topHeadersColumnWidth:c}},visibleMeasureInfo:d,isFullyExpanded:p,isIndentModeEnabled:f}=e,h=(e=0)=>d.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=l(r)+qE,a=Math.max(i,e);return Math.max(n,f?a:KE(t,o,a))}),0),m=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===HE)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?kE:0;return qE+i(t)+TE+r})(r);return Math.max(o,t)}),0);let g=0,b=n.data.at(-1);f&&n.size.x>1&&b&&b[0]&&(b=b[0]);const v=b.map(((i,l)=>{let d=qE;if((!f||f&&1===n.size.x)&&o&&void 0!==s&&s===i.colIdx)d=f?Math.min(r,o):o;else{let r;i.columnWidthLocation===At.Pivot?r=c:i.columnWidthLocation===At.Dimension&&({columnWidth:r}=i);let o=0;i.isLeftDimension?o=i.id===HE?h():Math.max(m(l),((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=t,l=e.getDimensionInfo(i);if(jE(l))return Nt.PixelsDefault;const s=!p&&o&&n<u-1?OE:0;return qE+a(r)+s})(i,l)):i.isLeftDimension||(o=m(l),i.columnWidthLocation===At.Measures&&(o=h(o))),d=f?UE({layoutService:e,lastRowHeader:i,fitToContentWidth:o,tableWidth:t,isOnlyOneColumnInXAxis:1===n.size.x}):KE(t,r,o)}return g+=d,d}));return f&&n.size.x>1?eC({layoutService:e,headersData:n,columnWidths:v,tableWidth:t,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a}):{leftGridWidth:Math.min(r,g),leftGridColumnWidths:v,leftGridFullWidth:g}}),[a,n,e,i,l,t,r]),[u,c]=A(s);Fb((()=>{c(s())}),[s]);const d=D(((e,t)=>{c(s(e,t))}),[s]);return{...u,overrideLeftGridWidth:d}}function nC({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=PE(),{estimateWidth:c,measureText:d}=kb(u.measureValues),{estimateWidth:p}=kb({...u.dimensionValues,fontWeight:BE(u.dimensionValues.fontWeight)}),f=t-o-rn,h=n.at(-1),m=h===GE,g=a.length-i>n.length?OE:0,b=L((()=>{const e=m?s:[h],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(Nt.PixelsMax,Math.max(Nt.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(n){case Ft.Pixels:i(t,VE(o));break;case Ft.Percentage:i(t,YE(a,f));break;case Ft.FitToContent:i(t,((e,t,n)=>n?Nt.PixelsDefault:qE+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,jE(e)));break;case Ft.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(Nt.AutoMinPivot,i)}))}return n}),[m,s,h,l.x,f,c,d,p,g]),v=L((()=>{if(m){return s.reduce(((e,t,n)=>e+b[n]),0)/s.length}return b[0]}),[m,b,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=D((t=>m&&void 0!==t?b[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:v-y),[m,b,e,v,y]),S=l.x*v;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let rC;const oC=new Uint8Array(16);function iC(){if(!rC&&(rC="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!rC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rC(oC)}const aC=[];for(let e=0;e<256;++e)aC.push((e+256).toString(16).slice(1));var lC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function sC(e,t,n){if(lC.randomUUID&&!t&&!e)return lC.randomUUID();const r=(e=e||{}).random||(e.rng||iC)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return aC[e[t+0]]+aC[e[t+1]]+aC[e[t+2]]+aC[e[t+3]]+"-"+aC[e[t+4]]+aC[e[t+5]]+"-"+aC[e[t+6]]+aC[e[t+7]]+"-"+aC[e[t+8]]+aC[e[t+9]]+"-"+aC[e[t+10]]+aC[e[t+11]]+aC[e[t+12]]+aC[e[t+13]]+aC[e[t+14]]+aC[e[t+15]]}(r)}const uC=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:sC()},cC=e=>e===GE?HE:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:uC()})(e),dC=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{var o,i;n&&(n.canBeResized=!0,n.isActivelySorted=r===(null!==(o=null===(i=e.layout.qHyperCube.activelySortedColumn)||void 0===i?void 0:i.colIdx)&&void 0!==o?o:0),n.colIdx=n.colIdx||r,n.dimensionInfoIndex===GE?n.columnWidthLocation=At.Measures:n.isLeftDimension?n.columnWidthLocation=At.Dimension:t.at(-1)===GE?n.columnWidthLocation=At.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=At.Pivot))},pC=(e,t,n)=>{var r;const o=cC(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===GE?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isActivelySorted:!1,isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:At.Measures}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isActivelySorted:!1,isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:At.Dimension}},fC=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===GE?o.slice(0,-1):o);const i=r.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,n,r)=>{const o=n===r.length-1;l[i-1][n]=pC(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=pC(e,t,o)})),l},hC=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(GE)?fC({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(fC({layoutService:e,lastRow:t,lastCol:n})),e.isIndentModeEnabled&&r[r.length-1].length>1&&(r[r.length-1]=[r.at(-1),...new Array(r[0]?r[0].length-1:0).fill(null)]),r.length&&(null===(o=r.at(-1))||void 0===o||o.forEach(((t,r)=>{if(Array.isArray(t)){const r=t;for(let t=0;t<r.length;t++)dC({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else dC({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),r})(e,t,n);return{data:i,size:{x:null!==(r=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0,y:i.length}}};function mC(e){return mC="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},mC(e)}function gC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function vC(e,t,n){return t&&bC(e.prototype,t),n&&bC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yC(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&&SC(e,t)}function xC(e){return xC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xC(e)}function SC(e,t){return SC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},SC(e,t)}function EC(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 CC(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 n,r=xC(e);if(t){var o=xC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return EC(this,n)}}function wC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.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 RC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RC(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 RC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var LC={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:AC(e),value:AC(t),useEqualSign:n}}(n,o,i))}})),t}};function AC(e){try{return decodeURIComponent(e)}catch(t){return e}}function IC(e){if(!(this instanceof IC))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:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));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 LC.fromSearchString(t.search)}}})}function MC(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}IC.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},IC.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=MC((t=e[r]).key),t.value?n+="=".concat(MC(t.value)):n+=t.useEqualSign?"=":"";return n};var DC,PC=function(){function e(t){gC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return vC(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}(),_C=function(){function e(){gC(this,e)}return vC(e,[{key:"decode",value:function(e){for(var t,n="",r=new PC(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),OC=function(e){return e>=0&&e<=1114111},TC=function(e){return e.match(/[\s]/)},kC=function(e){yC(n,_C);var t=CC(n);function n(){return gC(this,n),t.apply(this,arguments)}return vC(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,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,n=0;n<5&&(null!=(r=e.next())&&!TC(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return OC(a)?String.fromCharCode(a):"�"}}]),n}(),qC=function(){function e(t,n){gC(this,e),this._key=t,this._value=n}return vC(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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),NC=function(){function e(){gC(this,e)}return vC(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,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);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,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return qC.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return qC.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||qC.newInstanceIfNeeded(e,t,this._value)}}]),e}(),FC=function(){function e(){gC(this,e),this.clear()}return vC(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 NC);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),zC=function(){var e,t,n,r=[],o=[],i=new FC;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),jC=function(e){yC(n,_C);var t=CC(n);function n(){return gC(this,n),t.apply(this,arguments)}return vC(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,zC.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=zC.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)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,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&OC(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&OC(r)?String.fromCharCode(r):null}}]),n}(),$C=function(e){yC(n,_C);var t=CC(n);function n(){return gC(this,n),t.apply(this,arguments)}return vC(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),OC(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(),GC=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(DC=document.createElement("div"));var HC=Array.prototype.indexOf,BC=[",",".","_"," "],WC={default:[",",".","-","_"," "]},VC={width:["%"],height:["%"]},YC={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},UC={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":YC.image,"background-color":YC.color,"border-color":YC.color,"border-image":YC.image,color:YC.color,icon:YC.image,"list-style-image":YC.image,"outline-color":YC.color},KC={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function XC(e,t,n){var r;if(t){if(HC)return HC.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function JC(e){if(null==e)return"";var t,n=document.createTextNode(e);return DC.appendChild(n),t=DC.innerHTML,DC.removeChild(n),t}function ZC(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=ew(e).toLowerCase(),t=ew(t),XC(e,KC.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<KC.attr_val;i++)if(t.toLowerCase().match(KC.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=VC[e])||(r=WC.default),o="",!n){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]/)&&XC(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function QC(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=ew(e).toLowerCase(),t=ew(t),XC(e,KC.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<KC.css_val.length;r++)if(t.toLowerCase().indexOf(KC.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=UC[e])||(o=YC.default),i="",!n){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]/)&&XC(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function ew(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new jC,new $C,new kC];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var tw=[],nw=0;nw<255;nw++)tw[nw]=nw>=48&&nw<=57||nw>=65&&nw<=90||nw>=97&&nw<=122?null:nw.toString(16);var rw=function(e){return JC(e.unsafe)},ow=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=QC(t,n[t],!0),i+=QC(t,n[t],!0),o[t]=r[t]);return e.map?o:i},iw=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=ZC(i,t[i],!0),o+=ZC(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function aw(e,t){throw new Error(t)}var lw={canonicalize:ew,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===mC(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(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?rw(e):"css"===e.context?(null!=e.map&&"object"!==mC(e.map)&&aw(this,"Invalid parameter type"),ow(e)):"attr"===e.context?(null!=e.map&&"object"!==mC(e.map)&&aw(this,"Invalid parameter type"),iw(e)):void aw(this,"Invalid parameter type")},encodeForAttr:ZC,encodeForAttr2:function(e){return ZC("nonsens",e,!0)},encodeForCSS:QC,encodeForHref:function(e){ew(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new IC(e),n=IC.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+IC.encodeSearchParams(r)+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 n,r,o,i,a,l;for(t||(t=BC),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),XC(o,t)>=0||null==tw[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:JC,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=ew(t).toLowerCase():aw(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=wC(null!==(t=GC.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const sw=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},uw=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}},cw=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&lw.isSafeDataURL(t)?{type:FE.Image,url:t,text:e,imageSize:n,resolvedImagePosition:uw(r)}:{type:FE.Text,url:void 0,text:e},dw=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===zE.Attribute||null==n?void 0:n.urlLabel},pw=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:FE.Link,url:lw.encodeForHref(t),text:e}}catch(t){return{type:FE.Text,url:void 0,text:e}}},fw=(e,t,n,r)=>{var o,i;const a=(e=>{switch(null==e?void 0:e.type){case"url":return FE.Link;case"image":return FE.Image;default:return FE.Text}})(t);return a!==FE.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===FE.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===zE.Attribute){var o;const r=dw(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return pw({text:i,url:r})}if(r===zE.Dimension){var i;const r=dw(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return pw({text:r,url:e.qText})}return{type:FE.Text,url:void 0,text:e.qText}})(e,t,n):{type:FE.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=sw(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return cw({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return cw({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=sw(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return cw({text:i,url:t,imageSize:r,imagePosition:o})}return{type:FE.Text,url:void 0,text:e.qText}})(e,t,n)},hw=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.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?fg(s):null,c=l?fg(l):null,d=((e,t)=>e||!t?null:ug(t)?sm.WHITE:sm.TEXT)(c,u);return{color:null!=d?d:c,background:u}},mw=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:mw(e,t)),e),gw=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:tn-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,mw(l,e))},bw=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const h=!c&&e.qType===$t.NX_DIM_CELL_PSEUDO;let m="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;m=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else m=e.qText;const g={id:uC(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:gw(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===$t.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===$t.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===$t.NX_DIM_CELL_NULL,isPseudoDimension:h,expressionColor:hw(s,e),selectionCellType:u?jt.NX_CELL_LEFT:jt.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:h?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:fw({...e,qText:m},l===GE?void 0:l.representation,s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},vw=(e,t,n,r,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,h=-1){e[f]||(e[f]={}),s&&h++;const m=o.leftDimensionInfoIndexes.indexOf(GE);p.forEach(((p,g)=>{var b;u+=0===g?0:1;const v=n.qTop-r.page*r.rowsPerPage,y=Math.max(0,v+u-p.qUp),x=n.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&h<=m){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===$t.NX_DIM_CELL_NORMAL||p.qType===$t.NX_DIM_CELL_NULL||p.qType===$t.NX_DIM_CELL_TOTAL)h<m&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===$t.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},h=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let L=f;s&&(L=m>=1&&h>=m?h+1:h,0===h&&0===m&&0===p.qSubNodes.length&&(L=0));const A=s&&void 0===(null===(b=e[f][y])||void 0===b?void 0:b.ref.qText)||!e[f][y]?bw({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:h},env:l,pageInfo:r}):e[f][y];if(e[f][y]=A,p.qSubNodes.length){const e=s?0:f+1;t(c||A,A,p.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},yw=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r[n+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},xw=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},Sw=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=vw(e.grid,l,s,n,r,o,i,a);yw(u,n.rowsOnCurrentPage);const c=xw(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},Ew=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===$t.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:uC(),ref:t,isNull:u}}))})),o},Cw=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?Ew({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},ww=(e,t,n,r,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var h;u+=0===f?0:1;const m=n.qLeft+u-d.qUp,g=null!==(h=e[p][m])&&void 0!==h?h:bw({node:d,parent:c,root:a,x:m,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,env:l,pageInfo:s});e[p][m]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},Rw=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=ww(e.grid,s,u,n,r,o,i,a,l);yw(c,n.size.x);const d=xw(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},Lw=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),Aw=(e,t,n,r,o)=>{const{env:i}=AE(),[a,l]=A(null),s=((e,t,n)=>L((()=>({left:e.map(Lw),top:t.map(Lw),measures:n.map(Lw)})),[n,e,t]))(r,o,t.visibleMeasureInfo),u=L((()=>hC(t,o,r)),[t,o,r]),c=D((()=>e.slice(1).reduce(((e,t)=>Cw({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return Ew({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),d=D((()=>e.slice(1).reduce(((e,r)=>Rw({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n})),((e,t,n,r,o,i,a)=>{const{qArea:l,qTop:s}=e,u=ww([],s,l,t,n,r,o,i,a);yw(u,t.size.x);const c=xw(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(e[0],t,o,s.top,u.size.y,i,n))),[e,t,o,s.top,u.size.y,i,n]),p=D((()=>e.slice(1).reduce(((e,o)=>Sw({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})),((e,t,n,r,o,i)=>{const{qArea:a,qLeft:l}=e,s=vw([],l,a,n,t,r,o,i);yw(s,n.rowsOnCurrentPage);const u=xw(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(e[0],t,n,r,s.left,i))),[e,t,n,r,s,i]),[f,h]=A((()=>c())),[m,g]=A((()=>d())),[b,v]=A((()=>p()));Fb((()=>{h(c())}),[c]),Fb((()=>{g(d())}),[d]),Fb((()=>{v(p())}),[p]),Fb((()=>{a&&a.forEach((e=>{h((t=>Cw({prevData:t,dataPage:e,pageInfo:n}))),g((r=>Rw({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n}))),v((o=>Sw({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=D((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:m,leftDimensionData:b,attrExprInfoIndexes:s,nextPageHandler:y}},Iw=Math.sqrt(1e4),Mw=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/Nt.PixelsMin)}),Dw=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/Iw),r=Math.ceil(e.qHeight/Iw);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*Iw,qTop:e.qTop+n*Iw,qWidth:Math.min(Iw,e.qWidth-o*Iw),qHeight:Math.min(Iw,e.qHeight-n*Iw)});return t};function Pw({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=I(e);return t.current=e,t})(n.page),i=e,a=D((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,$E,e,t,!1))}),[i]),l=D((async(e,t)=>{await(null==i?void 0:i.collapseTop($E,e,t,!1))}),[i]),s=D((async(e,t)=>{await(null==i?void 0:i.expandLeft($E,e,t,!1))}),[i]),u=D((async(e,t)=>{await(null==i?void 0:i.expandTop($E,e,t,!1))}),[i]),c=D((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData($E,e.reduce(((e,t)=>[...e,...Dw(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=D(((t,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case At.Dimension:c=[{qPath:`${$E}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case At.Measures:if(o)c=l.map(((e,t)=>({qPath:`${$E}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${$E}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case At.Pivot:c=[{qPath:`${$E}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:n,oldValue:r}=e;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...t})}}));null==e||e.applyPatches(d,!0)}),[e,r]),p=D((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${$E}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return L((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const _w=(e,t)=>e>t?Dt.Forward:e<t?Dt.Backward:Dt.None,Ow=(e,t,n)=>(r,o)=>{if(r===$t.NX_DIM_CELL_PSEUDO)return GE;const i=t[n+o];return e[i]},Tw=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},kw=({width:e,height:t,children:n,isLeftGrid:r})=>Ns.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+rn},children:n}),qw=e=>`scrollable-container--${e}`,Nw=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=AE();return Ns.jsx("div",{ref:t,"data-key":qw(u),style:{width:n,height:r,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var Fw=x.forwardRef(Nw);const zw=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>Ns.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function jw(){return jw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jw.apply(this,arguments)}function $w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gw(e,t){return Gw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gw(e,t)}function Hw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gw(e,t)}var Bw=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ww(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||Bw(r)&&Bw(o)))return!1;var r,o;return!0}function Vw(e,t){var n;void 0===t&&(t=Ww);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function Yw(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Uw="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Kw(e){cancelAnimationFrame(e.id)}function Xw(e,t){var n=Uw();var r={id:requestAnimationFrame((function o(){Uw()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var Jw=-1;function Zw(e){if(void 0===e&&(e=!1),-1===Jw||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Jw=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Jw}var Qw=null;function eR(e){if(void 0===e&&(e=!1),null===Qw||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Qw="positive-descending":(t.scrollLeft=1,Qw=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Qw}return Qw}var tR=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function nR(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,$w(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:$w(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Vw((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=Vw((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=Vw((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(eR()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&Kw(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Xw(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Hw(t,e),t.getDerivedStateFromProps=function(e,t){return rR(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=Zw();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(eR()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Kw(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?tR:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],w=S[1],R=this._getVerticalRangeToRender(),L=R[0],A=R[1],I=[];if(r>0&&g)for(var M=L;M<=A;M++)for(var D=C;D<=w;D++)I.push(E(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,D)}));var P=a(this.props,this._instanceProps),_=l(this.props,this._instanceProps);return E(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:jw({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},E(u||c||"div",{children:I,ref:s,style:{height:P,pointerEvents:x?"none":void 0,width:_}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(k),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var rR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},oR=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},iR=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},aR=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},lR=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?sR(e,t,n,i,0,r):uR(e,t,n,Math.max(0,i),r)},sR=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=aR(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},uR=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&aR(e,t,r,n).offset<o;)r+=a,a*=2;return sR(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},cR=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=aR(e,t,n,i),u="column"===e?iR(t,i):oR(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},dR=nR({getColumnOffset:function(e,t,n){return aR("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return lR("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=aR("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=aR("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:oR,getEstimatedTotalWidth:iR,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return cR("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return cR("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return aR("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return lR("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=aR("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=aR("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),pR=function(e,t){return e};function fR(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,$w(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:$w(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Vw((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=Vw((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Vw((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(eR()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&Kw(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Xw(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Hw(t,e),t.getDerivedStateFromProps=function(e,t){return hR(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?Zw():0:s.scrollHeight>s.clientHeight?Zw():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(eR()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Kw(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?pR:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],R=C[1],L=[];if(u>0)for(var A=w;A<=R;A++)L.push(E(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=r(this.props,this._instanceProps);return E(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:jw({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},E(l||s||"div",{children:L,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(k),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var hR=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},mR=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},gR=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=mR(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},bR=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&mR(e,n,t).offset<r;)n+=i,i*=2;return gR(e,t,Math.min(n,o-1),Math.floor(n/2),r)},vR=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},yR=fR({getItemOffset:function(e,t,n){return mR(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:vR,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=mR(e,t,o),p=vR(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?gR(e,t,o,0,n):bR(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=mR(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=mR(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function xR(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var SR=["style"],ER=["style"];function CR(e,t){var n=e.style,r=Yw(e,SR),o=t.style,i=Yw(t,ER);return!xR(n,o)&&!xR(r,i)}const wR=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),RR=10,LR=(e,t)=>e.current===Dt.Backward?t:0,AR=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e[o];if(void 0===n||void 0===n[t])return!0}return!1},IR=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,MR=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(AR(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&IR(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},DR=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Dt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return MR({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},PR=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=LR(n,RR),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+RR,l-u),pageTop:o,qHeight:a}})(r,o,n),u=MR({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...DR({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},_R=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},OR=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,TR=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(_R(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&OR(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},kR=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=LR(n,RR),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+RR,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=TR({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===Dt.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=TR({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},qR=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Dt.None&&(p=kR({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Dt.None&&(f=PR({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Dt.None&&a.current===Dt.None&&(p=TR({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(h)},NR=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(qR,100),FR=it(qR,75),zR=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=PE();return Ns.jsx("div",{style:{...e,...un,...fn(n,r,l,o),...mn({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},jR=({children:e,verticalAlign:t,width:n,right:r})=>Ns.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,alignSelf:t},children:e}),$R=e=>{const{type:t,imageSize:n}=e;return t!==FE.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},GR=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function HR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const BR=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HR(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.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"}))));function WR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const VR=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){WR(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.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"})))),YR=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(kt)};function UR(e,t){const n=e.isActive(),[r,o]=A(new Map),[i,a]=A(null);P((()=>{const n=()=>{a(null),o(new Map)},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}}),[e,t]);const l=D((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===jt.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=D((t=>async n=>{if(YR(n))return;if(e.isActive()||await e.begin([$E]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,n)=>{const r=new Map(t);return r.has(e.ref.qElemNo)?(r.delete(e.ref.qElemNo),{nextSelectedPivotCells:r,nextSelectedField:0===r.size?null:n}):(r.set(e.ref.qElemNo,e),{nextSelectedPivotCells:r,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===jt.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[$E,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,r,i]),u=D((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return L((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const KR=_({select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),XR=()=>S(KR),JR=({children:e,selections:t,updatePageInfo:n})=>{const r=UR(t,n);return Ns.jsx(KR.Provider,{value:r,children:e})};var ZR;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(ZR||(ZR={}));const QR={brighter:.5,darker:.3,opacity:.03},eL=(e,{cell:t,styleService:n})=>{if(e===ZR.Background||e===ZR.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},tL=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=eL(ZR.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?eL(ZR.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${sg(i=o,QR)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},nL=({cell:e,styleService:t,isCellSelected:n})=>n?"white":eL(ZR.Color,{cell:e,styleService:t}),rL=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=eL(ZR.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?en:o},oL=({cell:e,styleService:t})=>eL(ZR.FontStyle,{cell:e,styleService:t}),iL=({cell:e,styleService:t})=>eL(ZR.TextDecoration,{cell:e,styleService:t}),aL=e=>e?"pointer":"default",lL=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},sL=(e,t)=>{if(!e.isLeftColumn||e.representation.type===FE.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},uL=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=PE(),{interactions:i}=AE(),{isActive:a}=XR();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=nL({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=e.ref.qCanExpand?VR:BR;let d;return d=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,Ns.jsx(c,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...sL(e,o)},onClick:l?void 0:lL({cell:e,expandOrCollapse:d})})},cL=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},dL=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},pL=({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o})=>{const i=`calc(100% - ${n?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==r?a*Math.max(r,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}}},fL=(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"}},hL=e=>{if("alwaysFit"===e)return"contain"},mL=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=AE(),t=I(null),{promise:n,resolve:r}=L((()=>GR()),[]);return P((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(o=t.current)&&void 0!==o&&o.complete&&r()),()=>r()}),[t,e,n,r]),{onLoad:D((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return Ns.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==d?void 0:d.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...pL({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:Ns.jsx("img",{src:s,alt:u,style:{width:dL(c),height:cL(c),objectFit:hL(c),objectPosition:fL(c,d),...f},onLoad:l,ref:a})})},gL=(e,t,n)=>{if(!n.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN")||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}},bL={display:"flex",flexDirection:"row",alignItems:"center"},vL={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},yL=(e,t,n,r)=>t?{...vL,...e.nullValues}:n?{...bL,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...bL,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},xL=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...cn,...!n&&dn(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?en:s,fontStyle:u,textDecoration:c}},SL=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==FE.Image?gL(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},EL=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():r.text,s=xL(n,o,i,a,e.isNull);return r.type!==FE.Image||e.isNull?Ns.jsx("span",{style:{padding:4,...s},children:l}):Ns.jsx(mL,{representation:r,styleService:n,textStyle:s,isLeftColumn:!0})},CL=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},wL="flex-start",RL=(e,t)=>{return e.isNull?wL:t.type===FE.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:wL;var n},LL=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=PE(),{env:a}=AE(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:b}=r,v=null===(o=s[t])||void 0===o?void 0:o[e],y=t===h.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!v)return Ns.jsx(zR,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?CL(g,t):CL(m,e),E=u.visibleMeasureInfo[S],C=fw(v.ref,E.representation,b[S],a),w=!v.isNull&&f(e,t),R=v.isNull?u.getNullValueText():C.text,L=!v.isNull||!Number.isNaN(+R),A=hw(b[S],v.ref),I={...yL(i,v.isNull,w,A.background),...fn(y,x,i.grid.border,c),...mn({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...un,padding:"0px 4px",display:"flex",justifyContent:SL(v,E,C,L,a.flags)};return Ns.jsx("div",{className:Ot,title:R,style:{...I,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Ns.jsx(jR,{width:$R(C),verticalAlign:RL(v,C),children:Ns.jsx(EL,{cell:v,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:A.color})})})};var AL=x.memo(LL,CR);const IL=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},ML=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},DL={...sn,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},PL=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:h,pageInfo:m,verticalScrollDirection:g,horizontalScrollDirection:b})=>{const{grid:{divider:v},contentCellHeight:y}=PE(),x={...DL,borderColor:v,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>D((r=>{var o;const i=n?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[r];return wR(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>D((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return wR(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,n,r)=>D(((o,i)=>{var a,l;return!!(null!==(a=t.grid.at(r-1))&&void 0!==a&&null!==(a=a[o])&&void 0!==a&&a.isTotal||null!==(l=e.grid.at(n-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal)}),[t,e,n,r]))(s,u,d.length,c.length),w=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>{const{downloadService:u}=AE();return D((async({overscanColumnStartIndex:c,overscanColumnStopIndex:d,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{e.gridColumnStartIndex=c,e.gridRowStartIndex=p,e.gridWidth=d-c+1,e.gridHeight=f-p+1;const h=e.gridWidth+i+(s.current===Dt.None?0:RR),m=e.gridHeight+a+(l.current===Dt.None?0:RR);let g=NR;m*h>1500&&(g=FR),g(t,r,n,o,e,l,s,u)}),[e,r,t,n,l,s,o,i,a,u])})({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:b});return Fb((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),T((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:Ns.jsx(dR,{ref:t,style:x,columnCount:a.size.x,columnWidth:h,height:n,rowCount:m.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:m,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:r(),estimatedColumnWidth:h(),itemKey:ML,children:AL})};var _L=O(PL);function OL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TL=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){OL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),x.createElement("use",{fillRule:"evenodd"})))),kL=e=>{const[t,n]=A(!1);return Fb((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},qL=({interactions:e,dataModel:t})=>{const[n,r]=A(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=kL([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!YR(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function NL(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===on.Transparent?sm.WHITE:l,u=null===(o=Am(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=Am(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}const FL=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a})=>{const{interactions:l}=AE(),{isActive:s}=XR(),u=PE(),[,c]=A({});if(!(e.canBeResized&&!!l.active&&!s))return null;const d=NL(u,e);return Ns.jsx(tS,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:d,updateWidthCallback:t=>{c({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{null==n||n.applyColumnWidth(t,e),a&&(null==n||n.applyIndentModeColumnWidth(t))},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})},zL=e=>e.scrollTop;function jL(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function $L(e){return yl("MuiPaper",e)}xl("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 GL=["className","component","elevation","square","variant"],HL=Kx("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return On({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&&On({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ry("#fff",Zx(t.elevation))}, ${Ry("#fff",Zx(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var BL=y.forwardRef((function(e,t){const n=vx({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=jn(n,GL),u=On({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return ml({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},$L,o)})(u);return Ns.jsx(HL,On({as:o,ownerState:u,className:Hs(c.root,r),ref:t},s))}));function WL(e){return"string"==typeof e}function VL(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function YL(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const UL=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function KL(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=jn(e,UL),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Hs(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=On({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=On({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=VL(On({},o,r)),l=YL(r),s=YL(o),u=t(a),c=Hs(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=On({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=On({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(On({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||WL(e)?t:On({},t,{ownerState:On({},t.ownerState,n)})}(n,On({},s,{ref:Qa(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var XL=xl("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const JL=["center","classes","className"];let ZL,QL,eA,tA,nA=e=>e;const rA=pa(ZL||(ZL=nA`
110
110
  0% {
111
111
  transform: scale(0);
112
112
  opacity: 0.1;
@@ -116,7 +116,7 @@ function bf(e,t){let r;return r=t?es(e).withConfig({displayName:t.label,shouldFo
116
116
  transform: scale(1);
117
117
  opacity: 0.3;
118
118
  }
119
- `)),WL=ns(jL||(jL=HL`
119
+ `)),oA=pa(QL||(QL=nA`
120
120
  0% {
121
121
  opacity: 1;
122
122
  }
@@ -124,7 +124,7 @@ function bf(e,t){let r;return r=t?es(e).withConfig({displayName:t.label,shouldFo
124
124
  100% {
125
125
  opacity: 0;
126
126
  }
127
- `)),VL=ns($L||($L=HL`
127
+ `)),iA=pa(eA||(eA=nA`
128
128
  0% {
129
129
  transform: scale(1);
130
130
  }
@@ -136,7 +136,7 @@ function bf(e,t){let r;return r=t?es(e).withConfig({displayName:t.label,shouldFo
136
136
  100% {
137
137
  transform: scale(1);
138
138
  }
139
- `)),YL=Rp("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),UL=Rp((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=ku(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=ku(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),fi.jsx("span",{className:p,style:f,children:fi.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(GL||(GL=HL`
139
+ `)),aA=Kx("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),lA=Kx((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=Hs(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Hs(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Ns.jsx("span",{className:p,style:f,children:Ns.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(tA||(tA=nA`
140
140
  opacity: 0;
141
141
  position: absolute;
142
142
 
@@ -179,4 +179,4 @@ function bf(e,t){let r;return r=t?es(e).withConfig({displayName:t.label,shouldFo
179
179
  animation-iteration-count: infinite;
180
180
  animation-delay: 200ms;
181
181
  }
182
- `),NL.rippleVisible,BL,550,(({theme:e})=>e.transitions.easing.easeInOut),NL.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),NL.child,NL.childLeaving,WL,550,(({theme:e})=>e.transitions.easing.easeInOut),NL.childPulsate,VL,(({theme:e})=>e.transitions.easing.easeInOut));var KL=y.forwardRef((function(e,t){const r=Ud({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=bi(r,FL),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=Lc(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,fi.jsx(UL,{classes:{ripple:ku(o.ripple,NL.ripple),rippleVisible:ku(o.rippleVisible,NL.rippleVisible),ripplePulsate:ku(o.ripplePulsate,NL.ripplePulsate),child:ku(o.child,NL.child),childLeaving:ku(o.childLeaving,NL.childLeaving),childPulsate:ku(o.childPulsate,NL.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m,p]),v=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),fi.jsx(YL,vi({className:ku(NL.root,o.root,i),ref:h},a,{children:fi.jsx(_g,{component:null,exit:!0,children:l})}))}));function XL(e){return Nu("MuiButtonBase",e)}var JL=Fu("MuiButtonBase",["root","disabled","focusVisible"]);const ZL=["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"],QL=Rp("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"},[`&.${JL.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),eA=y.forwardRef((function(e,t){const r=Ud({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=r,_=bi(r,ZL),O=y.useRef(null),k=y.useRef(null),T=Ec(k,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Tc(),[j,$]=y.useState(!1);s&&j&&$(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,H]=y.useState(!1);y.useEffect((()=>{H(!0)}),[]);const B=G&&!u&&!s;function W(e,t,r=c){return Sc((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}y.useEffect((()=>{j&&d&&!u&&G&&k.current.pulsate()}),[u,d,j,G]);const V=W("start",E),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Sc((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),b&&b(e)),v&&v(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=Sc((e=>{d&&!ne.current&&j&&k.current&&" "===e.key&&(ne.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=Sc((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Ec(t,z,O),ue=vi({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Nc({root:["root",t&&"disabled",r&&"focusVisible"]},XL,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return fi.jsxs(QL,vi({as:ae,className:ku(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:P},le,_,{children:[i,B?fi.jsx(KL,vi({ref:T,center:o},M)):null]}))}));var tA=eA;const rA=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function nA(e){const t=[],r=[];return Array.from(e.querySelectorAll(rA)).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 oA(){return!0}function iA(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=nA,isEnabled:a=oA,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=Ec(t.ref,h),g=y.useRef(null);y.useEffect((()=>{l&&h.current&&(f.current=!r)}),[r,l]),y.useEffect((()=>{if(!l||!h.current)return;const e=bc(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!h.current)return;const e=bc(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return fi.jsxs(y.Fragment,{children:[fi.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),fi.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const aA=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=Ec(y.isValidElement(r)?r.ref:null,t);if(dc((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),dc((()=>{if(i&&!o)return xc(t,i),()=>{xc(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:l};return y.cloneElement(r,e)}return fi.jsx(y.Fragment,{children:r})}return fi.jsx(y.Fragment,{children:i?q.createPortal(r,i):i})}));function lA(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sA(e){return parseInt(yc(e).getComputedStyle(e).paddingRight,10)||0}function uA(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&&lA(e,o)}))}function cA(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function dA(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=bc(e);return t.body===e?yc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=qc(bc(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${sA(n)+e}px`;const t=bc(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${sA(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=bc(n).body;else{const t=n.parentElement,r=yc(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 pA=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&&lA(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);uA(t,e.mount,e.modalRef,n,!0);const o=cA(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=cA(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=dA(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=cA(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&&lA(e.modalRef,t),uA(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&&lA(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function fA(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=pA,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=Ec(h,d),[g,v]=y.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=Sc((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||bc(f.current).body;o.add(S(),e),h.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=Sc((e=>{f.current=e,e&&(c&&w()?E():h.current&&lA(h.current,x))})),L=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{L()}),[L]),y.useEffect((()=>{c?C():b&&i||L()}),[c,L,b,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=OL(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=vi({},r,t);return vi({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>vi({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:gc((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:gc((()=>{v(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:b}}const hA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],mA={entering:{opacity:1},entered:{opacity:1}},gA=y.forwardRef((function(e,t){const r=Yd(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:v=Lg}=e,b=bi(e,hA),x=y.useRef(null),S=Ec(x,a.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{LL(e);const n=AL({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=AL({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),I=E(f);return fi.jsx(v,vi({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:g},b,{children:(e,t)=>y.cloneElement(a,vi({style:vi({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},mA[e],m,a.props.style),ref:S},t))}))}));var vA=gA;function bA(e){return Nu("MuiBackdrop",e)}Fu("MuiBackdrop",["root","invisible"]);const yA=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],xA=Rp("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>vi({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"}))),SA=y.forwardRef((function(e,t){var r,n,o;const i=Ud({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=vA,transitionDuration:g}=i,v=bi(i,yA),b=vi({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Nc({root:["root",r&&"invisible"]},bA,t)})(b),x=null!=(r=f.root)?r:c.root;return fi.jsx(m,vi({in:p,timeout:g},v,{children:fi.jsx(xA,vi({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:s,className:ku(y.root,l,null==x?void 0:x.className),ownerState:vi({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var EA=SA;var CA=Fu("MuiBox",["root"]);const wA=Wd(),RA=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=ds("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(yu);return y.forwardRef((function(e,a){const l=Lu(r),s=Mu(e),{className:u,component:c="div"}=s,d=bi(s,Tu);return fi.jsx(i,vi({as:c,ref:a,className:ku(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:gi,defaultTheme:wA,defaultClassName:CA.root,generateClassName:_u.generate});var LA=RA;function AA(e){return Nu("MuiModal",e)}Fu("MuiModal",["root","hidden","backdrop"]);const IA=["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"],MA=Rp("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})=>vi({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),DA=Rp(EA,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),PA=y.forwardRef((function(e,t){var r,n,o,i,a,l;const s=Ud({name:"MuiModal",props:e}),{BackdropComponent:u=DA,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=s,P=bi(s,IA),_=vi({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:k,getTransitionProps:T,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=fA(vi({},_,{rootRef:t})),j=vi({},_,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Nc({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},AA,n)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=T();G.onEnter=e,G.onExited=t}const H=null!=(r=null!=(n=null==D?void 0:D.root)?n:g.Root)?r:MA,B=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:v.root,V=null!=(l=null==M?void 0:M.backdrop)?l:v.backdrop,Y=qL({elementType:H,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:ku(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=qL({elementType:B,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(vi({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ku(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?fi.jsx(aA,{ref:q,container:h,disablePortal:E,children:fi.jsxs(H,vi({},Y,{children:[!R&&u?fi.jsx(B,vi({},U)):null,fi.jsx(iA,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,G)})]}))}):null}));var _A=PA;var OA=Fu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const kA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function TA(e){return`scale(${e}, ${e**2})`}const qA={entering:{opacity:1,transform:TA(1)},entered:{opacity:1,transform:"none"}},NA="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),FA=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Lg}=e,g=bi(e,kA),v=Lc(),b=y.useRef(),x=Yd(),S=y.useRef(null),E=Ec(S,o.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{LL(e);const{duration:r,delay:n,easing:o}=AL({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:NA?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:r,easing:n}=AL({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:NA?o:.666*o,delay:NA?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=TA(.75),c&&c(e)})),M=C(d);return fi.jsx(m,vi({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,vi({style:vi({opacity:0,transform:TA(.75),visibility:"exited"!==e||a?void 0:"hidden"},qA[e],f,o.props.style),ref:E},t))}))}));FA.muiSupportAuto=!0;var zA=FA;var jA=y.createContext({});function $A(e){return Nu("MuiList",e)}Fu("MuiList",["root","padding","dense","subheader"]);const GA=["children","className","component","dense","disablePadding","subheader"],HA=Rp("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})=>vi({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var BA=y.forwardRef((function(e,t){const r=Ud({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=bi(r,GA),c=y.useMemo((()=>({dense:a})),[a]),d=vi({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Nc({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},$A,t)})(d);return fi.jsx(jA.Provider,{value:c,children:fi.jsxs(HA,vi({as:i,className:ku(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));var WA=Fu("MuiListItemIcon",["root","alignItemsFlexStart"]);var VA=Fu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const YA=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function UA(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function KA(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function XA(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 JA(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")&&XA(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var ZA=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=bi(e,YA),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});dc((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${qc(bc(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=Ec(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return fi.jsx(BA,vi({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=bc(t).activeElement;if("ArrowDown"===r)e.preventDefault(),JA(t,n,s,l,UA);else if("ArrowUp"===r)e.preventDefault(),JA(t,n,s,l,KA);else if("Home"===r)e.preventDefault(),JA(t,null,s,l,UA);else if("End"===r)e.preventDefault(),JA(t,null,s,l,KA);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&XA(n,o);o.previousKeyMatched&&(s||JA(t,n,!1,l,UA,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function QA(e){return Nu("MuiPopover",e)}Fu("MuiPopover",["root","paper"]);const eI=["onEntering"],tI=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],rI=["slotProps"];function nI(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function oI(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function iI(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function aI(e){return"function"==typeof e?e():e}const lI=Rp(_A,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sI=Rp(PL,{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 uI=y.forwardRef((function(e,t){var r,n,o;const i=Ud({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=zA,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=bi(i.TransitionProps,eI),A=bi(i,tI),I=null!=(r=null==x?void 0:x.paper)?r:v,M=y.useRef(),D=Ec(M,I.ref),P=vi({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return Nc({root:["root"],paper:["paper"]},QA,t)})(P),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=aI(l),t=(e&&1===e.nodeType?e:bc(M.current).body).getBoundingClientRect();return{top:t.top+nI(t,s.vertical),left:t.left+oI(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=y.useCallback((e=>({vertical:nI(e,S.vertical),horizontal:oI(e,S.horizontal)})),[S.horizontal,S.vertical]),T=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=k(t);if("none"===c)return{top:null,left:null,transformOrigin:iI(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=yc(aI(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:iI(r)}}),[l,c,O,k,m]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=M.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=vc((()=>{F()})),t=yc(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?bc(aI(l)).body:void 0),$=null!=(n=null==b?void 0:b.root)?n:lI,G=null!=(o=null==b?void 0:b.paper)?o:sI,H=qL({elementType:G,externalSlotProps:vi({},I,{style:q?I.style:vi({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:ku(_.paper,null==I?void 0:I.className)}),B=qL({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:ku(_.root,p)}),{slotProps:W}=B,V=bi(B,rI);return fi.jsx($,vi({},V,!_L($)&&{slotProps:W,disableScrollLock:R},{children:fi.jsx(E,vi({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:fi.jsx(G,vi({},H,{children:d}))}))}))}));function cI(e){return Nu("MuiMenu",e)}Fu("MuiMenu",["root","paper","list"]);const dI=["onEntering"],pI=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],fI={vertical:"top",horizontal:"right"},hI={vertical:"top",horizontal:"left"},mI=Rp(uI,{shouldForwardProp:e=>wp(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gI=Rp(sI,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),vI=Rp(ZA,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var bI=y.forwardRef((function(e,t){var r,n;const o=Ud({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,x=bi(o.TransitionProps,dI),S=bi(o,pI),E=(()=>{const e=y.useContext(Hc);return null!=e&&e})(),C=vi({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),w=(e=>{const{classes:t}=e;return Nc({root:["root"],paper:["paper"],list:["list"]},cI,t)})(C),R=i&&!s&&d,L=y.useRef(null);let A=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(r=v.paper)?r:gI,M=null!=(n=b.paper)?n:p,D=qL({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[w.root,l]}),P=qL({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return fi.jsx(mI,vi({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?fI:hI,slots:{paper:I,root:v.root},slotProps:{root:D,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:vi({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},S,{classes:f,children:fi.jsx(vI,vi({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:g},u,{className:ku(w.list,u.className),children:a}))}))}));function yI(e){return Nu("MuiMenuItem",e)}var xI=Fu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const SI=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],EI=Rp(tA,{shouldForwardProp:e=>wp(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})=>vi({},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"}},[`&.${xI.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:td(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xI.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:td(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xI.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:td(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})`:td(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xI.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xI.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${OA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${OA.inset}`]:{marginLeft:52},[`& .${VA.root}`]:{marginTop:0,marginBottom:0},[`& .${VA.inset}`]:{paddingLeft:36},[`& .${WA.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&vi({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${WA.root} svg`]:{fontSize:"1.25rem"}}))));var CI=y.forwardRef((function(e,t){const r=Ud({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=bi(r,SI),f=y.useContext(jA),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=y.useRef(null);dc((()=>{n&&m.current&&m.current.focus()}),[n]);const g=vi({},r,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return vi({},a,Nc({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},yI,a))})(r),b=Ec(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),fi.jsx(jA.Provider,{value:h,children:fi.jsx(EI,vi({ref:b,role:u,tabIndex:x,component:o,focusVisibleClassName:ku(v.focusVisible,s),className:ku(v.root,d)},p,{ownerState:g,classes:v}))})}));const wI=Rp(LA,{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}}))),RI=Rp("div")({position:"absolute",left:0,bottom:0}),LI=Rp("div")({...or,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),AI=Rp("div")((()=>({...or}))),II=Rp("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}))),MI=Rp(bI)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),DI=Rp(CI,{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}}}))),PI=Rp("span")({textOverflow:"ellipsis",overflow:"hidden"}),_I=Rp("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:LE,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),OI={[qS.SORTING]:!0,[qS.SELECTIONS]:!0,[qS.SEARCHING]:!0},kI=({dataModel:e,cell:t,style:r,isFirstColumn:n,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,iconsVisibilityStatus:u,columnWidth:c,overrideLeftGridWidth:d,layoutService:p})=>{var f;const h=I(null),m=CE(),{app:g,model:v,interactions:b,embed:y,env:{flags:x}}=yE(),{fontSize:S,fontFamily:E,fontStyle:C,fontWeight:w,textDecoration:R,color:L,background:A,hoverBackground:M,activeBackground:D}=m.header,P=I(null),{shouldShowLockIcon:_,shouldShowMenuIcon:O}=u,{open:k,setOpen:T,handleOpenMenu:q,setIsAdjustingWidth:N}=CL({interactions:b,dataModel:e}),F={sortFromMenu:async(e,r)=>{e.stopPropagation(),await l(t,r)},changeActivelySortedHeader:s},z={embed:y,listboxRef:h},j={model:v,app:g},{labelTextAlign:$}=null!==(f=p.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},G=nL($,"flex-start",x);return fi.jsxs(wI,{className:Ct,title:t.label,interactions:b,background:k?D:A,hoverBackground:M,shouldShowMenuIcon:O,isDimension:t.isDim,style:{...r,...ar,...dr(t,i,n,o,m.grid.border),color:L},"data-testid":"title-cell",onClick:q,children:[fi.jsxs(LI,{children:[_&&fi.jsx(AI,{children:fi.jsx(SL,{height:12})}),fi.jsx(II,{fontFamily:E,fontSize:S,fontStyle:C,fontWeight:w,textDecoration:R,justifyContent:G,children:fi.jsx("span",{style:lr,children:t.label})})]}),t.isDim&&fi.jsxs(fi.Fragment,{children:[fi.jsx(FS,{headerData:t,translator:a,anchorRef:P,open:k,setOpen:T,interactions:b,menuAvailabilityFlags:OI,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:j,shouldShowMenuIcon:O}),fi.jsx(RI,{ref:h}),fi.jsx(RI,{ref:P})]}),fi.jsx(RL,{cellInfo:{...t,isLeftColumn:!0},columnWidth:c,dataModel:e,isLastColumn:o,overrideLeftGridWidth:d,setIsAdjustingWidth:N})]})},TI=({rowSpan:e,columnSpan:t})=>{const r=CE();return e>0&&t>0?fi.jsx("div",{style:{...ir,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 qI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NI=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"}))));function FI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zI=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){FI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),x.createElement("use",{fillRule:"evenodd"})))),jI=({dataModel:e,tableWidth:t,leftGridWidth:r,overrideLeftGridWidth:n})=>{const o=CE(),{interactions:i}=yE(),{isActive:a}=FR(),{setIsAdjustingWidth:l}=EL([e]);if(!(!!i.active&&!a))return null;const s=wL(o,{isLeftColumn:!0});return fi.jsx(Ux,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:r,updateWidthCallback:e=>{n(Math.min(e,t*ME))},confirmWidthCallback:o=>{var i;const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:r,t*ME);n(a),e.applyIndentModeColumnWidth({type:It.Pixels,pixels:a})},setIsAdjustingWidth:l})};function $I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const GI=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$I(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"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"})))),HI=({cell:e,translator:t,dataModel:r,changeSortOrder:n,changeActivelySortedHeader:o})=>{const i=I(null),a=I(null),{app:l,model:s,interactions:u,embed:c}=yE(),{open:d,setOpen:p,handleOpenMenu:f}=CL({interactions:u,dataModel:r});return fi.jsxs(DI,{component:"div",onClick:f,isActive:d,children:[fi.jsx(PI,{children:e.label}),fi.jsxs(_I,{className:"indent-mode-dropdown-more",visible:d,children:[fi.jsx(GI,{}),e.isDim&&fi.jsxs(fi.Fragment,{children:[fi.jsx(FS,{headerData:e,translator:t,anchorRef:i,open:d,setOpen:p,interactions:u,menuAvailabilityFlags:OI,sortRelatedArgs:{sortFromMenu:async(t,r)=>{t.stopPropagation(),await n(e,r)},changeActivelySortedHeader:o},searchRelatedArgs:{embed:c,listboxRef:a},selectionRelatedArgs:{model:s,app:l},shouldShowMenuIcon:!1}),fi.jsx(RI,{ref:a}),fi.jsx(RI,{ref:i})]})]})]})},BI=({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)===TE,l=e+1<r.length&&(null===(i=r[e+1])||void 0===i?void 0:i.id)===TE;return!(n&&a&&l)&&((null==t?void 0:t.id)!==TE&&e<r.length-1)},WI=({headersData:e,menuItems:t,dataModel:r,translator:n,changeSortOrder:o,changeActivelySortedHeader:i,overrideLeftGridWidth:a,leftGridWidth:l,tableWidth:s})=>{const u=CE(),{interactions:c}=yE(),[d,p]=E(!1),f=I(null),{headerCellHeight:h}=u,{color:m,background:g,hoverBackground:v,activeBackground:b,fontFamily:y,fontSize:x,fontStyle:S,fontWeight:C,textDecoration:w}=u.header,{isAdjustingWidth:R}=EL([r]),L=e=>e.stopPropagation(),A={height:h,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return fi.jsxs(wI,{isDimension:!0,background:d?b:g,interactions:c,hoverBackground:v,style:{...A,...ar,color:m},onClick:e=>c.active&&!TR(e)&&!R&&p(!d),children:[fi.jsxs(LI,{children:[fi.jsx(II,{fontFamily:y,fontSize:x,fontStyle:S,fontWeight:C,textDecoration:w,justifyContent:"flex-start",children:fi.jsx("span",{style:lr,children:n.get("SNPivotTable.IndentMode.Rows")})}),d?fi.jsx(zI,{}):fi.jsx(NI,{}),fi.jsx(RI,{ref:f})]}),fi.jsx(MI,{open:d,anchorEl:f.current,children:t.map(((a,l)=>[a&&(null==a?void 0:a.id)!==TE&&fi.jsx("li",{role:"presentation",onClick:L,onKeyDown:L,children:fi.jsx(HI,{cell:a,translator:n,dataModel:r,changeSortOrder:o,changeActivelySortedHeader:i})}),BI({idx:l,menu:a,menuItems:t,isOnlyOneRow:1===e.size.y})&&fi.jsx(tS,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),fi.jsx(jI,{dataModel:r,tableWidth:s,leftGridWidth:l,overrideLeftGridWidth:a})]})},VI={display:"grid",width:"fit-content"},YI=({dataModel:e,tableWidth:t,leftGridWidth:r,columnWidths:n,rowHight:o,headersData:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,getHeaderCellsIconsVisibilityStatus:u,height:c,overrideLeftGridWidth:d,layoutService:p})=>fi.jsxs("div",{style:{...VI,gridTemplateColumns:n.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:c},children:[i.size.y>1&&fi.jsx(TI,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((c,f)=>{let h=[];if(p.isIndentModeEnabled&&i.size.x>1&&f+1===i.size.y){const n=i.data.at(-1);return h.push(fi.jsx(WI,{headersData:i,menuItems:n[0],dataModel:e,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,overrideLeftGridWidth:d,leftGridWidth:r,tableWidth:t},n[0][0].id)),h}return h=c.reduce(((t,r,c)=>{if(r){const h=u(c,r.isLocked,r.label);t.push(fi.jsx(kI,{dataModel:e,style:{width:n[c],height:o,gridColumn:p.isIndentModeEnabled&&i.size.x>1?2:c+1,gridRow:f+1,zIndex:i.size.x-c},isLastRow:f===i.size.y-1,isFirstColumn:0===c,isLastColumn:c===i.size.x-1,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,cell:r,iconsVisibilityStatus:h,columnWidth:n[c],overrideLeftGridWidth:d,layoutService:p},r.id))}return t}),[]),h}))]});var UI=O(YI);const KI=(e,t,r,n,o)=>{k((()=>{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])},XI=(e,t)=>{Zo((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},JI=(e,t,r,n)=>{var o;const i=r?"flex-start":"center";var a,l;if(e.representation.type===DE.Image)return null!==(a=null===(l=e.representation.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:i;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var s;const{labelTextAlign:r}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return nL(r,i,n)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return nL(u,i,n)},ZI=()=>{},QI=({children:e,text:t,reactWindowStyle:r,cell:n,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=CE(),{interactions:f,env:{flags:h}}=yE(),{select:m,isLocked:g}=FR(),{layoutService:v,showLastBorder:b}=o,y=g(n)||n.isLockedByDimension,x=!(y||!f.active||!f.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||c),S=x?m(n):void 0;return fi.jsx("div",{className:Ct,title:f.passive?t:void 0,style:{...r,...cr(a,l,p.grid.border,b),...pr({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...ar,padding:"0px 4px",cursor:UR(x),background:HR({styleService:p,isCellSelected:u,cell:n,isCellLocked:y}),zIndex:s?void 0:v.size.x-n.x,justifyContent:JI(n,v,s,h),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:24*(null!==(d=n.indentLevel)&&void 0!==d?d:0)}},"aria-hidden":"true",onClick:S,onKeyUp:ZI,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})},eM=e=>e.stopPropagation(),tM=({href:e,text:t,interactions:r,color:n})=>x.createElement(sy,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:eM,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t),rM=e=>e.contentRowHeight/2-e.contentTextHeight/2,nM=({children:e,styleService:t,isLeftColumn:r,textStyle:n})=>fi.jsx("span",{style:{...n,marginTop:r?rM(t):void 0,padding:"0px 4px"},children:e}),oM=({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>{const{isActive:o}=FR(),{interactions:i}=yE();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...lr,...sr(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:BR({cell:e,styleService:t,isCellSelected:r}),fontWeight:WR({cell:e,styleService:t}),fontStyle:VR({cell:e,styleService:t}),textDecoration:YR({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n});return e.representation.type!==DE.Image||e.isTotal?(e.representation.type!==DE.Link||o||e.isTotal||(a=fi.jsx(tM,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),fi.jsx(nM,{isLeftColumn:n,textStyle:l,styleService:t,children:a})):fi.jsx(rL,{representation:e.representation,isLeftColumn:n,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},iM=e=>{const t=e.isLeftColumn?"flex-start":"center";var r;return e.representation.type!==DE.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical},aM=({index:e,style:t,data:r})=>{const n=CE(),{isSelected:o}=FR(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=EL([r]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=r,h=((e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]})(e,r),m=s?e===c-1:d,g=s?d:e===c-1,v=fR(h,p,f.isIndentModeEnabled);if(void 0===h){const{background:r}=n.dimensionValues;return fi.jsx(IR,{style:{...t,background:r},index:e,isLastRow:m,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(h);return fi.jsxs(QI,{text:h.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:h,data:r,isAdjustingWidth:i,children:[fi.jsxs(MR,{verticalAlign:iM(h),width:DR(h.representation),right:h.isLeftColumn?void 0:4,children:[fi.jsx(XR,{isLeftColumn:s,isCellSelected:b,cell:h,dataModel:l}),fi.jsx(oM,{isLeftColumn:s,isCellSelected:b,cell:h,styleService:n})]}),fi.jsx(RL,{cellInfo:{...h,columnWidthLocation:h.isPseudoDimension?qt.Measures:qt.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var lM=x.memo(aM,pR);const sM=({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()},uM=(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}},cM=(e,t)=>r=>{e.current&&(e.current[t]=r)},dM={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...ir},pM={overflow:"hidden",willChange:"auto",flexShrink:0},fM=({dataModel:e,leftGridRef:t,width:r,columnWidths:n,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=CE();XI(t,a),KI(t,r,o,d,i);const f=u.rowsOnCurrentPage*d;return fi.jsx("div",{style:{...dM,borderColor:p},children:a.grid.map(((r,p)=>{const h=p===a.columnCount-1,m=eC(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=uM(r,f,u.rowsOnCurrentPage,h),y=i.isIndentModeEnabled?()=>d:((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})(r,b,d,h,c.qcy);return fi.jsx(sR,{ref:cM(t,p),style:{...pM,flexGrow:h?1:0},height:o,width:n[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:r,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:mL,estimatedItemSize:v,children:lM},m)}))})};var hM=O(fM);const mM={overflow:"hidden",willChange:"auto"},gM={...ir,borderWidth:"0px 0px 0px 1px"},vM=({dataModel:e,topGridRef:t,rowHightCallback:r,width:n,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=CE(),p={...gM,borderColor:c,height:o};XI(t,a),KI(t,n,o,d,i);const f=i.size.x*s();return 0===a.rowCount?fi.jsx("div",{style:{width:n,height:o,...gM}}):fi.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=uM(o,f,i.size.x,d),g=(({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:i,headersData:u,topRowIndex:c}),v=g?eC(g):`empty ${c}`;return fi.jsx(sR,{ref:cM(t,c),style:mM,height:r(),width:n,itemCount:p,itemSize:sM({list:o,listValues:m,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:m,totalDividerIndex:a.totalDividerIndex},itemKey:mL,estimatedItemSize:h,children:lM},v)}))})};var bM=O(vM);const yM=({model:e,rect:t,viewService:r,layoutService:n,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=CE(),u=((e,t,r)=>S((()=>{let{height:n}=e;return t.hasLimitedData&&(n-=22),r&&(n-=41),{...e,height:n}}),[e,t,r]))(t,n,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:r}=e.layout,{qNoOfLeftDims:n,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=r;return S((()=>{var e,r,a,l;const s=Cw(null!==(e=null===(r=t[0])||void 0===r?void 0:r.qLeft)&&void 0!==e?e:[]),u=Cw(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(Ew(i,o,0)),visibleTopDimensionInfo:u.map(Ew(i,o,n))}}),[i,o,n,t])})(n,o),{changeSortOrder:p,changeActivelySortedHeader:f}=((e,t)=>{const r=S((()=>({changeSortOrder:async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o}=t,i=[];("D"===r&&!n||"A"===r&&n)&&i.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(i,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},changeActivelySortedHeader:async r=>{if(!e)throw new Error("No Model provided!");const{colIdx:n,qLibraryId:o,fieldId:i,sortDirection:a}=r,l=[{qPath:"/qHyperCubeDef/activelySortedColumn",qOp:t.activelySortedColumn?"Replace":"Add",qValue:JSON.stringify({colIdx:n,qLibraryId:o,fieldId:i,sortDirection:a})}];try{return await(null==e?void 0:e.applyPatches(l,!0)),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}})),[e,t.activelySortedColumn]);return r})(e,n.layout.qHyperCube),{headersData:h,measureData:m,topDimensionData:g,leftDimensionData:v,attrExprInfoIndexes:b,nextPageHandler:y}=vw(o,n,i,c,d),x=xw({model:e,nextPageHandler:y,pageInfo:i,layoutService:n}),{onHorizontalScrollHandler:C,onVerticalScrollHandler:w,verticalScrollableContainerRef:R,leftGridHorizontalScrollableContainerRef:L,dataGridHorizontalScrollableContainerRef:A,dataGridRef:M,leftGridRef:_,topGridRef:O,verticalScrollbarWidth:T,horizontalScrollbarHeight:q,horizontalScrollbarHeightSetter:N,verticalScrollDirection:F,horizontalScrollDirection:z}=(({layoutService:e,viewService:t,pageInfo:r,tableRect:n,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,env:{flags:p}}=yE(),f=I(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=I(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=I(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=I(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=I(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=I(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=I(0),x=I(0),S=I(zt.None),C=I(zt.None),[w,R]=E(0),[L,A]=E(0),M=d.name(),P=e=>{C.current=Sw(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=Sw(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};k((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),k((()=>{if(e.triggerdByExpandOrCollapse){var t,r,n,o,i,a;const e=null!==(t=null===(r=m.current)||void 0===r?void 0:r.scrollLeft)&&void 0!==t?t:0,l=null!==(n=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==n?n:0;null===(i=v.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),k((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[r.page]);const _=D((e=>{if(e)return void A(0);let t=0;if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}A(t)}),[A]);return k((()=>{if(f.current){const e=f.current,r=e.offsetWidth-e.clientWidth;R(r),p.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD")&&r>0&&(t.verticalScrollbarWidth=r)}_()}),[_,e,t,n.width,n.height,M,p]),k((()=>{(p.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD")||p.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"))&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft,R(-1*((null==t?void 0:t.verticalScrollbarWidth)||0)))}),[p,t.scrollTop,t.scrollLeft,t.leftGridScrollLeft,null==t?void 0:t.verticalScrollbarWidth,f,m,h]),{onHorizontalScrollHandler:e=>{var r,n;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ft.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ft.DATA_GRID}`&&(P(e),null===(r=g.current)||void 0===r||r.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(n=b.current)||void 0===n||n.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var r,n;e.target instanceof HTMLDivElement&&(P(e),null===(r=v.current)||void 0===r||r.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(n=b.current)||void 0===n||n.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:w,horizontalScrollbarHeight:L,horizontalScrollbarHeightSetter:_,verticalScrollDirection:S,horizontalScrollDirection:C}})({layoutService:n,viewService:r,pageInfo:i,tableRect:u}),{containerHeight:j,headerGridHeight:$,topGridHeight:G,leftGridHeight:H,dataGridHeight:B,allRowsVisible:W}=function({pageInfo:e,headersData:t,topDimensionData:r,tableRect:n,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=CE(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,r.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(n.height-s-tr,l),dataGridHeight:Math.min(n.height-c-tr,l),allRowsVisible:c+tr+l+o<=n.height}}({pageInfo:i,headersData:h,topDimensionData:g,tableRect:u,horizontalScrollbarHeight:q}),{leftGridWidth:V,leftGridColumnWidths:Y,rightGridWidth:U,totalWidth:K,showLastRightBorder:X,getRightGridColumnWidth:J,getHeaderCellsIconsVisibilityStatus:Z,overrideLeftGridWidth:Q}=function({layoutService:e,tableWidth:t,headersData:r,visibleTopDimensionInfo:n,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=CE(),{measureText:l}=Ko(a.header),s=WE({layoutService:e,tableWidth:t,headersData:r}),u=VE({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+tr,d=c<t,p=D(((e,t,r="")=>{const n=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(r)+IE;return t&&a+AE<=n&&(i=!0,a+=AE),a+LE<=n&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return P((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:n,tableWidth:u.width,headersData:h,visibleTopDimensionInfo:d,verticalScrollbarWidth:T,horizontalScrollbarHeightSetter:N}),{rootWrapper:ee,leftWrapper:te,rightWrapper:re}=(({tableRect:e,containerHeight:t,headerGridHeight:r,leftGridHeight:n,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+tr,f=a?0:Math.max(0,e.height-p),h=c*(a?0:1),m=d*(a?0:1),g=a?p+d:e.height,v=e.height-m,b=l-s-h,y=e.width-s-h;return{rootWrapper:{scrollable:e,fullSize:{width:l-h,height:t+m},sticky:{width:e.width-h,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:r},leftGrid:{width:s,height:n-m+f}},rightWrapper:{containers:{scrollable:{width:u+tr-h,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-h,height:o},dataGrid:{width:u-h,height:i-m+f}}}})({tableRect:u,containerHeight:j,headerGridHeight:$,leftGridHeight:H,topGridHeight:G,dataGridHeight:B,allRowsVisible:W,totalWidth:K,leftGridWidth:V,rightGridWidth:U,verticalScrollbarWidth:T,horizontalScrollbarHeight:q}),ne=D((()=>l),[l]),oe=D((()=>s),[s]);return fi.jsx(Aw,{ref:R,...ee.scrollable,onScroll:w,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ft.CONTAINER_GRID,children:fi.jsx(ww,{...ee.fullSize,children:fi.jsxs(Iw,{...ee.sticky,style:{display:"grid",gridTemplateColumns:V?`${te.containers.scrollable.width}px ${re.containers.scrollable.width}px`:`${re.containers.scrollable.width}px`},children:[Boolean(V)&&fi.jsx(Aw,{ref:L,...te.containers.scrollable,onScroll:C,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ft.LEFT_GRID,children:fi.jsx(ww,{isLeftGrid:!0,...te.containers.fullSize,children:fi.jsxs(Iw,{isLeftGrid:!0,...te.containers.sticky,children:[fi.jsx(UI,{dataModel:x,tableWidth:u.width,leftGridWidth:V,columnWidths:Y,getHeaderCellsIconsVisibilityStatus:Z,rowHight:l,height:te.headerGrid.height,headersData:h,translator:a,changeSortOrder:p,changeActivelySortedHeader:f,overrideLeftGridWidth:Q,layoutService:n}),fi.jsx(hM,{dataModel:x,leftGridRef:_,...te.leftGrid,columnWidths:Y,layoutService:n,leftDimensionData:v,showLastBorder:{right:!1,bottom:W},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),fi.jsx(Aw,{ref:A,...re.containers.scrollable,onScroll:C,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ft.DATA_GRID,children:fi.jsx(ww,{...re.containers.fullSize,children:fi.jsxs(Iw,{...re.containers.sticky,children:[fi.jsx(bM,{dataModel:x,topGridRef:O,rowHightCallback:ne,...re.topGrid,layoutService:n,topDimensionData:g,showLastBorder:{right:X,bottom:!1},getRightGridColumnWidth:J,headersData:h}),fi.jsx(yL,{dataModel:x,dataGridRef:M,rowHightCallback:oe,...re.dataGrid,viewService:r,layoutService:n,measureData:m,leftDimensionData:v,topDimensionData:g,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:b.measures,showLastBorder:{right:X,bottom:W},getRightGridColumnWidth:J,pageInfo:i,verticalScrollDirection:F,horizontalScrollDirection:z})]})})})]})})})},xM=e=>{const{layoutService:t,translator:r,pageInfo:n,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=yE(),{layout:u,hasData:c}=t;return fi.jsxs(fi.Fragment,{children:[c&&fi.jsx(yM,{...e}),fi.jsx(SE,{translator:r,layoutService:t}),fi.jsx(vE,{paginationNeeded:n.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:n,totalRowCount:n.totalRowCount,totalColumnCount:0,totalPages:n.totalPages,keyboard:a,translator:r,theme:l,interactions:s,rect:i,layout:u})]})},SM={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)"},EM=12,CM=14,wM=16,RM=24,LM=3,AM=300,IM=400,MM=600,DM=700,PM={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Dp(SM.GREYSCALE_0,.05),Dp(SM.GREEN_PALE,.5),Dp(SM.BLUE_PALE,.5),Dp(SM.GREEN_PALE,.5),Dp(SM.BLUE_PALE,.5),Dp(SM.GREEN_PALE,.5),Dp(SM.BLUE_PALE,.5);var _M;function OM(){return OM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},OM.apply(this,arguments)}Dp(SM.GREEN_PALE,.5),Dp(SM.BLUE_PALE,.5),Dp(SM.GREEN_PALE,.5),Dp(SM.BLUE_PALE,.5);var kM,TM=function(e){return y.createElement("svg",OM({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),_M||(_M=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function qM(){return qM=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},qM.apply(this,arguments)}var NM=function(e){return y.createElement("svg",qM({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),kM||(kM=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function FM({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var zM=(e={})=>x.createElement(FM,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),jM=(e={})=>x.createElement(FM,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),$M=(e={})=>x.createElement(FM,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),GM=(e={})=>x.createElement(FM,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),HM=({className:e})=>x.createElement(FM,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),x.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),BM=(e={})=>x.createElement(FM,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:SM.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const WM={MuiAccordion:{styleOverrides:{root:{backgroundColor:SM.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:SM.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(TM,{"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 ${SM.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:SM.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${SM.MISC_FOCUS_BORDER}`,borderRadius:LM,backgroundColor:SM.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 ${SM.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:SM.WHITE,color:SM.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:LM},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${SM.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:SM.GREYSCALE_0_15,backgroundColor:SM.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:SM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${SM.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:SM.GREEN_PALE},"&:active":{backgroundColor:SM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:SM.GREEN_PALE,boxShadow:`0 0 0 3px ${mc(SM.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:SM.BLUE_PALE},"&:active":{backgroundColor:SM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:SM.BLUE_PALE,boxShadow:`0 0 0 3px ${mc(SM.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:LM,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:SM.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${SM.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:SM.GREYSCALE_0_15,backgroundColor:SM.GREYSCALE_100_60,"&:active":{backgroundColor:SM.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:SM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${SM.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:SM.PURPLE,"&.Mui-focusVisible":{borderColor:SM.PURPLE,boxShadow:`0 0 0 3px ${mc(SM.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:SM.GREEN,"&.Mui-focusVisible":{borderColor:SM.GREEN,boxShadow:`0 0 0 3px ${mc(SM.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:SM.BLUE,"&.Mui-focusVisible":{borderColor:SM.BLUE,boxShadow:`0 0 0 3px ${mc(SM.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:SM.ORANGE,"&.Mui-focusVisible":{borderColor:SM.ORANGE,boxShadow:`0 0 0 3px ${mc(SM.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:SM.RED,"&.Mui-focusVisible":{borderColor:SM.RED,boxShadow:`0 0 0 3px ${mc(SM.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:SM.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:SM.PURPLE_PALE},"&:active":{backgroundColor:SM.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:SM.PURPLE_PALE,boxShadow:`0 0 0 3px ${mc(SM.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:SM.GREEN_PALE},"&:active":{backgroundColor:SM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:SM.GREEN_PALE,boxShadow:`0 0 0 3px ${mc(SM.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:SM.BLUE_PALE},"&:active":{backgroundColor:SM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:SM.BLUE_PALE,boxShadow:`0 0 0 3px ${mc(SM.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:SM.ORANGE_PALE},"&:active":{backgroundColor:SM.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:SM.ORANGE_PALE,boxShadow:`0 0 0 3px ${mc(SM.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:SM.RED_PALE},"&:active":{backgroundColor:SM.RED_DARK},"&.Mui-focusVisible":{borderColor:SM.RED_PALE,boxShadow:`0 0 0 3px ${mc(SM.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:SM.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:SM.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:LM,boxShadow:`inset 0 0 0 2px ${SM.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(NM,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:EM,borderRadius:LM,color:SM.TEXT_PRIMARY,backgroundColor:SM.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:SM.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${SM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:SM.GREYSCALE_0_05,color:SM.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:SM.GREEN,borderColor:SM.GREEN},"&.MuiChip-outlinedInfo":{color:SM.BLUE,borderColor:SM.BLUE},"&.MuiChip-outlinedWarning":{color:SM.ORANGE,borderColor:SM.ORANGE},"&.MuiChip-outlinedError":{color:SM.RED,borderColor:SM.RED}},outlined:{border:`solid 1px ${SM.GREYSCALE_0_15}`,backgroundColor:SM.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:LM,boxShadow:"none",backgroundColor:SM.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:SM.GREEN,borderColor:SM.GREEN},outlinedSecondary:{color:SM.BLUE,borderColor:SM.BLUE},label:{fontFamily:PM.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(NM,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(TM,{"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:LM},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:LM,fontSize:CM,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:SM.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${SM.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:SM.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:SM.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:SM.GREYSCALE_0_05}}},popupIndicator:{borderRadius:LM,border:`solid 1px ${SM.GREYSCALE_0_15}`,color:SM.GREYSCALE_0_60,marginRight:0,width:RM,height:RM},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${SM.GREYSCALE_0_15}`},clearIndicator:{borderRadius:LM,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:SM.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:CM}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:EM,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:SM.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:SM.GREYSCALE_25,fontSize:EM,fontFamily:PM.FONT_FAMILY,fontWeight:MM,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:SM.TEXT_PRIMARY},"&.Mui-error":{color:SM.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:SM.TEXT_SECONDARY,content:"'(optional)'",fontWeight:IM,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:SM.TEXT_SECONDARY,content:"'(required)'",fontWeight:IM,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:CM,lineHeight:"16px",backgroundColor:SM.WHITE,borderRadius:LM,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${SM.GREYSCALE_0_05}`,borderColor:SM.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${SM.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${SM.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${SM.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${SM.RED}`,boxShadow:`0px 0px 0px 1px ${SM.RED}, inset 0 2px 0 0 ${SM.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${SM.GREYSCALE_0_10}`,borderColor:SM.GREYSCALE_0_10,backgroundColor:SM.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:SM.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:SM.GREYSCALE_0_15,borderRadius:LM,boxShadow:`inset 0 2px 0 0 ${SM.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(TM,{...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:SM.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:SM.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:SM.GREYSCALE_0_03},"&:active":{backgroundColor:SM.GREYSCALE_0_10},"&:focus":{backgroundColor:SM.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${SM.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${SM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:SM.GREYSCALE_0_30,"&:hover":{backgroundColor:SM.GREYSCALE_0_0,borderColor:SM.GREYSCALE_0_15},"& ~svg":{color:SM.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${SM.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:LM}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:SM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${SM.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:SM.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:CM,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:EM,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:EM,fontWeight:MM,color:SM.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:MM}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${SM.GREYSCALE_0_15}, 0px 0px 0px 1px ${SM.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement($M,null),checkedIcon:x.createElement(GM,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:SM.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${SM.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:SM.GREEN_PALE,boxShadow:`0 0 0 3px ${mc(SM.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:SM.BLUE_PALE,boxShadow:`0 0 0 3px ${mc(SM.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:SM.GREYSCALE_0_20}},"&.Mui-disabled":{fill:SM.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(BM,null),checkedIcon:x.createElement(zM,null),indeterminateIcon:x.createElement(jM,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:LM,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:SM.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:SM.GREYSCALE_0_55,color:SM.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:SM.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:SM.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:SM.GREYSCALE_0_55,"&:hover":{color:SM.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:SM.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:SM.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:CM,color:SM.TEXT_PRIMARY,lineHeight:"16px",fontWeight:MM},secondary:{fontSize:EM,color:SM.GREYSCALE_45,fontWeight:IM,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:CM,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:SM.GREYSCALE_0_03},"&:active":{backgroundColor:SM.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:CM,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:SM.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:EM,borderBottom:`solid 1px ${SM.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:CM,color:SM.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:SM.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:SM.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:SM.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:SM.RED}}},"&.Mui-focusVisible":{backgroundColor:SM.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:SM.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:SM.GREEN,height:"24px","&.Mui-disabled":{color:SM.GREYSCALE_0_15}},rail:{backgroundColor:SM.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${SM.GREYSCALE_0_05}`,borderRadius:LM,boxShadow:`inset 0px 0px 0px 1px ${SM.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${SM.GREYSCALE_0_05}`,borderRadius:LM},thumb:{height:"16px",width:"16px",borderRadius:LM,backgroundColor:SM.WHITE,boxShadow:`0px 1px 2px 0px ${SM.GREYSCALE_0_15}, 0px 0px 0px 1px ${SM.GREYSCALE_0_05}`,"&:hover":{borderRadius:LM,boxShadow:`0 2px 4px 0 ${SM.GREYSCALE_0_30}, 0 0 0 1px ${SM.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${SM.GREYSCALE_0_15}, 0 0 0 1px ${SM.GREYSCALE_0_06}, 0 0 0 2px ${SM.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${SM.GREYSCALE_0_15}, 0 0 0 1px ${SM.GREYSCALE_0_06}, 0 0 0 2px ${SM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:SM.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:SM.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:SM.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:SM.GREYSCALE_0_15},markLabel:{color:SM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:SM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:SM.WHITE,color:SM.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:SM.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:SM.GREEN_PALE,boxShadow:`0 0 0 3px ${mc(SM.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:SM.BLUE_PALE,boxShadow:`0 0 0 3px ${mc(SM.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:SM.GREYSCALE_0_15,borderRadius:LM},thumb:{height:"16px",width:"16px",borderRadius:LM,backgroundColor:SM.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:CM,fontWeight:MM,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${SM.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${SM.MISC_FOCUS_BORDER}`,backgroundColor:SM.GREYSCALE_0_03,borderRadius:LM},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:SM.GREYSCALE_25,"&.Mui-selected":{color:SM.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:CM,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2,right:"unset",insetInlineEnd:0},vertical:{borderInlineEnd:`1px solid ${SM.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",borderInlineEnd:`2px solid ${SM.GREYSCALE_80}`,marginInlineEnd:"-2px"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${SM.GREYSCALE_85}`,borderRight:`1px solid ${SM.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:MM,backgroundColor:SM.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:SM.GREYSCALE_98,borderBottom:`1px solid ${SM.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${SM.GREYSCALE_85}`,borderTop:`1px solid ${SM.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:SM.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:SM.GREYSCALE_0_05,"&:hover":{backgroundColor:SM.GREYSCALE_0_03}},"&&:hover":{backgroundColor:SM.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(HM,{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 ${SM.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:CM,borderRadius:LM,padding:"7px 16px",border:`1px solid ${SM.GREYSCALE_0_15}`,backgroundColor:SM.GREYSCALE_100_60,color:SM.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:SM.GREYSCALE_0_10,border:`1px solid ${SM.GREYSCALE_0_30}`},"&:hover":{backgroundColor:SM.GREYSCALE_0_03,border:`1px solid ${SM.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:SM.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${SM.MISC_FOCUS_BORDER}`,border:`1px solid ${SM.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:SM.GREYSCALE_25,backgroundColor:SM.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:SM.GREYSCALE_0_10,border:`1px solid ${SM.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:EM,height:24,width:24,padding:7},sizeLarge:{fontSize:wM,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:CM,borderRadius:LM}}},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:SM.GREYSCALE_20},tooltip:{backgroundColor:SM.GREYSCALE_20,fontSize:EM,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var VM=e=>WM;const YM={mode:"light",primary:{ultraLight:SM.GREEN_ULTRA_LIGHT,light:SM.GREEN_PALE,main:SM.GREEN,dark:SM.GREEN_DARK,extraDark:SM.GREEN_EXTRA_DARK,contrastText:SM.WHITE},secondary:{ultraLight:SM.BLUE_ULTRA_LIGHT,light:SM.BLUE_PALE,main:SM.BLUE,dark:SM.BLUE_DARK,extraDark:SM.BLUE_EXTRA_DARK,contrastText:SM.WHITE},error:{ultraLight:SM.RED_ULTRA_LIGHT,light:SM.RED_PALE,main:SM.RED,dark:SM.RED_DARK,extraDark:SM.RED_EXTRA_DARK,contrastText:SM.WHITE},warning:{ultraLight:SM.ORANGE_ULTRA_LIGHT,light:SM.ORANGE_PALE,main:SM.ORANGE,dark:SM.ORANGE_DARK,extraDark:SM.ORANGE_EXTRA_DARK,contrastText:SM.WHITE},success:{ultraLight:SM.GREEN_ULTRA_LIGHT,light:SM.GREEN_PALE,main:SM.GREEN,dark:SM.GREEN_DARK,extraDark:SM.GREEN_EXTRA_DARK,contrastText:SM.WHITE},info:{ultraLight:SM.BLUE_ULTRA_LIGHT,light:SM.BLUE_PALE,main:SM.BLUE,dark:SM.BLUE_DARK,extraDark:SM.BLUE_EXTRA_DARK,contrastText:SM.WHITE},text:{primary:SM.TEXT_PRIMARY,secondary:SM.TEXT_SECONDARY,disabled:SM.GREYSCALE_0_30},action:{hover:SM.GREYSCALE_0_03,hoverOpacity:.05,selected:SM.GREYSCALE_0_05,focus:SM.MISC_FOCUS_BORDER},amethyst:{ultraLight:SM.WHITE,main:SM.PURPLE,light:SM.PURPLE_PALE,dark:SM.PURPLE_DARK,extraDark:SM.GREYSCALE_0_0,contrastText:SM.WHITE},background:{paper:SM.WHITE,default:SM.GREYSCALE_95},divider:SM.GREYSCALE_0_15},UM=e=>YM,KM=(e="light")=>({components:VM(),palette:UM(),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:CM,fontWeightLight:AM,fontWeightRegular:IM,fontWeightMedium:MM,fontWeightBold:DM,htmlFontSize:CM,fontFamily:PM.FONT_FAMILY,button:{fontWeight:MM,fontSize:CM,textTransform:"none"},body1:{fontSize:wM,lineHeight:"24px"},body2:{fontSize:CM,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:RM,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:wM,fontWeight:MM,lineHeight:"16px"},h6:{fontSize:CM,fontWeight:MM,lineHeight:"16px"},caption:{color:SM.TEXT_SECONDARY},subtitle1:{fontSize:CM,color:SM.TEXT_SECONDARY},subtitle2:{fontSize:EM,color:SM.TEXT_SECONDARY}},shape:{borderRadius:LM}});const XM=(e,t)=>{const{selections:r,styleService:n,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c}=t,d=function(e){var t;const r=KM();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),Wd({...r,direction:e})}("ltr");e.render(fi.jsx(x.StrictMode,{children:fi.jsx(Ap,{theme:d,children:fi.jsx(xE,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,children:fi.jsx(zR,{selections:r,updatePageInfo:t.updatePageInfo,children:fi.jsx(wE,{styleService:n,children:fi.jsx(xM,{...t})})})})})}))},JM={darker:.15,brighter:.3,opacity:.03},ZM={darker:.3,brighter:.5,opacity:.05};var QM,eD,tD,rD;!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"}(QM||(QM={})),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"}(eD||(eD={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(tD||(tD={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(rD||(rD={}));const nD=e=>e?`${parseInt(e,10)}px`:void 0,oD=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?rr.Transparent:r}},iD=(e,t)=>+(parseInt(e,10)*er*t+8).toFixed(2),aD=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?Jt:"normal",lD=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",sD=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",uD=({fontStyle:e,fontWeight:t,fontSize:r,fontFamily:n})=>t?`${e} ${t} ${r} ${n}`:`${e} ${r} ${n}`,cD=(e,r,n)=>{var o,i;const a=null!==(o=null==n?void 0:n.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,l=null!==(i=null==n?void 0:n.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i;return t((()=>(({layout:e,flags:t,qShowTotalsAbove:r,qAlwaysFullyExpanded:n})=>{const{qHyperCube:o,nullValueRepresentation:i,snapshotData:a}=e,{qNoOfLeftDims:l,qEffectiveInterColumnSortOrder:s,qMeasureInfo:u,qDimensionInfo:c}=o,d=!!a,p={x:Math.min(e.qHyperCube.qSize.qcx,Qt),y:Math.min(e.qHyperCube.qSize.qcy,Zt)},f=s.slice(0,l),h=e=>f.some((t=>t===e)),m=h(kE),g=new Map(s.map((e=>{var t;return[null!==(t=c[e])&&void 0!==t?t:kE,e]}))),v=u.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==i?void 0:i.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(m)return 0;const r=e%v.length;return t?r:u.findIndex((e=>e===v[r]))},getDimensionInfo:e=>e===kE?kE:c[e],getDimensionInfoIndex:e=>{var t;return null!==(t=g.get(e))&&void 0!==t?t:-1},size:p,isSnapshot:d,hasLimitedData:!d&&p.x<e.qHyperCube.qSize.qcx,hasData:p.x>0&&p.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:r,hasPseudoDimOnLeft:m,leftDimensionInfoIndexes:f,isLeftDimension:h,isFullyExpanded:n,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:v,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE")}})({layout:e,flags:r,qShowTotalsAbove:a,qAlwaysFullyExpanded:l})),[e,a,l,r])},dD={},pD=e=>{const r=(e=>{const r=t((()=>({current:dD})),[]);return r.current=r.current===dD?e:r.current,r})(e);return r.current=e,r},fD=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=pD((e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/At.PixelsMin)}))(o));return _n((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(Qt,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(OE,yw(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},hD=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),mD=(e,t)=>{const r=Zt;return{rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:hD({rowsPerPage:r,totalRowCount:e,page:t})}},gD=e=>({gridColumnStartIndex:e.gridColumnStartIndex,gridRowStartIndex:e.gridRowStartIndex,gridWidth:e.gridWidth,gridHeight:e.gridHeight,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,verticalScrollbarWidth:e.verticalScrollbarWidth});var vD={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 bD=()=>{const e=s(),r=e.language();return t((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(vD).forEach((t=>{e.add(vD[t])}))}}(e)),[e]),{translator:e,language:r}},yD=o=>{const{flags:s}=o,y=c(),x=(e=>{const r=t((()=>Xo(e)),[e]);return n((()=>()=>r.unmount()),[r]),r})(y),S=d(),E=p(),C=f(),w=h(),R=m(),L=g(),[A,I]=((e,t)=>_n((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(E,S),M=cD(S,s,A),D=v(),P=((r,n,o)=>{const i=e();return t((()=>({...i,background:Pn(i,r,n,o)})),[i.name(),r,n,o])})(y),_=P.name(),{translator:O,language:k}=bD(),{pageInfo:T,updatePageInfo:q}=(e=>{const{size:t,layout:{qHyperCube:{qSize:r}}}=e,[o,a]=i({page:0,shouldShowPagination:r.qcy>t.y,...mD(r.qcy,0)});return n((()=>{a((t=>({...t,...mD(e.layout.qHyperCube.qSize.qcy,t.page),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,a]),n((()=>{const{page:e,totalPages:t}=o;if(e+1>t){const e=t-1,r=hD({...o,page:e});a({...o,page:e,rowsOnCurrentPage:r})}}),[o]),{pageInfo:o,updatePageInfo:e=>a({...o,...e,rowsOnCurrentPage:hD({...o,...e})})}})(M),N=((e,r)=>{const{viewState:n}=u();return t((()=>((e,t)=>{var r,n,o,i,a,l,s,u,c,d,p,f,h,m,g,v,b,y,x,S,E,C,w,R;return{gridColumnStartIndex:null!==(r=null!==(n=null==t||null===(o=t.content)||void 0===o?void 0:o.gridColumnStartIndex)&&void 0!==n?n:null==e?void 0:e.gridColumnStartIndex)&&void 0!==r?r:0,gridRowStartIndex:null!==(i=null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.gridRowStartIndex)&&void 0!==a?a:null==e?void 0:e.gridRowStartIndex)&&void 0!==i?i:0,gridWidth:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.gridWidth)&&void 0!==u?u:null==e?void 0:e.gridWidth)&&void 0!==s?s:0,gridHeight:null!==(d=null!==(p=null==t||null===(f=t.content)||void 0===f?void 0:f.gridHeight)&&void 0!==p?p:null==e?void 0:e.gridHeight)&&void 0!==d?d:0,scrollTop:null!==(h=null!==(m=null==t||null===(g=t.content)||void 0===g?void 0:g.scrollTop)&&void 0!==m?m:null==e?void 0:e.scrollTop)&&void 0!==h?h:0,scrollLeft:null!==(v=null!==(b=null==t||null===(y=t.content)||void 0===y?void 0:y.scrollLeft)&&void 0!==b?b:null==e?void 0:e.scrollLeft)&&void 0!==v?v:0,leftGridScrollLeft:null!==(x=null!==(S=null==t||null===(E=t.content)||void 0===E?void 0:E.leftGridScrollLeft)&&void 0!==S?S:null==e?void 0:e.leftGridScrollLeft)&&void 0!==x?x:0,verticalScrollbarWidth:null!==(C=null!==(w=null==t||null===(R=t.content)||void 0===R?void 0:R.verticalScrollbarWidth)&&void 0!==w?w:null==e?void 0:e.verticalScrollbarWidth)&&void 0!==C?C:0}})(n,r.snapshotData)),[n,e.page,r.snapshotData])})(T,S),F=(({layoutService:e,viewService:t,rect:r,model:n})=>{var o;return a((async e=>{if(!e.snapshotData||!n||e.snapshotData.content)return e;if(null!=n&&n.getHyperCubePivotData){const{gridColumnStartIndex:o,gridRowStartIndex:i,gridWidth:a,gridHeight:l,scrollTop:s,scrollLeft:u,leftGridScrollLeft:c,verticalScrollbarWidth:d}=gD(t);e.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(OE,[{qLeft:t.gridColumnStartIndex,qTop:t.gridRowStartIndex,qWidth:t.gridWidth,qHeight:t.gridHeight}]),gridColumnStartIndex:o,gridRowStartIndex:i,gridWidth:a,gridHeight:l,scrollTop:s,scrollLeft:u,leftGridScrollLeft:c,verticalScrollbarWidth:d},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),l((()=>({getViewState:()=>gD(t)})),[t]),null!==(o=e.layout.snapshotData)&&void 0!==o&&o.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r})({rect:b(),layoutService:M,viewService:N,model:E}),[z,j]=fD({model:E,layoutService:M,viewService:N,pageInfo:T,rect:F}),$=t((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,h,m,g,v,b,y,x,S,E,C,w,R,L,A,I,M,D,P,_,O,k,T,q,N,F,z,j,$,G,H,B,W,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[QM.LineClamp])&&void 0!==i?i:oe(eD.Grid,tD.Grid,rD.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==ne?void 0:ne[QM.ColumnLineClamp])&&void 0!==l?l:oe(eD.Grid,tD.Grid,rD.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=oD(e,null==J?void 0:J[QM.Background]))&&void 0!==u?u:oe(eD.Dimension,tD.LabelName,rD.BackgroundColor))&&void 0!==s?s:rr.Transparent,se={header:{fontSize:null!==(c=null!==(d=nD(null==J?void 0:J[QM.FontSize]))&&void 0!==d?d:oe(eD.Dimension,tD.LabelName,rD.FontSize))&&void 0!==c?c:Kt,fontFamily:null!==(p=null!==(f=null==J?void 0:J[QM.FontFamily])&&void 0!==f?f:oe(eD.Dimension,tD.LabelName,rD.FontFamily))&&void 0!==p?p:Xt,fontWeight:aD(null==J?void 0:J[QM.FontStyle],Jt),fontStyle:lD(null==J?void 0:J[QM.FontStyle]),textDecoration:sD(null==J?void 0:J[QM.FontStyle]),color:null!==(h=null!==(m=oD(e,null==J?void 0:J[QM.FontColor]))&&void 0!==m?m:oe(eD.Dimension,tD.LabelName,rD.Color))&&void 0!==h?h:$x.TEXT,background:le,hoverBackground:Gx(le,JM),activeBackground:Gx(le,ZM)},dimensionValues:{fontSize:null!==(g=null!==(v=nD(null==Z?void 0:Z[QM.FontSize]))&&void 0!==v?v:oe(eD.Dimension,tD.LabelValue,rD.FontSize))&&void 0!==g?g:Kt,fontFamily:null!==(b=null!==(y=null==Z?void 0:Z[QM.FontFamily])&&void 0!==y?y:oe(eD.Dimension,tD.LabelValue,rD.FontFamily))&&void 0!==b?b:Xt,fontWeight:aD(null==Z?void 0:Z[QM.FontStyle],void 0),fontStyle:lD(null==Z?void 0:Z[QM.FontStyle]),textDecoration:sD(null==Z?void 0:Z[QM.FontStyle]),color:null!==(x=null!==(S=oD(e,null==Z?void 0:Z[QM.FontColor]))&&void 0!==S?S:oe(eD.Dimension,tD.LabelValue,rD.Color))&&void 0!==x?x:$x.TEXT,background:null!==(E=null!==(C=oD(e,null==Z?void 0:Z[QM.Background]))&&void 0!==C?C:oe(eD.Dimension,tD.LabelValue,rD.BackgroundColor))&&void 0!==E?E:rr.Transparent},measureValues:{fontSize:null!==(w=null!==(R=nD(null==Q?void 0:Q[QM.FontSize]))&&void 0!==R?R:oe(eD.Measure,tD.LabelValue,rD.FontSize))&&void 0!==w?w:Kt,fontFamily:null!==(L=null!==(A=null==Q?void 0:Q[QM.FontFamily])&&void 0!==A?A:oe(eD.Measure,tD.LabelValue,rD.FontFamily))&&void 0!==L?L:Xt,fontWeight:aD(null==Q?void 0:Q[QM.FontStyle],"normal"),fontStyle:lD(null==Q?void 0:Q[QM.FontStyle]),textDecoration:sD(null==Q?void 0:Q[QM.FontStyle]),color:null!==(I=null!==(M=oD(e,null==Q?void 0:Q[QM.FontColor]))&&void 0!==M?M:oe(eD.Measure,tD.LabelValue,rD.Color))&&void 0!==I?I:rr.FontSecondary,background:null!==(D=null!==(P=oD(e,null==Q?void 0:Q[QM.Background]))&&void 0!==P?P:oe(eD.Measure,tD.LabelValue,rD.BackgroundColor))&&void 0!==D?D:rr.Transparent},measureLabels:{fontWeight:aD(null==ee?void 0:ee[QM.FontStyle],"normal"),fontStyle:lD(null==ee?void 0:ee[QM.FontStyle]),textDecoration:sD(null==ee?void 0:ee[QM.FontStyle]),color:null!==(_=null!==(O=oD(e,null==ee?void 0:ee[QM.FontColor]))&&void 0!==O?O:oe(eD.Measure,tD.LabelName,rD.Color))&&void 0!==_?_:rr.FontSecondary,background:null!==(k=null!==(T=oD(e,null==ee?void 0:ee[QM.Background]))&&void 0!==T?T:oe(eD.Measure,tD.LabelName,rD.BackgroundColor))&&void 0!==k?k:rr.Transparent},totalValues:{fontWeight:aD(null==te?void 0:te[QM.FontStyle],Jt),fontStyle:lD(null==te?void 0:te[QM.FontStyle]),textDecoration:sD(null==te?void 0:te[QM.FontStyle]),color:null!==(q=null!==(N=oD(e,null==te?void 0:te[QM.FontColor]))&&void 0!==N?N:oe(eD.Total,tD.LabelValue,rD.Color))&&void 0!==q?q:$x.TEXT,background:null!==(F=null!==(z=oD(e,null==te?void 0:te[QM.Background]))&&void 0!==z?z:oe(eD.Total,tD.LabelValue,rD.BackgroundColor))&&void 0!==F?F:rr.Transparent},nullValues:{fontWeight:aD(null==re?void 0:re[QM.FontStyle],"normal"),fontStyle:lD(null==re?void 0:re[QM.FontStyle]),textDecoration:sD(null==re?void 0:re[QM.FontStyle]),color:null!==(j=null!==($=oD(e,null==re?void 0:re[QM.FontColor]))&&void 0!==$?$:oe(eD.Null,tD.LabelValue,rD.Color))&&void 0!==j?j:$x.TEXT,background:null!==(G=null!==(H=oD(e,null==re?void 0:re[QM.Background]))&&void 0!==H?H:oe(eD.Null,tD.LabelValue,rD.BackgroundColor))&&void 0!==G?G:rr.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(B=null!==(W=oD(e,null==ne?void 0:ne[QM.Border]))&&void 0!==W?W:oe(eD.Grid,tD.Grid,rD.BorderColor))&&void 0!==B?B:rr.DividerLight,divider:null!==(V=null!==(Y=oD(e,null==ne?void 0:ne[QM.Divider]))&&void 0!==Y?Y:oe(eD.Grid,tD.Divider,rD.BorderColor))&&void 0!==V?V:rr.DividerDark,background:null!==(U=null!==(K=oD(e,null==ne?void 0:ne[QM.Background]))&&void 0!==K?K:oe(eD.Grid,tD.Grid,rD.BackgroundColor))&&void 0!==U?U:rr.Transparent}};return se.headerCellHeight=Math.max(iD(se.header.fontSize,ae),iD(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(iD(se.measureValues.fontSize,ie),iD(se.dimensionValues.fontSize,ie),24),se.contentRowHeight=Math.max(iD(se.measureValues.fontSize,1),iD(se.dimensionValues.fontSize,1)),se.contentTextHeight=se.contentRowHeight-8,se})(P,M,s)),[P.name(),M,s]),G=(e=>t((()=>[...new Set([uD(e.header),uD(e.dimensionValues),uD({...e.dimensionValues,...e.measureLabels}),uD({...e.dimensionValues,...e.nullValues}),uD({...e.dimensionValues,...e.totalValues}),uD(e.measureValues),uD({...e.measureValues,...e.nullValues}),uD({...e.measureValues,...e.totalValues})])]),[e]))($),H=(e=>{const[t,n]=r((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return n?(console.warn("Failed to load font:",n),!0):!!t})(G);s.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&ni(),n((()=>{!j&&E&&(null==F?void 0:F.width)&&(null==F?void 0:F.height)&&D&&N&&M&&$&&!!z&&!I&&H&&XM(x,{model:E,app:C,rect:F,selections:D,viewService:N,layoutService:M,qPivotDataPages:z,styleService:$,translator:O,pageInfo:T,updatePageInfo:q,interactions:L,embed:w,keyboard:R,theme:P,env:o})}),[E,C,F,null==F?void 0:F.width,null==F?void 0:F.height,L,D,N,M,j,z,$,x,H,O,k,T,q,A,I,w,R,P,_,o])},xD={version:"3.6.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:[]};function SD(e){return{qae:{properties:{initial:xD},data:pt(e)},ext:Mr(e),component(){yD(e)}}}export{SD as default};
182
+ `),XL.rippleVisible,rA,550,(({theme:e})=>e.transitions.easing.easeInOut),XL.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),XL.child,XL.childLeaving,oA,550,(({theme:e})=>e.transitions.easing.easeInOut),XL.childPulsate,iA,(({theme:e})=>e.transitions.easing.easeInOut));var sA=y.forwardRef((function(e,t){const n=vx({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=jn(n,JL),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=rl(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Ns.jsx(lA,{classes:{ripple:Hs(o.ripple,XL.ripple),rippleVisible:Hs(o.rippleVisible,XL.rippleVisible),ripplePulsate:Hs(o.ripplePulsate,XL.ripplePulsate),child:Hs(o.child,XL.child),childLeaving:Hs(o.childLeaving,XL.childLeaving),childPulsate:Hs(o.childPulsate,XL.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ns.jsx(aA,On({className:Hs(XL.root,o.root,i),ref:h},a,{children:Ns.jsx(Zc,{component:null,exit:!0,children:l})}))}));function uA(e){return yl("MuiButtonBase",e)}var cA=xl("MuiButtonBase",["root","disabled","focusVisible"]);const dA=["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"],pA=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"},[`&.${cA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fA=y.forwardRef((function(e,t){const n=vx({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=jn(n,dA),O=y.useRef(null),T=y.useRef(null),k=Qa(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=pl(),[j,$]=y.useState(!1);s&&j&&$(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,H]=y.useState(!1);y.useEffect((()=>{H(!0)}),[]);const B=G&&!u&&!s;function W(e,t,n=c){return Za((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}y.useEffect((()=>{j&&d&&!u&&G&&T.current.pulsate()}),[u,d,j,G]);const V=W("start",E),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Za((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=Za((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=Za((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Qa(t,z,O),ue=On({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=ml({root:["root",t&&"disabled",n&&"focusVisible"]},uA,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ns.jsxs(pA,On({as:ae,className:Hs(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:P},le,_,{children:[i,B?Ns.jsx(sA,On({ref:k,center:o},M)):null]}))}));var hA=fA;const mA=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function gA(e){const t=[],n=[];return Array.from(e.querySelectorAll(mA)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function bA(){return!0}function vA(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=gA,isEnabled:a=bA,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=Qa(t.ref,h),g=y.useRef(null);y.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!h.current)return;const e=Ua(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!h.current)return;const e=Ua(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Ns.jsxs(y.Fragment,{children:[Ns.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Ns.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const yA=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=Qa(y.isValidElement(n)?n.ref:null,t);if(Ja((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Ja((()=>{if(i&&!o)return Xa(t,i),()=>{Xa(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return Ns.jsx(y.Fragment,{children:n})}return Ns.jsx(y.Fragment,{children:i?q.createPortal(n,i):i})}));function xA(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function SA(e){return parseInt(Ka(e).getComputedStyle(e).paddingRight,10)||0}function EA(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&xA(e,o)}))}function CA(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function wA(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ua(e);return t.body===e?Ka(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=fl(Ua(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${SA(r)+e}px`;const t=Ua(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${SA(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Ua(r).body;else{const t=r.parentElement,n=Ka(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const RA=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&xA(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);EA(t,e.mount,e.modalRef,r,!0);const o=CA(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=CA(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=wA(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=CA(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&xA(e.modalRef,t),EA(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&xA(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function LA(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=RA,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=Qa(h,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},C=Za((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ua(f.current).body;o.add(S(),e),h.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=Za((e=>{f.current=e,e&&(c&&w()?E():h.current&&xA(h.current,x))})),L=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{L()}),[L]),y.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=VL(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=On({},n,t);return On({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>On({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Va((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Va((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const AA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],IA={entering:{opacity:1},entered:{opacity:1}},MA=y.forwardRef((function(e,t){const n=bx(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=Vc}=e,v=jn(e,AA),x=y.useRef(null),S=Qa(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{zL(e);const r=jL({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=jL({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return Ns.jsx(b,On({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,On({style:On({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},IA[e],m,a.props.style),ref:S},t))}))}));var DA=MA;function PA(e){return yl("MuiBackdrop",e)}xl("MuiBackdrop",["root","invisible"]);const _A=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],OA=Kx("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>On({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"}))),TA=y.forwardRef((function(e,t){var n,r,o;const i=vx({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=DA,transitionDuration:g}=i,b=jn(i,_A),v=On({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return ml({root:["root",n&&"invisible"]},PA,t)})(v),x=null!=(n=f.root)?n:c.root;return Ns.jsx(m,On({in:p,timeout:g},b,{children:Ns.jsx(OA,On({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:Hs(y.root,l,null==x?void 0:x.className),ownerState:On({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var kA=TA;var qA=xl("MuiBox",["root"]);const NA=mx(),FA=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Ub("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Xv);return y.forwardRef((function(e,a){const l=ry(n),s=ay(e),{className:u,component:c="div"}=s,d=jn(s,sy);return Ns.jsx(i,On({as:c,ref:a,className:Hs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Bb,defaultTheme:NA,defaultClassName:qA.root,generateClassName:bl.generate});var zA=FA;function jA(e){return yl("MuiModal",e)}xl("MuiModal",["root","hidden","backdrop"]);const $A=["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"],GA=Kx("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>On({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),HA=Kx(kA,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),BA=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=vx({name:"MuiModal",props:e}),{BackdropComponent:u=HA,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=s,P=jn(s,$A),_=On({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=LA(On({},_,{rootRef:t})),j=On({},_,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return ml({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},jA,r)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();G.onEnter=e,G.onExited=t}const H=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:GA,B=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,Y=KL({elementType:H,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:Hs(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=KL({elementType:B,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(On({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Hs(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?Ns.jsx(yA,{ref:q,container:h,disablePortal:E,children:Ns.jsxs(H,On({},Y,{children:[!R&&u?Ns.jsx(B,On({},U)):null,Ns.jsx(vA,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,G)})]}))}):null}));var WA=BA;var VA=xl("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const YA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function UA(e){return`scale(${e}, ${e**2})`}const KA={entering:{opacity:1,transform:UA(1)},entered:{opacity:1,transform:"none"}},XA="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),JA=y.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Vc}=e,g=jn(e,YA),b=rl(),v=y.useRef(),x=bx(),S=y.useRef(null),E=Qa(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{zL(e);const{duration:n,delay:r,easing:o}=jL({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:XA?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=jL({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:XA?o:.666*o,delay:XA?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=UA(.75),c&&c(e)})),M=C(d);return Ns.jsx(m,On({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,On({style:On({opacity:0,transform:UA(.75),visibility:"exited"!==e||a?void 0:"hidden"},KA[e],f,o.props.style),ref:E},t))}))}));JA.muiSupportAuto=!0;var ZA=JA;var QA=y.createContext({});function eI(e){return yl("MuiList",e)}xl("MuiList",["root","padding","dense","subheader"]);const tI=["children","className","component","dense","disablePadding","subheader"],nI=Kx("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>On({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var rI=y.forwardRef((function(e,t){const n=vx({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=jn(n,tI),c=y.useMemo((()=>({dense:a})),[a]),d=On({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ml({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},eI,t)})(d);return Ns.jsx(QA.Provider,{value:c,children:Ns.jsxs(nI,On({as:i,className:Hs(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var oI=xl("MuiListItemIcon",["root","alignItemsFlexStart"]);var iI=xl("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const aI=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lI(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uI(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function cI(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&uI(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var dI=y.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=jn(e,aI),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ja((()=>{r&&p.current.focus()}),[r]),y.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${fl(Ua(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Qa(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Ns.jsx(rI,On({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Ua(t).activeElement;if("ArrowDown"===n)e.preventDefault(),cI(t,r,s,l,lI);else if("ArrowUp"===n)e.preventDefault(),cI(t,r,s,l,sI);else if("Home"===n)e.preventDefault(),cI(t,null,s,l,lI);else if("End"===n)e.preventDefault(),cI(t,null,s,l,sI);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&uI(r,o);o.previousKeyMatched&&(s||cI(t,r,!1,l,lI,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function pI(e){return yl("MuiPopover",e)}xl("MuiPopover",["root","paper"]);const fI=["onEntering"],hI=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],mI=["slotProps"];function gI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function bI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function vI(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function yI(e){return"function"==typeof e?e():e}const xI=Kx(WA,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SI=Kx(BL,{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 EI=y.forwardRef((function(e,t){var n,r,o;const i=vx({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=ZA,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=jn(i.TransitionProps,fI),A=jn(i,hI),I=null!=(n=null==x?void 0:x.paper)?n:b,M=y.useRef(),D=Qa(M,I.ref),P=On({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return ml({root:["root"],paper:["paper"]},pI,t)})(P),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=yI(l),t=(e&&1===e.nodeType?e:Ua(M.current).body).getBoundingClientRect();return{top:t.top+gI(t,s.vertical),left:t.left+bI(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=y.useCallback((e=>({vertical:gI(e,S.vertical),horizontal:bI(e,S.horizontal)})),[S.horizontal,S.vertical]),k=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:vI(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Ka(yI(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:vI(n)}}),[l,c,O,T,m]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=M.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=Ya((()=>{F()})),t=Ka(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?Ua(yI(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:xI,G=null!=(o=null==v?void 0:v.paper)?o:SI,H=KL({elementType:G,externalSlotProps:On({},I,{style:q?I.style:On({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:Hs(_.paper,null==I?void 0:I.className)}),B=KL({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:Hs(_.root,p)}),{slotProps:W}=B,V=jn(B,mI);return Ns.jsx($,On({},V,!WL($)&&{slotProps:W,disableScrollLock:R},{children:Ns.jsx(E,On({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:Ns.jsx(G,On({},H,{children:d}))}))}))}));function CI(e){return yl("MuiMenu",e)}xl("MuiMenu",["root","paper","list"]);const wI=["onEntering"],RI=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],LI={vertical:"top",horizontal:"right"},AI={vertical:"top",horizontal:"left"},II=Kx(EI,{shouldForwardProp:e=>Ux(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),MI=Kx(SI,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),DI=Kx(dI,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var PI=y.forwardRef((function(e,t){var n,r;const o=vx({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=jn(o.TransitionProps,wI),S=jn(o,RI),E=(()=>{const e=y.useContext(fy);return null!=e&&e})(),C=On({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),w=(e=>{const{classes:t}=e;return ml({root:["root"],paper:["paper"],list:["list"]},CI,t)})(C),R=i&&!s&&d,L=y.useRef(null);let A=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(n=b.paper)?n:MI,M=null!=(r=v.paper)?r:p,D=KL({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,l]}),P=KL({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return Ns.jsx(II,On({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?LI:AI,slots:{paper:I,root:b.root},slotProps:{root:D,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:On({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},S,{classes:f,children:Ns.jsx(DI,On({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:g},u,{className:Hs(w.list,u.className),children:a}))}))}));function _I(e){return yl("MuiMenuItem",e)}var OI=xl("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const TI=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],kI=Kx(hA,{shouldForwardProp:e=>Ux(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>On({},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"}},[`&.${OI.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ry(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${OI.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ry(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${OI.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ry(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})`:Ry(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${OI.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${OI.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${VA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${VA.inset}`]:{marginLeft:52},[`& .${iI.root}`]:{marginTop:0,marginBottom:0},[`& .${iI.inset}`]:{paddingLeft:36},[`& .${oI.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&On({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oI.root} svg`]:{fontSize:"1.25rem"}}))));var qI=y.forwardRef((function(e,t){const n=vx({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=jn(n,TI),f=y.useContext(QA),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=y.useRef(null);Ja((()=>{r&&m.current&&m.current.focus()}),[r]);const g=On({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return On({},a,ml({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},_I,a))})(n),v=Qa(m,t);let x;return n.disabled||(x=void 0!==c?c:-1),Ns.jsx(QA.Provider,{value:h,children:Ns.jsx(kI,On({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Hs(b.focusVisible,s),className:Hs(b.root,d)},p,{ownerState:g,classes:b}))})}));const NI=Kx(zA,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),FI=Kx("div")({position:"absolute",left:0,bottom:0}),zI=Kx("div")({...ln,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),jI=Kx("div")((()=>({...ln}))),$I=Kx("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),GI=Kx(PI)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),HI=Kx(qI,{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}}}))),BI=Kx("span")({textOverflow:"ellipsis",overflow:"hidden"}),WI=Kx("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:TE,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),VI={[BS.SORTING]:!0,[BS.SELECTIONS]:!0,[BS.SEARCHING]:!0},YI=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,iconsVisibilityStatus:u,columnWidth:c,overrideLeftGridWidth:d,layoutService:p,shouldApplyIndentModeColumnWidth:f})=>{var h;const m=I(null),g=PE(),{app:b,model:v,interactions:y,embed:x,env:{flags:S}}=AE(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:A,background:M,hoverBackground:D,activeBackground:P}=g.header,_=I(null),{shouldShowLockIcon:O,shouldShowMenuIcon:T}=u,{open:k,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=qL({interactions:y,dataModel:e}),z={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)},changeActivelySortedHeader:s},j={embed:x,listboxRef:m},$={model:v,app:b},{labelTextAlign:G}=null!==(h=p.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==h?h:{},H=gL(G,"flex-start",S);return Ns.jsxs(NI,{className:Ot,title:t.label,interactions:y,background:k?P:M,hoverBackground:D,shouldShowMenuIcon:T,isDimension:t.isDim,style:{...n,...un,...hn(t,i,r,o,g.grid.border),color:A},"data-testid":"title-cell",onClick:N,children:[Ns.jsxs(zI,{children:[O&&Ns.jsx(jI,{children:Ns.jsx(TL,{height:12})}),Ns.jsx($I,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:H,children:Ns.jsx("span",{style:cn,children:t.label})})]}),t.isDim&&Ns.jsxs(Ns.Fragment,{children:[Ns.jsx(VS,{headerData:t,translator:a,anchorRef:_,open:k,setOpen:q,interactions:y,menuAvailabilityFlags:VI,sortRelatedArgs:z,searchRelatedArgs:j,selectionRelatedArgs:$,shouldShowMenuIcon:T}),Ns.jsx(FI,{ref:m}),Ns.jsx(FI,{ref:_})]}),Ns.jsx(FL,{cellInfo:{...t,isLeftColumn:!0},columnWidth:c,dataModel:e,isLastColumn:o,overrideLeftGridWidth:d,setIsAdjustingWidth:F,shouldApplyIndentModeColumnWidth:f})]})},UI=({rowSpan:e,columnSpan:t})=>{const n=PE();return e>0&&t>0?Ns.jsx("div",{style:{...sn,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function KI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const XI=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){KI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"}))));function JI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ZI=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){JI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),x.createElement("use",{fillRule:"evenodd"})))),QI=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=PE(),{interactions:i}=AE(),{isActive:a}=XR(),{setIsAdjustingWidth:l}=kL([e]);if(!(!!i.active&&!a))return null;const s=NL(o,{isLeftColumn:!0});return Ns.jsx(tS,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*NE))},confirmWidthCallback:o=>{var i;if(o.type===Ft.FitToContent)return void e.applyIndentModeColumnWidth({type:Ft.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*NE);r(a),e.applyIndentModeColumnWidth({type:Ft.Pixels,pixels:a})},setIsAdjustingWidth:l})};function eM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tM=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){eM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.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"})))),nM=({cell:e,translator:t,dataModel:n,changeSortOrder:r,changeActivelySortedHeader:o})=>{const i=I(null),a=I(null),{app:l,model:s,interactions:u,embed:c}=AE(),{open:d,setOpen:p,handleOpenMenu:f}=qL({interactions:u,dataModel:n});return Ns.jsxs(HI,{component:"div",onClick:f,isActive:d,children:[Ns.jsx(BI,{children:e.label}),Ns.jsxs(WI,{className:"indent-mode-dropdown-more",visible:d,children:[Ns.jsx(tM,{}),e.isDim&&Ns.jsxs(Ns.Fragment,{children:[Ns.jsx(VS,{headerData:e,translator:t,anchorRef:i,open:d,setOpen:p,interactions:u,menuAvailabilityFlags:VI,sortRelatedArgs:{sortFromMenu:async(t,n)=>{t.stopPropagation(),await r(e,n)},changeActivelySortedHeader:o},searchRelatedArgs:{embed:c,listboxRef:a},selectionRelatedArgs:{model:s,app:l},shouldShowMenuIcon:!1}),Ns.jsx(FI,{ref:a}),Ns.jsx(FI,{ref:i})]})]})]})},rM=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===HE,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===HE;return!(r&&a&&l)&&((null==t?void 0:t.id)!==HE&&e<n.length-1)},oM=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,changeActivelySortedHeader:i,overrideLeftGridWidth:a,leftGridWidth:l,tableWidth:s})=>{const u=PE(),{interactions:c}=AE(),[d,p]=A(!1),f=I(null),{headerCellHeight:h}=u,{color:m,background:g,hoverBackground:b,activeBackground:v,fontFamily:y,fontSize:x,fontStyle:S,fontWeight:E,textDecoration:C}=u.header,{isAdjustingWidth:w}=kL([n]),R=e=>e.stopPropagation(),L={height:h,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return Ns.jsxs(NI,{isDimension:!0,background:d?v:g,interactions:c,hoverBackground:b,style:{...L,...un,color:m},onClick:e=>c.active&&!YR(e)&&!w&&p(!d),children:[Ns.jsxs(zI,{children:[Ns.jsx($I,{fontFamily:y,fontSize:x,fontStyle:S,fontWeight:E,textDecoration:C,justifyContent:"flex-start",children:Ns.jsx("span",{style:cn,children:r.get("SNPivotTable.IndentMode.Rows")})}),d?Ns.jsx(ZI,{}):Ns.jsx(XI,{}),Ns.jsx(FI,{ref:f})]}),Ns.jsx(GI,{open:d,anchorEl:f.current,children:t.map(((a,l)=>[a&&(null==a?void 0:a.id)!==HE&&Ns.jsx("li",{role:"presentation",onClick:R,onKeyDown:R,children:Ns.jsx(nM,{cell:a,translator:r,dataModel:n,changeSortOrder:o,changeActivelySortedHeader:i})}),rM({idx:l,menu:a,menuItems:t,isOnlyOneRow:1===e.size.y})&&Ns.jsx(sS,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),Ns.jsx(QI,{dataModel:n,tableWidth:s,leftGridWidth:l,overrideLeftGridWidth:a})]})},iM={display:"grid",width:"fit-content"},aM=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,getHeaderCellsIconsVisibilityStatus:u,height:c,overrideLeftGridWidth:d,layoutService:p})=>Ns.jsxs("div",{style:{...iM,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:c},children:[i.size.y>1&&Ns.jsx(UI,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((c,f)=>{let h=[];if(p.isIndentModeEnabled&&i.size.x>1&&f+1===i.size.y){const r=i.data.at(-1);return h.push(Ns.jsx(oM,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,overrideLeftGridWidth:d,leftGridWidth:n,tableWidth:t},r[0][0].id)),h}return h=c.reduce(((t,n,c)=>{if(n){const h=u(c,n.isLocked,n.label),m=p.isIndentModeEnabled&&1===i.size.x;t.push(Ns.jsx(YI,{dataModel:e,style:{width:r[c],height:o,gridColumn:p.isIndentModeEnabled&&i.size.x>1?2:c+1,gridRow:f+1,zIndex:i.size.x-c},isLastRow:f===i.size.y-1,isFirstColumn:0===c,isLastColumn:c===i.size.x-1,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,cell:n,iconsVisibilityStatus:h,columnWidth:r[c],overrideLeftGridWidth:d,layoutService:p,shouldApplyIndentModeColumnWidth:m},n.id))}return t}),[]),h}))]});var lM=O(aM);const sM=(e,t,n,r,o)=>{T((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},uM=(e,t)=>{Fb((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},cM=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===FE.Image)return null!==(a=null===(l=e.representation.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:i;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var s;const{labelTextAlign:n}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return gL(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return gL(u,i,r)},dM=()=>{},pM=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=PE(),{interactions:f,env:{flags:h}}=AE(),{select:m,isLocked:g}=XR(),{layoutService:b,showLastBorder:v}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?m(r):void 0;return Ns.jsx("div",{className:Ot,title:f.passive?t:void 0,style:{...n,...fn(a,l,p.grid.border,v),...mn({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...un,padding:"0px 4px",cursor:aL(x),background:tL({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:b.size.x-r.x,justifyContent:cM(r,b,s,h),display:"flex",...b.isIndentModeEnabled&&s&&{paddingLeft:24*(null!==(d=r.indentLevel)&&void 0!==d?d:0)}},"aria-hidden":"true",onClick:S,onKeyUp:dM,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,children:e})},fM=e=>e.stopPropagation(),hM=({href:e,text:t,interactions:n,color:r})=>x.createElement(Mf,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:fM,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),mM=({children:e,textStyle:t})=>Ns.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),gM=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=XR(),{interactions:i}=AE();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...cn,...dn(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:nL({cell:e,styleService:t,isCellSelected:n}),fontWeight:rL({cell:e,styleService:t}),fontStyle:oL({cell:e,styleService:t}),textDecoration:iL({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==FE.Image||e.isTotal?(e.representation.type!==FE.Link||o||e.isTotal||(a=Ns.jsx(hM,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),Ns.jsx(mM,{textStyle:l,children:a})):Ns.jsx(mL,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},bM=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==FE.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},vM=({index:e,style:t,data:n})=>{const r=PE(),{isSelected:o}=XR(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=kL([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,h=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),m=s?e===c-1:d,g=s?d:e===c-1,b=wR(h,p,f.isIndentModeEnabled);if(void 0===h){const{background:n}=r.dimensionValues;return Ns.jsx(zR,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:b})}const v=o(h);return Ns.jsxs(pM,{text:h.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:g,isCellSelected:v,showTotalCellDivider:b,cell:h,data:n,isAdjustingWidth:i,children:[Ns.jsxs(jR,{verticalAlign:bM(h),width:$R(h.representation),right:h.isLeftColumn?void 0:4,children:[Ns.jsx(uL,{isLeftColumn:s,isCellSelected:v,cell:h,dataModel:l}),Ns.jsx(gM,{isLeftColumn:s,isCellSelected:v,cell:h,styleService:r})]}),Ns.jsx(FL,{cellInfo:{...h,columnWidthLocation:h.isPseudoDimension?At.Measures:At.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var yM=x.memo(vM,CR);const xM=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},SM=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},EM=(e,t)=>n=>{e.current&&(e.current[t]=n)},CM={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...sn},wM={overflow:"hidden",willChange:"auto",flexShrink:0},RM=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=PE();uM(t,a),sM(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return Ns.jsx("div",{style:{...CM,borderColor:p},children:a.grid.map(((n,p)=>{const h=p===a.columnCount-1,m=cC(s[p]),{itemCount:g,estimatedItemSize:b,listValues:v}=SM(n,f,u.rowsOnCurrentPage,h),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,v,d,h,c.qcy);return Ns.jsx(yR,{ref:EM(t,p),style:{...wM,flexGrow:h?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:v,totalDividerIndex:a.totalDividerIndex},itemKey:IL,estimatedItemSize:b,children:yM},m)}))})};var LM=O(RM);const AM={overflow:"hidden",willChange:"auto"},IM={...sn,borderWidth:"0px 0px 0px 1px"},MM=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=PE(),p={...IM,borderColor:c,height:o};uM(t,a),sM(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?Ns.jsx("div",{style:{width:r,height:o,...IM}}):Ns.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=SM(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:i,headersData:u,topRowIndex:c}),b=g?cC(g):`empty ${c}`;return Ns.jsx(yR,{ref:EM(t,c),style:AM,height:n(),width:r,itemCount:p,itemSize:xM({list:o,listValues:m,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:m,totalDividerIndex:a.totalDividerIndex},itemKey:IL,estimatedItemSize:h,children:yM},b)}))})};var DM=O(MM);const PM=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=PE(),u=((e,t,n)=>L((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return L((()=>{var e,n,a,l;const s=Tw(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=Tw(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(Ow(i,o,0)),visibleTopDimensionInfo:u.map(Ow(i,o,r))}}),[i,o,r,t])})(r,o),{changeSortOrder:p,changeActivelySortedHeader:f}=((e,t)=>{const n=L((()=>({changeSortOrder:async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o}=t,i=[];("D"===n&&!r||"A"===n&&r)&&i.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(i,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},changeActivelySortedHeader:async n=>{if(!e)throw new Error("No Model provided!");const{colIdx:r,qLibraryId:o,fieldId:i,sortDirection:a}=n,l=[{qPath:"/qHyperCubeDef/activelySortedColumn",qOp:t.activelySortedColumn?"Replace":"Add",qValue:JSON.stringify({colIdx:r,qLibraryId:o,fieldId:i,sortDirection:a})}];try{return await(null==e?void 0:e.applyPatches(l,!0)),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}})),[e,t.activelySortedColumn]);return n})(e,r.layout.qHyperCube),{headersData:h,measureData:m,topDimensionData:g,leftDimensionData:b,attrExprInfoIndexes:v,nextPageHandler:y}=Aw(o,r,i,c,d),x=Pw({model:e,nextPageHandler:y,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:S,onVerticalScrollHandler:E,verticalScrollableContainerRef:C,leftGridHorizontalScrollableContainerRef:w,dataGridHorizontalScrollableContainerRef:R,dataGridRef:M,leftGridRef:_,topGridRef:O,verticalScrollbarWidth:k,horizontalScrollbarHeight:q,horizontalScrollbarHeightSetter:N,verticalScrollDirection:F,horizontalScrollDirection:z}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=AE(),f=I(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=I(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=I(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=I(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),b=I(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),v=I(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=I(0),x=I(0),S=I(Dt.None),E=I(Dt.None),[C,w]=A(0),[R,L]=A(0),M=e=>{E.current=_w(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=_w(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};T((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),T((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=m.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=b.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),T((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const P=D((e=>{if(e)return void L(0);let t=0;if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return T((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}P()}),[P,e,t,r.width,r.height,d,p]),T((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,m,h,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Mt.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Mt.DATA_GRID}`&&(M(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=v.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(M(e),null===(n=b.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=v.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:v,leftGridRef:b,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:P,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:j,headerGridHeight:$,topGridHeight:G,leftGridHeight:H,dataGridHeight:B,allRowsVisible:W}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=PE(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-rn,l),dataGridHeight:Math.min(r.height-c-rn,l),allRowsVisible:c+rn+l+o<=r.height}}({pageInfo:i,headersData:h,topDimensionData:g,tableRect:u,horizontalScrollbarHeight:q}),{leftGridWidth:V,leftGridColumnWidths:Y,rightGridWidth:U,totalWidth:K,showLastRightBorder:X,getRightGridColumnWidth:J,getHeaderCellsIconsVisibilityStatus:Z,overrideLeftGridWidth:Q}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=PE(),{measureText:l}=kb(a.header),s=tC({layoutService:e,tableWidth:t,headersData:n}),u=nC({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+rn,d=c<t,p=D(((e,t,n="")=>{const r=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(n)+qE;return t&&a+kE<=r&&(i=!0,a+=kE),a+TE<=r&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return P((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:r,tableWidth:u.width,headersData:h,visibleTopDimensionInfo:d,verticalScrollbarWidth:k,horizontalScrollbarHeightSetter:N}),{rootWrapper:ee,leftWrapper:te,rightWrapper:ne}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+rn,f=a?0:Math.max(0,e.height-p),h=c*(a?0:1),m=d*(a?0:1),g=a?p+d:e.height,b=e.height-m,v=l-s-h,y=e.width-s-h;return{rootWrapper:{scrollable:e,fullSize:{width:l-h,height:t+m},sticky:{width:e.width-h,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:b}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-m+f}},rightWrapper:{containers:{scrollable:{width:u+rn-h,height:g},fullSize:{width:v,height:t},sticky:{width:v<y?v:y,height:b}},topGrid:{width:u-h,height:o},dataGrid:{width:u-h,height:i-m+f}}}})({tableRect:u,containerHeight:j,headerGridHeight:$,leftGridHeight:H,topGridHeight:G,dataGridHeight:B,allRowsVisible:W,totalWidth:K,leftGridWidth:V,rightGridWidth:U,verticalScrollbarWidth:k,horizontalScrollbarHeight:q}),re=D((()=>l),[l]),oe=D((()=>s),[s]);return(()=>{const{downloadService:e}=AE();P((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Ns.jsx(Fw,{ref:C,...ee.scrollable,onScroll:E,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Mt.CONTAINER_GRID,children:Ns.jsx(kw,{...ee.fullSize,children:Ns.jsxs(zw,{...ee.sticky,style:{display:"grid",gridTemplateColumns:V?`${te.containers.scrollable.width}px ${ne.containers.scrollable.width}px`:`${ne.containers.scrollable.width}px`},children:[Boolean(V)&&Ns.jsx(Fw,{ref:w,...te.containers.scrollable,onScroll:S,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Mt.LEFT_GRID,children:Ns.jsx(kw,{isLeftGrid:!0,...te.containers.fullSize,children:Ns.jsxs(zw,{isLeftGrid:!0,...te.containers.sticky,children:[Ns.jsx(lM,{dataModel:x,tableWidth:u.width,leftGridWidth:V,columnWidths:Y,getHeaderCellsIconsVisibilityStatus:Z,rowHight:l,height:te.headerGrid.height,headersData:h,translator:a,changeSortOrder:p,changeActivelySortedHeader:f,overrideLeftGridWidth:Q,layoutService:r}),Ns.jsx(LM,{dataModel:x,leftGridRef:_,...te.leftGrid,columnWidths:Y,layoutService:r,leftDimensionData:b,showLastBorder:{right:!1,bottom:W},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),Ns.jsx(Fw,{ref:R,...ne.containers.scrollable,onScroll:S,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Mt.DATA_GRID,children:Ns.jsx(kw,{...ne.containers.fullSize,children:Ns.jsxs(zw,{...ne.containers.sticky,children:[Ns.jsx(DM,{dataModel:x,topGridRef:O,rowHightCallback:re,...ne.topGrid,layoutService:r,topDimensionData:g,showLastBorder:{right:X,bottom:!1},getRightGridColumnWidth:J,headersData:h}),Ns.jsx(_L,{dataModel:x,dataGridRef:M,rowHightCallback:oe,...ne.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:b,topDimensionData:g,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:v.measures,showLastBorder:{right:X,bottom:W},getRightGridColumnWidth:J,pageInfo:i,verticalScrollDirection:F,horizontalScrollDirection:z})]})})})]})})})},_M=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=AE(),{layout:u,hasData:c}=t;return Ns.jsxs(Ns.Fragment,{children:[c&&Ns.jsx(PM,{...e}),Ns.jsx(ME,{translator:n,layoutService:t}),Ns.jsx(RE,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u})]})},OM={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)"},TM=12,kM=14,qM=16,NM=24,FM=3,zM=300,jM=400,$M=600,GM=700,HM={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};zn(OM.GREYSCALE_0,.05),zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5),zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5),zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5);var BM;function WM(){return WM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WM.apply(this,arguments)}zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5),zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5);var VM,YM=function(e){return y.createElement("svg",WM({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),BM||(BM=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function UM(){return UM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UM.apply(this,arguments)}var KM=function(e){return y.createElement("svg",UM({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),VM||(VM=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function XM({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var JM=(e={})=>x.createElement(XM,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),ZM=(e={})=>x.createElement(XM,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),QM=(e={})=>x.createElement(XM,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),eD=(e={})=>x.createElement(XM,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),tD=({className:e})=>x.createElement(XM,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),x.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),nD=(e={})=>x.createElement(XM,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:OM.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const rD={MuiAccordion:{styleOverrides:{root:{backgroundColor:OM.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:OM.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(YM,{"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 ${OM.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`,borderRadius:FM,backgroundColor:OM.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 ${OM.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:OM.WHITE,color:OM.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:FM},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${OM.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:OM.GREYSCALE_0_15,backgroundColor:OM.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${OM.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:OM.GREEN_PALE},"&:active":{backgroundColor:OM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:OM.GREEN_PALE,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:OM.BLUE_PALE},"&:active":{backgroundColor:OM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:OM.BLUE_PALE,boxShadow:`0 0 0 3px ${dy(OM.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:FM,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:OM.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${OM.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:OM.GREYSCALE_0_15,backgroundColor:OM.GREYSCALE_100_60,"&:active":{backgroundColor:OM.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${OM.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:OM.PURPLE,"&.Mui-focusVisible":{borderColor:OM.PURPLE,boxShadow:`0 0 0 3px ${dy(OM.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:OM.GREEN,"&.Mui-focusVisible":{borderColor:OM.GREEN,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:OM.BLUE,"&.Mui-focusVisible":{borderColor:OM.BLUE,boxShadow:`0 0 0 3px ${dy(OM.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:OM.ORANGE,"&.Mui-focusVisible":{borderColor:OM.ORANGE,boxShadow:`0 0 0 3px ${dy(OM.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:OM.RED,"&.Mui-focusVisible":{borderColor:OM.RED,boxShadow:`0 0 0 3px ${dy(OM.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:OM.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:OM.PURPLE_PALE},"&:active":{backgroundColor:OM.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:OM.PURPLE_PALE,boxShadow:`0 0 0 3px ${dy(OM.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:OM.GREEN_PALE},"&:active":{backgroundColor:OM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:OM.GREEN_PALE,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:OM.BLUE_PALE},"&:active":{backgroundColor:OM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:OM.BLUE_PALE,boxShadow:`0 0 0 3px ${dy(OM.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:OM.ORANGE_PALE},"&:active":{backgroundColor:OM.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:OM.ORANGE_PALE,boxShadow:`0 0 0 3px ${dy(OM.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:OM.RED_PALE},"&:active":{backgroundColor:OM.RED_DARK},"&.Mui-focusVisible":{borderColor:OM.RED_PALE,boxShadow:`0 0 0 3px ${dy(OM.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:OM.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:OM.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:FM,boxShadow:`inset 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(KM,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:TM,borderRadius:FM,color:OM.TEXT_PRIMARY,backgroundColor:OM.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:OM.GREYSCALE_0_05,color:OM.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:OM.GREEN,borderColor:OM.GREEN},"&.MuiChip-outlinedInfo":{color:OM.BLUE,borderColor:OM.BLUE},"&.MuiChip-outlinedWarning":{color:OM.ORANGE,borderColor:OM.ORANGE},"&.MuiChip-outlinedError":{color:OM.RED,borderColor:OM.RED}},outlined:{border:`solid 1px ${OM.GREYSCALE_0_15}`,backgroundColor:OM.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:FM,boxShadow:"none",backgroundColor:OM.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:OM.GREEN,borderColor:OM.GREEN},outlinedSecondary:{color:OM.BLUE,borderColor:OM.BLUE},label:{fontFamily:HM.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(KM,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(YM,{"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:FM},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:FM,fontSize:kM,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:OM.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${OM.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:OM.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:OM.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:OM.GREYSCALE_0_05}}},popupIndicator:{borderRadius:FM,border:`solid 1px ${OM.GREYSCALE_0_15}`,color:OM.GREYSCALE_0_60,marginRight:0,width:NM,height:NM},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${OM.GREYSCALE_0_15}`},clearIndicator:{borderRadius:FM,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:OM.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:kM}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:TM,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:OM.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:OM.GREYSCALE_25,fontSize:TM,fontFamily:HM.FONT_FAMILY,fontWeight:$M,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:OM.TEXT_PRIMARY},"&.Mui-error":{color:OM.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:OM.TEXT_SECONDARY,content:"'(optional)'",fontWeight:jM,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:OM.TEXT_SECONDARY,content:"'(required)'",fontWeight:jM,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:kM,lineHeight:"16px",backgroundColor:OM.WHITE,borderRadius:FM,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${OM.GREYSCALE_0_05}`,borderColor:OM.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${OM.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${OM.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${OM.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${OM.RED}`,boxShadow:`0px 0px 0px 1px ${OM.RED}, inset 0 2px 0 0 ${OM.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${OM.GREYSCALE_0_10}`,borderColor:OM.GREYSCALE_0_10,backgroundColor:OM.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:OM.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:OM.GREYSCALE_0_15,borderRadius:FM,boxShadow:`inset 0 2px 0 0 ${OM.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(YM,{...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:OM.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:OM.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:OM.GREYSCALE_0_03},"&:active":{backgroundColor:OM.GREYSCALE_0_10},"&:focus":{backgroundColor:OM.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${OM.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:OM.GREYSCALE_0_30,"&:hover":{backgroundColor:OM.GREYSCALE_0_0,borderColor:OM.GREYSCALE_0_15},"& ~svg":{color:OM.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${OM.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:FM}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${OM.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:OM.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:kM,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:TM,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:TM,fontWeight:$M,color:OM.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:$M}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${OM.GREYSCALE_0_15}, 0px 0px 0px 1px ${OM.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(QM,null),checkedIcon:x.createElement(eD,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:OM.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:OM.GREEN_PALE,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:OM.BLUE_PALE,boxShadow:`0 0 0 3px ${dy(OM.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:OM.GREYSCALE_0_20}},"&.Mui-disabled":{fill:OM.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(nD,null),checkedIcon:x.createElement(JM,null),indeterminateIcon:x.createElement(ZM,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:FM,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:OM.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:OM.GREYSCALE_0_55,color:OM.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:OM.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:OM.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:OM.GREYSCALE_0_55,"&:hover":{color:OM.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:OM.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:OM.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:kM,color:OM.TEXT_PRIMARY,lineHeight:"16px",fontWeight:$M},secondary:{fontSize:TM,color:OM.GREYSCALE_45,fontWeight:jM,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:kM,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:OM.GREYSCALE_0_03},"&:active":{backgroundColor:OM.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:kM,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:OM.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:TM,borderBottom:`solid 1px ${OM.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:kM,color:OM.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:OM.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:OM.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:OM.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:OM.RED}}},"&.Mui-focusVisible":{backgroundColor:OM.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:OM.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:OM.GREEN,height:"24px","&.Mui-disabled":{color:OM.GREYSCALE_0_15}},rail:{backgroundColor:OM.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${OM.GREYSCALE_0_05}`,borderRadius:FM,boxShadow:`inset 0px 0px 0px 1px ${OM.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${OM.GREYSCALE_0_05}`,borderRadius:FM},thumb:{height:"16px",width:"16px",borderRadius:FM,backgroundColor:OM.WHITE,boxShadow:`0px 1px 2px 0px ${OM.GREYSCALE_0_15}, 0px 0px 0px 1px ${OM.GREYSCALE_0_05}`,"&:hover":{borderRadius:FM,boxShadow:`0 2px 4px 0 ${OM.GREYSCALE_0_30}, 0 0 0 1px ${OM.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${OM.GREYSCALE_0_15}, 0 0 0 1px ${OM.GREYSCALE_0_06}, 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${OM.GREYSCALE_0_15}, 0 0 0 1px ${OM.GREYSCALE_0_06}, 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:OM.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:OM.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:OM.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:OM.GREYSCALE_0_15},markLabel:{color:OM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:OM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:OM.WHITE,color:OM.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:OM.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:OM.GREEN_PALE,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:OM.BLUE_PALE,boxShadow:`0 0 0 3px ${dy(OM.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:OM.GREYSCALE_0_15,borderRadius:FM},thumb:{height:"16px",width:"16px",borderRadius:FM,backgroundColor:OM.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:kM,fontWeight:$M,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${OM.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`,backgroundColor:OM.GREYSCALE_0_03,borderRadius:FM},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:OM.GREYSCALE_25,"&.Mui-selected":{color:OM.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:kM,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},scrollableY:{marginBlock:"4px"},scrollButtons:{borderRadius:FM,"&:hover":{backgroundColor:`${OM.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{"& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"3px"},"& .MuiTabs-scrollButtons":{marginBlock:"-1px",borderTop:`1px solid ${OM.GREYSCALE_0_15}`,borderBottom:`1px solid ${OM.GREYSCALE_0_15}`},"& .MuiTab-root":{fontWeight:"normal",borderRadius:FM,marginBlock:"4px","&.Mui-selected":{backgroundColor:OM.GREYSCALE_0_05},"&:hover":{backgroundColor:`${OM.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${OM.GREYSCALE_85}`,borderRight:`1px solid ${OM.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:$M,backgroundColor:OM.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:OM.GREYSCALE_98,borderBottom:`1px solid ${OM.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${OM.GREYSCALE_85}`,borderTop:`1px solid ${OM.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:OM.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:OM.GREYSCALE_0_05,"&:hover":{backgroundColor:OM.GREYSCALE_0_03}},"&&:hover":{backgroundColor:OM.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(tD,{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 ${OM.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:kM,borderRadius:FM,padding:"7px 16px",border:`1px solid ${OM.GREYSCALE_0_15}`,backgroundColor:OM.GREYSCALE_100_60,color:OM.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:OM.GREYSCALE_0_10,border:`1px solid ${OM.GREYSCALE_0_30}`},"&:hover":{backgroundColor:OM.GREYSCALE_0_03,border:`1px solid ${OM.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:OM.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${OM.MISC_FOCUS_BORDER}`,border:`1px solid ${OM.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:OM.GREYSCALE_25,backgroundColor:OM.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:OM.GREYSCALE_0_10,border:`1px solid ${OM.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:TM,height:24,width:24,padding:7},sizeLarge:{fontSize:qM,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:kM,borderRadius:FM}}},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:OM.GREYSCALE_20},tooltip:{backgroundColor:OM.GREYSCALE_20,fontSize:TM,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var oD=e=>rD;const iD={mode:"light",primary:{ultraLight:OM.GREEN_ULTRA_LIGHT,light:OM.GREEN_PALE,main:OM.GREEN,dark:OM.GREEN_DARK,extraDark:OM.GREEN_EXTRA_DARK,contrastText:OM.WHITE},secondary:{ultraLight:OM.BLUE_ULTRA_LIGHT,light:OM.BLUE_PALE,main:OM.BLUE,dark:OM.BLUE_DARK,extraDark:OM.BLUE_EXTRA_DARK,contrastText:OM.WHITE},error:{ultraLight:OM.RED_ULTRA_LIGHT,light:OM.RED_PALE,main:OM.RED,dark:OM.RED_DARK,extraDark:OM.RED_EXTRA_DARK,contrastText:OM.WHITE},warning:{ultraLight:OM.ORANGE_ULTRA_LIGHT,light:OM.ORANGE_PALE,main:OM.ORANGE,dark:OM.ORANGE_DARK,extraDark:OM.ORANGE_EXTRA_DARK,contrastText:OM.WHITE},success:{ultraLight:OM.GREEN_ULTRA_LIGHT,light:OM.GREEN_PALE,main:OM.GREEN,dark:OM.GREEN_DARK,extraDark:OM.GREEN_EXTRA_DARK,contrastText:OM.WHITE},info:{ultraLight:OM.BLUE_ULTRA_LIGHT,light:OM.BLUE_PALE,main:OM.BLUE,dark:OM.BLUE_DARK,extraDark:OM.BLUE_EXTRA_DARK,contrastText:OM.WHITE},text:{primary:OM.TEXT_PRIMARY,secondary:OM.TEXT_SECONDARY,disabled:OM.GREYSCALE_0_30},action:{hover:OM.GREYSCALE_0_03,hoverOpacity:.03,selected:OM.GREYSCALE_0_05,selectedOpacity:.05,focus:OM.MISC_FOCUS_BORDER},amethyst:{ultraLight:OM.WHITE,main:OM.PURPLE,light:OM.PURPLE_PALE,dark:OM.PURPLE_DARK,extraDark:OM.GREYSCALE_0_0,contrastText:OM.WHITE},background:{paper:OM.WHITE,default:OM.GREYSCALE_95},divider:OM.GREYSCALE_0_15},aD=e=>iD,lD=(e="light")=>({components:oD(),palette:aD(),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:kM,fontWeightLight:zM,fontWeightRegular:jM,fontWeightMedium:$M,fontWeightBold:GM,htmlFontSize:kM,fontFamily:HM.FONT_FAMILY,button:{fontWeight:$M,fontSize:kM,textTransform:"none"},body1:{fontSize:qM,lineHeight:"24px"},body2:{fontSize:kM,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:NM,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:qM,fontWeight:$M,lineHeight:"16px"},h6:{fontSize:kM,fontWeight:$M,lineHeight:"16px"},caption:{color:OM.TEXT_SECONDARY},subtitle1:{fontSize:kM,color:OM.TEXT_SECONDARY},subtitle2:{fontSize:TM,color:OM.TEXT_SECONDARY}},shape:{borderRadius:FM}});const sD=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=lD();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),mx({...n,direction:e})}("ltr");e.render(Ns.jsx(x.StrictMode,{children:Ns.jsx(Jx,{theme:p,children:Ns.jsx(IE,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:Ns.jsx(JR,{selections:n,updatePageInfo:t.updatePageInfo,children:Ns.jsx(_E,{styleService:r,children:Ns.jsx(_M,{...t})})})})})}))},uD={darker:.15,brighter:.3,opacity:.03},cD={darker:.3,brighter:.5,opacity:.05};var dD,pD,fD,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"}(dD||(dD={})),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"}(pD||(pD={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(fD||(fD={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(hD||(hD={}));const mD=e=>e?`${parseInt(e,10)}px`:void 0,gD=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?on.Transparent:n}},bD=(e,t)=>+(parseInt(e,10)*nn*t+8).toFixed(2),vD=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?en:"normal",yD=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",xD=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function SD(e,t){return r((()=>e),t)}const ED={},CD=e=>{const t=r((()=>({current:ED})),[]);return t.current=t.current===ED?e:t.current,t},wD=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,RD=(e,t,n)=>{var o,i;const a=null!==(o=null==n?void 0:n.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,l=null!==(i=null==n?void 0:n.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i;return r((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r})=>{var o,i,a;const{qHyperCube:l,nullValueRepresentation:s,snapshotData:u}=e,{qNoOfLeftDims:c,qEffectiveInterColumnSortOrder:d,qMeasureInfo:p,qDimensionInfo:f}=l,h=!!u,m=null!==(o=null==u||null===(i=u.content)||void 0===i?void 0:i.rowsPerPage)&&void 0!==o?o:15e3,g={x:Math.min(e.qHyperCube.qSize.qcx,tn),y:Math.min(e.qHyperCube.qSize.qcy,m)},b=d.slice(0,c),v=e=>b.some((t=>t===e)),y=v(GE),x=new Map(d.map((e=>{var t;return[null!==(t=f[e])&&void 0!==t?t:GE,e]}))),S=p.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==s?void 0:s.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(y)return 0;const n=e%S.length;return t?n:p.findIndex((e=>e===S[n]))},getDimensionInfo:e=>e===GE?GE:f[e],getDimensionInfoIndex:e=>{var t;return null!==(t=x.get(e))&&void 0!==t?t:-1},size:g,isSnapshot:h,hasLimitedData:!h&&g.x<e.qHyperCube.qSize.qcx,hasData:g.x>0&&g.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:y,leftDimensionInfoIndexes:b,isLeftDimension:v,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:S,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(a=e.qHyperCube.indentModeColumnWidth)&&void 0!==a?a:{type:Ft.Auto,pixels:Nt.PixelsDefault,percentage:Nt.PercentageDefault}}})({layout:e,flags:t,qShowTotalsAbove:a,qAlwaysFullyExpanded:l})),[e,a,l,t])},LD=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=CD(e);return t.current=e,t})(Mw(o));return yg((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(tn,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData($E,Dw(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},AD=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),ID=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:AD({rowsPerPage:n,totalRowCount:e,page:t})}),MD=15,DD=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:o})=>{var i;return l((async e=>{if(!e.snapshotData||!r||e.snapshotData.content)return e;if(null!=r&&r.getHyperCubePivotData){const{scrollTop:i,scrollLeft:a,leftGridScrollLeft:l}=t,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-MD,0),u=Math.max(l+o-MD,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=Mw(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(t,o,n),u=Dw(s),c={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData($E,[c,...u]),scrollTop:i,scrollLeft:a,leftGridScrollLeft:l,page:o.page,rowsPerPage:o.rowsPerPage},e.snapshotData.object.size.w=n.width,e.snapshotData.object.size.h=n.height}return e})),s((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var PD={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 _D=()=>{const e=u(),t=e.language();return r((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(PD).forEach((t=>{e.add(PD[t])}))}}(e)),[e]),{translator:e,language:t}},OD=n=>{const{flags:i}=n,l=c(),s=(e=>{const n=r((()=>qb(e)),[e]);return t((()=>()=>n.unmount()),[n]),n})(l),u=d(),y=p(),x=f(),S=h(),E=m(),C=g(),w=(e=>{const{viewState:t}=a(),n=CD(new Set),i=void 0!==t&&e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:l,resolve:s}=r((()=>GR()),[]),u=SD((e=>{n.current.add(e)}),[n]),c=SD(it((async()=>{await Promise.all(n.current),s()}),1e3),[s,n]);return o((async()=>{i&&await l}),[l,i]),r((()=>({viewState:t,isDownloadedAsPDForImage:i,notifyIsDoneRendering:c,waitForPromise:u})),[c,i,t,u])})(n),[R,L]=((e,t)=>yg((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(y,u),A=RD(u,i,R),I=b(),M=vg(u,l),{translator:D,language:P}=_D(),{pageInfo:_,updatePageInfo:O}=((n,r)=>{const{size:o,layout:{qHyperCube:{qSize:i}}}=n,a=r.isDownloadedAsPDForImage||n.isSnapshot,l=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(n),[s,u]=e((()=>{const e=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n: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})(n,r);return{page:e,shouldShowPagination:i.qcy>o.y&&!a,...ID(i.qcy,e,l)}}));return t((()=>{u((e=>({...e,...ID(n.layout.qHyperCube.qSize.qcy,e.page,l),shouldShowPagination:n.layout.qHyperCube.qSize.qcy>n.size.y&&!a})))}),[n.layout.qHyperCube.qSize.qcy,n.size.y,u,a,l]),t((()=>{const{page:e,totalPages:t}=s;if(e+1>t){const e=t-1,n=AD({...s,page:e});u({...s,page:e,rowsOnCurrentPage:n})}}),[s]),{pageInfo:s,updatePageInfo:e=>u({...s,...e,rowsOnCurrentPage:AD({...s,...e})})}})(A,w),T=((e,t,n)=>r((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n: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}})(n,t.snapshotData)),[n,e.page,t.snapshotData]))(_,u,w),k=DD({rect:v(),layoutService:A,viewService:T,model:y,pageInfo:_}),[q,N]=LD({model:y,layoutService:A,viewService:T,pageInfo:_,rect:k}),F=r((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,A,I,M,D,P,_,O,T,k,q,N,F,z,j,$,G,H,B,W,V,Y,U,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.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,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[dD.LineClamp])&&void 0!==i?i:oe(pD.Grid,fD.Grid,hD.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[dD.ColumnLineClamp])&&void 0!==l?l:oe(pD.Grid,fD.Grid,hD.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=gD(e,null==J?void 0:J[dD.Background]))&&void 0!==u?u:oe(pD.Dimension,fD.LabelName,hD.BackgroundColor))&&void 0!==s?s:on.Transparent,se={header:{fontSize:null!==(c=null!==(d=mD(null==J?void 0:J[dD.FontSize]))&&void 0!==d?d:oe(pD.Dimension,fD.LabelName,hD.FontSize))&&void 0!==c?c:Zt,fontFamily:null!==(p=null!==(f=null==J?void 0:J[dD.FontFamily])&&void 0!==f?f:oe(pD.Dimension,fD.LabelName,hD.FontFamily))&&void 0!==p?p:Qt,fontWeight:vD(null==J?void 0:J[dD.FontStyle],en),fontStyle:yD(null==J?void 0:J[dD.FontStyle]),textDecoration:xD(null==J?void 0:J[dD.FontStyle]),color:null!==(h=null!==(m=gD(e,null==J?void 0:J[dD.FontColor]))&&void 0!==m?m:oe(pD.Dimension,fD.LabelName,hD.Color))&&void 0!==h?h:sm.TEXT,background:le,hoverBackground:sg(le,uD),activeBackground:sg(le,cD)},dimensionValues:{fontSize:null!==(g=null!==(b=mD(null==Z?void 0:Z[dD.FontSize]))&&void 0!==b?b:oe(pD.Dimension,fD.LabelValue,hD.FontSize))&&void 0!==g?g:Zt,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[dD.FontFamily])&&void 0!==y?y:oe(pD.Dimension,fD.LabelValue,hD.FontFamily))&&void 0!==v?v:Qt,fontWeight:vD(null==Z?void 0:Z[dD.FontStyle],void 0),fontStyle:yD(null==Z?void 0:Z[dD.FontStyle]),textDecoration:xD(null==Z?void 0:Z[dD.FontStyle]),color:null!==(x=null!==(S=gD(e,null==Z?void 0:Z[dD.FontColor]))&&void 0!==S?S:oe(pD.Dimension,fD.LabelValue,hD.Color))&&void 0!==x?x:sm.TEXT,background:null!==(E=null!==(C=gD(e,null==Z?void 0:Z[dD.Background]))&&void 0!==C?C:oe(pD.Dimension,fD.LabelValue,hD.BackgroundColor))&&void 0!==E?E:on.Transparent},measureValues:{fontSize:null!==(w=null!==(R=mD(null==Q?void 0:Q[dD.FontSize]))&&void 0!==R?R:oe(pD.Measure,fD.LabelValue,hD.FontSize))&&void 0!==w?w:Zt,fontFamily:null!==(L=null!==(A=null==Q?void 0:Q[dD.FontFamily])&&void 0!==A?A:oe(pD.Measure,fD.LabelValue,hD.FontFamily))&&void 0!==L?L:Qt,fontWeight:vD(null==Q?void 0:Q[dD.FontStyle],"normal"),fontStyle:yD(null==Q?void 0:Q[dD.FontStyle]),textDecoration:xD(null==Q?void 0:Q[dD.FontStyle]),color:null!==(I=null!==(M=gD(e,null==Q?void 0:Q[dD.FontColor]))&&void 0!==M?M:oe(pD.Measure,fD.LabelValue,hD.Color))&&void 0!==I?I:on.FontSecondary,background:null!==(D=null!==(P=gD(e,null==Q?void 0:Q[dD.Background]))&&void 0!==P?P:oe(pD.Measure,fD.LabelValue,hD.BackgroundColor))&&void 0!==D?D:on.Transparent},measureLabels:{fontWeight:vD(null==ee?void 0:ee[dD.FontStyle],"normal"),fontStyle:yD(null==ee?void 0:ee[dD.FontStyle]),textDecoration:xD(null==ee?void 0:ee[dD.FontStyle]),color:null!==(_=null!==(O=gD(e,null==ee?void 0:ee[dD.FontColor]))&&void 0!==O?O:oe(pD.Measure,fD.LabelName,hD.Color))&&void 0!==_?_:on.FontSecondary,background:null!==(T=null!==(k=gD(e,null==ee?void 0:ee[dD.Background]))&&void 0!==k?k:oe(pD.Measure,fD.LabelName,hD.BackgroundColor))&&void 0!==T?T:on.Transparent},totalValues:{fontWeight:vD(null==te?void 0:te[dD.FontStyle],en),fontStyle:yD(null==te?void 0:te[dD.FontStyle]),textDecoration:xD(null==te?void 0:te[dD.FontStyle]),color:null!==(q=null!==(N=gD(e,null==te?void 0:te[dD.FontColor]))&&void 0!==N?N:oe(pD.Total,fD.LabelValue,hD.Color))&&void 0!==q?q:sm.TEXT,background:null!==(F=null!==(z=gD(e,null==te?void 0:te[dD.Background]))&&void 0!==z?z:oe(pD.Total,fD.LabelValue,hD.BackgroundColor))&&void 0!==F?F:on.Transparent},nullValues:{fontWeight:vD(null==ne?void 0:ne[dD.FontStyle],"normal"),fontStyle:yD(null==ne?void 0:ne[dD.FontStyle]),textDecoration:xD(null==ne?void 0:ne[dD.FontStyle]),color:null!==(j=null!==($=gD(e,null==ne?void 0:ne[dD.FontColor]))&&void 0!==$?$:oe(pD.Null,fD.LabelValue,hD.Color))&&void 0!==j?j:sm.TEXT,background:null!==(G=null!==(H=gD(e,null==ne?void 0:ne[dD.Background]))&&void 0!==H?H:oe(pD.Null,fD.LabelValue,hD.BackgroundColor))&&void 0!==G?G:on.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(B=null!==(W=gD(e,null==re?void 0:re[dD.Border]))&&void 0!==W?W:oe(pD.Grid,fD.Grid,hD.BorderColor))&&void 0!==B?B:on.DividerLight,divider:null!==(V=null!==(Y=gD(e,null==re?void 0:re[dD.Divider]))&&void 0!==Y?Y:oe(pD.Grid,fD.Divider,hD.BorderColor))&&void 0!==V?V:on.DividerDark,background:null!==(U=null!==(K=gD(e,null==re?void 0:re[dD.Background]))&&void 0!==K?K:oe(pD.Grid,fD.Grid,hD.BackgroundColor))&&void 0!==U?U:on.Transparent}};return se.headerCellHeight=Math.max(bD(se.header.fontSize,ae),bD(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(bD(se.measureValues.fontSize,ie),bD(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=bD(se.dimensionValues.fontSize,1),se})(M,A,i)),[M,A,i]),z=(e=>r((()=>[...new Set([wD(e.header),wD(e.dimensionValues),wD({...e.dimensionValues,...e.measureLabels}),wD({...e.dimensionValues,...e.nullValues}),wD({...e.dimensionValues,...e.totalValues}),wD(e.measureValues),wD({...e.measureValues,...e.nullValues}),wD({...e.measureValues,...e.totalValues})])]),[e]))(F),j=(e=>{const[t,n]=o((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return n?(console.warn("Failed to load font:",n),!0):!!t})(z);i.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&Hb(),t((()=>{!N&&y&&(null==k?void 0:k.width)&&(null==k?void 0:k.height)&&I&&T&&A&&F&&!!q&&!L&&j&&sD(s,{model:y,app:x,rect:k,selections:I,viewService:T,layoutService:A,downloadService:w,qPivotDataPages:q,styleService:F,translator:D,pageInfo:_,updatePageInfo:O,interactions:C,embed:S,keyboard:E,theme:M,env:n})}),[y,x,k,null==k?void 0:k.width,null==k?void 0:k.height,C,I,T,A,w,N,q,F,s,j,D,P,_,O,R,L,S,E,M,n])},TD={version:"3.7.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:[]};function kD(e){return{qae:{properties:{initial:TD},data:ft(e)},ext:_n(e),component(){OD(e)}}}export{kD as default};