@nebula.js/sn-pivot-table 4.4.0 → 4.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +15 -15
- package/dist/sn-pivot-table.js +14 -14
- package/dist/sn-pivot-table.systemjs.js +11 -11
- package/package.json +10 -10
- package/sn-pivot-table-ext/dist/sn-pivot-table.js +14 -14
- package/sn-pivot-table-ext/sn-pivot-table.qext +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pivot-table v4.4.
|
|
2
|
+
* @nebula.js/sn-pivot-table v4.4.2
|
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["react","@nebula.js/stardust","react-dom","picasso-plugin-q","picasso.js"],(function(e){"use strict";var t,r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,I,L,M,D,A,P,k,O,T,_,q,N,F,j,z,G;return{setters:[function(e){t=e.default,r=e,n=e.useContext,o=e.createElement,i=e.isValidElement,a=e.cloneElement,l=e.Children,s=e.useMemo,u=e.useState,c=e.useRef,d=e.forwardRef,p=e.useCallback,f=e.useEffect,m=e.createContext,h=e.memo,g=e.useLayoutEffect,b=e.PureComponent,v=e.useReducer},function(e){y=e.useMemo,x=e.useOptions,S=e.usePromise,E=e.useState,C=e.useEffect,w=e.useTheme,R=e.useInteractionState,I=e.onContextMenu,L=e.onTakeSnapshot,M=e.useImperativeHandle,D=e.useTranslator,A=e.useElement,P=e.useStaleLayout,k=e.useModel,O=e.useApp,T=e.useEmbed,_=e.useKeyboard,q=e.useSelections,N=e.useRect},function(e){F=e.default,j=e},function(e){z=e.default},function(e){G=e.default}],execute:function(){function B(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}e("default",(function(e){return{qae:{properties:{initial:ok()},data:Mt(e)},ext:Lg(e),component(){rk(e)}}}));var W={exports:{}};self,W.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Pe});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),I={},L=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function D(e){return void 0===e}function A(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]=D(e[r||t])?i:e[t],e=e[r||t]}})),e}function k(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){k(e[n],t[n])||(r=!1)})),r);if(L(e)&&L(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}I.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);k(i,a)||A(t,o)||(D(a)?n.push({op:"add",path:l,value:i}):M(i)&&M(a)?n=n.concat(I.generate(a,i,l)):L(i)&&L(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(k(t,o))return n;if(!D(t[0])&&D(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(I.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){D(t[o])&&!A(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},I.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(L(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(L(a)&&L(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return 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(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!A(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);L(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(L(o)?o.splice(+i,1):delete o[i])}))},I.clone=function(e){return R({},e)},I.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},I.updateObject=function(e,t){Object.keys(e).length?I.apply(e,I.generate(e,t)):R(e,t)};const O=I,T=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 _="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===_)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=G(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=G(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var H="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===H)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===H)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ie="qDef.base.qAggrFunc",Le={initBase:function(e,t){(t||Le.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){Le.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Ie)&&r(e,Re,i(e,Ie)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Me=Le;function De(e){return De="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},De(e)}var Ae={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:Ae,apply:Oe,applyModifiers:Te,cleanUpMeasure:_e,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var ke={};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;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===De(n))return Te({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===De(e)&&!e.disabled){if(r++,"object"!==De(Ae[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=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Te({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===De(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return je(n).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Te(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Me.isValid(r)||Me.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===De(e)&&!e.disabled){if(l++,"object"!==De(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ae[e.type].initModifier(e,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:Ae[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 Ae[n.type].updateModifier&&Ae[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Ae[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}),$e(r)):_e(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ae[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Ae[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ge(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&Ge(r)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function $e(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!Ae[t.type]&&Ge(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==De(e)||e.disabled||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):T(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var I=Math.pow(2,53)-1;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 M(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 D=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},A=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},P=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},k=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},_=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,I),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,I),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},G=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return L(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var 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}}(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)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return M(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 M(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)?M(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)}))}},$=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const H={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?k():w,I=s.defaultMeasure,L=void 0===I?O():I;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:L}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),A("qMaxStackedCells",b,v),A("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),D(g,t,n),h.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return $({measures:v.qMeasures,modifierTypes:M}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(U(a,t,n,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},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=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:l,key: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)}i.auto=!1,i.mode=a}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=H.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=H.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ie="qHyperCubeDef.qMeasures",Le="conditionalColoring",Me="measures",De="qDef.conditionalColoring";const Ae={quarantine:function(e){we({properties:e,arrayPath:Ie,quarantineName:Le,arrayName:Me,itemPath:De})},unquarantine:function(e){Re({properties:e,arrayPath:Ie,itemPath:De,arrayName:Me,quarantineName:Le})}};var Pe="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",Te="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const Ge={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:ke,itemPath:je}),we({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Te,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:ke,itemPath:je}),Re({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Te,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},Be={hypercube:H,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Ae,conditionalShow:Ge}})(),n.default})();var H=B(W.exports);const V="qHyperCubeDef.qMeasures",U="measures",Y="qHyperCubeDef.qDimensions",K="dimensions",X="qDef.representation",J="tableRepresentation",Z="qDef.conditionalColoring",Q="conditionalColoring",ee="qMiniChartDef",te="miniChartDef",re=e=>{H.unquarantineArrayProp({properties:e,arrayPath:Y,itemPath:X,arrayName:K,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:U,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:U,quarantineName:Q}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:U,quarantineName:te})},ne=e=>{H.quarantineArrayProp({properties:e,arrayPath:Y,itemPath:X,arrayName:K,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:U,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:U,quarantineName:Q}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:U,quarantineName:te})};function oe(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&oe(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function ae(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var se={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},ue="qcm-color";function ce(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:ue,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===ue){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(se[x.toLowerCase()]){a=x.toLowerCase();var w=se[a];m=w.r,h=w.g,g=w.b,b="number"==typeof se[a].a?se[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function de(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function pe(e){if(oe(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?ie(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function fe(e,t){return oe(e)?"rgba(".concat([e.r,e.g,e.b,e.a].join(", "),")"):fe(ce(e))}function me(e){return oe(e)?1===e.a?pe(e):fe(e):me(ce(e))}var he,ge,be=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ve(){var e=ce.apply(void 0,arguments);return e.invalid||function(e){return.2126*be(e.r)+.7152*be(e.g)+.0722*be(e.b)}(e)<.4}function ye(){var e=ce.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:ce(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return ve(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=pe(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=fe(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=me(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,r,n;if(oe(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?ie(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=de(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=de(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getBrightenedColor:function(){return ye(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return ye(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}var xe=function(){if(ge)return he;ge=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return he=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},he}();function Se(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ee(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ce(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(xe);var we=1/.7,Re="\\s*([+-]?\\d+)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Me=/^#([0-9a-f]{3,8})$/,De=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),Ae=new RegExp(`^rgb\\(${Le},${Le},${Le}\\)$`),Pe=new RegExp(`^rgba\\(${Re},${Re},${Re},${Ie}\\)$`),ke=new RegExp(`^rgba\\(${Le},${Le},${Le},${Ie}\\)$`),Oe=new RegExp(`^hsl\\(${Ie},${Le},${Le}\\)$`),Te=new RegExp(`^hsla\\(${Ie},${Le},${Le},${Ie}\\)$`),_e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function qe(){return this.rgb().formatHex()}function Ne(){return this.rgb().formatRgb()}function Fe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Me.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?je(t):3===r?new $e(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ze(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=De.exec(e))?new $e(t[1],t[2],t[3],1):(t=Ae.exec(e))?new $e(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Pe.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=ke.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Oe.exec(e))?Ke(t[1],t[2]/100,t[3]/100,1):(t=Te.exec(e))?Ke(t[1],t[2]/100,t[3]/100,t[4]):_e.hasOwnProperty(e)?je(_e[e]):"transparent"===e?new $e(NaN,NaN,NaN,0):null}function je(e){return new $e(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,r,n){return n<=0&&(e=t=r=NaN),new $e(e,t,r,n)}function Ge(e){return e instanceof Ce||(e=Fe(e)),e?new $e((e=e.rgb()).r,e.g,e.b,e.opacity):new $e}function Be(e,t,r,n){return 1===arguments.length?Ge(e):new $e(e,t,r,null==n?1:n)}function $e(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function We(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}`}function He(){const e=Ve(this.opacity);return`${1===e?"rgb(":"rgba("}${Ue(this.r)}, ${Ue(this.g)}, ${Ue(this.b)}${1===e?")":`, ${e})`}`}function Ve(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ue(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ye(e){return((e=Ue(e))<16?"0":"")+e.toString(16)}function Ke(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Je(e,t,r,n)}function Xe(e){if(e instanceof Je)return new Je(e.h,e.s,e.l,e.opacity);if(e instanceof Ce||(e=Fe(e)),!e)return new Je;if(e instanceof Je)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Je(a,l,s,e.opacity)}function Je(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Ze(e){return(e=(e||0)%360)<0?e+360:e}function Qe(e){return Math.max(0,Math.min(1,e||0))}function et(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Se(Ce,Fe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:Ne,toString:Ne}),Se($e,Be,Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $e(Ue(this.r),Ue(this.g),Ue(this.b),Ve(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:We,formatHex:We,formatHex8:function(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}${Ye(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:He,toString:He})),Se(Je,(function(e,t,r,n){return 1===arguments.length?Xe(e):new Je(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new Je(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Je(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new $e(et(e>=240?e-240:e+120,o,n),et(e,o,n),et(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Je(Ze(this.h),Qe(this.s),Qe(this.l),Ve(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ve(this.opacity);return`${1===e?"hsl(":"hsla("}${Ze(this.h)}, ${100*Qe(this.s)}%, ${100*Qe(this.l)}%${1===e?")":`, ${e})`}`}}));const tt=Math.PI/180,rt=180/Math.PI,nt=4/29,ot=6/29,it=3*ot*ot;function at(e){if(e instanceof lt)return new lt(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return ft(e);e instanceof $e||(e=Ge(e));var t,r,n=dt(e.r),o=dt(e.g),i=dt(e.b),a=st((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=st((.4360747*n+.3850649*o+.1430804*i)/.96422),r=st((.0139322*n+.0971045*o+.7141733*i)/.82521)),new lt(116*a-16,500*(t-a),200*(a-r),e.opacity)}function lt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function st(e){return e>.008856451679035631?Math.pow(e,1/3):e/it+nt}function ut(e){return e>ot?e*e*e:it*(e-nt)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ft(e){if(isNaN(e.h))return new lt(e.l,0,0,e.opacity);var t=e.h*tt;return new lt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Se(lt,(function(e,t,r,n){return 1===arguments.length?at(e):new lt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new lt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new lt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new $e(ct(3.1338561*(t=.96422*ut(t))-1.6168667*(e=1*ut(e))-.4906146*(r=.82521*ut(r))),ct(-.9787684*t+1.9161415*e+.033454*r),ct(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Se(pt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof lt||(e=at(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rt;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ft(this).rgb()}}));var mt=e=>()=>e;function ht(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):mt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?ht:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):mt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Be(e)).r,(t=Be(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=ht(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var gt="center",bt="bottom";[{key:"NoDataExist",alignment:gt,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:gt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:gt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:gt},{key:"DataRangeIncludingZero",alignment:bt},{key:"LimitedData",alignment:bt},{key:"NegativeOrZeroValues",alignment:bt}].reduce((function(e,t){return e[t.key]=t,e}),{});var vt,yt=["__proto__","constructor"];function xt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!yt.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function St(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Et(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wt)):void 0===t&&(t=Ct);for(var r,n,o,i,a,l=new Lt(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 Lt(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(It)}function Ct(e){return e.children}function wt(e){return Array.isArray(e)?e[1]:null}function Rt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function It(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Lt(e){this.data=e,this.depth=this.height=0,this.parent=null}function Mt(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o="rows"===(null==n?void 0:n.type)?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}Lt.prototype=Et.prototype={constructor:Lt,count:function(){return this.eachAfter(St)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Et(this).eachBefore(Rt)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},vt=function(e){
|
|
7
|
+
System.register(["react","@nebula.js/stardust","react-dom","picasso-plugin-q","picasso.js"],(function(e){"use strict";var t,r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,I,L,M,D,A,P,O,k,T,_,q,N,F,j,z,G;return{setters:[function(e){t=e.default,r=e,n=e.useContext,o=e.createElement,i=e.isValidElement,a=e.cloneElement,l=e.Children,s=e.useMemo,u=e.useState,c=e.useRef,d=e.forwardRef,p=e.useCallback,f=e.useEffect,m=e.createContext,h=e.memo,g=e.useLayoutEffect,b=e.PureComponent,v=e.useReducer},function(e){y=e.useMemo,x=e.useOptions,S=e.usePromise,E=e.useState,C=e.useEffect,w=e.useTheme,R=e.useInteractionState,I=e.onContextMenu,L=e.onTakeSnapshot,M=e.useImperativeHandle,D=e.useTranslator,A=e.useElement,P=e.useStaleLayout,O=e.useModel,k=e.useApp,T=e.useEmbed,_=e.useKeyboard,q=e.useSelections,N=e.useRect},function(e){F=e.default,j=e},function(e){z=e.default},function(e){G=e.default}],execute:function(){function B(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}e("default",(function(e){return{qae:{properties:{initial:cO()},data:Mt(e)},ext:Lg(e),component(){sO(e)}}}));var W={exports:{}};self,W.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Pe});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),I={},L=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function D(e){return void 0===e}function A(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]=D(e[r||t])?i:e[t],e=e[r||t]}})),e}function O(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){O(e[n],t[n])||(r=!1)})),r);if(L(e)&&L(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!O(e[n],t[n]))return!1;return!0}return e===t}I.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);O(i,a)||A(t,o)||(D(a)?n.push({op:"add",path:l,value:i}):M(i)&&M(a)?n=n.concat(I.generate(a,i,l)):L(i)&&L(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(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(O(t,o))return n;if(!D(t[0])&&D(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(I.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){D(t[o])&&!A(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},I.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(L(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(L(a)&&L(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return 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(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!A(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);L(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(L(o)?o.splice(+i,1):delete o[i])}))},I.clone=function(e){return R({},e)},I.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},I.updateObject=function(e,t){Object.keys(e).length?I.apply(e,I.generate(e,t)):R(e,t)};const k=I,T=function(e,r,n){if(!e)return Promise.resolve();var o=k.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===_)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=G(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=G(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var H="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===H)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===H)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ie="qDef.base.qAggrFunc",Le={initBase:function(e,t){(t||Le.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){Le.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Ie)&&r(e,Re,i(e,Ie)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Me=Le;function De(e){return De="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},De(e)}var Ae={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:Ae,apply:ke,applyModifiers:Te,cleanUpMeasure:_e,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Oe={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Oe[r.id]=Oe[r.id]||{isFirstTime:!0};var u=Oe[r.id].isFirstTime;if(Oe[r.id].isFirstTime=!1,n&&"object"===De(n))return Te({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Oe[r.id].lastReloadTime;if(Oe[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===De(e)&&!e.disabled){if(r++,"object"!==De(Ae[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=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Te({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===De(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return je(n).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Te(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Me.isValid(r)||Me.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===De(e)&&!e.disabled){if(l++,"object"!==De(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ae[e.type].initModifier(e,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:Ae[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 Ae[n.type].updateModifier&&Ae[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Ae[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}),$e(r)):_e(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ae[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Ae[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ge(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&Ge(r)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function $e(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!Ae[t.type]&&Ge(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==De(e)||e.disabled||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):T(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var I=Math.pow(2,53)-1;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 M(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 D=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},A=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},O=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},k=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},_=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,I),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,I),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},G=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return L(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var 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}}(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)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return M(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 M(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)?M(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)}))}},$=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const H={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?O():w,I=s.defaultMeasure,L=void 0===I?k():I;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:L}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),A("qMaxStackedCells",b,v),A("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),D(g,t,n),h.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return $({measures:v.qMeasures,modifierTypes:M}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(U(a,t,n,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},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=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:l,key: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)}i.auto=!1,i.mode=a}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=H.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=H.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ie="qHyperCubeDef.qMeasures",Le="conditionalColoring",Me="measures",De="qDef.conditionalColoring";const Ae={quarantine:function(e){we({properties:e,arrayPath:Ie,quarantineName:Le,arrayName:Me,itemPath:De})},unquarantine:function(e){Re({properties:e,arrayPath:Ie,itemPath:De,arrayName:Me,quarantineName:Le})}};var Pe="qHyperCubeDef.qMeasures",Oe="measures",ke="qHyperCubeDef.qDimensions",Te="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const Ge={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:Oe,itemPath:je}),we({properties:e,arrayPath:ke,quarantineName:ze,arrayName:Te,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:Oe,itemPath:je}),Re({properties:e,arrayPath:ke,quarantineName:ze,arrayName:Te,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},Be={hypercube:H,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Ae,conditionalShow:Ge}})(),n.default})();var H=B(W.exports);const V="qHyperCubeDef.qMeasures",U="measures",Y="qHyperCubeDef.qDimensions",K="dimensions",X="qDef.representation",J="tableRepresentation",Z="qDef.conditionalColoring",Q="conditionalColoring",ee="qMiniChartDef",te="miniChartDef",re=e=>{H.unquarantineArrayProp({properties:e,arrayPath:Y,itemPath:X,arrayName:K,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:U,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:U,quarantineName:Q}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:U,quarantineName:te})},ne=e=>{H.quarantineArrayProp({properties:e,arrayPath:Y,itemPath:X,arrayName:K,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:U,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:U,quarantineName:Q}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:U,quarantineName:te})};function oe(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&oe(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function ae(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var se={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},ue="qcm-color";function ce(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:ue,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===ue){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(se[x.toLowerCase()]){a=x.toLowerCase();var w=se[a];m=w.r,h=w.g,g=w.b,b="number"==typeof se[a].a?se[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function de(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function pe(e){if(oe(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?ie(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function fe(e,t){return oe(e)?"rgba(".concat([e.r,e.g,e.b,e.a].join(", "),")"):fe(ce(e))}function me(e){return oe(e)?1===e.a?pe(e):fe(e):me(ce(e))}var he,ge,be=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ve(){var e=ce.apply(void 0,arguments);return e.invalid||function(e){return.2126*be(e.r)+.7152*be(e.g)+.0722*be(e.b)}(e)<.4}function ye(){var e=ce.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:ce(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return ve(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=pe(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=fe(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=me(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,r,n;if(oe(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?ie(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=de(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=de(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getBrightenedColor:function(){return ye(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return ye(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}var xe=function(){if(ge)return he;ge=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return he=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},he}();function Se(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ee(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ce(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(xe);var we=1/.7,Re="\\s*([+-]?\\d+)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Me=/^#([0-9a-f]{3,8})$/,De=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),Ae=new RegExp(`^rgb\\(${Le},${Le},${Le}\\)$`),Pe=new RegExp(`^rgba\\(${Re},${Re},${Re},${Ie}\\)$`),Oe=new RegExp(`^rgba\\(${Le},${Le},${Le},${Ie}\\)$`),ke=new RegExp(`^hsl\\(${Ie},${Le},${Le}\\)$`),Te=new RegExp(`^hsla\\(${Ie},${Le},${Le},${Ie}\\)$`),_e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function qe(){return this.rgb().formatHex()}function Ne(){return this.rgb().formatRgb()}function Fe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Me.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?je(t):3===r?new $e(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ze(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=De.exec(e))?new $e(t[1],t[2],t[3],1):(t=Ae.exec(e))?new $e(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Pe.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=Oe.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ke.exec(e))?Ke(t[1],t[2]/100,t[3]/100,1):(t=Te.exec(e))?Ke(t[1],t[2]/100,t[3]/100,t[4]):_e.hasOwnProperty(e)?je(_e[e]):"transparent"===e?new $e(NaN,NaN,NaN,0):null}function je(e){return new $e(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,r,n){return n<=0&&(e=t=r=NaN),new $e(e,t,r,n)}function Ge(e){return e instanceof Ce||(e=Fe(e)),e?new $e((e=e.rgb()).r,e.g,e.b,e.opacity):new $e}function Be(e,t,r,n){return 1===arguments.length?Ge(e):new $e(e,t,r,null==n?1:n)}function $e(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function We(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}`}function He(){const e=Ve(this.opacity);return`${1===e?"rgb(":"rgba("}${Ue(this.r)}, ${Ue(this.g)}, ${Ue(this.b)}${1===e?")":`, ${e})`}`}function Ve(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ue(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ye(e){return((e=Ue(e))<16?"0":"")+e.toString(16)}function Ke(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Je(e,t,r,n)}function Xe(e){if(e instanceof Je)return new Je(e.h,e.s,e.l,e.opacity);if(e instanceof Ce||(e=Fe(e)),!e)return new Je;if(e instanceof Je)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Je(a,l,s,e.opacity)}function Je(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Ze(e){return(e=(e||0)%360)<0?e+360:e}function Qe(e){return Math.max(0,Math.min(1,e||0))}function et(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Se(Ce,Fe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:Ne,toString:Ne}),Se($e,Be,Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $e(Ue(this.r),Ue(this.g),Ue(this.b),Ve(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:We,formatHex:We,formatHex8:function(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}${Ye(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:He,toString:He})),Se(Je,(function(e,t,r,n){return 1===arguments.length?Xe(e):new Je(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new Je(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Je(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new $e(et(e>=240?e-240:e+120,o,n),et(e,o,n),et(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Je(Ze(this.h),Qe(this.s),Qe(this.l),Ve(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ve(this.opacity);return`${1===e?"hsl(":"hsla("}${Ze(this.h)}, ${100*Qe(this.s)}%, ${100*Qe(this.l)}%${1===e?")":`, ${e})`}`}}));const tt=Math.PI/180,rt=180/Math.PI,nt=4/29,ot=6/29,it=3*ot*ot;function at(e){if(e instanceof lt)return new lt(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return ft(e);e instanceof $e||(e=Ge(e));var t,r,n=dt(e.r),o=dt(e.g),i=dt(e.b),a=st((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=st((.4360747*n+.3850649*o+.1430804*i)/.96422),r=st((.0139322*n+.0971045*o+.7141733*i)/.82521)),new lt(116*a-16,500*(t-a),200*(a-r),e.opacity)}function lt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function st(e){return e>.008856451679035631?Math.pow(e,1/3):e/it+nt}function ut(e){return e>ot?e*e*e:it*(e-nt)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ft(e){if(isNaN(e.h))return new lt(e.l,0,0,e.opacity);var t=e.h*tt;return new lt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Se(lt,(function(e,t,r,n){return 1===arguments.length?at(e):new lt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new lt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new lt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new $e(ct(3.1338561*(t=.96422*ut(t))-1.6168667*(e=1*ut(e))-.4906146*(r=.82521*ut(r))),ct(-.9787684*t+1.9161415*e+.033454*r),ct(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Se(pt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof lt||(e=at(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rt;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ft(this).rgb()}}));var mt=e=>()=>e;function ht(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):mt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?ht:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):mt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Be(e)).r,(t=Be(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=ht(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var gt="center",bt="bottom";[{key:"NoDataExist",alignment:gt,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:gt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:gt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:gt},{key:"DataRangeIncludingZero",alignment:bt},{key:"LimitedData",alignment:bt},{key:"NegativeOrZeroValues",alignment:bt}].reduce((function(e,t){return e[t.key]=t,e}),{});var vt,yt=["__proto__","constructor"];function xt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!yt.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function St(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Et(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wt)):void 0===t&&(t=Ct);for(var r,n,o,i,a,l=new Lt(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 Lt(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(It)}function Ct(e){return e.children}function wt(e){return Array.isArray(e)?e[1]:null}function Rt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function It(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Lt(e){this.data=e,this.depth=this.height=0,this.parent=null}function Mt(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o="rows"===(null==n?void 0:n.type)?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}Lt.prototype=Et.prototype={constructor:Lt,count:function(){return this.eachAfter(St)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Et(this).eachBefore(Rt)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},vt=function(e){
|
|
8
8
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
9
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},vt({exports:{}});const Dt="qHyperCubeDef.qDimensions",At="dimensions",Pt="qOtherTotalSpec.qTotalMode",kt="totalMode",Ot={quarantine(e){H.quarantineArrayProp({properties:e,arrayPath:Dt,quarantineName:kt,arrayName:At,itemPath:Pt})},unquarantine(e){H.unquarantineArrayProp({properties:e,arrayPath:Dt,quarantineName:kt,arrayName:At,itemPath:Pt})}};function Tt(e){const t=Mt(e);return(e,r,n,o)=>{var i,a,l;const s=H.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),u=s.qProperty.qHyperCubeDef.qDimensions.length,c=s.qProperty.qHyperCubeDef.qMeasures.length;let d,p=s.qProperty.qHyperCubeDef.qInterColumnSortOrder,f=!0;u+c===p.length&&xt(s,"qProperty.qLayoutExclude.quarantine.interColSortOrder",p.concat());const m=null===(i=s.qProperty.qLayoutExclude.quarantine)||void 0===i?void 0:i.pivotInterColSortOrder;m?(p=m,d=[...m],xt(s,"qProperty.qHyperCubeDef.qInterColumnSortOrder",p),s.qProperty.qLayoutExclude.quarantine&&delete s.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):p.length=0;const h=+(p.indexOf(-1)>-1),g=u+h;if(g>p.length)for(let e=p.length;e<g;e++)p.indexOf(e)<0&&p.push(e-h);for(let e=p.length-1;e>=0;e--)p[e]>=u&&p.splice(e,1);c>1&&p.indexOf(-1)<0?p.push(-1):c<2&&p.indexOf(-1)>-1&&p.splice(p.indexOf(-1),1);const b=null!==(a=s.qProperty.qHyperCubeDef.qNoOfLeftDims)&&void 0!==a?a:-1;if(u>0&&-1===b&&xt(s,"qProperty.qHyperCubeDef.qNoOfLeftDims",u),(null===(l=d)||void 0===l?void 0:l.length)===p.length){for(let e=0;e<d.length;e++)if(d[e]!==p[e]){f=!1;break}f&&H.unquarantineProperty(s.qProperty,"noOfLeftDims")}return H.conditionalShow.unquarantine(s.qProperty),Ot.unquarantine(s.qProperty),re(s.qProperty),H.unquarantineProperty(s.qProperty,"pivotTableIndentMode"),s}}function _t(e,t){var r;const n=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,o=n.slice(),i=n.indexOf(-1);i>-1&&n.splice(i,1);const a=H.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),l=a.properties.qHyperCubeDef,s=l.qDimensions.length,u=l.qMeasures.length;let c=l.qInterColumnSortOrder;xt(a,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",o),H.quarantineProperty(a.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete a.properties.qHyperCubeDef.qNoOfLeftDims;const d=null===(r=a.properties.qLayoutExclude.quarantine)||void 0===r?void 0:r.interColSortOrder;d&&(c=d,xt(a,"properties.qHyperCubeDef.qInterColumnSortOrder",c),xt(a,"data.0.interColumnSortOrder",c),a.properties.qLayoutExclude.quarantine&&delete a.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=c.length;e<s+u;e++)c.length<=e&&c.push(e);return H.quarantineProperty(a.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),H.conditionalShow.quarantine(a.properties),Ot.quarantine(a.properties),ne(a.properties),a}const qt={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Nt="12px",Ft="nebula-table-utils-head-menu-button",jt="sn-copy-cell";let zt=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e}({});const Gt="nebula-table-utils-column-adjuster";let Bt=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}({}),$t=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Wt={darker:.15,brighter:.3,opacity:.03},Ht={darker:.3,brighter:.5,opacity:.05};let Vt=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({}),Ut=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e}({}),Yt=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const Kt=e=>{switch(null==e?void 0:e.type){case"url":return Ut.Link;case"image":return Ut.Image;case"indicator":return Ut.Indicator;case"miniChart":return Ut.MiniChart;default:return Ut.Text}},Xt=({args:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}={}})=>!e.properties.qHyperCubeDef.qIndentMode||(!(!r&&!n)||!t),Jt=({isImagesEnabled:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:r})=>{const{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}=null!=r?r:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,r,i)=>Xt({args:i,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}}),options(t,r,i){const{qIndentMode:a}=i.properties.qHyperCubeDef,l=[{value:"text",translation:"Object.Table.Representation.Text"}];return a&&!n||l.push({value:"url",translation:"Object.Table.Representation.Link"}),(!a&&e||a&&o)&&l.push({value:"image",translation:"Object.Table.Representation.Image"}),l}}},Zt=(e,t)=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(r,n,o)=>Kt(r.qDef.representation)===Ut.Link&&Xt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(r,n,o)=>{var i;return Kt(r.qDef.representation)===Ut.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===Yt.Dimension&&Xt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(r,n,o)=>{var i;return Kt(r.qDef.representation)===Ut.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===Yt.Attribute&&Xt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}}}),Qt=(e,t,r)=>{if(e||r)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,o)=>Kt(e.qDef.representation)===Ut.Image&&Xt({args:o,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:r}}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},...t&&r&&{imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{var n,o;if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:i,qNoOfLeftDims:a,qDimensions:l,qIndentMode:s}=r.properties.qHyperCubeDef;let u=!1;null==i||i.indexOf(-1);const c=null!==(n=null==l?void 0:l.indexOf(e))&&void 0!==n?n:1/0;return(null!==(o=null==i?void 0:i.slice(0,a))&&void 0!==o?o:[]).indexOf(c)>-1&&(u=!0),u&&s}}}}}}},er=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),l=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),s=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:Jt({isImagesEnabled:s,isIndentModeEnabled:i,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:a,isImagesSupportedInIndentMode:l}}),...Zt(i,a),...Qt(s,i,l)}},tr=(e,t)=>{var r;const{flags:n,anything:o}=e,i=null===(r=o.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=i&&i("tableImages"))&&t.some((e=>e===Ut.Image)),l=n.isEnabled("CLIENT_IM_5975_INDENT_MODE"),s=n.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")&&!(null!=i&&i("qMiniChartDef"))&&t.some((e=>e===Ut.MiniChart)),u=n.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=i&&i("tableIndicators"))&&t.some((e=>e===Ut.Indicator));return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>Xt({args:r,isIndentModeEnabled:l}),options:(e,t,r)=>(e=>{var t;const{qIndentMode:r}=null!==(t=e.properties.qHyperCubeDef)&&void 0!==t?t:{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return!r&&a&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),u&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),s&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(r)},representationImage:a?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>Kt(e.qDef.representation)===Ut.Image&&Xt({args:r,isIndentModeEnabled:l}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:u?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:s?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var rr,nr,or,ir;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(rr||(rr={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(nr||(nr={})),function(e){e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid"}(or||(or={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(ir||(ir={}));const ar="image",lr=(e,t,r)=>{var n,o,i;if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const a=null!==(n=null===(o=r.properties.qHyperCubeDef.qInterColumnSortOrder)||void 0===o?void 0:o.indexOf(-1))&&void 0!==n?n:-1;let l=null!==(i=r.properties.qHyperCubeDef.qNoOfLeftDims)&&void 0!==i?i:-1;a>-1&&a<l&&(l-=1);const s=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===s||s>=l},sr=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:$t.Auto,translation:"Common.Auto"},{value:$t.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:$t.Pixels,translation:"Object.Table.Column.Pixels"},{value:$t.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:$t.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Bt.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===$t.Pixels},change(e){var t;void 0!==(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.pixels)&&(e.qDef.columnWidth.pixels=Math.max(Bt.PixelsMin,Math.min(Bt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Bt.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===$t.Percentage},change:e=>{var t;void 0!==(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.percentage)&&(e.qDef.columnWidth.percentage=Math.max(Bt.PercentageMin,Math.min(Bt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),ur=({key:e,translation:t,env:r})=>{var n,o;const i=r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(n=r.anything.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;return!i||"labelTextAlign"===e||(null===(r=t.qDef.representation)||void 0===r?void 0:r.type)!==ar}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var r;return void 0!==t.qDef[e]&&!t.qDef[e].auto&&(!i||"labelTextAlign"===e||(null===(r=t.qDef.representation)||void 0===r?void 0:r.type)!==ar)}}}},cr="TOTAL_OFF",dr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:nr.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:nr.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},pr="TOTAL_OFF",fr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:nr.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:nr.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},mr=e=>{var t,r;const{translator:n,anything:o,flags:i}=e,a=(e=>{var t,r;const{translator:n,anything:o}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:cr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:cr,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&lr},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==cr&&lr(e,0,r)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:dr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...er(e),...sr()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:dr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...tr(e,[Ut.Image]),...sr()}}}}}}})(e),l=i.isEnabled("IM_6843_FILTER_ADVANCED_MODE");return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:pr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:pr,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&lr},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==pr&&lr(e,0,r)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:fr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...er(e),...sr()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:fr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...tr(e,[Ut.Image]),...sr()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,show:l,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}};function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hr.apply(null,arguments)}var gr={exports:{}};function br(){}function vr(){}vr.resetWarningCache=br;gr.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:vr,resetWarningCache:br};return r.PropTypes=r,r}();var yr=B(gr.exports);function xr(e){if(e.type)return e;if("#"===e.charAt(0))return xr(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 Sr(e,t){return e=xr(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 Er(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Cr(e,t){return Cr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cr(e,t)}function wr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cr(e,t)}function Rr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Ir={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},Lr={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Ir,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_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_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Mr=12,Dr=14,Ar=16,Pr=24,kr=3,Or=300,Tr=400,_r=600,qr=700,Nr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Sr(Lr.GREYSCALE_0,.05),Sr(Lr.GREEN_PALE,.5),Sr(Lr.BLUE_PALE,.5),Sr(Lr.GREEN_PALE,.5),Sr(Lr.BLUE_PALE,.5),Sr(Lr.GREEN_PALE,.5),Sr(Lr.BLUE_PALE,.5);Sr(Lr.GREEN_PALE,.5),Sr(Lr.BLUE_PALE,.5),Sr(Lr.GREEN_PALE,.5),Sr(Lr.BLUE_PALE,.5);var Fr={exports:{}},jr={},zr=t,Gr=Symbol.for("react.element"),Br=Symbol.for("react.fragment"),$r=Object.prototype.hasOwnProperty,Wr=zr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hr={key:!0,ref:!0,__self:!0,__source:!0};function Vr(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)$r.call(t,n)&&!Hr.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:Gr,type:e,key:i,ref:a,props:o,_owner:Wr.current}}jr.Fragment=Br,jr.jsx=Vr,jr.jsxs=Vr,Fr.exports=jr;var Ur,Yr=Fr.exports;function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kr.apply(null,arguments)}var Xr,Jr=function(e){return r.createElement("svg",Kr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Ur||(Ur=r.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zr.apply(null,arguments)}var Qr=function(e){return r.createElement("svg",Zr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Xr||(Xr=r.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 en({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Yr.jsx("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,children:t})}function tn(e={}){return Yr.jsx(en,{...e,children:Yr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yr.jsx("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"})]})})}function rn(e={}){return Yr.jsx(en,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function nn(e={}){return Yr.jsx(en,{fontSize:"medium",...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function on(e={}){return Yr.jsx(en,{fontSize:"medium",...e,children:Yr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yr.jsx("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"})]})})}function an({className:e}){return Yr.jsx(en,{fontSize:"small",className:e,children:Yr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yr.jsx("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"}),Yr.jsx("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"})]})})})})})}Yr.jsx(Qr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(Jr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(nn,{}),Yr.jsx(on,{}),Yr.jsx((function(e={}){return Yr.jsx(en,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Yr.jsx(tn,{}),Yr.jsx(rn,{}),Yr.jsx(Jr,{style:{color:Lr.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const ln={black:"#000",white:"#fff"},sn="#e57373",un="#ef5350",cn="#f44336",dn="#d32f2f",pn="#c62828",fn="#f3e5f5",mn="#ce93d8",hn="#ba68c8",gn="#ab47bc",bn="#9c27b0",vn="#7b1fa2",yn="#e3f2fd",xn="#90caf9",Sn="#42a5f5",En="#1976d2",Cn="#1565c0",wn="#4fc3f7",Rn="#29b6f6",In="#03a9f4",Ln="#0288d1",Mn="#01579b",Dn="#81c784",An="#66bb6a",Pn="#4caf50",kn="#388e3c",On="#2e7d32",Tn="#1b5e20",_n="#ffb74d",qn="#ffa726",Nn="#ff9800",Fn="#f57c00",jn="#e65100",zn={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 Gn(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 Bn="$$material";function $n(){return $n=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},$n.apply(this,arguments)}function Wn(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function Hn(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Vn=function(){return Vn=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},Vn.apply(this,arguments)};function Un(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 Yn="-ms-",Kn="-moz-",Xn="-webkit-",Jn="comm",Zn="rule",Qn="decl",eo="@keyframes",to=Math.abs,ro=String.fromCharCode,no=Object.assign;function oo(e){return e.trim()}function io(e,t){return(e=t.exec(e))?e[0]:e}function ao(e,t,r){return e.replace(t,r)}function lo(e,t,r){return e.indexOf(t,r)}function so(e,t){return 0|e.charCodeAt(t)}function uo(e,t,r){return e.slice(t,r)}function co(e){return e.length}function po(e){return e.length}function fo(e,t){return t.push(e),e}function mo(e,t){return e.filter((function(e){return!io(e,t)}))}var ho=1,go=1,bo=0,vo=0,yo=0,xo="";function So(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ho,column:go,length:a,return:"",siblings:l}}function Eo(e,t){return no(So("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Co(e){for(;e.root;)e=Eo(e.root,{children:[e]});fo(e,e.siblings)}function wo(){return yo=vo>0?so(xo,--vo):0,go--,10===yo&&(go=1,ho--),yo}function Ro(){return yo=vo<bo?so(xo,vo++):0,go++,10===yo&&(go=1,ho++),yo}function Io(){return so(xo,vo)}function Lo(){return vo}function Mo(e,t){return uo(xo,e,t)}function Do(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 Ao(e){return oo(Mo(vo-1,Oo(91===e?e+2:40===e?e+1:e)))}function Po(e){for(;(yo=Io())&&yo<33;)Ro();return Do(e)>2||Do(yo)>3?"":" "}function ko(e,t){for(;--t&&Ro()&&!(yo<48||yo>102||yo>57&&yo<65||yo>70&&yo<97););return Mo(e,Lo()+(t<6&&32==Io()&&32==Ro()))}function Oo(e){for(;Ro();)switch(yo){case e:return vo;case 34:case 39:34!==e&&39!==e&&Oo(yo);break;case 40:41===e&&Oo(e);break;case 92:Ro()}return vo}function To(e,t){for(;Ro()&&e+yo!==57&&(e+yo!==84||47!==Io()););return"/*"+Mo(t,vo-1)+"*"+ro(47===e?e:Ro())}function _o(e){for(;!Do(Io());)Ro();return Mo(e,vo)}function qo(e){return function(e){return xo="",e}(No("",null,null,null,[""],e=function(e){return ho=go=1,bo=co(xo=e),vo=0,[]}(e),0,[0],e))}function No(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=Ro()){case 40:if(108!=m&&58==so(C,d-1)){-1!=lo(C+=ao(Ao(v),"&","&\f"),"&\f",to(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Ao(v);break;case 9:case 10:case 13:case 32:C+=Po(m);break;case 92:C+=ko(Lo()-1,7);continue;case 47:switch(Io()){case 42:case 47:fo(jo(To(Ro(),Lo()),t,r,s),s);break;default:C+="/"}break;case 123*h:l[u++]=co(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=ao(C,/\f/g,"")),f>0&&co(C)-d&&fo(f>32?zo(C+";",n,r,d-1,s):zo(ao(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(fo(E=Fo(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)No(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===so(C,3)?100:p){case 100:case 108:case 109:case 115:No(e,E,E,n&&fo(Fo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:No(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+co(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==wo())continue;switch(C+=ro(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(co(C)-1)*b,b=1;break;case 64:45===Io()&&(C+=Ao(Ro())),p=Io(),c=d=co(y=C+=_o(Lo())),v++;break;case 45:45===m&&2==co(C)&&(h=0)}}return i}function Fo(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=po(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=uo(e,p+1,p=to(g=a[h])),x=e;v<m;++v)(x=oo(g>0?f[v]+" "+y:ao(y,/&\f/g,f[v])))&&(s[b++]=x);return So(e,t,r,0===o?Zn:l,s,u,c,d)}function jo(e,t,r,n){return So(e,t,r,Jn,ro(yo),uo(e,2,-2),0,n)}function zo(e,t,r,n,o){return So(e,t,r,Qn,uo(e,0,n),uo(e,n+1,-1),n,o)}function Go(e,t,r){switch(function(e,t){return 45^so(e,0)?(((t<<2^so(e,0))<<2^so(e,1))<<2^so(e,2))<<2^so(e,3):0}(e,t)){case 5103:return Xn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Xn+e+e;case 4789:return Kn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xn+e+Kn+e+Yn+e+e;case 5936:switch(so(e,t+11)){case 114:return Xn+e+Yn+ao(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xn+e+Yn+ao(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xn+e+Yn+ao(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Xn+e+Yn+e+e;case 6165:return Xn+e+Yn+"flex-"+e+e;case 5187:return Xn+e+ao(e,/(\w+).+(:[^]+)/,Xn+"box-$1$2"+Yn+"flex-$1$2")+e;case 5443:return Xn+e+Yn+"flex-item-"+ao(e,/flex-|-self/g,"")+(io(e,/flex-|baseline/)?"":Yn+"grid-row-"+ao(e,/flex-|-self/g,""))+e;case 4675:return Xn+e+Yn+"flex-line-pack"+ao(e,/align-content|flex-|-self/g,"")+e;case 5548:return Xn+e+Yn+ao(e,"shrink","negative")+e;case 5292:return Xn+e+Yn+ao(e,"basis","preferred-size")+e;case 6060:return Xn+"box-"+ao(e,"-grow","")+Xn+e+Yn+ao(e,"grow","positive")+e;case 4554:return Xn+ao(e,/([^-])(transform)/g,"$1"+Xn+"$2")+e;case 6187:return ao(ao(ao(e,/(zoom-|grab)/,Xn+"$1"),/(image-set)/,Xn+"$1"),e,"")+e;case 5495:case 3959:return ao(e,/(image-set\([^]*)/,Xn+"$1$`$1");case 4968:return ao(ao(e,/(.+:)(flex-)?(.*)/,Xn+"box-pack:$3"+Yn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xn+e+e;case 4200:if(!io(e,/flex-|baseline/))return Yn+"grid-column-align"+uo(e,t)+e;break;case 2592:case 3360:return Yn+ao(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,io(e.props,/grid-\w+-end/)}))?~lo(e+(r=r[t].value),"span",0)?e:Yn+ao(e,"-start","")+e+Yn+"grid-row-span:"+(~lo(r,"span",0)?io(r,/\d+/):+io(r,/\d+/)-+io(e,/\d+/))+";":Yn+ao(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return io(e.props,/grid-\w+-start/)}))?e:Yn+ao(ao(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ao(e,/(.+)-inline(.+)/,Xn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(co(e)-1-t>6)switch(so(e,t+1)){case 109:if(45!==so(e,t+4))break;case 102:return ao(e,/(.+:)(.+)-([^]+)/,"$1"+Xn+"$2-$3$1"+Kn+(108==so(e,t+3)?"$3":"$2-$3"))+e;case 115:return~lo(e,"stretch",0)?Go(ao(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return ao(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return Yn+r+":"+n+l+(o?Yn+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===so(e,t+6))return ao(e,":",":"+Xn)+e;break;case 6444:switch(so(e,45===so(e,14)?18:11)){case 120:return ao(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Xn+(45===so(e,14)?"inline-":"")+"box$3$1"+Xn+"$2$3$1"+Yn+"$2box$3")+e;case 100:return ao(e,":",":"+Yn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ao(e,"scroll-","scroll-snap-")+e}return e}function Bo(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function $o(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Qn:return e.return=e.return||e.value;case Jn:return"";case eo:return e.return=e.value+"{"+Bo(e.children,n)+"}";case Zn:if(!co(e.value=e.props.join(",")))return""}return co(r=Bo(e.children,n))?e.return=e.value+"{"+r+"}":""}function Wo(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qn:return void(e.return=Go(e.value,e.length,r));case eo:return Bo([Eo(e,{value:ao(e.value,"@","@"+Xn)})],n);case Zn:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(io(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Co(Eo(e,{props:[ao(t,/:(read-\w+)/,":-moz-$1")]})),Co(Eo(e,{props:[t]})),no(e,{props:mo(r,n)});break;case"::placeholder":Co(Eo(e,{props:[ao(t,/:(plac\w+)/,":"+Xn+"input-$1")]})),Co(Eo(e,{props:[ao(t,/:(plac\w+)/,":-moz-$1")]})),Co(Eo(e,{props:[ao(t,/:(plac\w+)/,Yn+"input-$1")]})),Co(Eo(e,{props:[t]})),no(e,{props:mo(r,n)})}return""}))}}var Ho={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},Vo="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Uo="active",Yo="data-styled-version",Ko="6.1.15",Xo="/*!sc*/\n",Jo="undefined"!=typeof window&&"HTMLElement"in window,Zo=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={},ei=Object.freeze([]),ti=Object.freeze({});function ri(e,t,r){return void 0===r&&(r=ti),e.theme!==r.theme&&e.theme||t||r.theme}var ni=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"]),oi=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ii=/(^-|-$)/g;function ai(e){return e.replace(oi,"-").replace(ii,"")}var li=/(a)(d)/gi,si=function(e){return String.fromCharCode(e+(e>25?39:97))};function ui(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=si(t%52)+r;return(si(t%52)+r).replace(li,"$1-$2")}var ci,di=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},pi=function(e){return di(5381,e)};function fi(e){return ui(pi(e)>>>0)}function mi(e){return"string"==typeof e&&!0}var hi="function"==typeof Symbol&&Symbol.for,gi=hi?Symbol.for("react.memo"):60115,bi=hi?Symbol.for("react.forward_ref"):60112,vi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Si=((ci={})[bi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ci[gi]=xi,ci);function Ei(e){return("type"in(t=e)&&t.type.$$typeof)===gi?xi:"$$typeof"in e?Si[e.$$typeof]:vi;var t}var Ci=Object.defineProperty,wi=Object.getOwnPropertyNames,Ri=Object.getOwnPropertySymbols,Ii=Object.getOwnPropertyDescriptor,Li=Object.getPrototypeOf,Mi=Object.prototype;function Di(e,t,r){if("string"!=typeof t){if(Mi){var n=Li(t);n&&n!==Mi&&Di(e,n,r)}var o=wi(t);Ri&&(o=o.concat(Ri(t)));for(var i=Ei(e),a=Ei(t),l=0;l<o.length;++l){var s=o[l];if(!(s in yi||r&&r[s]||a&&s in a||i&&s in i)){var u=Ii(t,s);try{Ci(e,s,u)}catch(e){}}}}return e}function Ai(e){return"function"==typeof e}function Pi(e){return"object"==typeof e&&"styledComponentId"in e}function ki(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Oi(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Ti(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function _i(e,t,r){if(void 0===r&&(r=!1),!r&&!Ti(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=_i(e[n],t[n]);else if(Ti(t))for(var n in t)e[n]=_i(e[n],t[n]);return e}function qi(e,t){Object.defineProperty(e,"toString",{value:t})}function Ni(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Fi=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw Ni(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Xo);return t},e}(),ji=new Map,zi=new Map,Gi=1,Bi=function(e){if(ji.has(e))return ji.get(e);for(;zi.has(Gi);)Gi++;var t=Gi++;return ji.set(e,t),zi.set(t,e),t},$i=function(e,t){Gi=t+1,ji.set(e,t),zi.set(t,e)},Wi="style[".concat(Vo,"][").concat(Yo,'="').concat(Ko,'"]'),Hi=new RegExp("^".concat(Vo,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Vi=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)},Ui=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Xo),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(Hi);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&($i(c,u),Vi(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Yi=function(e){for(var t=document.querySelectorAll(Wi),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Vo)!==Uo&&(Ui(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Ki=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Vo,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Vo,Uo),n.setAttribute(Yo,Ko);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Xi=function(){function e(e){this.element=Ki(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw Ni(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ji=function(){function e(e){this.element=Ki(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}(),Zi=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=Jo,ea={isServer:!Jo,useCSSOMInjection:!Zo},ta=function(){function e(e,t,r){void 0===e&&(e=ti),void 0===t&&(t={});var n=this;this.options=Vn(Vn({},ea),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Jo&&Qi&&(Qi=!1,Yi(this)),qi(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return zi.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(Vo,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Xo)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Bi(e)},e.prototype.rehydrate=function(){!this.server&&Jo&&Yi(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Vn(Vn({},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 Zi(r):t?new Xi(r):new Ji(r)}(this.options),new Fi(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(Bi(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(Bi(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Bi(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ra=/&/g,na=/^\s*\/\/.*$/gm;function oa(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=oa(e.children,t)),e}))}var ia=new ta,aa=function(){var e,t,r,n=ti,o=n.options,i=void 0===o?ti:o,a=n.plugins,l=void 0===a?ei:a,s=function(r,n,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):r},u=l.slice();u.push((function(e){e.type===Zn&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ra,t).replace(r,s))})),i.prefix&&u.push(Wo),u.push($o);var c=function(n,o,a,l){void 0===o&&(o=""),void 0===a&&(a=""),void 0===l&&(l="&"),e=l,t=o,r=new RegExp("\\".concat(t,"\\b"),"g");var s=n.replace(na,""),c=qo(a||o?"".concat(a," ").concat(o," { ").concat(s," }"):s);i.namespace&&(c=oa(c,i.namespace));var d,p=[];return Bo(c,function(e){var t=po(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(u.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return c.hash=l.length?l.reduce((function(e,t){return t.name||Ni(15),di(e,t.name)}),5381).toString():"",c}(),la=t.createContext({shouldForwardProp:void 0,styleSheet:ia,stylis:aa});function sa(){return n(la)}la.Consumer;var ua=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=aa);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,qi(this,(function(){throw Ni(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=aa),this.name+e.hash},e}(),ca=function(e){return e>="A"&&e<="Z"};function da(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;ca(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var pa=function(e){return null==e||!1===e||""===e},fa=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!pa(i)&&(Array.isArray(i)&&i.isCss||Ai(i)?n.push("".concat(da(o),":"),i,";"):Ti(i)?n.push.apply(n,Un(Un(["".concat(o," {")],fa(i),!1),["}"],!1)):n.push("".concat(da(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Ho||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function ma(e,t,r,n){return pa(e)?[]:Pi(e)?[".".concat(e.styledComponentId)]:Ai(e)?!Ai(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ma(e(t),t,r,n):e instanceof ua?r?(e.inject(r,n),[e.getName(n)]):[e]:Ti(e)?fa(e):Array.isArray(e)?Array.prototype.concat.apply(ei,e.map((function(e){return ma(e,t,r,n)}))):[e.toString()];var o}function ha(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ai(r)&&!Pi(r))return!1}return!0}var ga=pi(Ko),ba=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&ha(e),this.componentId=t,this.baseHash=di(ga,t),this.baseStyle=r,ta.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=ki(n,this.staticRulesId);else{var o=Oi(ma(this.rules,e,t,r)),i=ui(di(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=ki(n,i),this.staticRulesId=i}else{for(var l=di(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=Oi(ma(c,e,t,r));l=di(l,d+u),s+=d}}if(s){var p=ui(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=ki(n,p)}}return n},e}(),va=t.createContext(void 0);va.Consumer;var ya={};function xa(e,r,n){var i=Pi(e),a=e,l=!mi(e),s=r.attrs,u=void 0===s?ei:s,c=r.componentId,d=void 0===c?function(e,t){var r="string"!=typeof e?"sc":ai(e);ya[r]=(ya[r]||0)+1;var n="".concat(r,"-").concat(fi(Ko+r+ya[r]));return t?"".concat(t,"-").concat(n):n}(r.displayName,r.parentComponentId):c,p=r.displayName,f=void 0===p?function(e){return mi(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,m=r.displayName&&r.componentId?"".concat(ai(r.displayName),"-").concat(r.componentId):r.componentId||d,h=i&&a.attrs?a.attrs.concat(u).filter(Boolean):u,g=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var v=r.shouldForwardProp;g=function(e,t){return b(e,t)&&v(e,t)}}else g=b}var y=new ba(n,m,i?a.componentStyle:void 0);function x(e,r){return function(e,r,n){var i=e.attrs,a=e.componentStyle,l=e.defaultProps,s=e.foldedComponentIds,u=e.styledComponentId,c=e.target,d=t.useContext(va),p=sa(),f=e.shouldForwardProp||p.shouldForwardProp,m=ri(r,d,l)||ti,h=function(e,t,r){for(var n,o=Vn(Vn({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Ai(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?ki(o[l],a[l]):"style"===l?Vn(Vn({},o[l]),a[l]):a[l]}return t.className&&(o.className=ki(o.className,t.className)),o}(i,r,m),g=h.as||c,b={};for(var v in h)void 0===h[v]||"$"===v[0]||"as"===v||"theme"===v&&h.theme===m||("forwardedAs"===v?b.as=h.forwardedAs:f&&!f(v,g)||(b[v]=h[v]));var y=function(e,t){var r=sa();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,h),x=ki(s,u);return y&&(x+=" "+y),h.className&&(x+=" "+h.className),b[mi(g)&&!ni.has(g)?"class":"className"]=x,n&&(b.ref=n),o(g,b)}(S,e,r)}x.displayName=f;var S=t.forwardRef(x);return S.attrs=h,S.componentStyle=y,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=i?ki(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=m,S.target=i?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)_i(e,o[n],!0);return e}({},a.defaultProps,e):e}}),qi(S,(function(){return".".concat(S.styledComponentId)})),l&&Di(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Sa(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 Ea=function(e){return Object.assign(e,{isCss:!0})};function Ca(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ai(e)||Ti(e))return Ea(ma(Sa(ei,Un([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ma(n):Ea(ma(Sa(n,t)))}function wa(e,t,r){if(void 0===r&&(r=ti),!t)throw Ni(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Ca.apply(void 0,Un([n],o,!1)))};return n.attrs=function(n){return wa(e,t,Vn(Vn({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return wa(e,t,Vn(Vn({},r),n))},n}var Ra=function(e){return wa(xa,e)},Ia=Ra;ni.forEach((function(e){Ia[e]=Ra(e)}));var La=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ha(e),ta.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Oi(ma(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&&ta.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Ma(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Oi(Ca.apply(void 0,Un([e],t,!1))),o=fi(n);return new ua(o,n)}function Da(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}Da.propTypes={children:yr.node,injectFirst:yr.bool};const Aa=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=Ca.apply(void 0,Un([e],r,!1)),i="sc-global-".concat(fi(JSON.stringify(o))),a=new La(o,i),l=function(e){var r=sa(),n=t.useContext(va),o=t.useRef(r.styleSheet.allocateGSInstance(i)).current;return r.styleSheet.server&&s(o,e,r.styleSheet,n,r.stylis),t.useLayoutEffect((function(){if(!r.styleSheet.server)return s(o,e,r.styleSheet,n,r.stylis),function(){return a.removeStyles(o,r.styleSheet)}}),[o,e,r.styleSheet,n,r.stylis]),null};function s(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,Qo,r,o);else{var i=Vn(Vn({},t),{theme:ri(t,n,l.defaultProps)});a.renderStyles(e,i,r,o)}}return t.memo(l)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},vt({exports:{}});const Dt="qHyperCubeDef.qDimensions",At="dimensions",Pt="qOtherTotalSpec.qTotalMode",Ot="totalMode",kt={quarantine(e){H.quarantineArrayProp({properties:e,arrayPath:Dt,quarantineName:Ot,arrayName:At,itemPath:Pt})},unquarantine(e){H.unquarantineArrayProp({properties:e,arrayPath:Dt,quarantineName:Ot,arrayName:At,itemPath:Pt})}};function Tt(e){const t=Mt(e);return(e,r,n,o)=>{var i,a,l;const s=H.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),u=s.qProperty.qHyperCubeDef.qDimensions.length,c=s.qProperty.qHyperCubeDef.qMeasures.length;let d,p=s.qProperty.qHyperCubeDef.qInterColumnSortOrder,f=!0;u+c===p.length&&xt(s,"qProperty.qLayoutExclude.quarantine.interColSortOrder",p.concat());const m=null===(i=s.qProperty.qLayoutExclude.quarantine)||void 0===i?void 0:i.pivotInterColSortOrder;m?(p=m,d=[...m],xt(s,"qProperty.qHyperCubeDef.qInterColumnSortOrder",p),s.qProperty.qLayoutExclude.quarantine&&delete s.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):p.length=0;const h=+(p.indexOf(-1)>-1),g=u+h;if(g>p.length)for(let e=p.length;e<g;e++)p.indexOf(e)<0&&p.push(e-h);for(let e=p.length-1;e>=0;e--)p[e]>=u&&p.splice(e,1);c>1&&p.indexOf(-1)<0?p.push(-1):c<2&&p.indexOf(-1)>-1&&p.splice(p.indexOf(-1),1);const b=null!==(a=s.qProperty.qHyperCubeDef.qNoOfLeftDims)&&void 0!==a?a:-1;if(u>0&&-1===b&&xt(s,"qProperty.qHyperCubeDef.qNoOfLeftDims",u),(null===(l=d)||void 0===l?void 0:l.length)===p.length){for(let e=0;e<d.length;e++)if(d[e]!==p[e]){f=!1;break}f&&H.unquarantineProperty(s.qProperty,"noOfLeftDims")}return H.conditionalShow.unquarantine(s.qProperty),kt.unquarantine(s.qProperty),re(s.qProperty),H.unquarantineProperty(s.qProperty,"pivotTableIndentMode"),s}}function _t(e,t){var r;const n=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,o=n.slice(),i=n.indexOf(-1);i>-1&&n.splice(i,1);const a=H.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),l=a.properties.qHyperCubeDef,s=l.qDimensions.length,u=l.qMeasures.length;let c=l.qInterColumnSortOrder;xt(a,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",o),H.quarantineProperty(a.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete a.properties.qHyperCubeDef.qNoOfLeftDims;const d=null===(r=a.properties.qLayoutExclude.quarantine)||void 0===r?void 0:r.interColSortOrder;d&&(c=d,xt(a,"properties.qHyperCubeDef.qInterColumnSortOrder",c),xt(a,"data.0.interColumnSortOrder",c),a.properties.qLayoutExclude.quarantine&&delete a.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=c.length;e<s+u;e++)c.length<=e&&c.push(e);return H.quarantineProperty(a.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),H.conditionalShow.quarantine(a.properties),kt.quarantine(a.properties),ne(a.properties),a}const qt={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Nt="12px",Ft="nebula-table-utils-head-menu-button",jt="sn-copy-cell";let zt=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e}({});const Gt="nebula-table-utils-column-adjuster";let Bt=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}({}),$t=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Wt={darker:.15,brighter:.3,opacity:.03},Ht={darker:.3,brighter:.5,opacity:.05};let Vt=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({}),Ut=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e}({}),Yt=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const Kt=e=>{switch(null==e?void 0:e.type){case"url":return Ut.Link;case"image":return Ut.Image;case"indicator":return Ut.Indicator;case"miniChart":return Ut.MiniChart;default:return Ut.Text}},Xt=({args:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}={}})=>!e.properties.qHyperCubeDef.qIndentMode||(!(!r&&!n)||!t),Jt=({isImagesEnabled:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:r})=>{const{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}=null!=r?r:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,r,i)=>Xt({args:i,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}}),options(t,r,i){const{qIndentMode:a}=i.properties.qHyperCubeDef,l=[{value:"text",translation:"Object.Table.Representation.Text"}];return a&&!n||l.push({value:"url",translation:"Object.Table.Representation.Link"}),(!a&&e||a&&o)&&l.push({value:"image",translation:"Object.Table.Representation.Image"}),l}}},Zt=(e,t)=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(r,n,o)=>Kt(r.qDef.representation)===Ut.Link&&Xt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(r,n,o)=>{var i;return Kt(r.qDef.representation)===Ut.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===Yt.Dimension&&Xt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(r,n,o)=>{var i;return Kt(r.qDef.representation)===Ut.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===Yt.Attribute&&Xt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}}}),Qt=(e,t,r)=>{if(e||r)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,o)=>Kt(e.qDef.representation)===Ut.Image&&Xt({args:o,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:r}}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},...t&&r&&{imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{var n,o;if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:i,qNoOfLeftDims:a,qDimensions:l,qIndentMode:s}=r.properties.qHyperCubeDef;let u=!1;null==i||i.indexOf(-1);const c=null!==(n=null==l?void 0:l.indexOf(e))&&void 0!==n?n:1/0;return(null!==(o=null==i?void 0:i.slice(0,a))&&void 0!==o?o:[]).indexOf(c)>-1&&(u=!0),u&&s}}}}}}},er=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),l=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),s=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:Jt({isImagesEnabled:s,isIndentModeEnabled:i,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:a,isImagesSupportedInIndentMode:l}}),...Zt(i,a),...Qt(s,i,l)}},tr=(e,t)=>{var r;const{flags:n,anything:o}=e,i=null===(r=o.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=i&&i("tableImages"))&&t.some((e=>e===Ut.Image)),l=n.isEnabled("CLIENT_IM_5975_INDENT_MODE"),s=n.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")&&!(null!=i&&i("qMiniChartDef"))&&t.some((e=>e===Ut.MiniChart)),u=n.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=i&&i("tableIndicators"))&&t.some((e=>e===Ut.Indicator));return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>Xt({args:r,isIndentModeEnabled:l}),options:(e,t,r)=>(e=>{var t;const{qIndentMode:r}=null!==(t=e.properties.qHyperCubeDef)&&void 0!==t?t:{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return!r&&a&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),u&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),s&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(r)},representationImage:a?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>Kt(e.qDef.representation)===Ut.Image&&Xt({args:r,isIndentModeEnabled:l}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:u?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:s?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var rr,nr,or,ir;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(rr||(rr={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(nr||(nr={})),function(e){e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid"}(or||(or={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(ir||(ir={}));const ar="image",lr=(e,t,r)=>{var n,o,i;if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const a=null!==(n=null===(o=r.properties.qHyperCubeDef.qInterColumnSortOrder)||void 0===o?void 0:o.indexOf(-1))&&void 0!==n?n:-1;let l=null!==(i=r.properties.qHyperCubeDef.qNoOfLeftDims)&&void 0!==i?i:-1;a>-1&&a<l&&(l-=1);const s=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===s||s>=l},sr=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:$t.Auto,translation:"Common.Auto"},{value:$t.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:$t.Pixels,translation:"Object.Table.Column.Pixels"},{value:$t.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:$t.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Bt.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===$t.Pixels},change(e){var t;void 0!==(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.pixels)&&(e.qDef.columnWidth.pixels=Math.max(Bt.PixelsMin,Math.min(Bt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Bt.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===$t.Percentage},change:e=>{var t;void 0!==(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.percentage)&&(e.qDef.columnWidth.percentage=Math.max(Bt.PercentageMin,Math.min(Bt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),ur=({key:e,translation:t,env:r})=>{var n,o;const i=r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(n=r.anything.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;return!i||"labelTextAlign"===e||(null===(r=t.qDef.representation)||void 0===r?void 0:r.type)!==ar}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var r;return void 0!==t.qDef[e]&&!t.qDef[e].auto&&(!i||"labelTextAlign"===e||(null===(r=t.qDef.representation)||void 0===r?void 0:r.type)!==ar)}}}},cr="TOTAL_OFF",dr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:nr.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:nr.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},pr="TOTAL_OFF",fr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:nr.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:nr.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},mr=e=>{var t,r;const{translator:n,anything:o,flags:i}=e,a=(e=>{var t,r;const{translator:n,anything:o}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:cr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:cr,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&lr},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==cr&&lr(e,0,r)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:dr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...er(e),...sr()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:dr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...tr(e,[Ut.Image]),...sr()}}}}}}})(e),l=i.isEnabled("IM_6843_FILTER_ADVANCED_MODE");return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:pr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:pr,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&lr},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==pr&&lr(e,0,r)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:fr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...er(e),...sr()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:fr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...tr(e,[Ut.Image]),...sr()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,show:l,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}};function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hr.apply(null,arguments)}var gr={exports:{}};function br(){}function vr(){}vr.resetWarningCache=br;gr.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:vr,resetWarningCache:br};return r.PropTypes=r,r}();var yr=B(gr.exports);function xr(e){if(e.type)return e;if("#"===e.charAt(0))return xr(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 Sr(e,t){return e=xr(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 Er(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Cr(e,t){return Cr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cr(e,t)}function wr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cr(e,t)}function Rr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Ir={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},Lr={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Ir,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_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_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Mr=12,Dr=14,Ar=16,Pr=24,Or=3,kr=300,Tr=400,_r=600,qr=700,Nr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Sr(Lr.GREYSCALE_0,.05),Sr(Lr.GREEN_PALE,.5),Sr(Lr.BLUE_PALE,.5),Sr(Lr.GREEN_PALE,.5),Sr(Lr.BLUE_PALE,.5),Sr(Lr.GREEN_PALE,.5),Sr(Lr.BLUE_PALE,.5);Sr(Lr.GREEN_PALE,.5),Sr(Lr.BLUE_PALE,.5),Sr(Lr.GREEN_PALE,.5),Sr(Lr.BLUE_PALE,.5);var Fr={exports:{}},jr={},zr=t,Gr=Symbol.for("react.element"),Br=Symbol.for("react.fragment"),$r=Object.prototype.hasOwnProperty,Wr=zr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hr={key:!0,ref:!0,__self:!0,__source:!0};function Vr(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)$r.call(t,n)&&!Hr.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:Gr,type:e,key:i,ref:a,props:o,_owner:Wr.current}}jr.Fragment=Br,jr.jsx=Vr,jr.jsxs=Vr,Fr.exports=jr;var Ur,Yr=Fr.exports;function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kr.apply(null,arguments)}var Xr,Jr=function(e){return r.createElement("svg",Kr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Ur||(Ur=r.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zr.apply(null,arguments)}var Qr=function(e){return r.createElement("svg",Zr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Xr||(Xr=r.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 en({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Yr.jsx("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,children:t})}function tn(e={}){return Yr.jsx(en,{...e,children:Yr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yr.jsx("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"})]})})}function rn(e={}){return Yr.jsx(en,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function nn(e={}){return Yr.jsx(en,{fontSize:"medium",...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function on(e={}){return Yr.jsx(en,{fontSize:"medium",...e,children:Yr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yr.jsx("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"})]})})}function an({className:e}){return Yr.jsx(en,{fontSize:"small",className:e,children:Yr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yr.jsx("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"}),Yr.jsx("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"})]})})})})})}Yr.jsx(Qr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(Jr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(nn,{}),Yr.jsx(on,{}),Yr.jsx((function(e={}){return Yr.jsx(en,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Yr.jsx(tn,{}),Yr.jsx(rn,{}),Yr.jsx(Jr,{style:{color:Lr.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const ln={black:"#000",white:"#fff"},sn="#e57373",un="#ef5350",cn="#f44336",dn="#d32f2f",pn="#c62828",fn="#f3e5f5",mn="#ce93d8",hn="#ba68c8",gn="#ab47bc",bn="#9c27b0",vn="#7b1fa2",yn="#e3f2fd",xn="#90caf9",Sn="#42a5f5",En="#1976d2",Cn="#1565c0",wn="#4fc3f7",Rn="#29b6f6",In="#03a9f4",Ln="#0288d1",Mn="#01579b",Dn="#81c784",An="#66bb6a",Pn="#4caf50",On="#388e3c",kn="#2e7d32",Tn="#1b5e20",_n="#ffb74d",qn="#ffa726",Nn="#ff9800",Fn="#f57c00",jn="#e65100",zn={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 Gn(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 Bn="$$material";function $n(){return $n=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},$n.apply(this,arguments)}function Wn(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function Hn(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Vn=function(){return Vn=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},Vn.apply(this,arguments)};function Un(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 Yn="-ms-",Kn="-moz-",Xn="-webkit-",Jn="comm",Zn="rule",Qn="decl",eo="@keyframes",to=Math.abs,ro=String.fromCharCode,no=Object.assign;function oo(e){return e.trim()}function io(e,t){return(e=t.exec(e))?e[0]:e}function ao(e,t,r){return e.replace(t,r)}function lo(e,t,r){return e.indexOf(t,r)}function so(e,t){return 0|e.charCodeAt(t)}function uo(e,t,r){return e.slice(t,r)}function co(e){return e.length}function po(e){return e.length}function fo(e,t){return t.push(e),e}function mo(e,t){return e.filter((function(e){return!io(e,t)}))}var ho=1,go=1,bo=0,vo=0,yo=0,xo="";function So(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ho,column:go,length:a,return:"",siblings:l}}function Eo(e,t){return no(So("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Co(e){for(;e.root;)e=Eo(e.root,{children:[e]});fo(e,e.siblings)}function wo(){return yo=vo>0?so(xo,--vo):0,go--,10===yo&&(go=1,ho--),yo}function Ro(){return yo=vo<bo?so(xo,vo++):0,go++,10===yo&&(go=1,ho++),yo}function Io(){return so(xo,vo)}function Lo(){return vo}function Mo(e,t){return uo(xo,e,t)}function Do(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 Ao(e){return oo(Mo(vo-1,ko(91===e?e+2:40===e?e+1:e)))}function Po(e){for(;(yo=Io())&&yo<33;)Ro();return Do(e)>2||Do(yo)>3?"":" "}function Oo(e,t){for(;--t&&Ro()&&!(yo<48||yo>102||yo>57&&yo<65||yo>70&&yo<97););return Mo(e,Lo()+(t<6&&32==Io()&&32==Ro()))}function ko(e){for(;Ro();)switch(yo){case e:return vo;case 34:case 39:34!==e&&39!==e&&ko(yo);break;case 40:41===e&&ko(e);break;case 92:Ro()}return vo}function To(e,t){for(;Ro()&&e+yo!==57&&(e+yo!==84||47!==Io()););return"/*"+Mo(t,vo-1)+"*"+ro(47===e?e:Ro())}function _o(e){for(;!Do(Io());)Ro();return Mo(e,vo)}function qo(e){return function(e){return xo="",e}(No("",null,null,null,[""],e=function(e){return ho=go=1,bo=co(xo=e),vo=0,[]}(e),0,[0],e))}function No(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=Ro()){case 40:if(108!=m&&58==so(C,d-1)){-1!=lo(C+=ao(Ao(v),"&","&\f"),"&\f",to(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Ao(v);break;case 9:case 10:case 13:case 32:C+=Po(m);break;case 92:C+=Oo(Lo()-1,7);continue;case 47:switch(Io()){case 42:case 47:fo(jo(To(Ro(),Lo()),t,r,s),s);break;default:C+="/"}break;case 123*h:l[u++]=co(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=ao(C,/\f/g,"")),f>0&&co(C)-d&&fo(f>32?zo(C+";",n,r,d-1,s):zo(ao(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(fo(E=Fo(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)No(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===so(C,3)?100:p){case 100:case 108:case 109:case 115:No(e,E,E,n&&fo(Fo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:No(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+co(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==wo())continue;switch(C+=ro(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(co(C)-1)*b,b=1;break;case 64:45===Io()&&(C+=Ao(Ro())),p=Io(),c=d=co(y=C+=_o(Lo())),v++;break;case 45:45===m&&2==co(C)&&(h=0)}}return i}function Fo(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=po(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=uo(e,p+1,p=to(g=a[h])),x=e;v<m;++v)(x=oo(g>0?f[v]+" "+y:ao(y,/&\f/g,f[v])))&&(s[b++]=x);return So(e,t,r,0===o?Zn:l,s,u,c,d)}function jo(e,t,r,n){return So(e,t,r,Jn,ro(yo),uo(e,2,-2),0,n)}function zo(e,t,r,n,o){return So(e,t,r,Qn,uo(e,0,n),uo(e,n+1,-1),n,o)}function Go(e,t,r){switch(function(e,t){return 45^so(e,0)?(((t<<2^so(e,0))<<2^so(e,1))<<2^so(e,2))<<2^so(e,3):0}(e,t)){case 5103:return Xn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Xn+e+e;case 4789:return Kn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xn+e+Kn+e+Yn+e+e;case 5936:switch(so(e,t+11)){case 114:return Xn+e+Yn+ao(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xn+e+Yn+ao(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xn+e+Yn+ao(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Xn+e+Yn+e+e;case 6165:return Xn+e+Yn+"flex-"+e+e;case 5187:return Xn+e+ao(e,/(\w+).+(:[^]+)/,Xn+"box-$1$2"+Yn+"flex-$1$2")+e;case 5443:return Xn+e+Yn+"flex-item-"+ao(e,/flex-|-self/g,"")+(io(e,/flex-|baseline/)?"":Yn+"grid-row-"+ao(e,/flex-|-self/g,""))+e;case 4675:return Xn+e+Yn+"flex-line-pack"+ao(e,/align-content|flex-|-self/g,"")+e;case 5548:return Xn+e+Yn+ao(e,"shrink","negative")+e;case 5292:return Xn+e+Yn+ao(e,"basis","preferred-size")+e;case 6060:return Xn+"box-"+ao(e,"-grow","")+Xn+e+Yn+ao(e,"grow","positive")+e;case 4554:return Xn+ao(e,/([^-])(transform)/g,"$1"+Xn+"$2")+e;case 6187:return ao(ao(ao(e,/(zoom-|grab)/,Xn+"$1"),/(image-set)/,Xn+"$1"),e,"")+e;case 5495:case 3959:return ao(e,/(image-set\([^]*)/,Xn+"$1$`$1");case 4968:return ao(ao(e,/(.+:)(flex-)?(.*)/,Xn+"box-pack:$3"+Yn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xn+e+e;case 4200:if(!io(e,/flex-|baseline/))return Yn+"grid-column-align"+uo(e,t)+e;break;case 2592:case 3360:return Yn+ao(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,io(e.props,/grid-\w+-end/)}))?~lo(e+(r=r[t].value),"span",0)?e:Yn+ao(e,"-start","")+e+Yn+"grid-row-span:"+(~lo(r,"span",0)?io(r,/\d+/):+io(r,/\d+/)-+io(e,/\d+/))+";":Yn+ao(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return io(e.props,/grid-\w+-start/)}))?e:Yn+ao(ao(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ao(e,/(.+)-inline(.+)/,Xn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(co(e)-1-t>6)switch(so(e,t+1)){case 109:if(45!==so(e,t+4))break;case 102:return ao(e,/(.+:)(.+)-([^]+)/,"$1"+Xn+"$2-$3$1"+Kn+(108==so(e,t+3)?"$3":"$2-$3"))+e;case 115:return~lo(e,"stretch",0)?Go(ao(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return ao(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return Yn+r+":"+n+l+(o?Yn+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===so(e,t+6))return ao(e,":",":"+Xn)+e;break;case 6444:switch(so(e,45===so(e,14)?18:11)){case 120:return ao(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Xn+(45===so(e,14)?"inline-":"")+"box$3$1"+Xn+"$2$3$1"+Yn+"$2box$3")+e;case 100:return ao(e,":",":"+Yn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ao(e,"scroll-","scroll-snap-")+e}return e}function Bo(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function $o(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Qn:return e.return=e.return||e.value;case Jn:return"";case eo:return e.return=e.value+"{"+Bo(e.children,n)+"}";case Zn:if(!co(e.value=e.props.join(",")))return""}return co(r=Bo(e.children,n))?e.return=e.value+"{"+r+"}":""}function Wo(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qn:return void(e.return=Go(e.value,e.length,r));case eo:return Bo([Eo(e,{value:ao(e.value,"@","@"+Xn)})],n);case Zn:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(io(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Co(Eo(e,{props:[ao(t,/:(read-\w+)/,":-moz-$1")]})),Co(Eo(e,{props:[t]})),no(e,{props:mo(r,n)});break;case"::placeholder":Co(Eo(e,{props:[ao(t,/:(plac\w+)/,":"+Xn+"input-$1")]})),Co(Eo(e,{props:[ao(t,/:(plac\w+)/,":-moz-$1")]})),Co(Eo(e,{props:[ao(t,/:(plac\w+)/,Yn+"input-$1")]})),Co(Eo(e,{props:[t]})),no(e,{props:mo(r,n)})}return""}))}}var Ho={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},Vo="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Uo="active",Yo="data-styled-version",Ko="6.1.15",Xo="/*!sc*/\n",Jo="undefined"!=typeof window&&"HTMLElement"in window,Zo=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={},ei=Object.freeze([]),ti=Object.freeze({});function ri(e,t,r){return void 0===r&&(r=ti),e.theme!==r.theme&&e.theme||t||r.theme}var ni=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"]),oi=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ii=/(^-|-$)/g;function ai(e){return e.replace(oi,"-").replace(ii,"")}var li=/(a)(d)/gi,si=function(e){return String.fromCharCode(e+(e>25?39:97))};function ui(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=si(t%52)+r;return(si(t%52)+r).replace(li,"$1-$2")}var ci,di=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},pi=function(e){return di(5381,e)};function fi(e){return ui(pi(e)>>>0)}function mi(e){return"string"==typeof e&&!0}var hi="function"==typeof Symbol&&Symbol.for,gi=hi?Symbol.for("react.memo"):60115,bi=hi?Symbol.for("react.forward_ref"):60112,vi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Si=((ci={})[bi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ci[gi]=xi,ci);function Ei(e){return("type"in(t=e)&&t.type.$$typeof)===gi?xi:"$$typeof"in e?Si[e.$$typeof]:vi;var t}var Ci=Object.defineProperty,wi=Object.getOwnPropertyNames,Ri=Object.getOwnPropertySymbols,Ii=Object.getOwnPropertyDescriptor,Li=Object.getPrototypeOf,Mi=Object.prototype;function Di(e,t,r){if("string"!=typeof t){if(Mi){var n=Li(t);n&&n!==Mi&&Di(e,n,r)}var o=wi(t);Ri&&(o=o.concat(Ri(t)));for(var i=Ei(e),a=Ei(t),l=0;l<o.length;++l){var s=o[l];if(!(s in yi||r&&r[s]||a&&s in a||i&&s in i)){var u=Ii(t,s);try{Ci(e,s,u)}catch(e){}}}}return e}function Ai(e){return"function"==typeof e}function Pi(e){return"object"==typeof e&&"styledComponentId"in e}function Oi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ki(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Ti(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function _i(e,t,r){if(void 0===r&&(r=!1),!r&&!Ti(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=_i(e[n],t[n]);else if(Ti(t))for(var n in t)e[n]=_i(e[n],t[n]);return e}function qi(e,t){Object.defineProperty(e,"toString",{value:t})}function Ni(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Fi=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw Ni(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Xo);return t},e}(),ji=new Map,zi=new Map,Gi=1,Bi=function(e){if(ji.has(e))return ji.get(e);for(;zi.has(Gi);)Gi++;var t=Gi++;return ji.set(e,t),zi.set(t,e),t},$i=function(e,t){Gi=t+1,ji.set(e,t),zi.set(t,e)},Wi="style[".concat(Vo,"][").concat(Yo,'="').concat(Ko,'"]'),Hi=new RegExp("^".concat(Vo,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Vi=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)},Ui=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Xo),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(Hi);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&($i(c,u),Vi(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Yi=function(e){for(var t=document.querySelectorAll(Wi),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Vo)!==Uo&&(Ui(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Ki=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Vo,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Vo,Uo),n.setAttribute(Yo,Ko);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Xi=function(){function e(e){this.element=Ki(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw Ni(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ji=function(){function e(e){this.element=Ki(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}(),Zi=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=Jo,ea={isServer:!Jo,useCSSOMInjection:!Zo},ta=function(){function e(e,t,r){void 0===e&&(e=ti),void 0===t&&(t={});var n=this;this.options=Vn(Vn({},ea),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Jo&&Qi&&(Qi=!1,Yi(this)),qi(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return zi.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(Vo,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Xo)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Bi(e)},e.prototype.rehydrate=function(){!this.server&&Jo&&Yi(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Vn(Vn({},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 Zi(r):t?new Xi(r):new Ji(r)}(this.options),new Fi(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(Bi(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(Bi(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Bi(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ra=/&/g,na=/^\s*\/\/.*$/gm;function oa(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=oa(e.children,t)),e}))}var ia=new ta,aa=function(){var e,t,r,n=ti,o=n.options,i=void 0===o?ti:o,a=n.plugins,l=void 0===a?ei:a,s=function(r,n,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):r},u=l.slice();u.push((function(e){e.type===Zn&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ra,t).replace(r,s))})),i.prefix&&u.push(Wo),u.push($o);var c=function(n,o,a,l){void 0===o&&(o=""),void 0===a&&(a=""),void 0===l&&(l="&"),e=l,t=o,r=new RegExp("\\".concat(t,"\\b"),"g");var s=n.replace(na,""),c=qo(a||o?"".concat(a," ").concat(o," { ").concat(s," }"):s);i.namespace&&(c=oa(c,i.namespace));var d,p=[];return Bo(c,function(e){var t=po(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(u.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return c.hash=l.length?l.reduce((function(e,t){return t.name||Ni(15),di(e,t.name)}),5381).toString():"",c}(),la=t.createContext({shouldForwardProp:void 0,styleSheet:ia,stylis:aa});function sa(){return n(la)}la.Consumer;var ua=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=aa);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,qi(this,(function(){throw Ni(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=aa),this.name+e.hash},e}(),ca=function(e){return e>="A"&&e<="Z"};function da(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;ca(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var pa=function(e){return null==e||!1===e||""===e},fa=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!pa(i)&&(Array.isArray(i)&&i.isCss||Ai(i)?n.push("".concat(da(o),":"),i,";"):Ti(i)?n.push.apply(n,Un(Un(["".concat(o," {")],fa(i),!1),["}"],!1)):n.push("".concat(da(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Ho||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function ma(e,t,r,n){return pa(e)?[]:Pi(e)?[".".concat(e.styledComponentId)]:Ai(e)?!Ai(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ma(e(t),t,r,n):e instanceof ua?r?(e.inject(r,n),[e.getName(n)]):[e]:Ti(e)?fa(e):Array.isArray(e)?Array.prototype.concat.apply(ei,e.map((function(e){return ma(e,t,r,n)}))):[e.toString()];var o}function ha(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ai(r)&&!Pi(r))return!1}return!0}var ga=pi(Ko),ba=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&ha(e),this.componentId=t,this.baseHash=di(ga,t),this.baseStyle=r,ta.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=Oi(n,this.staticRulesId);else{var o=ki(ma(this.rules,e,t,r)),i=ui(di(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=Oi(n,i),this.staticRulesId=i}else{for(var l=di(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=ki(ma(c,e,t,r));l=di(l,d+u),s+=d}}if(s){var p=ui(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=Oi(n,p)}}return n},e}(),va=t.createContext(void 0);va.Consumer;var ya={};function xa(e,r,n){var i=Pi(e),a=e,l=!mi(e),s=r.attrs,u=void 0===s?ei:s,c=r.componentId,d=void 0===c?function(e,t){var r="string"!=typeof e?"sc":ai(e);ya[r]=(ya[r]||0)+1;var n="".concat(r,"-").concat(fi(Ko+r+ya[r]));return t?"".concat(t,"-").concat(n):n}(r.displayName,r.parentComponentId):c,p=r.displayName,f=void 0===p?function(e){return mi(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,m=r.displayName&&r.componentId?"".concat(ai(r.displayName),"-").concat(r.componentId):r.componentId||d,h=i&&a.attrs?a.attrs.concat(u).filter(Boolean):u,g=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var v=r.shouldForwardProp;g=function(e,t){return b(e,t)&&v(e,t)}}else g=b}var y=new ba(n,m,i?a.componentStyle:void 0);function x(e,r){return function(e,r,n){var i=e.attrs,a=e.componentStyle,l=e.defaultProps,s=e.foldedComponentIds,u=e.styledComponentId,c=e.target,d=t.useContext(va),p=sa(),f=e.shouldForwardProp||p.shouldForwardProp,m=ri(r,d,l)||ti,h=function(e,t,r){for(var n,o=Vn(Vn({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Ai(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?Oi(o[l],a[l]):"style"===l?Vn(Vn({},o[l]),a[l]):a[l]}return t.className&&(o.className=Oi(o.className,t.className)),o}(i,r,m),g=h.as||c,b={};for(var v in h)void 0===h[v]||"$"===v[0]||"as"===v||"theme"===v&&h.theme===m||("forwardedAs"===v?b.as=h.forwardedAs:f&&!f(v,g)||(b[v]=h[v]));var y=function(e,t){var r=sa();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,h),x=Oi(s,u);return y&&(x+=" "+y),h.className&&(x+=" "+h.className),b[mi(g)&&!ni.has(g)?"class":"className"]=x,n&&(b.ref=n),o(g,b)}(S,e,r)}x.displayName=f;var S=t.forwardRef(x);return S.attrs=h,S.componentStyle=y,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=i?Oi(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=m,S.target=i?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)_i(e,o[n],!0);return e}({},a.defaultProps,e):e}}),qi(S,(function(){return".".concat(S.styledComponentId)})),l&&Di(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Sa(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 Ea=function(e){return Object.assign(e,{isCss:!0})};function Ca(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ai(e)||Ti(e))return Ea(ma(Sa(ei,Un([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ma(n):Ea(ma(Sa(n,t)))}function wa(e,t,r){if(void 0===r&&(r=ti),!t)throw Ni(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Ca.apply(void 0,Un([n],o,!1)))};return n.attrs=function(n){return wa(e,t,Vn(Vn({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return wa(e,t,Vn(Vn({},r),n))},n}var Ra=function(e){return wa(xa,e)},Ia=Ra;ni.forEach((function(e){Ia[e]=Ra(e)}));var La=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ha(e),ta.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(ki(ma(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&&ta.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Ma(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=ki(Ca.apply(void 0,Un([e],t,!1))),o=fi(n);return new ua(o,n)}function Da(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}Da.propTypes={children:yr.node,injectFirst:yr.bool};const Aa=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=Ca.apply(void 0,Un([e],r,!1)),i="sc-global-".concat(fi(JSON.stringify(o))),a=new La(o,i),l=function(e){var r=sa(),n=t.useContext(va),o=t.useRef(r.styleSheet.allocateGSInstance(i)).current;return r.styleSheet.server&&s(o,e,r.styleSheet,n,r.stylis),t.useLayoutEffect((function(){if(!r.styleSheet.server)return s(o,e,r.styleSheet,n,r.stylis),function(){return a.removeStyles(o,r.styleSheet)}}),[o,e,r.styleSheet,n,r.stylis]),null};function s(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,Qo,r,o);else{var i=Vn(Vn({},t),{theme:ri(t,n,l.defaultProps)});a.renderStyles(e,i,r,o)}}return t.memo(l)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
|
|
10
10
|
/**
|
|
11
11
|
* @mui/styled-engine-sc v6.4.2
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
function Pa(e,t){let r;return r=t?Ia(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ia(e),r}function ka(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Oa(e,t){return ka(e,t)}Aa.propTypes={defaultTheme:yr.object,styles:yr.oneOfType([yr.array,yr.string,yr.object,yr.func])};var Ta=Object.freeze({__proto__:null,GlobalStyles:Aa,StyledEngineProvider:Da,ThemeContext:va,css:Ca,default:Pa,internal_mutateStyles:ka,internal_processStyles:Oa,internal_serializeStyles:function(e){return e},keyframes:Ma});function _a(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 qa(e){if(r.isValidElement(e)||!_a(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=qa(e[r])})),t}function Na(e,t,n={clone:!0}){const o=n.clone?hr({},e):e;return _a(e)&&_a(t)&&Object.keys(t).forEach((i=>{r.isValidElement(t[i])?o[i]=t[i]:_a(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&_a(e[i])?o[i]=Na(e[i],t[i],n):n.clone?o[i]=_a(t[i])?qa(t[i]):t[i]:o[i]=t[i]})),o}var Fa={exports:{}},ja={},za=Symbol.for("react.transitional.element"),Ga=Symbol.for("react.portal"),Ba=Symbol.for("react.fragment"),$a=Symbol.for("react.strict_mode"),Wa=Symbol.for("react.profiler"),Ha=Symbol.for("react.consumer"),Va=Symbol.for("react.context"),Ua=Symbol.for("react.forward_ref"),Ya=Symbol.for("react.suspense"),Ka=Symbol.for("react.suspense_list"),Xa=Symbol.for("react.memo"),Ja=Symbol.for("react.lazy"),Za=Symbol.for("react.offscreen"),Qa=Symbol.for("react.client.reference");function el(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case za:switch(e=e.type){case Ba:case Wa:case $a:case Ya:case Ka:return e;default:switch(e=e&&e.$$typeof){case Va:case Ua:case Ja:case Xa:case Ha:return e;default:return t}}case Ga:return t}}}ja.ContextConsumer=Ha,ja.ContextProvider=Va,ja.Element=za,ja.ForwardRef=Ua,ja.Fragment=Ba,ja.Lazy=Ja,ja.Memo=Xa,ja.Portal=Ga,ja.Profiler=Wa,ja.StrictMode=$a,ja.Suspense=Ya,ja.SuspenseList=Ka,ja.isContextConsumer=function(e){return el(e)===Ha},ja.isContextProvider=function(e){return el(e)===Va},ja.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===za},ja.isForwardRef=function(e){return el(e)===Ua},ja.isFragment=function(e){return el(e)===Ba},ja.isLazy=function(e){return el(e)===Ja},ja.isMemo=function(e){return el(e)===Xa},ja.isPortal=function(e){return el(e)===Ga},ja.isProfiler=function(e){return el(e)===Wa},ja.isStrictMode=function(e){return el(e)===$a},ja.isSuspense=function(e){return el(e)===Ya},ja.isSuspenseList=function(e){return el(e)===Ka},ja.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ba||e===Wa||e===$a||e===Ya||e===Ka||e===Za||"object"==typeof e&&null!==e&&(e.$$typeof===Ja||e.$$typeof===Xa||e.$$typeof===Va||e.$$typeof===Ha||e.$$typeof===Ua||e.$$typeof===Qa||void 0!==e.getModuleId)},ja.typeOf=el,Fa.exports=ja;var tl=Fa.exports;function rl(e){if("string"!=typeof e)throw new Error(Hn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function nl(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function ol(e){return e&&e.ownerDocument||document}function il(e){return ol(e).defaultView||window}function al(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const ll="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function sl(e){const t=r.useRef(e);return ll((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}function ul(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{al(e,t)}))}),e)}function cl(e,t){const r=hr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=hr({},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]=hr({},i),Object.keys(o).forEach((e=>{r[n][e]=cl(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function dl(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}function pl(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=pl(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function fl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=pl(e))&&(n&&(n+=" "),n+=t);return n}const ml=["values","unit","step"];function hl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Er(e,ml),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>hr({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return hr({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)}const gl={borderRadius:4};function bl(e,t){return t?Na(e,t,{clone:!1}):e}const vl={xs:0,sm:600,md:900,lg:1200,xl:1536},yl={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${vl[e]}px)`};function xl(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||yl;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||yl;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||vl).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Sl(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 El(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Sl(e,r)||n,t&&(o=t(o,n,e)),o}function Cl(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=Sl(e.theme,n)||{};return xl(e,i,(e=>{let n=El(a,o,e);return e===n&&"string"==typeof e&&(n=El(a,o,`${t}${"default"===e?"":rl(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const wl={m:"margin",p:"padding"},Rl={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Il={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ll=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Il[e])return[e];e=Il[e]}const[t,r]=e.split(""),n=wl[t],o=Rl[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Ml=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Dl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Al(e,t,r,n){var o;const i=null!=(o=Sl(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 Pl(e){return Al(e,"spacing",8)}function kl(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Ol(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=kl(t,r),e)),{})}(Ll(r),n);return xl(e,e[r],o)}function Tl(e,t){const r=Pl(e.theme);return Object.keys(e).map((n=>Ol(e,t,n,r))).reduce(bl,{})}function _l(e){return Tl(e,Ml)}function ql(e){return Tl(e,Dl)}function Nl(...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]?bl(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Fl(e){return"number"!=typeof e?e:`${e}px solid`}function jl(e,t){return Cl({prop:e,themeKey:"borders",transform:t})}_l.propTypes={},_l.filterProps=Ml,ql.propTypes={},ql.filterProps=Dl;const zl=jl("border",Fl),Gl=jl("borderTop",Fl),Bl=jl("borderRight",Fl),$l=jl("borderBottom",Fl),Wl=jl("borderLeft",Fl),Hl=jl("borderColor"),Vl=jl("borderTopColor"),Ul=jl("borderRightColor"),Yl=jl("borderBottomColor"),Kl=jl("borderLeftColor"),Xl=jl("outline",Fl),Jl=jl("outlineColor"),Zl=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Al(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:kl(t,e)});return xl(e,e.borderRadius,r)}return null};Zl.propTypes={},Zl.filterProps=["borderRadius"],Nl(zl,Gl,Bl,$l,Wl,Hl,Vl,Ul,Yl,Kl,Zl,Xl,Jl);const Ql=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Al(e.theme,"spacing",8),r=e=>({gap:kl(t,e)});return xl(e,e.gap,r)}return null};Ql.propTypes={},Ql.filterProps=["gap"];const es=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Al(e.theme,"spacing",8),r=e=>({columnGap:kl(t,e)});return xl(e,e.columnGap,r)}return null};es.propTypes={},es.filterProps=["columnGap"];const ts=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Al(e.theme,"spacing",8),r=e=>({rowGap:kl(t,e)});return xl(e,e.rowGap,r)}return null};ts.propTypes={},ts.filterProps=["rowGap"];function rs(e,t){return"grey"===t?t:e}Nl(Ql,es,ts,Cl({prop:"gridColumn"}),Cl({prop:"gridRow"}),Cl({prop:"gridAutoFlow"}),Cl({prop:"gridAutoColumns"}),Cl({prop:"gridAutoRows"}),Cl({prop:"gridTemplateColumns"}),Cl({prop:"gridTemplateRows"}),Cl({prop:"gridTemplateAreas"}),Cl({prop:"gridArea"}));function ns(e){return e<=1&&0!==e?100*e+"%":e}Nl(Cl({prop:"color",themeKey:"palette",transform:rs}),Cl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rs}),Cl({prop:"backgroundColor",themeKey:"palette",transform:rs}));const os=Cl({prop:"width",transform:ns}),is=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])||vl[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:ns(t)}};return xl(e,e.maxWidth,t)}return null};is.filterProps=["maxWidth"];const as=Cl({prop:"minWidth",transform:ns}),ls=Cl({prop:"height",transform:ns}),ss=Cl({prop:"maxHeight",transform:ns}),us=Cl({prop:"minHeight",transform:ns});Cl({prop:"size",cssProperty:"width",transform:ns}),Cl({prop:"size",cssProperty:"height",transform:ns});Nl(os,is,as,ls,ss,us,Cl({prop:"boxSizing"}));const cs={border:{themeKey:"borders",transform:Fl},borderTop:{themeKey:"borders",transform:Fl},borderRight:{themeKey:"borders",transform:Fl},borderBottom:{themeKey:"borders",transform:Fl},borderLeft:{themeKey:"borders",transform:Fl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zl},color:{themeKey:"palette",transform:rs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rs},backgroundColor:{themeKey:"palette",transform:rs},p:{style:ql},pt:{style:ql},pr:{style:ql},pb:{style:ql},pl:{style:ql},px:{style:ql},py:{style:ql},padding:{style:ql},paddingTop:{style:ql},paddingRight:{style:ql},paddingBottom:{style:ql},paddingLeft:{style:ql},paddingX:{style:ql},paddingY:{style:ql},paddingInline:{style:ql},paddingInlineStart:{style:ql},paddingInlineEnd:{style:ql},paddingBlock:{style:ql},paddingBlockStart:{style:ql},paddingBlockEnd:{style:ql},m:{style:_l},mt:{style:_l},mr:{style:_l},mb:{style:_l},ml:{style:_l},mx:{style:_l},my:{style:_l},margin:{style:_l},marginTop:{style:_l},marginRight:{style:_l},marginBottom:{style:_l},marginLeft:{style:_l},marginX:{style:_l},marginY:{style:_l},marginInline:{style:_l},marginInlineStart:{style:_l},marginInlineEnd:{style:_l},marginBlock:{style:_l},marginBlockStart:{style:_l},marginBlockEnd:{style:_l},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:Ql},rowGap:{style:ts},columnGap:{style:es},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ns},maxWidth:{style:is},minWidth:{transform:ns},height:{transform:ns},maxHeight:{transform:ns},minHeight:{transform:ns},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const ds=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=Sl(r,l)||{};if(u)return u(o);return xl(o,t,(t=>{let r=El(c,s,t);return t===r&&"string"==typeof t&&(r=El(c,s,`${e}${"default"===t?"":rl(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:cs;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=bl(s,e(r,o,i,a));else{const e=xl({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=bl(s,e):s[r]=t({sx:o,theme:i})}else s=bl(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)}}();function ps(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:{}}ds.filterProps=["sx"];const fs=["breakpoints","palette","spacing","shape"];function ms(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Er(e,fs),l=hl(r),s=function(e=8){if(e.mui)return e;const t=Pl({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Na({breakpoints:l,direction:"ltr",components:{},palette:hr({mode:"light"},n),spacing:s,shape:hr({},gl,i)},a);return u.applyStyles=ps,u=t.reduce(((e,t)=>Na(e,t)),u),u.unstable_sxConfig=hr({},cs,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ds({sx:e,theme:this})},u}function hs(e=null){const t=r.useContext(va);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const gs=ms();function bs(e=gs){return hs(e)}function vs({styles:e,themeId:t,defaultTheme:r={}}){const n=bs(r),o="function"==typeof e?e(t&&n[t]||n):e;return Yr.jsx(Aa,{styles:o})}const ys=["sx"];function xs(e){const{sx:t}=e,r=Er(e,ys),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:cs;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return _a(r)?hr({},n,r):n}:hr({},n,t),hr({},o,{sx:i})}const Ss=["className","component"];const Es=["ownerState"],Cs=["variants"],ws=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Rs(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Is=ms(),Ls=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ms({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Ds(e){return e?(t,r)=>r[e]:null}function As(e,t){let{ownerState:r}=t,n=Er(t,Es);const o="function"==typeof e?e(hr({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>As(e,hr({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Er(o,Cs);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(hr({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(hr({ownerState:r},n)):e.style))})),t}return o}function Ps(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?cl(t.components[r].defaultProps,n):n}function ks(e,t=0,r=1){return function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}(e,t,r)}function Os(e){if(e.type)return e;if("#"===e.charAt(0))return Os(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Hn(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Hn(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Ts(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 _s(e){let t="hsl"===(e=Os(e)).type||"hsla"===e.type?Os(function(e){e=Os(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])),Ts({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 qs(e,t){return e=Os(e),t=ks(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ts(e)}function Ns(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 Fs(e){if(!Ns(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Fs(e[r])})),t}function js(e,t,r={clone:!0}){const n=r.clone?hr({},e):e;return Ns(e)&&Ns(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Ns(t[o])&&o in e&&Ns(e[o])?n[o]=js(e[o],t[o],r):r.clone?n[o]=Ns(t[o])?Fs(t[o]):t[o]:n[o]=t[o])})),n}function zs(e){if("string"!=typeof e)throw new Error(Gn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Gs(e){return e&&e.ownerDocument||document}function Bs(e){return Gs(e).defaultView||window}const $s="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;let Ws=0;const Hs=r["useId".toString()];function Vs(e){if(void 0!==Hs){return Hs()}return function(e){const[t,n]=r.useState(e),o=t;return r.useEffect((()=>{null==t&&(Ws+=1,n(`mui-${Ws}`))}),[t]),o}(e)}function Us({controlled:e,default:t,name:n,state:o="value"}){const{current:i}=r.useRef(void 0!==e),[a,l]=r.useState(t);return[i?e:a,r.useCallback((e=>{i||l(e)}),[])]}function Ys(e){const t=r.useRef(e);return $s((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}function Ks(...e){return r.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)}let Xs=!0,Js=!1;const Zs=new class e{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}},Qs={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 eu(e){e.metaKey||e.altKey||e.ctrlKey||(Xs=!0)}function tu(){Xs=!1}function ru(){"hidden"===this.visibilityState&&Js&&(Xs=!0)}function nu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Xs||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Qs[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function ou(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",eu,!0),t.addEventListener("mousedown",tu,!0),t.addEventListener("pointerdown",tu,!0),t.addEventListener("touchstart",tu,!0),t.addEventListener("visibilitychange",ru,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!nu(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Js=!0,Zs.start(100,(()=>{Js=!1})),t.current=!1,!0)},ref:e}}function iu(e,t){const r=hr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=hr({},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]=hr({},i),Object.keys(o).forEach((e=>{r[n][e]=iu(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const au=e=>e,lu=(()=>{let e=au;return{configure(t){e=t},generate:t=>e(t),reset(){e=au}}})(),su={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function uu(e,t,r="Mui"){const n=su[t];return n?`${r}-${n}`:`${lu.generate(e)}-${t}`}function cu(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=uu(e,t,r)})),n}const du=["mode","contrastThreshold","tonalOffset"],pu={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:ln.white,default:ln.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}},fu={text:{primary:ln.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:ln.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function mu(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=function(e,t){if(e=Os(e),t=ks(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 Ts(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Os(e),t=ks(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 Ts(e)}(e.main,i)))}function hu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Wn(e,du),i=e.primary||function(e="light"){return"dark"===e?{main:xn,light:yn,dark:Sn}:{main:En,light:Sn,dark:Cn}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:mn,light:fn,dark:gn}:{main:bn,light:hn,dark:vn}}(t),l=e.error||function(e="light"){return"dark"===e?{main:cn,light:sn,dark:dn}:{main:dn,light:un,dark:pn}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Rn,light:wn,dark:Ln}:{main:Ln,light:In,dark:Mn}}(t),u=e.success||function(e="light"){return"dark"===e?{main:An,light:Dn,dark:kn}:{main:On,light:Pn,dark:Tn}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:qn,light:_n,dark:Fn}:{main:"#ed6c02",light:Nn,dark:jn}}(t);function d(e){const t=function(e,t){const r=_s(e),n=_s(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,fu.text.primary)>=r?fu.text.primary:pu.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=$n({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Gn(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Gn(12,t?` (${t})`:"",JSON.stringify(e.main)));return mu(e,"light",o,n),mu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:fu,light:pu};return js($n({common:$n({},ln),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:zn,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const gu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const bu={textTransform:"uppercase"},vu='"Roboto", "Helvetica", "Arial", sans-serif';function yu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=vu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Wn(r,gu),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return $n({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===vu?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,bu),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,bu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return js($n({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function xu(...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(",")}const Su=["none",xu(0,2,1,-1,0,1,1,0,0,1,3,0),xu(0,3,1,-2,0,2,2,0,0,1,5,0),xu(0,3,3,-2,0,3,4,0,0,1,8,0),xu(0,2,4,-1,0,4,5,0,0,1,10,0),xu(0,3,5,-1,0,5,8,0,0,1,14,0),xu(0,3,5,-1,0,6,10,0,0,1,18,0),xu(0,4,5,-2,0,7,10,1,0,2,16,1),xu(0,5,5,-3,0,8,10,1,0,3,14,2),xu(0,5,6,-3,0,9,12,1,0,3,16,2),xu(0,6,6,-3,0,10,14,1,0,4,18,3),xu(0,6,7,-4,0,11,15,1,0,4,20,3),xu(0,7,8,-4,0,12,17,2,0,5,22,4),xu(0,7,8,-4,0,13,19,2,0,5,24,4),xu(0,7,9,-4,0,14,21,2,0,5,26,4),xu(0,8,9,-5,0,15,22,2,0,6,28,5),xu(0,8,10,-5,0,16,24,2,0,6,30,5),xu(0,8,11,-5,0,17,26,2,0,6,32,5),xu(0,9,11,-5,0,18,28,2,0,7,34,6),xu(0,9,12,-6,0,19,29,2,0,7,36,6),xu(0,10,13,-6,0,20,31,3,0,8,38,7),xu(0,10,13,-6,0,21,33,3,0,8,40,7),xu(0,10,14,-6,0,22,35,3,0,8,42,7),xu(0,11,14,-7,0,23,36,3,0,9,44,8),xu(0,11,15,-7,0,24,38,3,0,9,46,8)],Eu=["duration","easing","delay"],Cu={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)"},wu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ru(e){return`${Math.round(e)}ms`}function Iu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Lu(e){const t=$n({},Cu,e.easing),r=$n({},wu,e.duration);return $n({getAutoHeightDuration:Iu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Wn(n,Eu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ru(o)} ${i} ${"string"==typeof a?a:Ru(a)}`)).join(",")}},e,{easing:t,duration:r})}const Mu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Du=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Au(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Wn(e,Du);if(e.vars)throw new Error(Gn(18));const l=hu(n),s=ms(e);let u=js(s,{mixins:(c=s.breakpoints,d=r,$n({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Su.slice(),typography:yu(l,i),transitions:Lu(o),zIndex:$n({},Mu),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=js(u,a),u=t.reduce(((e,t)=>js(e,t)),u),u.unstable_sxConfig=$n({},cs,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ds({sx:e,theme:this})},u}const Pu=Au();function ku(){const e=bs(Pu);return e[Bn]||e}function Ou({props:e,name:t}){return function({props:e,name:t,defaultTheme:r,themeId:n}){let o=bs(r);return o=o[n]||o,Ps({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:Pu,themeId:Bn})}const Tu=e=>Rs(e)&&"classes"!==e,_u=Rs,qu=function(e={}){const{themeId:t,defaultTheme:r=Is,rootShouldForwardProp:n=Rs,slotShouldForwardProp:o=Rs}=e,i=e=>ds(hr({},e,{theme:Ms(hr({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{Oa(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Ds(Ls(s))}=a,p=Er(a,ws),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Rs;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Pa(e,hr({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||_a(e)?n=>As(e,hr({},n,{theme:Ms({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=Ms(hr({},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]=As(r,hr({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Ms(hr({},e,{defaultTheme:r,themeId:t}));return As({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},hr({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Bn,defaultTheme:Pu,rootShouldForwardProp:Tu}),Nu=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Fu(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=Fu(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ju(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Fu(e))&&(n&&(n+=" "),n+=t);return n}function zu(e){return uu("MuiSvgIcon",e)}cu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Gu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Bu=qu("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${zs(r.color)}`],t[`fontSize${zs(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),$u=r.forwardRef((function(e,t){const n=Ou({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,f=Wn(n,Gu),m=r.isValidElement(o)&&"svg"===o.type,h=$n({},n,{color:a,component:l,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),g={};c||(g.viewBox=p);const b=(e=>{const{color:t,fontSize:r,classes:n}=e;return dl({root:["root","inherit"!==t&&`color${zs(t)}`,`fontSize${zs(r)}`]},zu,n)})(h);return Yr.jsxs(Bu,$n({as:l,className:ju(b.root,i),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},g,f,m&&o.props,{ownerState:h,children:[m?o.props.children:o,d?Yr.jsx("title",{children:d}):null]}))}));$u.muiName="SvgIcon";var Wu,Hu={},Vu=Symbol.for("react.element"),Uu=Symbol.for("react.portal"),Yu=Symbol.for("react.fragment"),Ku=Symbol.for("react.strict_mode"),Xu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),Zu=Symbol.for("react.context"),Qu=Symbol.for("react.server_context"),ec=Symbol.for("react.forward_ref"),tc=Symbol.for("react.suspense"),rc=Symbol.for("react.suspense_list"),nc=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),ic=Symbol.for("react.offscreen");
|
|
17
|
+
function Pa(e,t){let r;return r=t?Ia(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ia(e),r}function Oa(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function ka(e,t){return Oa(e,t)}Aa.propTypes={defaultTheme:yr.object,styles:yr.oneOfType([yr.array,yr.string,yr.object,yr.func])};var Ta=Object.freeze({__proto__:null,GlobalStyles:Aa,StyledEngineProvider:Da,ThemeContext:va,css:Ca,default:Pa,internal_mutateStyles:Oa,internal_processStyles:ka,internal_serializeStyles:function(e){return e},keyframes:Ma});function _a(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 qa(e){if(r.isValidElement(e)||!_a(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=qa(e[r])})),t}function Na(e,t,n={clone:!0}){const o=n.clone?hr({},e):e;return _a(e)&&_a(t)&&Object.keys(t).forEach((i=>{r.isValidElement(t[i])?o[i]=t[i]:_a(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&_a(e[i])?o[i]=Na(e[i],t[i],n):n.clone?o[i]=_a(t[i])?qa(t[i]):t[i]:o[i]=t[i]})),o}var Fa={exports:{}},ja={},za=Symbol.for("react.transitional.element"),Ga=Symbol.for("react.portal"),Ba=Symbol.for("react.fragment"),$a=Symbol.for("react.strict_mode"),Wa=Symbol.for("react.profiler"),Ha=Symbol.for("react.consumer"),Va=Symbol.for("react.context"),Ua=Symbol.for("react.forward_ref"),Ya=Symbol.for("react.suspense"),Ka=Symbol.for("react.suspense_list"),Xa=Symbol.for("react.memo"),Ja=Symbol.for("react.lazy"),Za=Symbol.for("react.offscreen"),Qa=Symbol.for("react.client.reference");function el(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case za:switch(e=e.type){case Ba:case Wa:case $a:case Ya:case Ka:return e;default:switch(e=e&&e.$$typeof){case Va:case Ua:case Ja:case Xa:case Ha:return e;default:return t}}case Ga:return t}}}ja.ContextConsumer=Ha,ja.ContextProvider=Va,ja.Element=za,ja.ForwardRef=Ua,ja.Fragment=Ba,ja.Lazy=Ja,ja.Memo=Xa,ja.Portal=Ga,ja.Profiler=Wa,ja.StrictMode=$a,ja.Suspense=Ya,ja.SuspenseList=Ka,ja.isContextConsumer=function(e){return el(e)===Ha},ja.isContextProvider=function(e){return el(e)===Va},ja.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===za},ja.isForwardRef=function(e){return el(e)===Ua},ja.isFragment=function(e){return el(e)===Ba},ja.isLazy=function(e){return el(e)===Ja},ja.isMemo=function(e){return el(e)===Xa},ja.isPortal=function(e){return el(e)===Ga},ja.isProfiler=function(e){return el(e)===Wa},ja.isStrictMode=function(e){return el(e)===$a},ja.isSuspense=function(e){return el(e)===Ya},ja.isSuspenseList=function(e){return el(e)===Ka},ja.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ba||e===Wa||e===$a||e===Ya||e===Ka||e===Za||"object"==typeof e&&null!==e&&(e.$$typeof===Ja||e.$$typeof===Xa||e.$$typeof===Va||e.$$typeof===Ha||e.$$typeof===Ua||e.$$typeof===Qa||void 0!==e.getModuleId)},ja.typeOf=el,Fa.exports=ja;var tl=Fa.exports;function rl(e){if("string"!=typeof e)throw new Error(Hn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function nl(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function ol(e){return e&&e.ownerDocument||document}function il(e){return ol(e).defaultView||window}function al(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const ll="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function sl(e){const t=r.useRef(e);return ll((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}function ul(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{al(e,t)}))}),e)}function cl(e,t){const r=hr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=hr({},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]=hr({},i),Object.keys(o).forEach((e=>{r[n][e]=cl(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function dl(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}function pl(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=pl(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function fl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=pl(e))&&(n&&(n+=" "),n+=t);return n}const ml=["values","unit","step"];function hl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Er(e,ml),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>hr({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return hr({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)}const gl={borderRadius:4};function bl(e,t){return t?Na(e,t,{clone:!1}):e}const vl={xs:0,sm:600,md:900,lg:1200,xl:1536},yl={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${vl[e]}px)`};function xl(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||yl;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||yl;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||vl).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Sl(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 El(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Sl(e,r)||n,t&&(o=t(o,n,e)),o}function Cl(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=Sl(e.theme,n)||{};return xl(e,i,(e=>{let n=El(a,o,e);return e===n&&"string"==typeof e&&(n=El(a,o,`${t}${"default"===e?"":rl(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const wl={m:"margin",p:"padding"},Rl={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Il={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ll=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Il[e])return[e];e=Il[e]}const[t,r]=e.split(""),n=wl[t],o=Rl[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Ml=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Dl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Al(e,t,r,n){var o;const i=null!=(o=Sl(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 Pl(e){return Al(e,"spacing",8)}function Ol(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 kl(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Ol(t,r),e)),{})}(Ll(r),n);return xl(e,e[r],o)}function Tl(e,t){const r=Pl(e.theme);return Object.keys(e).map((n=>kl(e,t,n,r))).reduce(bl,{})}function _l(e){return Tl(e,Ml)}function ql(e){return Tl(e,Dl)}function Nl(...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]?bl(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Fl(e){return"number"!=typeof e?e:`${e}px solid`}function jl(e,t){return Cl({prop:e,themeKey:"borders",transform:t})}_l.propTypes={},_l.filterProps=Ml,ql.propTypes={},ql.filterProps=Dl;const zl=jl("border",Fl),Gl=jl("borderTop",Fl),Bl=jl("borderRight",Fl),$l=jl("borderBottom",Fl),Wl=jl("borderLeft",Fl),Hl=jl("borderColor"),Vl=jl("borderTopColor"),Ul=jl("borderRightColor"),Yl=jl("borderBottomColor"),Kl=jl("borderLeftColor"),Xl=jl("outline",Fl),Jl=jl("outlineColor"),Zl=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Al(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ol(t,e)});return xl(e,e.borderRadius,r)}return null};Zl.propTypes={},Zl.filterProps=["borderRadius"],Nl(zl,Gl,Bl,$l,Wl,Hl,Vl,Ul,Yl,Kl,Zl,Xl,Jl);const Ql=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Al(e.theme,"spacing",8),r=e=>({gap:Ol(t,e)});return xl(e,e.gap,r)}return null};Ql.propTypes={},Ql.filterProps=["gap"];const es=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Al(e.theme,"spacing",8),r=e=>({columnGap:Ol(t,e)});return xl(e,e.columnGap,r)}return null};es.propTypes={},es.filterProps=["columnGap"];const ts=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Al(e.theme,"spacing",8),r=e=>({rowGap:Ol(t,e)});return xl(e,e.rowGap,r)}return null};ts.propTypes={},ts.filterProps=["rowGap"];function rs(e,t){return"grey"===t?t:e}Nl(Ql,es,ts,Cl({prop:"gridColumn"}),Cl({prop:"gridRow"}),Cl({prop:"gridAutoFlow"}),Cl({prop:"gridAutoColumns"}),Cl({prop:"gridAutoRows"}),Cl({prop:"gridTemplateColumns"}),Cl({prop:"gridTemplateRows"}),Cl({prop:"gridTemplateAreas"}),Cl({prop:"gridArea"}));function ns(e){return e<=1&&0!==e?100*e+"%":e}Nl(Cl({prop:"color",themeKey:"palette",transform:rs}),Cl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rs}),Cl({prop:"backgroundColor",themeKey:"palette",transform:rs}));const os=Cl({prop:"width",transform:ns}),is=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])||vl[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:ns(t)}};return xl(e,e.maxWidth,t)}return null};is.filterProps=["maxWidth"];const as=Cl({prop:"minWidth",transform:ns}),ls=Cl({prop:"height",transform:ns}),ss=Cl({prop:"maxHeight",transform:ns}),us=Cl({prop:"minHeight",transform:ns});Cl({prop:"size",cssProperty:"width",transform:ns}),Cl({prop:"size",cssProperty:"height",transform:ns});Nl(os,is,as,ls,ss,us,Cl({prop:"boxSizing"}));const cs={border:{themeKey:"borders",transform:Fl},borderTop:{themeKey:"borders",transform:Fl},borderRight:{themeKey:"borders",transform:Fl},borderBottom:{themeKey:"borders",transform:Fl},borderLeft:{themeKey:"borders",transform:Fl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zl},color:{themeKey:"palette",transform:rs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rs},backgroundColor:{themeKey:"palette",transform:rs},p:{style:ql},pt:{style:ql},pr:{style:ql},pb:{style:ql},pl:{style:ql},px:{style:ql},py:{style:ql},padding:{style:ql},paddingTop:{style:ql},paddingRight:{style:ql},paddingBottom:{style:ql},paddingLeft:{style:ql},paddingX:{style:ql},paddingY:{style:ql},paddingInline:{style:ql},paddingInlineStart:{style:ql},paddingInlineEnd:{style:ql},paddingBlock:{style:ql},paddingBlockStart:{style:ql},paddingBlockEnd:{style:ql},m:{style:_l},mt:{style:_l},mr:{style:_l},mb:{style:_l},ml:{style:_l},mx:{style:_l},my:{style:_l},margin:{style:_l},marginTop:{style:_l},marginRight:{style:_l},marginBottom:{style:_l},marginLeft:{style:_l},marginX:{style:_l},marginY:{style:_l},marginInline:{style:_l},marginInlineStart:{style:_l},marginInlineEnd:{style:_l},marginBlock:{style:_l},marginBlockStart:{style:_l},marginBlockEnd:{style:_l},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:Ql},rowGap:{style:ts},columnGap:{style:es},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ns},maxWidth:{style:is},minWidth:{transform:ns},height:{transform:ns},maxHeight:{transform:ns},minHeight:{transform:ns},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const ds=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=Sl(r,l)||{};if(u)return u(o);return xl(o,t,(t=>{let r=El(c,s,t);return t===r&&"string"==typeof t&&(r=El(c,s,`${e}${"default"===t?"":rl(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:cs;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=bl(s,e(r,o,i,a));else{const e=xl({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=bl(s,e):s[r]=t({sx:o,theme:i})}else s=bl(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)}}();function ps(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:{}}ds.filterProps=["sx"];const fs=["breakpoints","palette","spacing","shape"];function ms(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Er(e,fs),l=hl(r),s=function(e=8){if(e.mui)return e;const t=Pl({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Na({breakpoints:l,direction:"ltr",components:{},palette:hr({mode:"light"},n),spacing:s,shape:hr({},gl,i)},a);return u.applyStyles=ps,u=t.reduce(((e,t)=>Na(e,t)),u),u.unstable_sxConfig=hr({},cs,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ds({sx:e,theme:this})},u}function hs(e=null){const t=r.useContext(va);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const gs=ms();function bs(e=gs){return hs(e)}function vs({styles:e,themeId:t,defaultTheme:r={}}){const n=bs(r),o="function"==typeof e?e(t&&n[t]||n):e;return Yr.jsx(Aa,{styles:o})}const ys=["sx"];function xs(e){const{sx:t}=e,r=Er(e,ys),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:cs;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return _a(r)?hr({},n,r):n}:hr({},n,t),hr({},o,{sx:i})}const Ss=["className","component"];const Es=["ownerState"],Cs=["variants"],ws=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Rs(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Is=ms(),Ls=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ms({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Ds(e){return e?(t,r)=>r[e]:null}function As(e,t){let{ownerState:r}=t,n=Er(t,Es);const o="function"==typeof e?e(hr({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>As(e,hr({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Er(o,Cs);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(hr({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(hr({ownerState:r},n)):e.style))})),t}return o}function Ps(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?cl(t.components[r].defaultProps,n):n}function Os(e,t=0,r=1){return function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}(e,t,r)}function ks(e){if(e.type)return e;if("#"===e.charAt(0))return ks(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Hn(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Hn(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Ts(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 _s(e){let t="hsl"===(e=ks(e)).type||"hsla"===e.type?ks(function(e){e=ks(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Ts({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 qs(e,t){return e=ks(e),t=Os(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ts(e)}function Ns(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 Fs(e){if(!Ns(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Fs(e[r])})),t}function js(e,t,r={clone:!0}){const n=r.clone?hr({},e):e;return Ns(e)&&Ns(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Ns(t[o])&&o in e&&Ns(e[o])?n[o]=js(e[o],t[o],r):r.clone?n[o]=Ns(t[o])?Fs(t[o]):t[o]:n[o]=t[o])})),n}function zs(e){if("string"!=typeof e)throw new Error(Gn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Gs(e){return e&&e.ownerDocument||document}function Bs(e){return Gs(e).defaultView||window}const $s="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;let Ws=0;const Hs=r["useId".toString()];function Vs(e){if(void 0!==Hs){return Hs()}return function(e){const[t,n]=r.useState(e),o=t;return r.useEffect((()=>{null==t&&(Ws+=1,n(`mui-${Ws}`))}),[t]),o}(e)}function Us({controlled:e,default:t,name:n,state:o="value"}){const{current:i}=r.useRef(void 0!==e),[a,l]=r.useState(t);return[i?e:a,r.useCallback((e=>{i||l(e)}),[])]}function Ys(e){const t=r.useRef(e);return $s((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}function Ks(...e){return r.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)}let Xs=!0,Js=!1;const Zs=new class e{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}},Qs={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 eu(e){e.metaKey||e.altKey||e.ctrlKey||(Xs=!0)}function tu(){Xs=!1}function ru(){"hidden"===this.visibilityState&&Js&&(Xs=!0)}function nu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Xs||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Qs[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function ou(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",eu,!0),t.addEventListener("mousedown",tu,!0),t.addEventListener("pointerdown",tu,!0),t.addEventListener("touchstart",tu,!0),t.addEventListener("visibilitychange",ru,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!nu(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Js=!0,Zs.start(100,(()=>{Js=!1})),t.current=!1,!0)},ref:e}}function iu(e,t){const r=hr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=hr({},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]=hr({},i),Object.keys(o).forEach((e=>{r[n][e]=iu(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const au=e=>e,lu=(()=>{let e=au;return{configure(t){e=t},generate:t=>e(t),reset(){e=au}}})(),su={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function uu(e,t,r="Mui"){const n=su[t];return n?`${r}-${n}`:`${lu.generate(e)}-${t}`}function cu(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=uu(e,t,r)})),n}const du=["mode","contrastThreshold","tonalOffset"],pu={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:ln.white,default:ln.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}},fu={text:{primary:ln.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:ln.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function mu(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=function(e,t){if(e=ks(e),t=Os(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 Ts(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=ks(e),t=Os(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 Ts(e)}(e.main,i)))}function hu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Wn(e,du),i=e.primary||function(e="light"){return"dark"===e?{main:xn,light:yn,dark:Sn}:{main:En,light:Sn,dark:Cn}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:mn,light:fn,dark:gn}:{main:bn,light:hn,dark:vn}}(t),l=e.error||function(e="light"){return"dark"===e?{main:cn,light:sn,dark:dn}:{main:dn,light:un,dark:pn}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Rn,light:wn,dark:Ln}:{main:Ln,light:In,dark:Mn}}(t),u=e.success||function(e="light"){return"dark"===e?{main:An,light:Dn,dark:On}:{main:kn,light:Pn,dark:Tn}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:qn,light:_n,dark:Fn}:{main:"#ed6c02",light:Nn,dark:jn}}(t);function d(e){const t=function(e,t){const r=_s(e),n=_s(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,fu.text.primary)>=r?fu.text.primary:pu.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=$n({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Gn(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Gn(12,t?` (${t})`:"",JSON.stringify(e.main)));return mu(e,"light",o,n),mu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:fu,light:pu};return js($n({common:$n({},ln),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:zn,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const gu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const bu={textTransform:"uppercase"},vu='"Roboto", "Helvetica", "Arial", sans-serif';function yu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=vu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Wn(r,gu),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return $n({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===vu?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,bu),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,bu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return js($n({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function xu(...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(",")}const Su=["none",xu(0,2,1,-1,0,1,1,0,0,1,3,0),xu(0,3,1,-2,0,2,2,0,0,1,5,0),xu(0,3,3,-2,0,3,4,0,0,1,8,0),xu(0,2,4,-1,0,4,5,0,0,1,10,0),xu(0,3,5,-1,0,5,8,0,0,1,14,0),xu(0,3,5,-1,0,6,10,0,0,1,18,0),xu(0,4,5,-2,0,7,10,1,0,2,16,1),xu(0,5,5,-3,0,8,10,1,0,3,14,2),xu(0,5,6,-3,0,9,12,1,0,3,16,2),xu(0,6,6,-3,0,10,14,1,0,4,18,3),xu(0,6,7,-4,0,11,15,1,0,4,20,3),xu(0,7,8,-4,0,12,17,2,0,5,22,4),xu(0,7,8,-4,0,13,19,2,0,5,24,4),xu(0,7,9,-4,0,14,21,2,0,5,26,4),xu(0,8,9,-5,0,15,22,2,0,6,28,5),xu(0,8,10,-5,0,16,24,2,0,6,30,5),xu(0,8,11,-5,0,17,26,2,0,6,32,5),xu(0,9,11,-5,0,18,28,2,0,7,34,6),xu(0,9,12,-6,0,19,29,2,0,7,36,6),xu(0,10,13,-6,0,20,31,3,0,8,38,7),xu(0,10,13,-6,0,21,33,3,0,8,40,7),xu(0,10,14,-6,0,22,35,3,0,8,42,7),xu(0,11,14,-7,0,23,36,3,0,9,44,8),xu(0,11,15,-7,0,24,38,3,0,9,46,8)],Eu=["duration","easing","delay"],Cu={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)"},wu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ru(e){return`${Math.round(e)}ms`}function Iu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Lu(e){const t=$n({},Cu,e.easing),r=$n({},wu,e.duration);return $n({getAutoHeightDuration:Iu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Wn(n,Eu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ru(o)} ${i} ${"string"==typeof a?a:Ru(a)}`)).join(",")}},e,{easing:t,duration:r})}const Mu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Du=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Au(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Wn(e,Du);if(e.vars)throw new Error(Gn(18));const l=hu(n),s=ms(e);let u=js(s,{mixins:(c=s.breakpoints,d=r,$n({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Su.slice(),typography:yu(l,i),transitions:Lu(o),zIndex:$n({},Mu),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=js(u,a),u=t.reduce(((e,t)=>js(e,t)),u),u.unstable_sxConfig=$n({},cs,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ds({sx:e,theme:this})},u}const Pu=Au();function Ou(){const e=bs(Pu);return e[Bn]||e}function ku({props:e,name:t}){return function({props:e,name:t,defaultTheme:r,themeId:n}){let o=bs(r);return o=o[n]||o,Ps({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:Pu,themeId:Bn})}const Tu=e=>Rs(e)&&"classes"!==e,_u=Rs,qu=function(e={}){const{themeId:t,defaultTheme:r=Is,rootShouldForwardProp:n=Rs,slotShouldForwardProp:o=Rs}=e,i=e=>ds(hr({},e,{theme:Ms(hr({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ka(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Ds(Ls(s))}=a,p=Er(a,ws),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Rs;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Pa(e,hr({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||_a(e)?n=>As(e,hr({},n,{theme:Ms({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=Ms(hr({},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]=As(r,hr({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Ms(hr({},e,{defaultTheme:r,themeId:t}));return As({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},hr({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Bn,defaultTheme:Pu,rootShouldForwardProp:Tu}),Nu=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Fu(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=Fu(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ju(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Fu(e))&&(n&&(n+=" "),n+=t);return n}function zu(e){return uu("MuiSvgIcon",e)}cu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Gu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Bu=qu("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${zs(r.color)}`],t[`fontSize${zs(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),$u=r.forwardRef((function(e,t){const n=ku({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,f=Wn(n,Gu),m=r.isValidElement(o)&&"svg"===o.type,h=$n({},n,{color:a,component:l,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),g={};c||(g.viewBox=p);const b=(e=>{const{color:t,fontSize:r,classes:n}=e;return dl({root:["root","inherit"!==t&&`color${zs(t)}`,`fontSize${zs(r)}`]},zu,n)})(h);return Yr.jsxs(Bu,$n({as:l,className:ju(b.root,i),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},g,f,m&&o.props,{ownerState:h,children:[m?o.props.children:o,d?Yr.jsx("title",{children:d}):null]}))}));$u.muiName="SvgIcon";var Wu,Hu={},Vu=Symbol.for("react.element"),Uu=Symbol.for("react.portal"),Yu=Symbol.for("react.fragment"),Ku=Symbol.for("react.strict_mode"),Xu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),Zu=Symbol.for("react.context"),Qu=Symbol.for("react.server_context"),ec=Symbol.for("react.forward_ref"),tc=Symbol.for("react.suspense"),rc=Symbol.for("react.suspense_list"),nc=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),ic=Symbol.for("react.offscreen");
|
|
18
18
|
/**
|
|
19
19
|
* @license React
|
|
20
20
|
* react-is.production.min.js
|
|
@@ -23,7 +23,7 @@ function Pa(e,t){let r;return r=t?Ia(e).withConfig({displayName:t.label,shouldFo
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/function ac(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Vu:switch(e=e.type){case Yu:case Xu:case Ku:case tc:case rc:return e;default:switch(e=e&&e.$$typeof){case Qu:case Zu:case ec:case oc:case nc:case Ju:return e;default:return t}}case Uu:return t}}}Wu=Symbol.for("react.module.reference"),Hu.ContextConsumer=Zu,Hu.ContextProvider=Ju,Hu.Element=Vu,Hu.ForwardRef=ec,Hu.Fragment=Yu,Hu.Lazy=oc,Hu.Memo=nc,Hu.Portal=Uu,Hu.Profiler=Xu,Hu.StrictMode=Ku,Hu.Suspense=tc,Hu.SuspenseList=rc,Hu.isAsyncMode=function(){return!1},Hu.isConcurrentMode=function(){return!1},Hu.isContextConsumer=function(e){return ac(e)===Zu},Hu.isContextProvider=function(e){return ac(e)===Ju},Hu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Vu},Hu.isForwardRef=function(e){return ac(e)===ec},Hu.isFragment=function(e){return ac(e)===Yu},Hu.isLazy=function(e){return ac(e)===oc},Hu.isMemo=function(e){return ac(e)===nc},Hu.isPortal=function(e){return ac(e)===Uu},Hu.isProfiler=function(e){return ac(e)===Xu},Hu.isStrictMode=function(e){return ac(e)===Ku},Hu.isSuspense=function(e){return ac(e)===tc},Hu.isSuspenseList=function(e){return ac(e)===rc},Hu.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Yu||e===Xu||e===Ku||e===tc||e===rc||e===ic||"object"==typeof e&&null!==e&&(e.$$typeof===oc||e.$$typeof===nc||e.$$typeof===Ju||e.$$typeof===Zu||e.$$typeof===ec||e.$$typeof===Wu||void 0!==e.getModuleId)},Hu.typeOf=ac;var lc=!1,sc=t.createContext(null),uc="unmounted",cc="exited",dc="entering",pc="entered",fc="exiting",mc=function(e){function r(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=cc,n.appearStatus=dc):o=pc:o=t.unmountOnExit||t.mountOnEnter?uc:cc,n.state={status:o},n.nextCallback=null,n}wr(r,e),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===uc?{status:cc}:null};var n=r.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==dc&&r!==pc&&(t=dc):r!==dc&&r!==pc||(t=fc)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===dc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cc&&this.setState({status:uc})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[F.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||lc?this.safeSetState({status:pc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:dc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:pc},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:F.findDOMNode(this);t&&!lc?(this.props.onExit(n),this.safeSetState({status:fc},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:cc},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:cc},(function(){e.props.onExited(n)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===uc)return null;var r=this.props,n=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var o=Er(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(sc.Provider,{value:null},"function"==typeof n?n(e,o):t.cloneElement(t.Children.only(n),o))},r}(t.Component);function hc(){}function gc(e,t){var r=Object.create(null);return e&&l.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&i(e)?t(e):e}(e)})),r}function bc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function vc(e,t,r){var n=gc(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(l){var s=o[l];if(i(s)){var u=l in t,c=l in n,d=t[l],p=i(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&i(d)&&(o[l]=a(s,{onExited:r.bind(null,s),in:d.props.in,exit:bc(s,"exit",e),enter:bc(s,"enter",e)})):o[l]=a(s,{in:!1}):o[l]=a(s,{onExited:r.bind(null,s),in:!0,exit:bc(s,"exit",e),enter:bc(s,"enter",e)})}})),o}mc.contextType=sc,mc.propTypes={},mc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hc,onEntering:hc,onEntered:hc,onExit:hc,onExiting:hc,onExited:hc},mc.UNMOUNTED=uc,mc.EXITED=cc,mc.ENTERING=dc,mc.ENTERED=pc,mc.EXITING=fc;var yc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},xc=function(e){function r(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Rr(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}wr(r,e);var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,gc(r.children,(function(e){return a(e,{onExited:n.bind(null,e),in:!0,appear:bc(e,"appear",r),enter:bc(e,"enter",r),exit:bc(e,"exit",r)})}))):vc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var r=gc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=hr({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,r=e.component,n=e.childFactory,o=Er(e,["component","childFactory"]),i=this.state.contextValue,a=yc(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===r?t.createElement(sc.Provider,{value:i},a):t.createElement(sc.Provider,{value:i},t.createElement(r,o,a))},r}(t.Component);xc.propTypes={},xc.defaultProps={component:"div",childFactory:function(e){return e}};const Sc=e=>e.scrollTop;function Ec(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 Cc(e){return uu("MuiPaper",e)}cu("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const wc=["className","component","elevation","square","variant"],Rc=qu("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 $n({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&&$n({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${qs("#fff",Nu(t.elevation))}, ${qs("#fff",Nu(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Ic=r.forwardRef((function(e,t){const r=Ou({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Wn(r,wc),u=$n({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return dl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Cc,o)})(u);return Yr.jsx(Rc,$n({as:o,ownerState:u,className:ju(c.root,n),ref:t},s))}));function Lc(e){return"string"==typeof e}function Mc(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 Dc(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 Ac=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Pc(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Er(e,Ac),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=fl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=hr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=hr({},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=Mc(hr({},o,n)),l=Dc(n),s=Dc(o),u=t(a),c=fl(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=hr({},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=hr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(hr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Lc(e)?t:hr({},t,{ownerState:hr({},t.ownerState,r)})}(r,hr({},s,{ref:ul(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const kc=cu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Oc=["center","classes","className"];let Tc,_c,qc,Nc,Fc=e=>e;const jc=Ma(Tc||(Tc=Fc`
|
|
26
|
+
*/function ac(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Vu:switch(e=e.type){case Yu:case Xu:case Ku:case tc:case rc:return e;default:switch(e=e&&e.$$typeof){case Qu:case Zu:case ec:case oc:case nc:case Ju:return e;default:return t}}case Uu:return t}}}Wu=Symbol.for("react.module.reference"),Hu.ContextConsumer=Zu,Hu.ContextProvider=Ju,Hu.Element=Vu,Hu.ForwardRef=ec,Hu.Fragment=Yu,Hu.Lazy=oc,Hu.Memo=nc,Hu.Portal=Uu,Hu.Profiler=Xu,Hu.StrictMode=Ku,Hu.Suspense=tc,Hu.SuspenseList=rc,Hu.isAsyncMode=function(){return!1},Hu.isConcurrentMode=function(){return!1},Hu.isContextConsumer=function(e){return ac(e)===Zu},Hu.isContextProvider=function(e){return ac(e)===Ju},Hu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Vu},Hu.isForwardRef=function(e){return ac(e)===ec},Hu.isFragment=function(e){return ac(e)===Yu},Hu.isLazy=function(e){return ac(e)===oc},Hu.isMemo=function(e){return ac(e)===nc},Hu.isPortal=function(e){return ac(e)===Uu},Hu.isProfiler=function(e){return ac(e)===Xu},Hu.isStrictMode=function(e){return ac(e)===Ku},Hu.isSuspense=function(e){return ac(e)===tc},Hu.isSuspenseList=function(e){return ac(e)===rc},Hu.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Yu||e===Xu||e===Ku||e===tc||e===rc||e===ic||"object"==typeof e&&null!==e&&(e.$$typeof===oc||e.$$typeof===nc||e.$$typeof===Ju||e.$$typeof===Zu||e.$$typeof===ec||e.$$typeof===Wu||void 0!==e.getModuleId)},Hu.typeOf=ac;var lc=!1,sc=t.createContext(null),uc="unmounted",cc="exited",dc="entering",pc="entered",fc="exiting",mc=function(e){function r(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=cc,n.appearStatus=dc):o=pc:o=t.unmountOnExit||t.mountOnEnter?uc:cc,n.state={status:o},n.nextCallback=null,n}wr(r,e),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===uc?{status:cc}:null};var n=r.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==dc&&r!==pc&&(t=dc):r!==dc&&r!==pc||(t=fc)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===dc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cc&&this.setState({status:uc})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[F.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||lc?this.safeSetState({status:pc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:dc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:pc},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:F.findDOMNode(this);t&&!lc?(this.props.onExit(n),this.safeSetState({status:fc},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:cc},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:cc},(function(){e.props.onExited(n)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===uc)return null;var r=this.props,n=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var o=Er(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(sc.Provider,{value:null},"function"==typeof n?n(e,o):t.cloneElement(t.Children.only(n),o))},r}(t.Component);function hc(){}function gc(e,t){var r=Object.create(null);return e&&l.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&i(e)?t(e):e}(e)})),r}function bc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function vc(e,t,r){var n=gc(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(l){var s=o[l];if(i(s)){var u=l in t,c=l in n,d=t[l],p=i(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&i(d)&&(o[l]=a(s,{onExited:r.bind(null,s),in:d.props.in,exit:bc(s,"exit",e),enter:bc(s,"enter",e)})):o[l]=a(s,{in:!1}):o[l]=a(s,{onExited:r.bind(null,s),in:!0,exit:bc(s,"exit",e),enter:bc(s,"enter",e)})}})),o}mc.contextType=sc,mc.propTypes={},mc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hc,onEntering:hc,onEntered:hc,onExit:hc,onExiting:hc,onExited:hc},mc.UNMOUNTED=uc,mc.EXITED=cc,mc.ENTERING=dc,mc.ENTERED=pc,mc.EXITING=fc;var yc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},xc=function(e){function r(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Rr(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}wr(r,e);var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,gc(r.children,(function(e){return a(e,{onExited:n.bind(null,e),in:!0,appear:bc(e,"appear",r),enter:bc(e,"enter",r),exit:bc(e,"exit",r)})}))):vc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var r=gc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=hr({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,r=e.component,n=e.childFactory,o=Er(e,["component","childFactory"]),i=this.state.contextValue,a=yc(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===r?t.createElement(sc.Provider,{value:i},a):t.createElement(sc.Provider,{value:i},t.createElement(r,o,a))},r}(t.Component);xc.propTypes={},xc.defaultProps={component:"div",childFactory:function(e){return e}};const Sc=e=>e.scrollTop;function Ec(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 Cc(e){return uu("MuiPaper",e)}cu("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const wc=["className","component","elevation","square","variant"],Rc=qu("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 $n({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&&$n({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${qs("#fff",Nu(t.elevation))}, ${qs("#fff",Nu(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Ic=r.forwardRef((function(e,t){const r=ku({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Wn(r,wc),u=$n({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return dl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Cc,o)})(u);return Yr.jsx(Rc,$n({as:o,ownerState:u,className:ju(c.root,n),ref:t},s))}));function Lc(e){return"string"==typeof e}function Mc(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 Dc(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 Ac=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Pc(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Er(e,Ac),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=fl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=hr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=hr({},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=Mc(hr({},o,n)),l=Dc(n),s=Dc(o),u=t(a),c=fl(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=hr({},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=hr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(hr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Lc(e)?t:hr({},t,{ownerState:hr({},t.ownerState,r)})}(r,hr({},s,{ref:ul(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const Oc=cu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),kc=["center","classes","className"];let Tc,_c,qc,Nc,Fc=e=>e;const jc=Ma(Tc||(Tc=Fc`
|
|
27
27
|
0% {
|
|
28
28
|
transform: scale(0);
|
|
29
29
|
opacity: 0.1;
|
|
@@ -96,9 +96,9 @@ function Pa(e,t){let r;return r=t?Ia(e).withConfig({displayName:t.label,shouldFo
|
|
|
96
96
|
animation-iteration-count: infinite;
|
|
97
97
|
animation-delay: 200ms;
|
|
98
98
|
}
|
|
99
|
-
`),kc.rippleVisible,jc,550,(({theme:e})=>e.transitions.easing.easeInOut),kc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),kc.child,kc.childLeaving,zc,550,(({theme:e})=>e.transitions.easing.easeInOut),kc.childPulsate,Gc,(({theme:e})=>e.transitions.easing.easeInOut)),Wc=r.forwardRef((function(e,t){const n=Ou({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Wn(n,Oc),[s,u]=r.useState([]),c=r.useRef(0),d=r.useRef(null);r.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=r.useRef(!1),f=r.useRef(0),m=r.useRef(null),h=r.useRef(null);r.useEffect((()=>()=>{f.current&&clearTimeout(f.current)}),[]);const g=r.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,Yr.jsx($c,{classes:{ripple:ju(i.ripple,kc.ripple),rippleVisible:ju(i.rippleVisible,kc.rippleVisible),ripplePulsate:ju(i.ripplePulsate,kc.ripplePulsate),child:ju(i.child,kc.child),childLeaving:ju(i.childLeaving,kc.childLeaving),childPulsate:ju(i.childPulsate,kc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=r.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.current=setTimeout((()=>{m.current&&(m.current(),m.current=null)}),80)):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g]),v=r.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=r.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void(f.current=setTimeout((()=>{y(e,t)})));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return r.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Yr.jsx(Bc,$n({className:ju(kc.root,i.root,a),ref:h},l,{children:Yr.jsx(xc,{component:null,exit:!0,children:s})}))}));function Hc(e){return uu("MuiButtonBase",e)}const Vc=cu("MuiButtonBase",["root","disabled","focusVisible"]),Uc=["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"],Yc=qu("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"},[`&.${Vc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Kc=r.forwardRef((function(e,t){const n=Ou({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:I,onTouchStart:L,tabIndex:M=0,TouchRippleProps:D,touchRippleRef:A,type:P}=n,k=Wn(n,Uc),O=r.useRef(null),T=r.useRef(null),_=Ks(T,A),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=ou(),[z,G]=r.useState(!1);u&&z&&G(!1),r.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),O.current.focus()}})),[]);const[B,$]=r.useState(!1);r.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!u;function H(e,t,r=d){return Ys((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}r.useEffect((()=>{z&&p&&!c&&B&&T.current.pulsate()}),[c,p,z,B]);const V=H("start",E),U=H("stop",g),Y=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",L),Z=H("stop",R),Q=H("stop",I),ee=H("stop",(e=>{F(e),!1===q.current&&G(!1),m&&m(e)}),!1),te=Ys((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=r.useRef(!1),oe=Ys((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=Ys((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(k.href||k.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(k.href||k.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=Ks(t,j,O),ue=$n({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=dl({root:["root",t&&"disabled",r&&"focusVisible"]},Hc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Yr.jsxs(Yc,$n({as:ae,className:ju(ce.root,l),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:M,type:P},le,k,{children:[a,W?Yr.jsx(Wc,$n({ref:_,center:i},D)):null]}))}));function Xc(e){return uu("MuiTypography",e)}cu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Jc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Zc=qu("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${zs(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>$n({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}))),Qc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ed={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},td=r.forwardRef((function(e,t){const r=Ou({props:e,name:"MuiTypography"}),n=(e=>ed[e]||e)(r.color),o=xs($n({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Qc}=o,f=Wn(o,Jc),m=$n({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||Qc[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return dl({root:["root",i,"inherit"!==e.align&&`align${zs(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Xc,a)})(m);return Yr.jsx(Zc,$n({as:h,ref:t,ownerState:m,className:ju(g.root,a)},f))})),rd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function nd(e){const t=[],r=[];return Array.from(e.querySelectorAll(rd)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function od(){return!0}function id(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=nd,isEnabled:l=od,open:s}=e,u=r.useRef(!1),c=r.useRef(null),d=r.useRef(null),p=r.useRef(null),f=r.useRef(null),m=r.useRef(!1),h=r.useRef(null),g=ul(t.ref,h),b=r.useRef(null);r.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),r.useEffect((()=>{if(!s||!h.current)return;const e=ol(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),r.useEffect((()=>{if(!s||!h.current)return;const e=ol(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return Yr.jsxs(r.Fragment,{children:[Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const ad=r.forwardRef((function(e,t){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=r.useState(null),s=ul(r.isValidElement(n)?n.ref:null,t);if(ll((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),ll((()=>{if(a&&!i)return al(t,a),()=>{al(t,null)}}),[t,a,i]),i){if(r.isValidElement(n)){const e={ref:s};return r.cloneElement(n,e)}return Yr.jsx(r.Fragment,{children:n})}return Yr.jsx(r.Fragment,{children:a?j.createPortal(n,a):a})}));function ld(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sd(e){return parseInt(il(e).getComputedStyle(e).paddingRight,10)||0}function ud(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&ld(e,o)}))}function cd(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function dd(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=ol(e);return t.body===e?il(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(ol(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${sd(n)+e}px`;const t=ol(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${sd(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=ol(n).body;else{const t=n.parentElement,r=il(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const pd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&ld(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ud(t,e.mount,e.modalRef,n,!0);const o=cd(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=cd(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=dd(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=cd(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&ld(e.modalRef,t),ud(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&ld(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function fd(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=pd,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=r.useRef({}),m=r.useRef(null),h=r.useRef(null),g=ul(h,p),[b,v]=r.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},C=sl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ol(m.current).body;i.add(S(),e),h.current&&E()})),w=r.useCallback((()=>i.isTopModal(S())),[i]),R=sl((e=>{m.current=e,e&&(d&&w()?E():h.current&&ld(h.current,x))})),I=r.useCallback((()=>{i.remove(S(),x)}),[x,i]);r.useEffect((()=>()=>{I()}),[I]),r.useEffect((()=>{d?C():y&&a||I()}),[d,I,y,a,C]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Mc(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=hr({},r,t);return hr({role:"presentation"},n,{onKeyDown:L(n),ref:g})},getBackdropProps:(e={})=>hr({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:nl((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:nl((()=>{v(!0),s&&s(),a&&I()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}const md=["onChange","maxRows","minRows","style","value"];function hd(e){return parseInt(e,10)||0}const gd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function bd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const vd=r.forwardRef((function(e,t){const{onChange:n,maxRows:o,minRows:i=1,style:a,value:l}=e,s=Er(e,md),{current:u}=r.useRef(null!=l),c=r.useRef(null),d=ul(t,c),p=r.useRef(null),f=r.useRef(0),[m,h]=r.useState({outerHeightStyle:0}),g=r.useCallback((()=>{const t=c.current,r=il(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const n=p.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=r.boxSizing,l=hd(r.paddingBottom)+hd(r.paddingTop),s=hd(r.borderBottomWidth)+hd(r.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=u;i&&(f=Math.max(Number(i)*d,f)),o&&(f=Math.min(Number(o)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-u)<=1}}),[o,i,e.placeholder]),b=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return f.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(f.current+=1,{overflow:n,outerHeightStyle:r}):e},v=r.useCallback((()=>{const e=g();bd(e)||h((t=>b(t,e)))}),[g]);ll((()=>{const e=()=>{f.current=0,(()=>{const e=g();bd(e)||j.flushSync((()=>{h((t=>b(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=c.current,n=il(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[g]),ll((()=>{v()})),r.useEffect((()=>{f.current=0}),[l]);return Yr.jsxs(r.Fragment,{children:[Yr.jsx("textarea",hr({value:l,onChange:e=>{f.current=0,u||v(),n&&n(e)},ref:d,rows:i,style:hr({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},s)),Yr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:hr({},gd,a,{paddingTop:0,paddingBottom:0})})]})}));function yd({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)),{})}const xd=r.createContext(void 0);function Sd(){return r.useContext(xd)}function Ed(e){return Yr.jsx(vs,$n({},e,{defaultTheme:Pu,themeId:Bn}))}function Cd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function wd(e,t=!1){return e&&(Cd(e.value)&&""!==e.value||t&&Cd(e.defaultValue)&&""!==e.defaultValue)}function Rd(e){return uu("MuiInputBase",e)}const Id=cu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ld=["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"],Md=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${zs(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Dd=(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]},Ad=qu("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Md})((({theme:e,ownerState:t})=>$n({},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",[`&.${Id.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$n({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Pd=qu("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=$n({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 $n({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] + .${Id.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},[`&.${Id.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"})})),kd=Yr.jsx(Ed,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Od=r.forwardRef((function(e,t){var n;const o=Ou({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,fullWidth:h=!1,id:g,inputComponent:b="input",inputProps:v={},inputRef:y,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:I,onFocus:L,onKeyDown:M,onKeyUp:D,placeholder:A,readOnly:P,renderSuffix:k,rows:O,slotProps:T={},slots:_={},startAdornment:q,type:N="text",value:F}=o,j=Wn(o,Ld),z=null!=v.value?v.value:F,{current:G}=r.useRef(null!=z),B=r.useRef(),$=r.useCallback((e=>{}),[]),W=Ks(B,y,v.ref,$),[H,V]=r.useState(!1),U=Sd(),Y=yd({props:o,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:H,r.useEffect((()=>{!U&&p&&H&&(V(!1),w&&w())}),[U,p,H,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=r.useCallback((e=>{wd(e)?K&&K():X&&X()}),[K,X]);$s((()=>{G&&J({value:z})}),[z,J,G]);r.useEffect((()=>{J(B.current)}),[]);let Z=b,Q=v;E&&"input"===Z&&(Q=$n(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=vd);r.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=$n({},o,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:m,error:Y.error,focused:Y.focused,formControl:U,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return dl({root:["root",`color${zs(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${zs(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Rd,t)})(ee),re=_.root||u.Root||Ad,ne=T.root||c.root||{},oe=_.input||u.Input||Pd;return Q=$n({},Q,null!=(n=T.input)?n:c.input),Yr.jsxs(r.Fragment,{children:[!f&&kd,Yr.jsxs(re,$n({},ne,!Lc(re)&&{ownerState:$n({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),I&&I(e)}},j,{className:ju(te.root,ne.className,s,P&&"MuiInputBase-readOnly"),children:[q,Yr.jsx(xd.Provider,{value:null,children:Yr.jsx(oe,$n({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:d,disabled:Y.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:C,placeholder:A,readOnly:P,required:Y.required,rows:O,value:z,onKeyDown:M,onKeyUp:D,type:N},Q,!Lc(oe)&&{as:Z,ownerState:$n({},ee,Q.ownerState)},{ref:W,className:ju(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),U&&U.onBlur?U.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||B.current;if(null==t)throw new Error(Gn(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),U&&U.onFocus?U.onFocus(e):V(!0))}}))}),m,k?k($n({},Y,{startAdornment:q})):null]}))]})}));function Td(e){return uu("MuiInput",e)}const _d=$n({},Id,cu("MuiInput",["root","underline","input"]));function qd(e){return uu("MuiOutlinedInput",e)}const Nd=$n({},Id,cu("MuiOutlinedInput",["root","notchedOutline","input"]));function Fd(e){return uu("MuiFilledInput",e)}const jd=$n({},Id,cu("MuiFilledInput",["root","underline","input"]));var zd=function(e,t){function n(r,n){return Yr.jsx($u,$n({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return n.muiName=$u.muiName,r.memo(r.forwardRef(n))}(Yr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Gd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Bd={entering:{opacity:1},entered:{opacity:1}},$d=r.forwardRef((function(e,t){const n=ku(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=mc}=e,y=Wn(e,Gd),x=r.useRef(null),S=Ks(x,l.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{Sc(e);const r=Ec({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),I=E(h),L=E((e=>{const t=Ec({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),M=E(m);return Yr.jsx(v,$n({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:L,onExited:M,onExiting:I,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,t)=>r.cloneElement(l,$n({style:$n({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Bd[e],g,l.props.style),ref:S},t))}))}));function Wd(e){return uu("MuiBackdrop",e)}cu("MuiBackdrop",["root","invisible"]);const Hd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Vd=qu("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>$n({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"}))),Ud=r.forwardRef((function(e,t){var r,n,o;const i=Ou({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=$d,transitionDuration:g}=i,b=Wn(i,Hd),v=$n({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return dl({root:["root",r&&"invisible"]},Wd,t)})(v),x=null!=(r=f.root)?r:c.root;return Yr.jsx(h,$n({in:p,timeout:g},b,{children:Yr.jsx(Vd,$n({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:ju(y.root,l,null==x?void 0:x.className),ownerState:$n({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Yd=cu("MuiBox",["root"]),Kd=Au(),Xd=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Pa("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ds);return r.forwardRef((function(e,r){const l=bs(n),s=xs(e),{className:u,component:c="div"}=s,d=Er(s,Ss);return Yr.jsx(a,hr({as:c,ref:r,className:fl(u,i?i(o):o),theme:t&&l[t]||l},d))}))}({themeId:Bn,defaultTheme:Kd,defaultClassName:Yd.root,generateClassName:lu.generate});function Jd(e){return uu("MuiButton",e)}const Zd=cu("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Qd=r.createContext({}),ep=r.createContext(void 0),tp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rp=e=>$n({},"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}}),np=qu(Kc,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${zs(r.color)}`],t[`size${zs(r.size)}`],t[`${r.variant}Size${zs(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return $n({},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":$n({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:qs(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})`:qs(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})`:qs(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":$n({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Zd.focusVisible}`]:$n({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Zd.disabled}`]:$n({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 ${qs(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"},[`&.${Zd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Zd.disabled}`]:{boxShadow:"none"}})),op=qu("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${zs(r.size)}`]]}})((({ownerState:e})=>$n({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},rp(e)))),ip=qu("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${zs(r.size)}`]]}})((({ownerState:e})=>$n({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},rp(e)))),ap=r.forwardRef((function(e,t){const n=r.useContext(Qd),o=r.useContext(ep),i=Ou({props:iu(n,e),name:"MuiButton"}),{children:a,color:l="primary",component:s="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:m,fullWidth:h=!1,size:g="medium",startIcon:b,type:v,variant:y="text"}=i,x=Wn(i,tp),S=$n({},i,{color:l,component:s,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:h,size:g,type:v,variant:y}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return $n({},a,dl({root:["root",i,`${i}${zs(t)}`,`size${zs(o)}`,`${i}Size${zs(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${zs(o)}`],endIcon:["endIcon",`iconSize${zs(o)}`]},Jd,a))})(S),C=b&&Yr.jsx(op,{className:E.startIcon,ownerState:S,children:b}),w=f&&Yr.jsx(ip,{className:E.endIcon,ownerState:S,children:f}),R=o||"";return Yr.jsxs(np,$n({ownerState:S,className:ju(n.className,E.root,u,R),component:s,disabled:c,focusRipple:!p,focusVisibleClassName:ju(E.focusVisible,m),ref:t,type:v},x,{classes:E,children:[C,a,w]}))}));function lp(e){return uu("MuiModal",e)}cu("MuiModal",["root","hidden","backdrop"]);const sp=["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=qu("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})=>$n({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),cp=qu(Ud,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),dp=r.forwardRef((function(e,t){var n,o,i,a,l,s;const u=Ou({name:"MuiModal",props:e}),{BackdropComponent:c=cp,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:I=!1,onBackdropClick:L,open:M,slotProps:D,slots:A}=u,P=Wn(u,sp),k=$n({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:I}),{getRootProps:O,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=fd($n({},k,{rootRef:t})),z=$n({},k,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return dl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},lp,n)})(z),B={};if(void 0===m.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(o=null==A?void 0:A.root)?o:b.Root)?n:up,W=null!=(i=null!=(a=null==A?void 0:A.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==D?void 0:D.root)?l:v.root,V=null!=(s=null==D?void 0:D.backdrop)?s:v.backdrop,U=Pc({elementType:$,externalSlotProps:H,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:g},ownerState:z,className:ju(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),Y=Pc({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T($n({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ju(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return I||M||j&&!F?Yr.jsx(ad,{ref:q,container:h,disablePortal:E,children:Yr.jsxs($,$n({},U,{children:[!R&&c?Yr.jsx(W,$n({},Y)):null,Yr.jsx(id,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:M,children:r.cloneElement(m,B)})]}))}):null}));function pp(e){return uu("MuiDivider",e)}const fp=cu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),mp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],hp=qu("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})=>$n({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)`:qs(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})=>$n({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>$n({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>$n({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>$n({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),gp=qu("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>$n({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)`}))),bp=r.forwardRef((function(e,t){const r=Ou({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=Wn(r,mp),m=$n({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return dl({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"]},pp,n)})(m);return Yr.jsx(hp,$n({as:a,className:ju(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Yr.jsx(gp,{className:h.wrapper,ownerState:m,children:o}):null}))}));bp.muiSkipListHighlight=!0;const vp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],yp=qu(Ad,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Md(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 $n({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}},[`&.${jd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${jd.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"},[`&.${jd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jd.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(.${jd.disabled}, .${jd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${jd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$n({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),xp=qu(Pd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Dd})((({theme:e,ownerState:t})=>$n({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}))),Sp=r.forwardRef((function(e,t){var r,n,o,i;const a=Ou({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Wn(a,vp),g=$n({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return $n({},t,dl({root:["root",!r&&"underline"],input:["input"]},Fd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?js(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:yp,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:xp;return Yr.jsx(Od,$n({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Sp.muiName="Input";const Ep=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cp(e){return`scale(${e}, ${e**2})`}const wp={entering:{opacity:1,transform:Cp(1)},entered:{opacity:1,transform:"none"}},Rp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ip=r.forwardRef((function(e,t){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=mc}=e,b=Wn(e,Ep),v=r.useRef(),y=r.useRef(),x=ku(),S=r.useRef(null),E=Ks(S,i.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{Sc(e);const{duration:r,delay:n,easing:o}=Ec({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:Rp?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),I=C(u),L=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=Ec({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Rp?o:.666*o,delay:Rp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Cp(.75),d&&d(e)})),D=C(p);return r.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Yr.jsx(g,$n({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:I,onEntering:w,onExit:M,onExited:D,onExiting:L,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,y.current||0)),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,t)=>r.cloneElement(i,$n({style:$n({opacity:0,transform:Cp(.75),visibility:"exited"!==e||l?void 0:"hidden"},wp[e],m,i.props.style),ref:E},t))}))}));Ip.muiSupportAuto=!0;const Lp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Mp=qu(Ad,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Md(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})`),$n({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"},[`&.${_d.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_d.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(.${_d.disabled}, .${_d.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${_d.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Dp=qu(Pd,{name:"MuiInput",slot:"Input",overridesResolver:Dd})({}),Ap=r.forwardRef((function(e,t){var r,n,o,i;const a=Ou({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Wn(a,Lp),b=(e=>{const{classes:t,disableUnderline:r}=e;return $n({},t,dl({root:["root",!r&&"underline"],input:["input"]},Td,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?js(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:Mp,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:Dp;return Yr.jsx(Od,$n({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));function Pp(e){return uu("MuiLink",e)}Ap.muiName="Input";const kp=cu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Op={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Tp=({theme:e,ownerState:t})=>{const r=(e=>Op[e]||e)(t.color),n=Sl(e,`palette.${r}`,!1)||t.color,o=Sl(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:qs(n,.4)},_p=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],qp=qu(td,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${zs(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>$n({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&$n({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Tp({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"},[`&.${kp.focusVisible}`]:{outline:"auto"}}))),Np=r.forwardRef((function(e,t){const n=Ou({props:e,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Wn(n,_p),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=ou(),[v,y]=r.useState(!1),x=Ks(t,b),S=$n({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return dl({root:["root",`underline${zs(o)}`,"button"===r&&"button",n&&"focusVisible"]},Pp,t)})(S);return Yr.jsx(qp,$n({color:i,className:ju(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(Op).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),Fp=r.createContext({});function jp(e){return uu("MuiList",e)}cu("MuiList",["root","padding","dense","subheader"]);const zp=["children","className","component","dense","disablePadding","subheader"],Gp=qu("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})=>$n({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Bp=r.forwardRef((function(e,t){const n=Ou({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Wn(n,zp),d=r.useMemo((()=>({dense:l})),[l]),p=$n({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return dl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},jp,t)})(p);return Yr.jsx(Fp.Provider,{value:d,children:Yr.jsxs(Gp,$n({as:a,className:ju(f.root,i),ref:t,ownerState:p},c,{children:[u,o]}))})}));function $p(e){return uu("MuiListItemIcon",e)}const Wp=cu("MuiListItemIcon",["root","alignItemsFlexStart"]),Hp=["className"],Vp=qu("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})=>$n({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Up=r.forwardRef((function(e,t){const n=Ou({props:e,name:"MuiListItemIcon"}),{className:o}=n,i=Wn(n,Hp),a=$n({},n,{alignItems:r.useContext(Fp).alignItems}),l=(e=>{const{alignItems:t,classes:r}=e;return dl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},$p,r)})(a);return Yr.jsx(Vp,$n({className:ju(l.root,o),ownerState:a,ref:t},i))})),Yp=cu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Kp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Xp(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Jp(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Zp(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 Qp(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")&&Zp(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const ef=r.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Wn(e,Kp),f=r.useRef(null),m=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$s((()=>{o&&f.current.focus()}),[o]),r.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Gs(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=Ks(f,t);let g=-1;r.Children.forEach(a,((e,t)=>{r.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const b=r.Children.map(a,((e,t)=>{if(t===g){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),r.cloneElement(e,t)}return e}));return Yr.jsx(Bp,$n({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Gs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Qp(t,n,u,s,Xp);else if("ArrowUp"===r)e.preventDefault(),Qp(t,n,u,s,Jp);else if("Home"===r)e.preventDefault(),Qp(t,null,u,s,Xp);else if("End"===r)e.preventDefault(),Qp(t,null,u,s,Jp);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&Zp(n,o);o.previousKeyMatched&&(l||Qp(t,n,!1,s,Xp,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function tf(e){return uu("MuiPopover",e)}cu("MuiPopover",["root","paper"]);const rf=["onEntering"],nf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],of=["slotProps"];function af(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function lf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function sf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function uf(e){return"function"==typeof e?e():e}const cf=qu(dp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),df=qu(Ic,{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}),pf=r.forwardRef((function(e,t){var n,o,i;const a=Ou({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Ip,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,I=Wn(a.TransitionProps,rf),L=Wn(a,nf),M=null!=(n=null==x?void 0:x.paper)?n:v,D=r.useRef(),A=Ks(D,M.ref),P=$n({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:I}),k=(e=>{const{classes:t}=e;return dl({root:["root"],paper:["paper"]},tf,t)})(P),O=r.useCallback((()=>{if("anchorPosition"===d)return c;const e=uf(s),t=(e&&1===e.nodeType?e:Gs(D.current).body).getBoundingClientRect();return{top:t.top+af(t,u.vertical),left:t.left+lf(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=r.useCallback((e=>({vertical:af(e,S.vertical),horizontal:lf(e,S.horizontal)})),[S.horizontal,S.vertical]),_=r.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:sf(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Bs(uf(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:sf(r)}}),[s,d,O,T,g]),[q,N]=r.useState(b),F=r.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);r.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);r.useEffect((()=>{b&&F()})),r.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),r.useEffect((()=>{if(!b)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Bs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=m||(s?Gs(uf(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:cf,B=null!=(i=null==y?void 0:y.paper)?i:df,$=Pc({elementType:B,externalSlotProps:$n({},M,{style:q?M.style:$n({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:P,className:ju(k.paper,null==M?void 0:M.className)}),W=Pc({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:ju(k.root,f)}),{slotProps:H}=W,V=Wn(W,of);return Yr.jsx(G,$n({},V,!Lc(G)&&{slotProps:H,disableScrollLock:R},{children:Yr.jsx(E,$n({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},I,{children:Yr.jsx(B,$n({},$,{children:p}))}))}))}));function ff(e){return uu("MuiMenu",e)}cu("MuiMenu",["root","paper","list"]);const mf=["onEntering"],hf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],gf={vertical:"top",horizontal:"right"},bf={vertical:"top",horizontal:"left"},vf=qu(pf,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yf=qu(df,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xf=qu(ef,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Sf=r.forwardRef((function(e,t){var n,o;const i=Ou({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Wn(i.TransitionProps,mf),S=Wn(i,hf),E=ku(),C="rtl"===E.direction,w=$n({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),R=(e=>{const{classes:t}=e;return dl({root:["root"],paper:["paper"],list:["list"]},ff,t)})(w),I=a&&!u&&p,L=r.useRef(null);let M=-1;r.Children.map(l,((e,t)=>{r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===M)&&(M=t))}));const D=null!=(n=v.paper)?n:yf,A=null!=(o=y.paper)?o:f,P=Pc({elementType:v.root,externalSlotProps:y.root,ownerState:w,className:[R.root,s]}),k=Pc({elementType:D,externalSlotProps:A,ownerState:w,className:R.paper});return Yr.jsx(vf,$n({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?gf:bf,slots:{paper:D,root:v.root},slotProps:{root:P,paper:k},open:p,ref:t,transitionDuration:h,TransitionProps:$n({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,E),g&&g(e,t)}},x),ownerState:w},S,{classes:m,children:Yr.jsx(xf,$n({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:L,autoFocus:a&&(-1===M||u),autoFocusItem:I,variant:b},c,{className:ju(R.list,c.className),children:l}))}))}));function Ef(e){return uu("MuiMenuItem",e)}const Cf=cu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Rf=qu(Kc,{shouldForwardProp:e=>Tu(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})=>$n({},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"}},[`&.${Cf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qs(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:qs(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:qs(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})`:qs(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Cf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fp.inset}`]:{marginLeft:52},[`& .${Yp.root}`]:{marginTop:0,marginBottom:0},[`& .${Yp.inset}`]:{paddingLeft:36},[`& .${Wp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$n({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Wp.root} svg`]:{fontSize:"1.25rem"}})))),If=r.forwardRef((function(e,t){const n=Ou({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=Wn(n,wf),m=r.useContext(Fp),h=r.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=r.useRef(null);$s((()=>{o&&g.current&&g.current.focus()}),[o]);const b=$n({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return $n({},a,dl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Ef,a))})(n),y=Ks(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),Yr.jsx(Fp.Provider,{value:h,children:Yr.jsx(Rf,$n({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:ju(v.focusVisible,u),className:ju(v.root,p)},f,{ownerState:b,classes:v}))})}));function Lf(e){return uu("MuiNativeSelect",e)}const Mf=cu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Df=["className","disabled","error","IconComponent","inputRef","variant"],Af=({ownerState:e,theme:t})=>$n({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$n({},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"},[`&.${Mf.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}}),Pf=qu("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tu,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Mf.multiple}`]:t.multiple}]}})(Af),kf=({ownerState:e,theme:t})=>$n({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Of=qu("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${zs(r.variant)}`],r.open&&t.iconOpen]}})(kf),Tf=r.forwardRef((function(e,t){const{className:n,disabled:o,error:i,IconComponent:a,inputRef:l,variant:s="standard"}=e,u=Wn(e,Df),c=$n({},e,{disabled:o,variant:s,error:i}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return dl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${zs(r)}`,i&&"iconOpen",n&&"disabled"]},Lf,t)})(c);return Yr.jsxs(r.Fragment,{children:[Yr.jsx(Pf,$n({ownerState:c,className:ju(d.select,n),disabled:o,ref:l||t},u)),e.multiple?null:Yr.jsx(Of,{as:a,ownerState:c,className:d.icon})]})}));var _f;const qf=["children","classes","className","label","notched"],Nf=qu("fieldset",{shouldForwardProp:Tu})({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%"}),Ff=qu("legend",{shouldForwardProp:Tu})((({ownerState:e,theme:t})=>$n({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&&$n({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 jf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],zf=qu(Ad,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Md})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $n({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Nd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Nd.focused} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Nd.error} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Nd.disabled} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$n({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Gf=qu((function(e){const{className:t,label:r,notched:n}=e,o=Wn(e,qf),i=null!=r&&""!==r,a=$n({},e,{notched:n,withLabel:i});return Yr.jsx(Nf,$n({"aria-hidden":!0,className:t,ownerState:a},o,{children:Yr.jsx(Ff,{ownerState:a,children:i?Yr.jsx("span",{children:r}):_f||(_f=Yr.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}})),Bf=qu(Pd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dd})((({theme:e,ownerState:t})=>$n({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}))),$f=r.forwardRef((function(e,t){var n,o,i,a,l;const s=Ou({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:m,slots:h={},type:g="text"}=s,b=Wn(s,jf),v=(e=>{const{classes:t}=e;return $n({},t,dl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qd,t))})(s),y=Sd(),x=yd({props:s,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=$n({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),E=null!=(n=null!=(o=h.root)?o:u.Root)?n:zf,C=null!=(i=null!=(a=h.input)?a:u.Input)?i:Bf;return Yr.jsx(Od,$n({slots:{root:E,input:C},renderSuffix:e=>Yr.jsx(Gf,{ownerState:S,className:v.notchedOutline,label:null!=p&&""!==p&&x.required?l||(l=Yr.jsxs(r.Fragment,{children:[p," ","*"]})):p,notched:void 0!==m?m:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:t,type:g},b,{classes:$n({},v,{notchedOutline:null})}))}));function Wf(e){return uu("MuiSelect",e)}$f.muiName="Input";const Hf=cu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Vf;const Uf=["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"],Yf=qu("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Hf.select}`]:t.select},{[`&.${Hf.select}`]:t[r.variant]},{[`&.${Hf.error}`]:t.error},{[`&.${Hf.multiple}`]:t.multiple}]}})(Af,{[`&.${Hf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Kf=qu("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${zs(r.variant)}`],r.open&&t.iconOpen]}})(kf),Xf=qu("input",{shouldForwardProp:e=>_u(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 Jf(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Zf(e){return null==e||"string"==typeof e&&!e.trim()}const Qf=r.forwardRef((function(e,t){var n;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:m=!1,IconComponent:h,inputRef:g,labelId:b,MenuProps:v={},multiple:y,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:I,readOnly:L,renderValue:M,SelectDisplayProps:D={},tabIndex:A,value:P,variant:k="standard"}=e,O=Wn(e,Uf),[T,_]=Us({controlled:P,default:d,name:"Select"}),[q,N]=Us({controlled:I,default:c,name:"Select"}),F=r.useRef(null),j=r.useRef(null),[z,G]=r.useState(null),{current:B}=r.useRef(null!=I),[$,W]=r.useState(),H=Ks(t,g),V=r.useCallback((e=>{j.current=e,e&&G(e)}),[]),U=null==z?void 0:z.parentNode;r.useImperativeHandle(H,(()=>({focus:()=>{j.current.focus()},node:F.current,value:T})),[T]),r.useEffect((()=>{c&&q&&z&&!B&&(W(l?null:U.clientWidth),j.current.focus())}),[z,l]),r.useEffect((()=>{a&&j.current.focus()}),[a]),r.useEffect((()=>{if(!b)return;const e=Gs(j.current).getElementById(b);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[b]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),B||(W(l?null:U.clientWidth),N(e))},K=r.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(y){r=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==r&&(_(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),E(o,e)}y||Y(!1,t)}},J=null!==z&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(wd({value:T})||f)&&(M?Z=M(T):te=!0);const re=K.map((e=>{if(!r.isValidElement(e))return null;let t;if(y){if(!Array.isArray(T))throw new Error(Gn(2));t=T.some((t=>Jf(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Jf(T,e.props.value),t&&te&&(Q=e.props.children);return r.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=y?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=$;!l&&B&&z&&(oe=U.clientWidth),ne=void 0!==A?A:p?null:0;const ie=D.id||(x?`mui-component-select-${x}`:void 0),ae=$n({},e,{variant:k,value:T,open:J,error:m}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return dl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${zs(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Wf,t)})(ae),se=$n({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),ue=Vs();return Yr.jsxs(r.Fragment,{children:[Yr.jsx(Yf,$n({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||L?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:x}}),S(e))},onFocus:w},D,{ownerState:ae,className:ju(D.className,le.select,u),id:ie,children:Zf(Z)?Vf||(Vf=Yr.jsx("span",{className:"notranslate",children:""})):Z})),Yr.jsx(Xf,$n({"aria-invalid":m,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&&(_(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:a,ownerState:ae},O)),Yr.jsx(Kf,{as:h,className:le.icon,ownerState:ae}),Yr.jsx(Sf,$n({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:$n({"aria-labelledby":b,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:$n({},v.slotProps,{paper:$n({},se,{style:$n({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})})),em=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],tm=["root"],rm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Tu(e)&&"variant"!==e,slot:"Root"},nm=qu(Ap,rm)(""),om=qu($f,rm)(""),im=qu(Sp,rm)(""),am=r.forwardRef((function(e,t){const n=Ou({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=zd,id:d,input:p,inputProps:f,label:m,labelId:h,MenuProps:g,multiple:b=!1,native:v=!1,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=Wn(n,em),I=v?Tf:Qf,L=yd({props:n,muiFormControl:Sd(),states:["variant","error"]}),M=L.variant||w,D=$n({},n,{variant:M,classes:a}),A=(e=>{const{classes:t}=e;return t})(D),P=Wn(A,tm),k=p||{standard:Yr.jsx(nm,{ownerState:D}),outlined:Yr.jsx(om,{label:m,ownerState:D}),filled:Yr.jsx(im,{ownerState:D})}[M],O=Ks(t,k.ref);return Yr.jsx(r.Fragment,{children:r.cloneElement(k,$n({inputComponent:I,inputProps:$n({children:i,error:L.error,IconComponent:c,variant:M,type:void 0,multiple:b},v?{id:d}:{autoWidth:o,defaultOpen:s,displayEmpty:u,labelId:h,MenuProps:g,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:$n({id:d},C)},f,{classes:f?js(P,f.classes):P},p?p.props.inputProps:{})},b&&v&&"outlined"===M?{notched:!0}:{},{ref:O,className:ju(k.props.className,l,A.root)},!p&&{variant:M},R))})}));function lm(e={}){return Yr.jsx(en,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("rect",{stroke:Lr.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}am.muiName="Select";const sm={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:kr,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},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:[]}};var um=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Lr.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Lr.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yr.jsx(Jr,{"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 ${Lr.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Lr.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`,borderRadius:kr,backgroundColor:Lr.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 ${Lr.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Lr.WHITE,color:Lr.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:kr},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Lr.GREYSCALE_0_15,backgroundColor:Lr.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Lr.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Lr.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Lr.GREEN_PALE},"&:active":{backgroundColor:Lr.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Lr.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Lr.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Lr.BLUE_PALE},"&:active":{backgroundColor:Lr.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Lr.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Lr.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:kr,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Lr.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Lr.GREYSCALE_0_15,backgroundColor:Lr.GREYSCALE_100_60,"&:active":{backgroundColor:Lr.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Lr.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Lr.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Lr.PURPLE,"&.Mui-focusVisible":{borderColor:Lr.PURPLE,boxShadow:`0 0 0 3px ${qs(Lr.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Lr.GREEN,"&.Mui-focusVisible":{borderColor:Lr.GREEN,boxShadow:`0 0 0 3px ${qs(Lr.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Lr.BLUE,"&.Mui-focusVisible":{borderColor:Lr.BLUE,boxShadow:`0 0 0 3px ${qs(Lr.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Lr.ORANGE,"&.Mui-focusVisible":{borderColor:Lr.ORANGE,boxShadow:`0 0 0 3px ${qs(Lr.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Lr.RED,"&.Mui-focusVisible":{borderColor:Lr.RED,boxShadow:`0 0 0 3px ${qs(Lr.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Lr.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Lr.PURPLE_PALE},"&:active":{backgroundColor:Lr.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Lr.PURPLE_PALE,boxShadow:`0 0 0 3px ${qs(Lr.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Lr.GREEN_PALE},"&:active":{backgroundColor:Lr.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Lr.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Lr.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Lr.BLUE_PALE},"&:active":{backgroundColor:Lr.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Lr.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Lr.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Lr.ORANGE_PALE},"&:active":{backgroundColor:Lr.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Lr.ORANGE_PALE,boxShadow:`0 0 0 3px ${qs(Lr.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Lr.RED_PALE},"&:active":{backgroundColor:Lr.RED_DARK},"&.Mui-focusVisible":{borderColor:Lr.RED_PALE,boxShadow:`0 0 0 3px ${qs(Lr.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:Lr.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Lr.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:kr,boxShadow:`inset 0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yr.jsx(Qr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Mr,borderRadius:kr,color:Lr.TEXT_PRIMARY,backgroundColor:Lr.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Lr.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Lr.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Lr.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Lr.GREYSCALE_0_05,color:Lr.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Lr.GREEN,borderColor:Lr.GREEN},"&.MuiChip-outlinedInfo":{color:Lr.BLUE,borderColor:Lr.BLUE},"&.MuiChip-outlinedWarning":{color:Lr.ORANGE,borderColor:Lr.ORANGE},"&.MuiChip-outlinedError":{color:Lr.RED,borderColor:Lr.RED}},outlined:{border:`solid 1px ${Lr.GREYSCALE_0_15}`,backgroundColor:Lr.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:kr,boxShadow:"none",backgroundColor:Lr.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Lr.GREEN,borderColor:Lr.GREEN},outlinedSecondary:{color:Lr.BLUE,borderColor:Lr.BLUE},label:{fontFamily:Nr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yr.jsx(Qr,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yr.jsx(Jr,{"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:kr},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:kr,fontSize:Dr,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Lr.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Lr.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Lr.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Lr.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Lr.GREYSCALE_0_05}}},popupIndicator:{borderRadius:kr,border:`solid 1px ${Lr.GREYSCALE_0_15}`,color:Lr.GREYSCALE_0_60,marginRight:0,width:Pr,height:Pr},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Lr.GREYSCALE_0_15}`},clearIndicator:{borderRadius:kr,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Lr.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Dr}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Mr,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Lr.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Lr.GREYSCALE_25,fontSize:Mr,fontFamily:Nr.FONT_FAMILY,fontWeight:_r,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Lr.TEXT_PRIMARY},"&.Mui-error":{color:Lr.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Lr.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Tr,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Lr.TEXT_SECONDARY,content:"'(required)'",fontWeight:Tr,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Dr,lineHeight:"16px",backgroundColor:Lr.WHITE,borderRadius:kr,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lr.GREYSCALE_0_05}`,borderColor:Lr.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lr.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Lr.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Lr.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lr.RED}`,boxShadow:`0px 0px 0px 1px ${Lr.RED}, inset 0 2px 0 0 ${Lr.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lr.GREYSCALE_0_10}`,borderColor:Lr.GREYSCALE_0_10,backgroundColor:Lr.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Lr.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Lr.GREYSCALE_0_15,borderRadius:kr,boxShadow:`inset 0 2px 0 0 ${Lr.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yr.jsx(Jr,{...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:Lr.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Lr.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Lr.GREYSCALE_0_03},"&:active":{backgroundColor:Lr.GREYSCALE_0_10},"&:focus":{backgroundColor:Lr.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Lr.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Lr.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Lr.GREYSCALE_0_30,"&:hover":{backgroundColor:Lr.GREYSCALE_0_0,borderColor:Lr.GREYSCALE_0_15},"& ~svg":{color:Lr.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Lr.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:kr}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Lr.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Lr.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Dr,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Mr,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Mr,fontWeight:_r,color:Lr.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:_r}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Lr.GREYSCALE_0_15}, 0px 0px 0px 1px ${Lr.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yr.jsx(nn,{}),checkedIcon:Yr.jsx(on,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Lr.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Lr.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Lr.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Lr.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Lr.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Lr.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Lr.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yr.jsx(lm,{}),checkedIcon:Yr.jsx(tn,{}),indeterminateIcon:Yr.jsx(rn,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:kr,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Lr.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Lr.GREYSCALE_0_55,color:Lr.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:Lr.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Lr.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Lr.GREYSCALE_0_55,"&:hover":{color:Lr.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:Lr.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Lr.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Dr,color:Lr.TEXT_PRIMARY,lineHeight:"16px",fontWeight:_r},secondary:{fontSize:Mr,color:Lr.GREYSCALE_45,fontWeight:Tr,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Dr,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Dr,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Lr.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Mr,borderBottom:`solid 1px ${Lr.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Dr,color:Lr.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Lr.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Lr.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Lr.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:Lr.RED}}},"&.Mui-focusVisible":{backgroundColor:Lr.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:Lr.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:Lr.GREEN,height:"24px","&.Mui-disabled":{color:Lr.GREYSCALE_0_15}},rail:{backgroundColor:Lr.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Lr.GREYSCALE_0_05}`,borderRadius:kr,boxShadow:`inset 0px 0px 0px 1px ${Lr.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Lr.GREYSCALE_0_05}`,borderRadius:kr},thumb:{height:"16px",width:"16px",borderRadius:kr,backgroundColor:Lr.WHITE,boxShadow:`0px 1px 2px 0px ${Lr.GREYSCALE_0_15}, 0px 0px 0px 1px ${Lr.GREYSCALE_0_05}`,"&:hover":{borderRadius:kr,boxShadow:`0 2px 4px 0 ${Lr.GREYSCALE_0_30}, 0 0 0 1px ${Lr.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Lr.GREYSCALE_0_15}, 0 0 0 1px ${Lr.GREYSCALE_0_06}, 0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Lr.GREYSCALE_0_15}, 0 0 0 1px ${Lr.GREYSCALE_0_06}, 0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Lr.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Lr.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Lr.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Lr.GREYSCALE_0_15},markLabel:{color:Lr.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Lr.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Lr.WHITE,color:Lr.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:Lr.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:Lr.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Lr.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Lr.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Lr.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Lr.GREYSCALE_0_15,borderRadius:kr},thumb:{height:"16px",width:"16px",borderRadius:kr,backgroundColor:Lr.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Dr,fontWeight:_r,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Lr.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`,backgroundColor:Lr.GREYSCALE_0_03,borderRadius:kr},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Lr.GREYSCALE_25,"&.Mui-selected":{color:Lr.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Dr,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:kr,"&:hover":{backgroundColor:Lr.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Lr.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Lr.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:kr,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Lr.GREYSCALE_0_05},"&:hover":{backgroundColor:Lr.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Lr.GREYSCALE_85}`,borderRight:`1px solid ${Lr.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:_r,backgroundColor:Lr.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:Lr.GREYSCALE_98,borderBottom:`1px solid ${Lr.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Lr.GREYSCALE_85}`,borderTop:`1px solid ${Lr.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Lr.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Lr.GREYSCALE_0_05,"&:hover":{backgroundColor:Lr.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Lr.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yr.jsx(an,{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 ${Lr.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Dr,borderRadius:kr,padding:"7px 16px",border:`1px solid ${Lr.GREYSCALE_0_15}`,backgroundColor:Lr.GREYSCALE_100_60,color:Lr.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Lr.GREYSCALE_0_10,border:`1px solid ${Lr.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Lr.GREYSCALE_0_03,border:`1px solid ${Lr.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Lr.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Lr.MISC_FOCUS_BORDER}`,border:`1px solid ${Lr.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Lr.GREYSCALE_25,backgroundColor:Lr.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Lr.GREYSCALE_0_10,border:`1px solid ${Lr.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Mr,height:24,width:24,padding:7},sizeLarge:{fontSize:Ar,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Dr,borderRadius:kr}}},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:Lr.GREYSCALE_20},tooltip:{backgroundColor:Lr.GREYSCALE_20,fontSize:Mr,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...sm}:{}}))(t);const cm=e=>({mode:"light",primary:{ultraLight:Lr.GREEN_ULTRA_LIGHT,light:Lr.GREEN_PALE,main:Lr.GREEN,dark:Lr.GREEN_DARK,extraDark:Lr.GREEN_EXTRA_DARK,contrastText:Lr.WHITE},secondary:{ultraLight:Lr.BLUE_ULTRA_LIGHT,light:Lr.BLUE_PALE,main:Lr.BLUE,dark:Lr.BLUE_DARK,extraDark:Lr.BLUE_EXTRA_DARK,contrastText:Lr.WHITE},error:{ultraLight:Lr.RED_ULTRA_LIGHT,light:Lr.RED_PALE,main:Lr.RED,dark:Lr.RED_DARK,extraDark:Lr.RED_EXTRA_DARK,contrastText:Lr.WHITE},warning:{ultraLight:Lr.ORANGE_ULTRA_LIGHT,light:Lr.ORANGE_PALE,main:Lr.ORANGE,dark:Lr.ORANGE_DARK,extraDark:Lr.ORANGE_EXTRA_DARK,contrastText:Lr.WHITE},success:{ultraLight:Lr.GREEN_ULTRA_LIGHT,light:Lr.GREEN_PALE,main:Lr.GREEN,dark:Lr.GREEN_DARK,extraDark:Lr.GREEN_EXTRA_DARK,contrastText:Lr.WHITE},info:{ultraLight:Lr.BLUE_ULTRA_LIGHT,light:Lr.BLUE_PALE,main:Lr.BLUE,dark:Lr.BLUE_DARK,extraDark:Lr.BLUE_EXTRA_DARK,contrastText:Lr.WHITE},text:{primary:Lr.TEXT_PRIMARY,secondary:Lr.TEXT_SECONDARY,disabled:Lr.GREYSCALE_0_30},action:{hover:Lr.GREYSCALE_0_03,hoverOpacity:.03,selected:Lr.GREYSCALE_0_05,selectedOpacity:.05,focus:Lr.MISC_FOCUS_BORDER},amethyst:{ultraLight:Lr.WHITE,main:Lr.PURPLE,light:Lr.PURPLE_PALE,dark:Lr.PURPLE_DARK,extraDark:Lr.GREYSCALE_0_0,contrastText:Lr.WHITE},background:{paper:Lr.WHITE,default:Lr.GREYSCALE_95},divider:Lr.GREYSCALE_0_15}),dm={...Ir},pm=((e="light",t=!1)=>((e,t=!1)=>({components:um(0,t),palette:cm(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Dr,fontWeightLight:Or,fontWeightRegular:Tr,fontWeightMedium:_r,fontWeightBold:qr,htmlFontSize:Dr,fontFamily:Nr.FONT_FAMILY,button:{fontWeight:_r,fontSize:Dr,textTransform:"none"},body1:{fontSize:Ar,lineHeight:"24px"},body2:{fontSize:Dr,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Pr,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ar,fontWeight:_r,lineHeight:"16px"},h6:{fontSize:Dr,fontWeight:_r,lineHeight:"16px"},caption:{color:Lr.TEXT_SECONDARY},subtitle1:{fontSize:Dr,color:Lr.TEXT_SECONDARY},subtitle2:{fontSize:Mr,color:Lr.TEXT_SECONDARY}},shape:{borderRadius:kr}}))(0,t))().palette,fm={TEXT:pm.text.primary,DISABLED:pm.text.disabled,HOVER:pm.action.hover,WHITE:dm.GREYSCALE_100,BORDER_LIGHT:dm.GREYSCALE_90,BORDER_MEDIUM:dm.GREYSCALE_85,BORDER_HEAVY:dm.GREYSCALE_50,DARK_MODE_TEXT:dm.GREYSCALE_95,DARK_MODE_BORDER:dm.GREYSCALE_95,DARK_MODE_DISABLED:dm.GREYSCALE_70,DARK_MODE_BACKGROUND:dm.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:dm.GREYSCALE_95,SELECTED:pm.primary.main};function mm(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function hm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&mm(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function gm(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bm(Object(r),!0).forEach((function(t){gm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ym={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},xm="qcm-color";function Sm(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:xm,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===xm){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=vm({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(ym[x.toLowerCase()]){a=x.toLowerCase();var w=ym[a];m=w.r,h=w.g,g=w.b,b="number"==typeof ym[a].a?ym[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function Em(e){var t,r,n;if(mm(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?hm(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}function Cm(e){var t,r,n=0,o="string"==typeof e?Sm(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function wm(e){if(mm(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?hm(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function Rm(e,t){return mm(e)?"rgba(".concat([e.r,e.g,e.b,e.a].join(", "),")"):Rm(Sm(e))}function Im(e){return mm(e)?1===e.a?wm(e):Rm(e):Im(Sm(e))}var Lm=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function Mm(e){return.2126*Lm(e.r)+.7152*Lm(e.g)+.0722*Lm(e.b)}function Dm(){var e=Sm.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?Sm(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:Sm(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=Sm.apply(void 0,arguments);return e.invalid||Mm(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=wm(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=Rm(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=Im(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=Em(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?Sm(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=Cm(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=Cm(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getBrightenedColor:function(){return Dm(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return Dm(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}function Am(e,t){if(e&&t){var r=Mm(e),n=Mm(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var Pm,km,Om=["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"],Tm=["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 _m(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Tm:Om}var qm=function(){if(km)return Pm;km=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return Pm=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},Pm}();function Nm(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Fm(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function jm(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(qm);var zm=1/.7,Gm="\\s*([+-]?\\d+)\\s*",Bm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$m="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wm=/^#([0-9a-f]{3,8})$/,Hm=new RegExp(`^rgb\\(${Gm},${Gm},${Gm}\\)$`),Vm=new RegExp(`^rgb\\(${$m},${$m},${$m}\\)$`),Um=new RegExp(`^rgba\\(${Gm},${Gm},${Gm},${Bm}\\)$`),Ym=new RegExp(`^rgba\\(${$m},${$m},${$m},${Bm}\\)$`),Km=new RegExp(`^hsl\\(${Bm},${$m},${$m}\\)$`),Xm=new RegExp(`^hsla\\(${Bm},${$m},${$m},${Bm}\\)$`),Jm={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 Zm(){return this.rgb().formatHex()}function Qm(){return this.rgb().formatRgb()}function eh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Wm.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?th(t):3===r?new ih(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?rh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?rh(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=Hm.exec(e))?new ih(t[1],t[2],t[3],1):(t=Vm.exec(e))?new ih(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Um.exec(e))?rh(t[1],t[2],t[3],t[4]):(t=Ym.exec(e))?rh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Km.exec(e))?dh(t[1],t[2]/100,t[3]/100,1):(t=Xm.exec(e))?dh(t[1],t[2]/100,t[3]/100,t[4]):Jm.hasOwnProperty(e)?th(Jm[e]):"transparent"===e?new ih(NaN,NaN,NaN,0):null}function th(e){return new ih(e>>16&255,e>>8&255,255&e,1)}function rh(e,t,r,n){return n<=0&&(e=t=r=NaN),new ih(e,t,r,n)}function nh(e){return e instanceof jm||(e=eh(e)),e?new ih((e=e.rgb()).r,e.g,e.b,e.opacity):new ih}function oh(e,t,r,n){return 1===arguments.length?nh(e):new ih(e,t,r,null==n?1:n)}function ih(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function ah(){return`#${ch(this.r)}${ch(this.g)}${ch(this.b)}`}function lh(){const e=sh(this.opacity);return`${1===e?"rgb(":"rgba("}${uh(this.r)}, ${uh(this.g)}, ${uh(this.b)}${1===e?")":`, ${e})`}`}function sh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function uh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ch(e){return((e=uh(e))<16?"0":"")+e.toString(16)}function dh(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new fh(e,t,r,n)}function ph(e){if(e instanceof fh)return new fh(e.h,e.s,e.l,e.opacity);if(e instanceof jm||(e=eh(e)),!e)return new fh;if(e instanceof fh)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 fh(a,l,s,e.opacity)}function fh(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function mh(e){return(e=(e||0)%360)<0?e+360:e}function hh(e){return Math.max(0,Math.min(1,e||0))}function gh(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Nm(jm,eh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Zm,formatHex:Zm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ph(this).formatHsl()},formatRgb:Qm,toString:Qm}),Nm(ih,oh,Fm(jm,{brighter(e){return e=null==e?zm:Math.pow(zm,e),new ih(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ih(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ih(uh(this.r),uh(this.g),uh(this.b),sh(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:ah,formatHex:ah,formatHex8:function(){return`#${ch(this.r)}${ch(this.g)}${ch(this.b)}${ch(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:lh,toString:lh})),Nm(fh,(function(e,t,r,n){return 1===arguments.length?ph(e):new fh(e,t,r,null==n?1:n)}),Fm(jm,{brighter(e){return e=null==e?zm:Math.pow(zm,e),new fh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new fh(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 ih(gh(e>=240?e-240:e+120,o,n),gh(e,o,n),gh(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new fh(mh(this.h),hh(this.s),hh(this.l),sh(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=sh(this.opacity);return`${1===e?"hsl(":"hsla("}${mh(this.h)}, ${100*hh(this.s)}%, ${100*hh(this.l)}%${1===e?")":`, ${e})`}`}}));const bh=Math.PI/180,vh=180/Math.PI,yh=4/29,xh=6/29,Sh=3*xh*xh;function Eh(e){if(e instanceof Ch)return new Ch(e.l,e.a,e.b,e.opacity);if(e instanceof Mh)return Dh(e);e instanceof ih||(e=nh(e));var t,r,n=Lh(e.r),o=Lh(e.g),i=Lh(e.b),a=wh((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=wh((.4360747*n+.3850649*o+.1430804*i)/.96422),r=wh((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ch(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ch(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function wh(e){return e>.008856451679035631?Math.pow(e,1/3):e/Sh+yh}function Rh(e){return e>xh?e*e*e:Sh*(e-yh)}function Ih(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Lh(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Mh(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Dh(e){if(isNaN(e.h))return new Ch(e.l,0,0,e.opacity);var t=e.h*bh;return new Ch(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Nm(Ch,(function(e,t,r,n){return 1===arguments.length?Eh(e):new Ch(e,t,r,null==n?1:n)}),Fm(jm,{brighter(e){return new Ch(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ch(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 ih(Ih(3.1338561*(t=.96422*Rh(t))-1.6168667*(e=1*Rh(e))-.4906146*(r=.82521*Rh(r))),Ih(-.9787684*t+1.9161415*e+.033454*r),Ih(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Nm(Mh,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Mh)return new Mh(e.h,e.c,e.l,e.opacity);if(e instanceof Ch||(e=Eh(e)),0===e.a&&0===e.b)return new Mh(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*vh;return new Mh(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Mh(e,t,r,null==n?1:n)}),Fm(jm,{brighter(e){return new Mh(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Mh(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Dh(this).rgb()}}));var Ah=e=>()=>e;function Ph(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ah(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Ph: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):Ah(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=oh(e)).r,(t=oh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Ph(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 kh,Oh="center",Th="bottom";function _h(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 qh(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 Nh(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=jh)):void 0===t&&(t=Fh);for(var r,n,o,i,a,l=new Bh(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 Bh(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Gh)}function Fh(e){return e.children}function jh(e){return Array.isArray(e)?e[1]:null}function zh(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Gh(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Bh(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Oh,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:Oh,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:Oh,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:Oh},{key:"DataRangeIncludingZero",alignment:Th},{key:"LimitedData",alignment:Th},{key:"NegativeOrZeroValues",alignment:Th}].reduce((function(e,t){return e[t.key]=t,e}),{}),Bh.prototype=Nh.prototype={constructor:Bh,count:function(){return this.eachAfter(qh)},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 Nh(this).eachBefore(zh)},[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)}},kh=function(e){
|
|
99
|
+
`),Oc.rippleVisible,jc,550,(({theme:e})=>e.transitions.easing.easeInOut),Oc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Oc.child,Oc.childLeaving,zc,550,(({theme:e})=>e.transitions.easing.easeInOut),Oc.childPulsate,Gc,(({theme:e})=>e.transitions.easing.easeInOut)),Wc=r.forwardRef((function(e,t){const n=ku({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Wn(n,kc),[s,u]=r.useState([]),c=r.useRef(0),d=r.useRef(null);r.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=r.useRef(!1),f=r.useRef(0),m=r.useRef(null),h=r.useRef(null);r.useEffect((()=>()=>{f.current&&clearTimeout(f.current)}),[]);const g=r.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,Yr.jsx($c,{classes:{ripple:ju(i.ripple,Oc.ripple),rippleVisible:ju(i.rippleVisible,Oc.rippleVisible),ripplePulsate:ju(i.ripplePulsate,Oc.ripplePulsate),child:ju(i.child,Oc.child),childLeaving:ju(i.childLeaving,Oc.childLeaving),childPulsate:ju(i.childPulsate,Oc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=r.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.current=setTimeout((()=>{m.current&&(m.current(),m.current=null)}),80)):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g]),v=r.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=r.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void(f.current=setTimeout((()=>{y(e,t)})));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return r.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Yr.jsx(Bc,$n({className:ju(Oc.root,i.root,a),ref:h},l,{children:Yr.jsx(xc,{component:null,exit:!0,children:s})}))}));function Hc(e){return uu("MuiButtonBase",e)}const Vc=cu("MuiButtonBase",["root","disabled","focusVisible"]),Uc=["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"],Yc=qu("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"},[`&.${Vc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Kc=r.forwardRef((function(e,t){const n=ku({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:I,onTouchStart:L,tabIndex:M=0,TouchRippleProps:D,touchRippleRef:A,type:P}=n,O=Wn(n,Uc),k=r.useRef(null),T=r.useRef(null),_=Ks(T,A),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=ou(),[z,G]=r.useState(!1);u&&z&&G(!1),r.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),k.current.focus()}})),[]);const[B,$]=r.useState(!1);r.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!u;function H(e,t,r=d){return Ys((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}r.useEffect((()=>{z&&p&&!c&&B&&T.current.pulsate()}),[c,p,z,B]);const V=H("start",E),U=H("stop",g),Y=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",L),Z=H("stop",R),Q=H("stop",I),ee=H("stop",(e=>{F(e),!1===q.current&&G(!1),m&&m(e)}),!1),te=Ys((e=>{k.current||(k.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=k.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=r.useRef(!1),oe=Ys((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=Ys((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(O.href||O.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(O.href||O.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=Ks(t,j,k),ue=$n({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=dl({root:["root",t&&"disabled",r&&"focusVisible"]},Hc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Yr.jsxs(Yc,$n({as:ae,className:ju(ce.root,l),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:M,type:P},le,O,{children:[a,W?Yr.jsx(Wc,$n({ref:_,center:i},D)):null]}))}));function Xc(e){return uu("MuiTypography",e)}cu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Jc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Zc=qu("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${zs(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>$n({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}))),Qc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ed={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},td=r.forwardRef((function(e,t){const r=ku({props:e,name:"MuiTypography"}),n=(e=>ed[e]||e)(r.color),o=xs($n({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Qc}=o,f=Wn(o,Jc),m=$n({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||Qc[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return dl({root:["root",i,"inherit"!==e.align&&`align${zs(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Xc,a)})(m);return Yr.jsx(Zc,$n({as:h,ref:t,ownerState:m,className:ju(g.root,a)},f))})),rd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function nd(e){const t=[],r=[];return Array.from(e.querySelectorAll(rd)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function od(){return!0}function id(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=nd,isEnabled:l=od,open:s}=e,u=r.useRef(!1),c=r.useRef(null),d=r.useRef(null),p=r.useRef(null),f=r.useRef(null),m=r.useRef(!1),h=r.useRef(null),g=ul(t.ref,h),b=r.useRef(null);r.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),r.useEffect((()=>{if(!s||!h.current)return;const e=ol(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),r.useEffect((()=>{if(!s||!h.current)return;const e=ol(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return Yr.jsxs(r.Fragment,{children:[Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const ad=r.forwardRef((function(e,t){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=r.useState(null),s=ul(r.isValidElement(n)?n.ref:null,t);if(ll((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),ll((()=>{if(a&&!i)return al(t,a),()=>{al(t,null)}}),[t,a,i]),i){if(r.isValidElement(n)){const e={ref:s};return r.cloneElement(n,e)}return Yr.jsx(r.Fragment,{children:n})}return Yr.jsx(r.Fragment,{children:a?j.createPortal(n,a):a})}));function ld(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sd(e){return parseInt(il(e).getComputedStyle(e).paddingRight,10)||0}function ud(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&ld(e,o)}))}function cd(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function dd(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=ol(e);return t.body===e?il(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(ol(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${sd(n)+e}px`;const t=ol(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${sd(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=ol(n).body;else{const t=n.parentElement,r=il(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const pd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&ld(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ud(t,e.mount,e.modalRef,n,!0);const o=cd(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=cd(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=dd(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=cd(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&ld(e.modalRef,t),ud(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&ld(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function fd(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=pd,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=r.useRef({}),m=r.useRef(null),h=r.useRef(null),g=ul(h,p),[b,v]=r.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},C=sl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ol(m.current).body;i.add(S(),e),h.current&&E()})),w=r.useCallback((()=>i.isTopModal(S())),[i]),R=sl((e=>{m.current=e,e&&(d&&w()?E():h.current&&ld(h.current,x))})),I=r.useCallback((()=>{i.remove(S(),x)}),[x,i]);r.useEffect((()=>()=>{I()}),[I]),r.useEffect((()=>{d?C():y&&a||I()}),[d,I,y,a,C]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Mc(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=hr({},r,t);return hr({role:"presentation"},n,{onKeyDown:L(n),ref:g})},getBackdropProps:(e={})=>hr({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:nl((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:nl((()=>{v(!0),s&&s(),a&&I()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}const md=["onChange","maxRows","minRows","style","value"];function hd(e){return parseInt(e,10)||0}const gd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function bd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const vd=r.forwardRef((function(e,t){const{onChange:n,maxRows:o,minRows:i=1,style:a,value:l}=e,s=Er(e,md),{current:u}=r.useRef(null!=l),c=r.useRef(null),d=ul(t,c),p=r.useRef(null),f=r.useRef(0),[m,h]=r.useState({outerHeightStyle:0}),g=r.useCallback((()=>{const t=c.current,r=il(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const n=p.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=r.boxSizing,l=hd(r.paddingBottom)+hd(r.paddingTop),s=hd(r.borderBottomWidth)+hd(r.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=u;i&&(f=Math.max(Number(i)*d,f)),o&&(f=Math.min(Number(o)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-u)<=1}}),[o,i,e.placeholder]),b=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return f.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(f.current+=1,{overflow:n,outerHeightStyle:r}):e},v=r.useCallback((()=>{const e=g();bd(e)||h((t=>b(t,e)))}),[g]);ll((()=>{const e=()=>{f.current=0,(()=>{const e=g();bd(e)||j.flushSync((()=>{h((t=>b(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=c.current,n=il(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[g]),ll((()=>{v()})),r.useEffect((()=>{f.current=0}),[l]);return Yr.jsxs(r.Fragment,{children:[Yr.jsx("textarea",hr({value:l,onChange:e=>{f.current=0,u||v(),n&&n(e)},ref:d,rows:i,style:hr({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},s)),Yr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:hr({},gd,a,{paddingTop:0,paddingBottom:0})})]})}));function yd({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)),{})}const xd=r.createContext(void 0);function Sd(){return r.useContext(xd)}function Ed(e){return Yr.jsx(vs,$n({},e,{defaultTheme:Pu,themeId:Bn}))}function Cd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function wd(e,t=!1){return e&&(Cd(e.value)&&""!==e.value||t&&Cd(e.defaultValue)&&""!==e.defaultValue)}function Rd(e){return uu("MuiInputBase",e)}const Id=cu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ld=["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"],Md=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${zs(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Dd=(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]},Ad=qu("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Md})((({theme:e,ownerState:t})=>$n({},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",[`&.${Id.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$n({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Pd=qu("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=$n({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 $n({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] + .${Id.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},[`&.${Id.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"})})),Od=Yr.jsx(Ed,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),kd=r.forwardRef((function(e,t){var n;const o=ku({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,fullWidth:h=!1,id:g,inputComponent:b="input",inputProps:v={},inputRef:y,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:I,onFocus:L,onKeyDown:M,onKeyUp:D,placeholder:A,readOnly:P,renderSuffix:O,rows:k,slotProps:T={},slots:_={},startAdornment:q,type:N="text",value:F}=o,j=Wn(o,Ld),z=null!=v.value?v.value:F,{current:G}=r.useRef(null!=z),B=r.useRef(),$=r.useCallback((e=>{}),[]),W=Ks(B,y,v.ref,$),[H,V]=r.useState(!1),U=Sd(),Y=yd({props:o,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:H,r.useEffect((()=>{!U&&p&&H&&(V(!1),w&&w())}),[U,p,H,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=r.useCallback((e=>{wd(e)?K&&K():X&&X()}),[K,X]);$s((()=>{G&&J({value:z})}),[z,J,G]);r.useEffect((()=>{J(B.current)}),[]);let Z=b,Q=v;E&&"input"===Z&&(Q=$n(k?{type:void 0,minRows:k,maxRows:k}:{type:void 0,maxRows:x,minRows:S},Q),Z=vd);r.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=$n({},o,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:m,error:Y.error,focused:Y.focused,formControl:U,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return dl({root:["root",`color${zs(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${zs(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Rd,t)})(ee),re=_.root||u.Root||Ad,ne=T.root||c.root||{},oe=_.input||u.Input||Pd;return Q=$n({},Q,null!=(n=T.input)?n:c.input),Yr.jsxs(r.Fragment,{children:[!f&&Od,Yr.jsxs(re,$n({},ne,!Lc(re)&&{ownerState:$n({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),I&&I(e)}},j,{className:ju(te.root,ne.className,s,P&&"MuiInputBase-readOnly"),children:[q,Yr.jsx(xd.Provider,{value:null,children:Yr.jsx(oe,$n({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:d,disabled:Y.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:C,placeholder:A,readOnly:P,required:Y.required,rows:k,value:z,onKeyDown:M,onKeyUp:D,type:N},Q,!Lc(oe)&&{as:Z,ownerState:$n({},ee,Q.ownerState)},{ref:W,className:ju(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),U&&U.onBlur?U.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||B.current;if(null==t)throw new Error(Gn(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),U&&U.onFocus?U.onFocus(e):V(!0))}}))}),m,O?O($n({},Y,{startAdornment:q})):null]}))]})}));function Td(e){return uu("MuiInput",e)}const _d=$n({},Id,cu("MuiInput",["root","underline","input"]));function qd(e){return uu("MuiOutlinedInput",e)}const Nd=$n({},Id,cu("MuiOutlinedInput",["root","notchedOutline","input"]));function Fd(e){return uu("MuiFilledInput",e)}const jd=$n({},Id,cu("MuiFilledInput",["root","underline","input"]));var zd=function(e,t){function n(r,n){return Yr.jsx($u,$n({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return n.muiName=$u.muiName,r.memo(r.forwardRef(n))}(Yr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Gd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Bd={entering:{opacity:1},entered:{opacity:1}},$d=r.forwardRef((function(e,t){const n=Ou(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=mc}=e,y=Wn(e,Gd),x=r.useRef(null),S=Ks(x,l.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{Sc(e);const r=Ec({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),I=E(h),L=E((e=>{const t=Ec({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),M=E(m);return Yr.jsx(v,$n({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:L,onExited:M,onExiting:I,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,t)=>r.cloneElement(l,$n({style:$n({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Bd[e],g,l.props.style),ref:S},t))}))}));function Wd(e){return uu("MuiBackdrop",e)}cu("MuiBackdrop",["root","invisible"]);const Hd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Vd=qu("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>$n({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"}))),Ud=r.forwardRef((function(e,t){var r,n,o;const i=ku({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=$d,transitionDuration:g}=i,b=Wn(i,Hd),v=$n({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return dl({root:["root",r&&"invisible"]},Wd,t)})(v),x=null!=(r=f.root)?r:c.root;return Yr.jsx(h,$n({in:p,timeout:g},b,{children:Yr.jsx(Vd,$n({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:ju(y.root,l,null==x?void 0:x.className),ownerState:$n({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Yd=cu("MuiBox",["root"]),Kd=Au(),Xd=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Pa("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ds);return r.forwardRef((function(e,r){const l=bs(n),s=xs(e),{className:u,component:c="div"}=s,d=Er(s,Ss);return Yr.jsx(a,hr({as:c,ref:r,className:fl(u,i?i(o):o),theme:t&&l[t]||l},d))}))}({themeId:Bn,defaultTheme:Kd,defaultClassName:Yd.root,generateClassName:lu.generate});function Jd(e){return uu("MuiButton",e)}const Zd=cu("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Qd=r.createContext({}),ep=r.createContext(void 0),tp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rp=e=>$n({},"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}}),np=qu(Kc,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${zs(r.color)}`],t[`size${zs(r.size)}`],t[`${r.variant}Size${zs(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return $n({},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":$n({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:qs(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})`:qs(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})`:qs(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":$n({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Zd.focusVisible}`]:$n({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Zd.disabled}`]:$n({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 ${qs(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"},[`&.${Zd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Zd.disabled}`]:{boxShadow:"none"}})),op=qu("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${zs(r.size)}`]]}})((({ownerState:e})=>$n({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},rp(e)))),ip=qu("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${zs(r.size)}`]]}})((({ownerState:e})=>$n({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},rp(e)))),ap=r.forwardRef((function(e,t){const n=r.useContext(Qd),o=r.useContext(ep),i=ku({props:iu(n,e),name:"MuiButton"}),{children:a,color:l="primary",component:s="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:m,fullWidth:h=!1,size:g="medium",startIcon:b,type:v,variant:y="text"}=i,x=Wn(i,tp),S=$n({},i,{color:l,component:s,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:h,size:g,type:v,variant:y}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return $n({},a,dl({root:["root",i,`${i}${zs(t)}`,`size${zs(o)}`,`${i}Size${zs(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${zs(o)}`],endIcon:["endIcon",`iconSize${zs(o)}`]},Jd,a))})(S),C=b&&Yr.jsx(op,{className:E.startIcon,ownerState:S,children:b}),w=f&&Yr.jsx(ip,{className:E.endIcon,ownerState:S,children:f}),R=o||"";return Yr.jsxs(np,$n({ownerState:S,className:ju(n.className,E.root,u,R),component:s,disabled:c,focusRipple:!p,focusVisibleClassName:ju(E.focusVisible,m),ref:t,type:v},x,{classes:E,children:[C,a,w]}))}));function lp(e){return uu("MuiModal",e)}cu("MuiModal",["root","hidden","backdrop"]);const sp=["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=qu("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})=>$n({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),cp=qu(Ud,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),dp=r.forwardRef((function(e,t){var n,o,i,a,l,s;const u=ku({name:"MuiModal",props:e}),{BackdropComponent:c=cp,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:I=!1,onBackdropClick:L,open:M,slotProps:D,slots:A}=u,P=Wn(u,sp),O=$n({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:I}),{getRootProps:k,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=fd($n({},O,{rootRef:t})),z=$n({},O,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return dl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},lp,n)})(z),B={};if(void 0===m.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(o=null==A?void 0:A.root)?o:b.Root)?n:up,W=null!=(i=null!=(a=null==A?void 0:A.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==D?void 0:D.root)?l:v.root,V=null!=(s=null==D?void 0:D.backdrop)?s:v.backdrop,U=Pc({elementType:$,externalSlotProps:H,externalForwardedProps:P,getSlotProps:k,additionalProps:{ref:t,as:g},ownerState:z,className:ju(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),Y=Pc({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T($n({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ju(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return I||M||j&&!F?Yr.jsx(ad,{ref:q,container:h,disablePortal:E,children:Yr.jsxs($,$n({},U,{children:[!R&&c?Yr.jsx(W,$n({},Y)):null,Yr.jsx(id,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:M,children:r.cloneElement(m,B)})]}))}):null}));function pp(e){return uu("MuiDivider",e)}const fp=cu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),mp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],hp=qu("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})=>$n({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)`:qs(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})=>$n({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>$n({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>$n({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>$n({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),gp=qu("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>$n({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)`}))),bp=r.forwardRef((function(e,t){const r=ku({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=Wn(r,mp),m=$n({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return dl({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"]},pp,n)})(m);return Yr.jsx(hp,$n({as:a,className:ju(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Yr.jsx(gp,{className:h.wrapper,ownerState:m,children:o}):null}))}));bp.muiSkipListHighlight=!0;const vp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],yp=qu(Ad,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Md(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 $n({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}},[`&.${jd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${jd.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"},[`&.${jd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jd.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(.${jd.disabled}, .${jd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${jd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$n({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),xp=qu(Pd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Dd})((({theme:e,ownerState:t})=>$n({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}))),Sp=r.forwardRef((function(e,t){var r,n,o,i;const a=ku({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Wn(a,vp),g=$n({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return $n({},t,dl({root:["root",!r&&"underline"],input:["input"]},Fd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?js(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:yp,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:xp;return Yr.jsx(kd,$n({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Sp.muiName="Input";const Ep=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cp(e){return`scale(${e}, ${e**2})`}const wp={entering:{opacity:1,transform:Cp(1)},entered:{opacity:1,transform:"none"}},Rp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ip=r.forwardRef((function(e,t){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=mc}=e,b=Wn(e,Ep),v=r.useRef(),y=r.useRef(),x=Ou(),S=r.useRef(null),E=Ks(S,i.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{Sc(e);const{duration:r,delay:n,easing:o}=Ec({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:Rp?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),I=C(u),L=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=Ec({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Rp?o:.666*o,delay:Rp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Cp(.75),d&&d(e)})),D=C(p);return r.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Yr.jsx(g,$n({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:I,onEntering:w,onExit:M,onExited:D,onExiting:L,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,y.current||0)),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,t)=>r.cloneElement(i,$n({style:$n({opacity:0,transform:Cp(.75),visibility:"exited"!==e||l?void 0:"hidden"},wp[e],m,i.props.style),ref:E},t))}))}));Ip.muiSupportAuto=!0;const Lp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Mp=qu(Ad,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Md(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})`),$n({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"},[`&.${_d.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_d.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(.${_d.disabled}, .${_d.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${_d.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Dp=qu(Pd,{name:"MuiInput",slot:"Input",overridesResolver:Dd})({}),Ap=r.forwardRef((function(e,t){var r,n,o,i;const a=ku({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Wn(a,Lp),b=(e=>{const{classes:t,disableUnderline:r}=e;return $n({},t,dl({root:["root",!r&&"underline"],input:["input"]},Td,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?js(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:Mp,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:Dp;return Yr.jsx(kd,$n({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));function Pp(e){return uu("MuiLink",e)}Ap.muiName="Input";const Op=cu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),kp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Tp=({theme:e,ownerState:t})=>{const r=(e=>kp[e]||e)(t.color),n=Sl(e,`palette.${r}`,!1)||t.color,o=Sl(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:qs(n,.4)},_p=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],qp=qu(td,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${zs(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>$n({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&$n({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Tp({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"},[`&.${Op.focusVisible}`]:{outline:"auto"}}))),Np=r.forwardRef((function(e,t){const n=ku({props:e,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Wn(n,_p),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=ou(),[v,y]=r.useState(!1),x=Ks(t,b),S=$n({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return dl({root:["root",`underline${zs(o)}`,"button"===r&&"button",n&&"focusVisible"]},Pp,t)})(S);return Yr.jsx(qp,$n({color:i,className:ju(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(kp).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),Fp=r.createContext({});function jp(e){return uu("MuiList",e)}cu("MuiList",["root","padding","dense","subheader"]);const zp=["children","className","component","dense","disablePadding","subheader"],Gp=qu("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})=>$n({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Bp=r.forwardRef((function(e,t){const n=ku({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Wn(n,zp),d=r.useMemo((()=>({dense:l})),[l]),p=$n({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return dl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},jp,t)})(p);return Yr.jsx(Fp.Provider,{value:d,children:Yr.jsxs(Gp,$n({as:a,className:ju(f.root,i),ref:t,ownerState:p},c,{children:[u,o]}))})}));function $p(e){return uu("MuiListItemIcon",e)}const Wp=cu("MuiListItemIcon",["root","alignItemsFlexStart"]),Hp=["className"],Vp=qu("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})=>$n({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Up=r.forwardRef((function(e,t){const n=ku({props:e,name:"MuiListItemIcon"}),{className:o}=n,i=Wn(n,Hp),a=$n({},n,{alignItems:r.useContext(Fp).alignItems}),l=(e=>{const{alignItems:t,classes:r}=e;return dl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},$p,r)})(a);return Yr.jsx(Vp,$n({className:ju(l.root,o),ownerState:a,ref:t},i))})),Yp=cu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Kp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Xp(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Jp(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Zp(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 Qp(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")&&Zp(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const ef=r.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Wn(e,Kp),f=r.useRef(null),m=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$s((()=>{o&&f.current.focus()}),[o]),r.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Gs(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=Ks(f,t);let g=-1;r.Children.forEach(a,((e,t)=>{r.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const b=r.Children.map(a,((e,t)=>{if(t===g){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),r.cloneElement(e,t)}return e}));return Yr.jsx(Bp,$n({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Gs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Qp(t,n,u,s,Xp);else if("ArrowUp"===r)e.preventDefault(),Qp(t,n,u,s,Jp);else if("Home"===r)e.preventDefault(),Qp(t,null,u,s,Xp);else if("End"===r)e.preventDefault(),Qp(t,null,u,s,Jp);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&Zp(n,o);o.previousKeyMatched&&(l||Qp(t,n,!1,s,Xp,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function tf(e){return uu("MuiPopover",e)}cu("MuiPopover",["root","paper"]);const rf=["onEntering"],nf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],of=["slotProps"];function af(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function lf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function sf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function uf(e){return"function"==typeof e?e():e}const cf=qu(dp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),df=qu(Ic,{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}),pf=r.forwardRef((function(e,t){var n,o,i;const a=ku({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Ip,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,I=Wn(a.TransitionProps,rf),L=Wn(a,nf),M=null!=(n=null==x?void 0:x.paper)?n:v,D=r.useRef(),A=Ks(D,M.ref),P=$n({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:I}),O=(e=>{const{classes:t}=e;return dl({root:["root"],paper:["paper"]},tf,t)})(P),k=r.useCallback((()=>{if("anchorPosition"===d)return c;const e=uf(s),t=(e&&1===e.nodeType?e:Gs(D.current).body).getBoundingClientRect();return{top:t.top+af(t,u.vertical),left:t.left+lf(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=r.useCallback((e=>({vertical:af(e,S.vertical),horizontal:lf(e,S.horizontal)})),[S.horizontal,S.vertical]),_=r.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:sf(r)};const n=k();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Bs(uf(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:sf(r)}}),[s,d,k,T,g]),[q,N]=r.useState(b),F=r.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);r.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);r.useEffect((()=>{b&&F()})),r.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),r.useEffect((()=>{if(!b)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Bs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=m||(s?Gs(uf(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:cf,B=null!=(i=null==y?void 0:y.paper)?i:df,$=Pc({elementType:B,externalSlotProps:$n({},M,{style:q?M.style:$n({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:P,className:ju(O.paper,null==M?void 0:M.className)}),W=Pc({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:ju(O.root,f)}),{slotProps:H}=W,V=Wn(W,of);return Yr.jsx(G,$n({},V,!Lc(G)&&{slotProps:H,disableScrollLock:R},{children:Yr.jsx(E,$n({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},I,{children:Yr.jsx(B,$n({},$,{children:p}))}))}))}));function ff(e){return uu("MuiMenu",e)}cu("MuiMenu",["root","paper","list"]);const mf=["onEntering"],hf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],gf={vertical:"top",horizontal:"right"},bf={vertical:"top",horizontal:"left"},vf=qu(pf,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yf=qu(df,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xf=qu(ef,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Sf=r.forwardRef((function(e,t){var n,o;const i=ku({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Wn(i.TransitionProps,mf),S=Wn(i,hf),E=Ou(),C="rtl"===E.direction,w=$n({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),R=(e=>{const{classes:t}=e;return dl({root:["root"],paper:["paper"],list:["list"]},ff,t)})(w),I=a&&!u&&p,L=r.useRef(null);let M=-1;r.Children.map(l,((e,t)=>{r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===M)&&(M=t))}));const D=null!=(n=v.paper)?n:yf,A=null!=(o=y.paper)?o:f,P=Pc({elementType:v.root,externalSlotProps:y.root,ownerState:w,className:[R.root,s]}),O=Pc({elementType:D,externalSlotProps:A,ownerState:w,className:R.paper});return Yr.jsx(vf,$n({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?gf:bf,slots:{paper:D,root:v.root},slotProps:{root:P,paper:O},open:p,ref:t,transitionDuration:h,TransitionProps:$n({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,E),g&&g(e,t)}},x),ownerState:w},S,{classes:m,children:Yr.jsx(xf,$n({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:L,autoFocus:a&&(-1===M||u),autoFocusItem:I,variant:b},c,{className:ju(R.list,c.className),children:l}))}))}));function Ef(e){return uu("MuiMenuItem",e)}const Cf=cu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Rf=qu(Kc,{shouldForwardProp:e=>Tu(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})=>$n({},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"}},[`&.${Cf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qs(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:qs(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:qs(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})`:qs(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Cf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fp.inset}`]:{marginLeft:52},[`& .${Yp.root}`]:{marginTop:0,marginBottom:0},[`& .${Yp.inset}`]:{paddingLeft:36},[`& .${Wp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$n({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Wp.root} svg`]:{fontSize:"1.25rem"}})))),If=r.forwardRef((function(e,t){const n=ku({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=Wn(n,wf),m=r.useContext(Fp),h=r.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=r.useRef(null);$s((()=>{o&&g.current&&g.current.focus()}),[o]);const b=$n({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return $n({},a,dl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Ef,a))})(n),y=Ks(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),Yr.jsx(Fp.Provider,{value:h,children:Yr.jsx(Rf,$n({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:ju(v.focusVisible,u),className:ju(v.root,p)},f,{ownerState:b,classes:v}))})}));function Lf(e){return uu("MuiNativeSelect",e)}const Mf=cu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Df=["className","disabled","error","IconComponent","inputRef","variant"],Af=({ownerState:e,theme:t})=>$n({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$n({},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"},[`&.${Mf.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}}),Pf=qu("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tu,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Mf.multiple}`]:t.multiple}]}})(Af),Of=({ownerState:e,theme:t})=>$n({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),kf=qu("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${zs(r.variant)}`],r.open&&t.iconOpen]}})(Of),Tf=r.forwardRef((function(e,t){const{className:n,disabled:o,error:i,IconComponent:a,inputRef:l,variant:s="standard"}=e,u=Wn(e,Df),c=$n({},e,{disabled:o,variant:s,error:i}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return dl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${zs(r)}`,i&&"iconOpen",n&&"disabled"]},Lf,t)})(c);return Yr.jsxs(r.Fragment,{children:[Yr.jsx(Pf,$n({ownerState:c,className:ju(d.select,n),disabled:o,ref:l||t},u)),e.multiple?null:Yr.jsx(kf,{as:a,ownerState:c,className:d.icon})]})}));var _f;const qf=["children","classes","className","label","notched"],Nf=qu("fieldset",{shouldForwardProp:Tu})({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%"}),Ff=qu("legend",{shouldForwardProp:Tu})((({ownerState:e,theme:t})=>$n({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&&$n({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 jf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],zf=qu(Ad,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Md})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $n({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Nd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Nd.focused} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Nd.error} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Nd.disabled} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$n({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Gf=qu((function(e){const{className:t,label:r,notched:n}=e,o=Wn(e,qf),i=null!=r&&""!==r,a=$n({},e,{notched:n,withLabel:i});return Yr.jsx(Nf,$n({"aria-hidden":!0,className:t,ownerState:a},o,{children:Yr.jsx(Ff,{ownerState:a,children:i?Yr.jsx("span",{children:r}):_f||(_f=Yr.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}})),Bf=qu(Pd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dd})((({theme:e,ownerState:t})=>$n({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}))),$f=r.forwardRef((function(e,t){var n,o,i,a,l;const s=ku({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:m,slots:h={},type:g="text"}=s,b=Wn(s,jf),v=(e=>{const{classes:t}=e;return $n({},t,dl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qd,t))})(s),y=Sd(),x=yd({props:s,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=$n({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),E=null!=(n=null!=(o=h.root)?o:u.Root)?n:zf,C=null!=(i=null!=(a=h.input)?a:u.Input)?i:Bf;return Yr.jsx(kd,$n({slots:{root:E,input:C},renderSuffix:e=>Yr.jsx(Gf,{ownerState:S,className:v.notchedOutline,label:null!=p&&""!==p&&x.required?l||(l=Yr.jsxs(r.Fragment,{children:[p," ","*"]})):p,notched:void 0!==m?m:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:t,type:g},b,{classes:$n({},v,{notchedOutline:null})}))}));function Wf(e){return uu("MuiSelect",e)}$f.muiName="Input";const Hf=cu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Vf;const Uf=["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"],Yf=qu("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Hf.select}`]:t.select},{[`&.${Hf.select}`]:t[r.variant]},{[`&.${Hf.error}`]:t.error},{[`&.${Hf.multiple}`]:t.multiple}]}})(Af,{[`&.${Hf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Kf=qu("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${zs(r.variant)}`],r.open&&t.iconOpen]}})(Of),Xf=qu("input",{shouldForwardProp:e=>_u(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 Jf(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Zf(e){return null==e||"string"==typeof e&&!e.trim()}const Qf=r.forwardRef((function(e,t){var n;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:m=!1,IconComponent:h,inputRef:g,labelId:b,MenuProps:v={},multiple:y,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:I,readOnly:L,renderValue:M,SelectDisplayProps:D={},tabIndex:A,value:P,variant:O="standard"}=e,k=Wn(e,Uf),[T,_]=Us({controlled:P,default:d,name:"Select"}),[q,N]=Us({controlled:I,default:c,name:"Select"}),F=r.useRef(null),j=r.useRef(null),[z,G]=r.useState(null),{current:B}=r.useRef(null!=I),[$,W]=r.useState(),H=Ks(t,g),V=r.useCallback((e=>{j.current=e,e&&G(e)}),[]),U=null==z?void 0:z.parentNode;r.useImperativeHandle(H,(()=>({focus:()=>{j.current.focus()},node:F.current,value:T})),[T]),r.useEffect((()=>{c&&q&&z&&!B&&(W(l?null:U.clientWidth),j.current.focus())}),[z,l]),r.useEffect((()=>{a&&j.current.focus()}),[a]),r.useEffect((()=>{if(!b)return;const e=Gs(j.current).getElementById(b);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[b]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),B||(W(l?null:U.clientWidth),N(e))},K=r.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(y){r=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==r&&(_(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),E(o,e)}y||Y(!1,t)}},J=null!==z&&q;let Z,Q;delete k["aria-invalid"];const ee=[];let te=!1;(wd({value:T})||f)&&(M?Z=M(T):te=!0);const re=K.map((e=>{if(!r.isValidElement(e))return null;let t;if(y){if(!Array.isArray(T))throw new Error(Gn(2));t=T.some((t=>Jf(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Jf(T,e.props.value),t&&te&&(Q=e.props.children);return r.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=y?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=$;!l&&B&&z&&(oe=U.clientWidth),ne=void 0!==A?A:p?null:0;const ie=D.id||(x?`mui-component-select-${x}`:void 0),ae=$n({},e,{variant:O,value:T,open:J,error:m}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return dl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${zs(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Wf,t)})(ae),se=$n({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),ue=Vs();return Yr.jsxs(r.Fragment,{children:[Yr.jsx(Yf,$n({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||L?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:x}}),S(e))},onFocus:w},D,{ownerState:ae,className:ju(D.className,le.select,u),id:ie,children:Zf(Z)?Vf||(Vf=Yr.jsx("span",{className:"notranslate",children:""})):Z})),Yr.jsx(Xf,$n({"aria-invalid":m,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&&(_(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:a,ownerState:ae},k)),Yr.jsx(Kf,{as:h,className:le.icon,ownerState:ae}),Yr.jsx(Sf,$n({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:$n({"aria-labelledby":b,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:$n({},v.slotProps,{paper:$n({},se,{style:$n({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})})),em=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],tm=["root"],rm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Tu(e)&&"variant"!==e,slot:"Root"},nm=qu(Ap,rm)(""),om=qu($f,rm)(""),im=qu(Sp,rm)(""),am=r.forwardRef((function(e,t){const n=ku({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=zd,id:d,input:p,inputProps:f,label:m,labelId:h,MenuProps:g,multiple:b=!1,native:v=!1,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=Wn(n,em),I=v?Tf:Qf,L=yd({props:n,muiFormControl:Sd(),states:["variant","error"]}),M=L.variant||w,D=$n({},n,{variant:M,classes:a}),A=(e=>{const{classes:t}=e;return t})(D),P=Wn(A,tm),O=p||{standard:Yr.jsx(nm,{ownerState:D}),outlined:Yr.jsx(om,{label:m,ownerState:D}),filled:Yr.jsx(im,{ownerState:D})}[M],k=Ks(t,O.ref);return Yr.jsx(r.Fragment,{children:r.cloneElement(O,$n({inputComponent:I,inputProps:$n({children:i,error:L.error,IconComponent:c,variant:M,type:void 0,multiple:b},v?{id:d}:{autoWidth:o,defaultOpen:s,displayEmpty:u,labelId:h,MenuProps:g,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:$n({id:d},C)},f,{classes:f?js(P,f.classes):P},p?p.props.inputProps:{})},b&&v&&"outlined"===M?{notched:!0}:{},{ref:k,className:ju(O.props.className,l,A.root)},!p&&{variant:M},R))})}));function lm(e={}){return Yr.jsx(en,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("rect",{stroke:Lr.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}am.muiName="Select";const sm={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Or,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},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:[]}};var um=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Lr.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Lr.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yr.jsx(Jr,{"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 ${Lr.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Lr.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`,borderRadius:Or,backgroundColor:Lr.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 ${Lr.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Lr.WHITE,color:Lr.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:Or},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Lr.GREYSCALE_0_15,backgroundColor:Lr.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Lr.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Lr.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Lr.GREEN_PALE},"&:active":{backgroundColor:Lr.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Lr.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Lr.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Lr.BLUE_PALE},"&:active":{backgroundColor:Lr.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Lr.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Lr.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:Or,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Lr.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Lr.GREYSCALE_0_15,backgroundColor:Lr.GREYSCALE_100_60,"&:active":{backgroundColor:Lr.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Lr.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Lr.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Lr.PURPLE,"&.Mui-focusVisible":{borderColor:Lr.PURPLE,boxShadow:`0 0 0 3px ${qs(Lr.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Lr.GREEN,"&.Mui-focusVisible":{borderColor:Lr.GREEN,boxShadow:`0 0 0 3px ${qs(Lr.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Lr.BLUE,"&.Mui-focusVisible":{borderColor:Lr.BLUE,boxShadow:`0 0 0 3px ${qs(Lr.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Lr.ORANGE,"&.Mui-focusVisible":{borderColor:Lr.ORANGE,boxShadow:`0 0 0 3px ${qs(Lr.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Lr.RED,"&.Mui-focusVisible":{borderColor:Lr.RED,boxShadow:`0 0 0 3px ${qs(Lr.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Lr.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Lr.PURPLE_PALE},"&:active":{backgroundColor:Lr.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Lr.PURPLE_PALE,boxShadow:`0 0 0 3px ${qs(Lr.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Lr.GREEN_PALE},"&:active":{backgroundColor:Lr.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Lr.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Lr.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Lr.BLUE_PALE},"&:active":{backgroundColor:Lr.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Lr.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Lr.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Lr.ORANGE_PALE},"&:active":{backgroundColor:Lr.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Lr.ORANGE_PALE,boxShadow:`0 0 0 3px ${qs(Lr.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Lr.RED_PALE},"&:active":{backgroundColor:Lr.RED_DARK},"&.Mui-focusVisible":{borderColor:Lr.RED_PALE,boxShadow:`0 0 0 3px ${qs(Lr.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:Lr.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Lr.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Or,boxShadow:`inset 0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yr.jsx(Qr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Mr,borderRadius:Or,color:Lr.TEXT_PRIMARY,backgroundColor:Lr.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Lr.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Lr.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Lr.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Lr.GREYSCALE_0_05,color:Lr.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Lr.GREEN,borderColor:Lr.GREEN},"&.MuiChip-outlinedInfo":{color:Lr.BLUE,borderColor:Lr.BLUE},"&.MuiChip-outlinedWarning":{color:Lr.ORANGE,borderColor:Lr.ORANGE},"&.MuiChip-outlinedError":{color:Lr.RED,borderColor:Lr.RED}},outlined:{border:`solid 1px ${Lr.GREYSCALE_0_15}`,backgroundColor:Lr.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Or,boxShadow:"none",backgroundColor:Lr.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Lr.GREEN,borderColor:Lr.GREEN},outlinedSecondary:{color:Lr.BLUE,borderColor:Lr.BLUE},label:{fontFamily:Nr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yr.jsx(Qr,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yr.jsx(Jr,{"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:Or},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Or,fontSize:Dr,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Lr.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Lr.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Lr.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Lr.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Lr.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Or,border:`solid 1px ${Lr.GREYSCALE_0_15}`,color:Lr.GREYSCALE_0_60,marginRight:0,width:Pr,height:Pr},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Lr.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Or,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Lr.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Dr}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Mr,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Lr.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Lr.GREYSCALE_25,fontSize:Mr,fontFamily:Nr.FONT_FAMILY,fontWeight:_r,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Lr.TEXT_PRIMARY},"&.Mui-error":{color:Lr.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Lr.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Tr,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Lr.TEXT_SECONDARY,content:"'(required)'",fontWeight:Tr,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Dr,lineHeight:"16px",backgroundColor:Lr.WHITE,borderRadius:Or,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lr.GREYSCALE_0_05}`,borderColor:Lr.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lr.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Lr.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Lr.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lr.RED}`,boxShadow:`0px 0px 0px 1px ${Lr.RED}, inset 0 2px 0 0 ${Lr.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lr.GREYSCALE_0_10}`,borderColor:Lr.GREYSCALE_0_10,backgroundColor:Lr.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Lr.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Lr.GREYSCALE_0_15,borderRadius:Or,boxShadow:`inset 0 2px 0 0 ${Lr.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yr.jsx(Jr,{...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:Lr.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Lr.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Lr.GREYSCALE_0_03},"&:active":{backgroundColor:Lr.GREYSCALE_0_10},"&:focus":{backgroundColor:Lr.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Lr.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Lr.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Lr.GREYSCALE_0_30,"&:hover":{backgroundColor:Lr.GREYSCALE_0_0,borderColor:Lr.GREYSCALE_0_15},"& ~svg":{color:Lr.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Lr.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Or}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Lr.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Lr.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Dr,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Mr,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Mr,fontWeight:_r,color:Lr.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:_r}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Lr.GREYSCALE_0_15}, 0px 0px 0px 1px ${Lr.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yr.jsx(nn,{}),checkedIcon:Yr.jsx(on,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Lr.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Lr.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Lr.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Lr.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Lr.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Lr.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Lr.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yr.jsx(lm,{}),checkedIcon:Yr.jsx(tn,{}),indeterminateIcon:Yr.jsx(rn,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Or,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Lr.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Lr.GREYSCALE_0_55,color:Lr.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:Lr.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Lr.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Lr.GREYSCALE_0_55,"&:hover":{color:Lr.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:Lr.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Lr.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Dr,color:Lr.TEXT_PRIMARY,lineHeight:"16px",fontWeight:_r},secondary:{fontSize:Mr,color:Lr.GREYSCALE_45,fontWeight:Tr,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Dr,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Dr,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Lr.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Mr,borderBottom:`solid 1px ${Lr.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Dr,color:Lr.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Lr.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Lr.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Lr.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:Lr.RED}}},"&.Mui-focusVisible":{backgroundColor:Lr.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:Lr.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:Lr.GREEN,height:"24px","&.Mui-disabled":{color:Lr.GREYSCALE_0_15}},rail:{backgroundColor:Lr.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Lr.GREYSCALE_0_05}`,borderRadius:Or,boxShadow:`inset 0px 0px 0px 1px ${Lr.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Lr.GREYSCALE_0_05}`,borderRadius:Or},thumb:{height:"16px",width:"16px",borderRadius:Or,backgroundColor:Lr.WHITE,boxShadow:`0px 1px 2px 0px ${Lr.GREYSCALE_0_15}, 0px 0px 0px 1px ${Lr.GREYSCALE_0_05}`,"&:hover":{borderRadius:Or,boxShadow:`0 2px 4px 0 ${Lr.GREYSCALE_0_30}, 0 0 0 1px ${Lr.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Lr.GREYSCALE_0_15}, 0 0 0 1px ${Lr.GREYSCALE_0_06}, 0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Lr.GREYSCALE_0_15}, 0 0 0 1px ${Lr.GREYSCALE_0_06}, 0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Lr.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Lr.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Lr.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Lr.GREYSCALE_0_15},markLabel:{color:Lr.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Lr.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Lr.WHITE,color:Lr.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:Lr.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:Lr.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Lr.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Lr.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Lr.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Lr.GREYSCALE_0_15,borderRadius:Or},thumb:{height:"16px",width:"16px",borderRadius:Or,backgroundColor:Lr.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Dr,fontWeight:_r,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Lr.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Lr.MISC_FOCUS_BORDER}`,backgroundColor:Lr.GREYSCALE_0_03,borderRadius:Or},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Lr.GREYSCALE_25,"&.Mui-selected":{color:Lr.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Dr,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Or,"&:hover":{backgroundColor:Lr.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Lr.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Lr.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Or,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Lr.GREYSCALE_0_05},"&:hover":{backgroundColor:Lr.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Lr.GREYSCALE_85}`,borderRight:`1px solid ${Lr.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:_r,backgroundColor:Lr.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:Lr.GREYSCALE_98,borderBottom:`1px solid ${Lr.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Lr.GREYSCALE_85}`,borderTop:`1px solid ${Lr.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Lr.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Lr.GREYSCALE_0_05,"&:hover":{backgroundColor:Lr.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Lr.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yr.jsx(an,{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 ${Lr.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Dr,borderRadius:Or,padding:"7px 16px",border:`1px solid ${Lr.GREYSCALE_0_15}`,backgroundColor:Lr.GREYSCALE_100_60,color:Lr.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Lr.GREYSCALE_0_10,border:`1px solid ${Lr.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Lr.GREYSCALE_0_03,border:`1px solid ${Lr.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Lr.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Lr.MISC_FOCUS_BORDER}`,border:`1px solid ${Lr.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Lr.GREYSCALE_25,backgroundColor:Lr.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Lr.GREYSCALE_0_10,border:`1px solid ${Lr.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Mr,height:24,width:24,padding:7},sizeLarge:{fontSize:Ar,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Dr,borderRadius:Or}}},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:Lr.GREYSCALE_20},tooltip:{backgroundColor:Lr.GREYSCALE_20,fontSize:Mr,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...sm}:{}}))(t);const cm=e=>({mode:"light",primary:{ultraLight:Lr.GREEN_ULTRA_LIGHT,light:Lr.GREEN_PALE,main:Lr.GREEN,dark:Lr.GREEN_DARK,extraDark:Lr.GREEN_EXTRA_DARK,contrastText:Lr.WHITE},secondary:{ultraLight:Lr.BLUE_ULTRA_LIGHT,light:Lr.BLUE_PALE,main:Lr.BLUE,dark:Lr.BLUE_DARK,extraDark:Lr.BLUE_EXTRA_DARK,contrastText:Lr.WHITE},error:{ultraLight:Lr.RED_ULTRA_LIGHT,light:Lr.RED_PALE,main:Lr.RED,dark:Lr.RED_DARK,extraDark:Lr.RED_EXTRA_DARK,contrastText:Lr.WHITE},warning:{ultraLight:Lr.ORANGE_ULTRA_LIGHT,light:Lr.ORANGE_PALE,main:Lr.ORANGE,dark:Lr.ORANGE_DARK,extraDark:Lr.ORANGE_EXTRA_DARK,contrastText:Lr.WHITE},success:{ultraLight:Lr.GREEN_ULTRA_LIGHT,light:Lr.GREEN_PALE,main:Lr.GREEN,dark:Lr.GREEN_DARK,extraDark:Lr.GREEN_EXTRA_DARK,contrastText:Lr.WHITE},info:{ultraLight:Lr.BLUE_ULTRA_LIGHT,light:Lr.BLUE_PALE,main:Lr.BLUE,dark:Lr.BLUE_DARK,extraDark:Lr.BLUE_EXTRA_DARK,contrastText:Lr.WHITE},text:{primary:Lr.TEXT_PRIMARY,secondary:Lr.TEXT_SECONDARY,disabled:Lr.GREYSCALE_0_30},action:{hover:Lr.GREYSCALE_0_03,hoverOpacity:.03,selected:Lr.GREYSCALE_0_05,selectedOpacity:.05,focus:Lr.MISC_FOCUS_BORDER},amethyst:{ultraLight:Lr.WHITE,main:Lr.PURPLE,light:Lr.PURPLE_PALE,dark:Lr.PURPLE_DARK,extraDark:Lr.GREYSCALE_0_0,contrastText:Lr.WHITE},background:{paper:Lr.WHITE,default:Lr.GREYSCALE_95},divider:Lr.GREYSCALE_0_15}),dm={...Ir},pm=((e="light",t=!1)=>((e,t=!1)=>({components:um(0,t),palette:cm(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Dr,fontWeightLight:kr,fontWeightRegular:Tr,fontWeightMedium:_r,fontWeightBold:qr,htmlFontSize:Dr,fontFamily:Nr.FONT_FAMILY,button:{fontWeight:_r,fontSize:Dr,textTransform:"none"},body1:{fontSize:Ar,lineHeight:"24px"},body2:{fontSize:Dr,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Pr,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ar,fontWeight:_r,lineHeight:"16px"},h6:{fontSize:Dr,fontWeight:_r,lineHeight:"16px"},caption:{color:Lr.TEXT_SECONDARY},subtitle1:{fontSize:Dr,color:Lr.TEXT_SECONDARY},subtitle2:{fontSize:Mr,color:Lr.TEXT_SECONDARY}},shape:{borderRadius:Or}}))(0,t))().palette,fm={TEXT:pm.text.primary,DISABLED:pm.text.disabled,HOVER:pm.action.hover,WHITE:dm.GREYSCALE_100,BORDER_LIGHT:dm.GREYSCALE_90,BORDER_MEDIUM:dm.GREYSCALE_85,BORDER_HEAVY:dm.GREYSCALE_50,DARK_MODE_TEXT:dm.GREYSCALE_95,DARK_MODE_BORDER:dm.GREYSCALE_95,DARK_MODE_DISABLED:dm.GREYSCALE_70,DARK_MODE_BACKGROUND:dm.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:dm.GREYSCALE_95,SELECTED:pm.primary.main};function mm(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function hm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&mm(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function gm(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bm(Object(r),!0).forEach((function(t){gm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ym={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},xm="qcm-color";function Sm(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:xm,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===xm){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=vm({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(ym[x.toLowerCase()]){a=x.toLowerCase();var w=ym[a];m=w.r,h=w.g,g=w.b,b="number"==typeof ym[a].a?ym[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function Em(e){var t,r,n;if(mm(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?hm(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}function Cm(e){var t,r,n=0,o="string"==typeof e?Sm(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function wm(e){if(mm(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?hm(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function Rm(e,t){return mm(e)?"rgba(".concat([e.r,e.g,e.b,e.a].join(", "),")"):Rm(Sm(e))}function Im(e){return mm(e)?1===e.a?wm(e):Rm(e):Im(Sm(e))}var Lm=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function Mm(e){return.2126*Lm(e.r)+.7152*Lm(e.g)+.0722*Lm(e.b)}function Dm(){var e=Sm.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?Sm(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:Sm(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=Sm.apply(void 0,arguments);return e.invalid||Mm(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=wm(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=Rm(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=Im(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=Em(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?Sm(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=Cm(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=Cm(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getBrightenedColor:function(){return Dm(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return Dm(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}function Am(e,t){if(e&&t){var r=Mm(e),n=Mm(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var Pm,Om,km=["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"],Tm=["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 _m(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Tm:km}var qm=function(){if(Om)return Pm;Om=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return Pm=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},Pm}();function Nm(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Fm(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function jm(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(qm);var zm=1/.7,Gm="\\s*([+-]?\\d+)\\s*",Bm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$m="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wm=/^#([0-9a-f]{3,8})$/,Hm=new RegExp(`^rgb\\(${Gm},${Gm},${Gm}\\)$`),Vm=new RegExp(`^rgb\\(${$m},${$m},${$m}\\)$`),Um=new RegExp(`^rgba\\(${Gm},${Gm},${Gm},${Bm}\\)$`),Ym=new RegExp(`^rgba\\(${$m},${$m},${$m},${Bm}\\)$`),Km=new RegExp(`^hsl\\(${Bm},${$m},${$m}\\)$`),Xm=new RegExp(`^hsla\\(${Bm},${$m},${$m},${Bm}\\)$`),Jm={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 Zm(){return this.rgb().formatHex()}function Qm(){return this.rgb().formatRgb()}function eh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Wm.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?th(t):3===r?new ih(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?rh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?rh(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=Hm.exec(e))?new ih(t[1],t[2],t[3],1):(t=Vm.exec(e))?new ih(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Um.exec(e))?rh(t[1],t[2],t[3],t[4]):(t=Ym.exec(e))?rh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Km.exec(e))?dh(t[1],t[2]/100,t[3]/100,1):(t=Xm.exec(e))?dh(t[1],t[2]/100,t[3]/100,t[4]):Jm.hasOwnProperty(e)?th(Jm[e]):"transparent"===e?new ih(NaN,NaN,NaN,0):null}function th(e){return new ih(e>>16&255,e>>8&255,255&e,1)}function rh(e,t,r,n){return n<=0&&(e=t=r=NaN),new ih(e,t,r,n)}function nh(e){return e instanceof jm||(e=eh(e)),e?new ih((e=e.rgb()).r,e.g,e.b,e.opacity):new ih}function oh(e,t,r,n){return 1===arguments.length?nh(e):new ih(e,t,r,null==n?1:n)}function ih(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function ah(){return`#${ch(this.r)}${ch(this.g)}${ch(this.b)}`}function lh(){const e=sh(this.opacity);return`${1===e?"rgb(":"rgba("}${uh(this.r)}, ${uh(this.g)}, ${uh(this.b)}${1===e?")":`, ${e})`}`}function sh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function uh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ch(e){return((e=uh(e))<16?"0":"")+e.toString(16)}function dh(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new fh(e,t,r,n)}function ph(e){if(e instanceof fh)return new fh(e.h,e.s,e.l,e.opacity);if(e instanceof jm||(e=eh(e)),!e)return new fh;if(e instanceof fh)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 fh(a,l,s,e.opacity)}function fh(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function mh(e){return(e=(e||0)%360)<0?e+360:e}function hh(e){return Math.max(0,Math.min(1,e||0))}function gh(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Nm(jm,eh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Zm,formatHex:Zm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ph(this).formatHsl()},formatRgb:Qm,toString:Qm}),Nm(ih,oh,Fm(jm,{brighter(e){return e=null==e?zm:Math.pow(zm,e),new ih(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ih(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ih(uh(this.r),uh(this.g),uh(this.b),sh(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:ah,formatHex:ah,formatHex8:function(){return`#${ch(this.r)}${ch(this.g)}${ch(this.b)}${ch(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:lh,toString:lh})),Nm(fh,(function(e,t,r,n){return 1===arguments.length?ph(e):new fh(e,t,r,null==n?1:n)}),Fm(jm,{brighter(e){return e=null==e?zm:Math.pow(zm,e),new fh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new fh(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 ih(gh(e>=240?e-240:e+120,o,n),gh(e,o,n),gh(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new fh(mh(this.h),hh(this.s),hh(this.l),sh(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=sh(this.opacity);return`${1===e?"hsl(":"hsla("}${mh(this.h)}, ${100*hh(this.s)}%, ${100*hh(this.l)}%${1===e?")":`, ${e})`}`}}));const bh=Math.PI/180,vh=180/Math.PI,yh=4/29,xh=6/29,Sh=3*xh*xh;function Eh(e){if(e instanceof Ch)return new Ch(e.l,e.a,e.b,e.opacity);if(e instanceof Mh)return Dh(e);e instanceof ih||(e=nh(e));var t,r,n=Lh(e.r),o=Lh(e.g),i=Lh(e.b),a=wh((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=wh((.4360747*n+.3850649*o+.1430804*i)/.96422),r=wh((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ch(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ch(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function wh(e){return e>.008856451679035631?Math.pow(e,1/3):e/Sh+yh}function Rh(e){return e>xh?e*e*e:Sh*(e-yh)}function Ih(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Lh(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Mh(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Dh(e){if(isNaN(e.h))return new Ch(e.l,0,0,e.opacity);var t=e.h*bh;return new Ch(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Nm(Ch,(function(e,t,r,n){return 1===arguments.length?Eh(e):new Ch(e,t,r,null==n?1:n)}),Fm(jm,{brighter(e){return new Ch(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ch(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 ih(Ih(3.1338561*(t=.96422*Rh(t))-1.6168667*(e=1*Rh(e))-.4906146*(r=.82521*Rh(r))),Ih(-.9787684*t+1.9161415*e+.033454*r),Ih(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Nm(Mh,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Mh)return new Mh(e.h,e.c,e.l,e.opacity);if(e instanceof Ch||(e=Eh(e)),0===e.a&&0===e.b)return new Mh(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*vh;return new Mh(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Mh(e,t,r,null==n?1:n)}),Fm(jm,{brighter(e){return new Mh(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Mh(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Dh(this).rgb()}}));var Ah=e=>()=>e;function Ph(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ah(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Ph: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):Ah(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=oh(e)).r,(t=oh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Ph(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 Oh,kh="center",Th="bottom";function _h(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 qh(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 Nh(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=jh)):void 0===t&&(t=Fh);for(var r,n,o,i,a,l=new Bh(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 Bh(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Gh)}function Fh(e){return e.children}function jh(e){return Array.isArray(e)?e[1]:null}function zh(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Gh(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Bh(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:kh,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:kh,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:kh,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:kh},{key:"DataRangeIncludingZero",alignment:Th},{key:"LimitedData",alignment:Th},{key:"NegativeOrZeroValues",alignment:Th}].reduce((function(e,t){return e[t.key]=t,e}),{}),Bh.prototype=Nh.prototype={constructor:Bh,count:function(){return this.eachAfter(qh)},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 Nh(this).eachBefore(zh)},[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)}},Oh=function(e){
|
|
100
100
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
101
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},kh({exports:{}});const $h=(e,t=fm.TEXT,r=fm.WHITE)=>{const n=Dm(e),o=Dm(t),i=Dm(r);return n.isInvalid()?t:function(e,t,r){return Am(e,t)>Am(e,r)?t:r}(n,i,o).getRGB()},Wh=e=>{const t=e.getStyle("","","dataColors.selected")||fm.SELECTED,r=function(e,t){var r=Dm("#FFFFFF"),n=Dm(e),o=Dm(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=Am(r,n),a=Am(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(t,fm.TEXT);return{background:t,color:r}},Hh=(e,t)=>{const r=Dm(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Vh=e=>!!e&&0===Dm(e).a,Uh=e=>{const t=Dm(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Yh=e=>{e.stopPropagation(),e.preventDefault()},Kh=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=r(l,a);return{color:"transparent"===s?"none":s}}}),Xh=(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},Jh=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Xh(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},..._m(n).filter((e=>!s.includes(e))).map((e=>Xh(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Zh=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Qh=({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=>Xh(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Zh.filter((e=>!a.includes(e))).map((e=>Xh(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),eg=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Jh({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Qh({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:Kh(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Kh(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?fm.WHITE:fm.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),tg=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Kh(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Kh(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),rg=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),ng="12px",og="Source Sans Pro, sans-serif",ig="600",ag=15e3,lg=4/3;var sg,ug;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(sg||(sg={})),function(e){e.Solid="solid",e.None="none"}(ug||(ug={}));const cg={display:"flex",justifyContent:"center",alignItems:"center"},dg={borderStyle:"solid"},pg={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},fg={lineHeight:lg,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},mg=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),hg=(e,t)=>e>0?`${e}px ${ug.Solid} ${t}`:ug.None,gg=(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:hg(o,r),borderBottom:hg(i,r),borderLeft:ug.None,borderTop:ug.None}},bg=(e,t,r,n,o,i)=>{const a=gg(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=hg(2,o)),r||(a.borderLeft=hg(1,o))),a},vg=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=hg(1,r)),t&&(n.borderRight=hg(1,r)),n},yg=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:rg("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?rg("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:Kh("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:sg.DividerLight})),divider:Kh("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:sg.DividerDark})),background:Kh("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:sg.Transparent}))}}}}),xg=(e,t,r)=>{var n,o,i,a,l,s;switch(t){case"header":return 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===(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===(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===(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===(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===(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}},Sg=(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:eg({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:xg}),dimensionValueSection:eg({section:"dimensionValues",translator:e,flags:t,getThemeValue:xg}),measureValueSection:eg({section:"measureValues",translator:e,flags:t,getThemeValue:xg}),measureLabelSection:tg({section:"measureLabels",getThemeValue:xg}),totalValuesSection:tg({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:xg}),nullValuesSection:tg({section:"nullValues",fallbackBackground:sg.NullValueBackground,getThemeValue:xg}),gridSection:yg(t)}}]}),Eg=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:$t.Auto,translation:"Common.Auto"},{value:$t.Pixels,translation:"Object.Table.Column.Pixels"},{value:$t.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:$t.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Bt.PixelsDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===$t.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(Bt.PixelsMin,Math.min(Bt.PixelsMax,r.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Bt.PercentageDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===$t.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(Bt.PercentageMin,Math.min(Bt.PercentageMaxInIndentMode,r.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){const{qIndentMode:r}=t.qHyperCubeDef;return(!r||!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&!!t.qHyperCubeDef.qDimensions.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)}}}}),Cg=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Sg(e,t),Eg(t)]}}}),wg="auto",Rg={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=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:wg,translation:"Object.Table.SortingInSearch",options:[{value:wg,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Ig(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:mr(e),sorting:Rg,addons:qt,settings:Cg(t,r)}}}function Lg(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Ig(e),importProperties:Tt(e),exportProperties:_t}}const Mg=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Dg(e,t){return y((()=>e),t)}const Ag={},Pg=e=>{const t=y((()=>({current:Ag})),[]);return t.current=t.current===Ag?e:t.current,t},kg=()=>{const{viewState:e}=x(),t=Pg(new Set),r=void 0!==e,{promise:n,resolve:o}=y((()=>Mg()),[]),i=Dg((e=>{r&&t.current.add(e)}),[t]),a=Dg(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return S((async()=>{r&&await n}),[n,r]),y((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])},Og="#grid",Tg=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},_g=(e,t,r,n,o)=>{const i=Tg(".qv-object .qv-inner-object",r),a=Tg(".qv-panel-sheet",r),l=Tg(Og,r),s=null!=l?l:a,u=(e=>{var t,r,n,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(r=l.bgColor)||void 0===r?void 0:r.colorExpression,u=null==l||null===(n=l.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return Uh(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Dm(u);return c.setAlpha(null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=Vh(p),m=!Vh(h=f?s:p)&&$h(h,fm.TEXT,fm.DARK_MODE_TEXT)===wm(fm.DARK_MODE_TEXT);var h;const g=((e,t,r,n=fm.WHITE)=>e&&!Vh(e)?e:Vh(t)?r&&!Vh(r)?r:n:t)(u,p,s);return{color:p,headerColor:g,isDark:m}},qg=(e,t,r,n)=>{const o=w(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=E([]);return C((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{var e;null===(e=r)||void 0===e||e.disconnect()}}),[e,t]),r})(t.closest(Og),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return y((()=>({...o,background:_g(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function Ng(e,t){const r=y((()=>({isLoading:!0})),t),[n,o]=S((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const Fg=3;function jg(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 zg({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Fg}={},{estimateWidth:a,measureText:l,estimateLineCount:u}=s((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=_h(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=_h((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=jg(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:u}}var Gg,Bg=F;Gg=Bg.createRoot,Bg.hydrateRoot;const $g="Source Sans Pro, sans-serif";function Wg(e,t){const[r,n]=u(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Hg={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","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_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","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 Vg=({translator:e})=>(s((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Hg).forEach((t=>{e.add(Hg[t])}))}}(e)}),[e]),e);function Ug(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 Yg=Object.freeze({__proto__:null,default:Ug}),Kg="$$material";function Xg(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 Jg(e){if(r.isValidElement(e)||!Xg(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Jg(e[r])})),t}function Zg(e,t,n={clone:!0}){const o=n.clone?hr({},e):e;return Xg(e)&&Xg(t)&&Object.keys(t).forEach((i=>{r.isValidElement(t[i])?o[i]=t[i]:Xg(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Xg(e[i])?o[i]=Zg(e[i],t[i],n):n.clone?o[i]=Xg(t[i])?Jg(t[i]):t[i]:o[i]=t[i]})),o}var Qg=Object.freeze({__proto__:null,default:Zg,isPlainObject:Xg});const eb=["values","unit","step"];function tb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Er(e,eb),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>hr({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return hr({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)}const rb={borderRadius:4};function nb(e,t){return t?Zg(e,t,{clone:!1}):e}const ob={xs:0,sm:600,md:900,lg:1200,xl:1536},ib={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ob[e]}px)`};function ab(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ib;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||ib;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||ob).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function lb(e){if("string"!=typeof e)throw new Error(Ug(7));return e.charAt(0).toUpperCase()+e.slice(1)}var sb=Object.freeze({__proto__:null,default:lb});function ub(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 cb(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:ub(e,r)||n,t&&(o=t(o,n,e)),o}function db(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=ub(e.theme,n)||{};return ab(e,i,(e=>{let n=cb(a,o,e);return e===n&&"string"==typeof e&&(n=cb(a,o,`${t}${"default"===e?"":lb(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const pb={m:"margin",p:"padding"},fb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},mb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hb=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!mb[e])return[e];e=mb[e]}const[t,r]=e.split(""),n=pb[t],o=fb[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),gb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function vb(e,t,r,n){var o;const i=null!=(o=ub(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 yb(e){return vb(e,"spacing",8)}function xb(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 Sb(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=xb(t,r),e)),{})}(hb(r),n);return ab(e,e[r],o)}function Eb(e,t){const r=yb(e.theme);return Object.keys(e).map((n=>Sb(e,t,n,r))).reduce(nb,{})}function Cb(e){return Eb(e,gb)}function wb(e){return Eb(e,bb)}function Rb(...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]?nb(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Ib(e){return"number"!=typeof e?e:`${e}px solid`}function Lb(e,t){return db({prop:e,themeKey:"borders",transform:t})}Cb.propTypes={},Cb.filterProps=gb,wb.propTypes={},wb.filterProps=bb;const Mb=Lb("border",Ib),Db=Lb("borderTop",Ib),Ab=Lb("borderRight",Ib),Pb=Lb("borderBottom",Ib),kb=Lb("borderLeft",Ib),Ob=Lb("borderColor"),Tb=Lb("borderTopColor"),_b=Lb("borderRightColor"),qb=Lb("borderBottomColor"),Nb=Lb("borderLeftColor"),Fb=Lb("outline",Ib),jb=Lb("outlineColor"),zb=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=vb(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:xb(t,e)});return ab(e,e.borderRadius,r)}return null};zb.propTypes={},zb.filterProps=["borderRadius"],Rb(Mb,Db,Ab,Pb,kb,Ob,Tb,_b,qb,Nb,zb,Fb,jb);const Gb=e=>{if(void 0!==e.gap&&null!==e.gap){const t=vb(e.theme,"spacing",8),r=e=>({gap:xb(t,e)});return ab(e,e.gap,r)}return null};Gb.propTypes={},Gb.filterProps=["gap"];const Bb=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=vb(e.theme,"spacing",8),r=e=>({columnGap:xb(t,e)});return ab(e,e.columnGap,r)}return null};Bb.propTypes={},Bb.filterProps=["columnGap"];const $b=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=vb(e.theme,"spacing",8),r=e=>({rowGap:xb(t,e)});return ab(e,e.rowGap,r)}return null};$b.propTypes={},$b.filterProps=["rowGap"];function Wb(e,t){return"grey"===t?t:e}Rb(Gb,Bb,$b,db({prop:"gridColumn"}),db({prop:"gridRow"}),db({prop:"gridAutoFlow"}),db({prop:"gridAutoColumns"}),db({prop:"gridAutoRows"}),db({prop:"gridTemplateColumns"}),db({prop:"gridTemplateRows"}),db({prop:"gridTemplateAreas"}),db({prop:"gridArea"}));function Hb(e){return e<=1&&0!==e?100*e+"%":e}Rb(db({prop:"color",themeKey:"palette",transform:Wb}),db({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wb}),db({prop:"backgroundColor",themeKey:"palette",transform:Wb}));const Vb=db({prop:"width",transform:Hb}),Ub=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])||ob[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:Hb(t)}};return ab(e,e.maxWidth,t)}return null};Ub.filterProps=["maxWidth"];const Yb=db({prop:"minWidth",transform:Hb}),Kb=db({prop:"height",transform:Hb}),Xb=db({prop:"maxHeight",transform:Hb}),Jb=db({prop:"minHeight",transform:Hb});db({prop:"size",cssProperty:"width",transform:Hb}),db({prop:"size",cssProperty:"height",transform:Hb});Rb(Vb,Ub,Yb,Kb,Xb,Jb,db({prop:"boxSizing"}));const Zb={border:{themeKey:"borders",transform:Ib},borderTop:{themeKey:"borders",transform:Ib},borderRight:{themeKey:"borders",transform:Ib},borderBottom:{themeKey:"borders",transform:Ib},borderLeft:{themeKey:"borders",transform:Ib},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ib},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zb},color:{themeKey:"palette",transform:Wb},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wb},backgroundColor:{themeKey:"palette",transform:Wb},p:{style:wb},pt:{style:wb},pr:{style:wb},pb:{style:wb},pl:{style:wb},px:{style:wb},py:{style:wb},padding:{style:wb},paddingTop:{style:wb},paddingRight:{style:wb},paddingBottom:{style:wb},paddingLeft:{style:wb},paddingX:{style:wb},paddingY:{style:wb},paddingInline:{style:wb},paddingInlineStart:{style:wb},paddingInlineEnd:{style:wb},paddingBlock:{style:wb},paddingBlockStart:{style:wb},paddingBlockEnd:{style:wb},m:{style:Cb},mt:{style:Cb},mr:{style:Cb},mb:{style:Cb},ml:{style:Cb},mx:{style:Cb},my:{style:Cb},margin:{style:Cb},marginTop:{style:Cb},marginRight:{style:Cb},marginBottom:{style:Cb},marginLeft:{style:Cb},marginX:{style:Cb},marginY:{style:Cb},marginInline:{style:Cb},marginInlineStart:{style:Cb},marginInlineEnd:{style:Cb},marginBlock:{style:Cb},marginBlockStart:{style:Cb},marginBlockEnd:{style:Cb},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:Gb},rowGap:{style:$b},columnGap:{style:Bb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Hb},maxWidth:{style:Ub},minWidth:{transform:Hb},height:{transform:Hb},maxHeight:{transform:Hb},minHeight:{transform:Hb},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Qb(){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=ub(r,l)||{};if(u)return u(o);return ab(o,t,(t=>{let r=cb(c,s,t);return t===r&&"string"==typeof t&&(r=cb(c,s,`${e}${"default"===t?"":lb(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:Zb;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=nb(s,e(r,o,i,a));else{const e=ab({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=nb(s,e):s[r]=t({sx:o,theme:i})}else s=nb(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 ev=Qb();function tv(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}ev.filterProps=["sx"];const rv=["breakpoints","palette","spacing","shape"];function nv(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Er(e,rv),l=tb(r),s=function(e=8){if(e.mui)return e;const t=yb({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=Zg({breakpoints:l,direction:"ltr",components:{},palette:hr({mode:"light"},n),spacing:s,shape:hr({},rb,i)},a);return u.applyStyles=tv,u=t.reduce(((e,t)=>Zg(e,t)),u),u.unstable_sxConfig=hr({},Zb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ev({sx:e,theme:this})},u}var ov=Object.freeze({__proto__:null,default:nv,private_createBreakpoints:tb,unstable_applyStyles:tv});function iv(e=null){const t=r.useContext(va);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const av=nv();function lv(e=av){return iv(e)}const sv=["sx"];function uv(e){const{sx:t}=e,r=Er(e,sv),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Zb;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Xg(r)?hr({},n,r):n}:hr({},n,t),hr({},o,{sx:i})}var cv=Object.freeze({__proto__:null,default:ev,extendSxProp:uv,unstable_createStyleFunctionSx:Qb,unstable_defaultSxConfig:Zb});const dv=e=>e,pv=(()=>{let e=dv;return{configure(t){e=t},generate:t=>e(t),reset(){e=dv}}})(),fv=["className","component"];const mv={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 hv(e,t,r="Mui"){const n=mv[t];return n?`${r}-${n}`:`${pv.generate(e)}-${t}`}function gv(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=hv(e,t,r)})),n}const bv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function vv(e){const t=`${e}`.match(bv);return t&&t[1]||""}function yv(e,t=""){return e.displayName||e.name||vv(e)||t}function xv(e,t,r){const n=yv(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Sv=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return yv(e,"Component");if("object"==typeof e)switch(e.$$typeof){case tl.ForwardRef:return xv(e,e.render,"ForwardRef");case tl.Memo:return xv(e,e.type,"memo");default:return}}},getFunctionName:vv});function Ev(e,t){const r=hr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=hr({},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]=hr({},i),Object.keys(o).forEach((e=>{r[n][e]=Ev(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Cv="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function wv(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Rv=Object.freeze({__proto__:null,default:wv});function Iv(e){if(e.type)return e;if("#"===e.charAt(0))return Iv(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(Ug(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(Ug(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Lv(e,t){return e=Iv(e),t=function(e,t=0,r=1){return wv(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 Mv(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Dv(e){return e&&e.ownerDocument||document}function Av(e){return Dv(e).defaultView||window}function Pv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function kv(e){const t=r.useRef(e);return Cv((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}function Ov(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Pv(e,t)}))}),e)}const Tv={};const _v=[];class qv{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new qv}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Nv(){const e=function(e,t){const n=r.useRef(Tv);return n.current===Tv&&(n.current=e(t)),n}(qv.create).current;return function(e){r.useEffect(e,_v)}(e.disposeEffect),e}let Fv=!0,jv=!1;const zv=new qv,Gv={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 Bv(e){e.metaKey||e.altKey||e.ctrlKey||(Fv=!0)}function $v(){Fv=!1}function Wv(){"hidden"===this.visibilityState&&jv&&(Fv=!0)}function Hv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Fv||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Gv[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Vv(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Bv,!0),t.addEventListener("mousedown",$v,!0),t.addEventListener("pointerdown",$v,!0),t.addEventListener("touchstart",$v,!0),t.addEventListener("visibilitychange",Wv,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Hv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(jv=!0,zv.start(100,(()=>{jv=!1})),t.current=!1,!0)},ref:e}}function Uv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Yv(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}function Kv(e){return"string"==typeof e}function Xv(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 Jv(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 Zv=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Qv(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Er(e,Zv),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=fl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=hr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=hr({},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=Xv(hr({},o,n)),l=Jv(n),s=Jv(o),u=t(a),c=fl(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=hr({},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=hr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(hr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Kv(e)?t:hr({},t,{ownerState:hr({},t.ownerState,r)})}(r,hr({},s,{ref:Ov(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function ey(e){var t;return parseInt(r.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const ty=r.createContext(null);function ry(){return r.useContext(ty)}var ny="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function oy(e){const{children:t,theme:n}=e,o=ry(),i=r.useMemo((()=>{const e=null===o?n:function(e,t){if("function"==typeof t)return t(e);return hr({},e,t)}(o,n);return null!=e&&(e[ny]=null!==o),e}),[n,o]);return Yr.jsx(ty.Provider,{value:i,children:t})}const iy=["value"],ay=r.createContext();function ly(e){let{value:t}=e,r=Er(e,iy);return Yr.jsx(ay.Provider,hr({value:null==t||t},r))}const sy=r.createContext(void 0);function uy({value:e,children:t}){return Yr.jsx(sy.Provider,{value:e,children:t})}function cy({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ev(o.defaultProps,n):o.styleOverrides||o.variants?n:Ev(o,n)}({props:e,name:t,theme:{components:r.useContext(sy)}})}const dy={};function py(e,t,n,o=!1){return r.useMemo((()=>{const r=e&&t[e]||t;if("function"==typeof n){const i=n(r),a=e?hr({},t,{[e]:i}):i;return o?()=>a:a}return hr({},t,e?{[e]:n}:n)}),[e,t,n,o])}function fy(e){const{children:t,theme:r,themeId:n}=e,o=iv(dy),i=ry()||dy,a=py(n,o,r),l=py(n,i,r,!0),s="rtl"===a.direction;return Yr.jsx(oy,{theme:l,children:Yr.jsx(va.Provider,{value:a,children:Yr.jsx(ly,{value:s,children:Yr.jsx(uy,{value:null==a?void 0:a.components,children:t})})})})}var my={},hy={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(hy);var gy=hy.exports,by=$(Yg),vy=$(Rv),yy=gy;Object.defineProperty(my,"__esModule",{value:!0});var xy=my.alpha=Oy;my.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=My(e),a=My(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Ay({type:"rgb",values:l})},my.colorChannel=void 0;var Sy=my.darken=Ty;my.decomposeColor=My,my.emphasize=qy;var Ey=my.getContrastRatio=function(e,t){const r=ky(e),n=ky(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};my.getLuminance=ky,my.hexToRgb=Ly,my.hslToRgb=Py;var Cy=my.lighten=_y;my.private_safeAlpha=function(e,t,r){try{return Oy(e,t)}catch(t){return e}},my.private_safeColorChannel=void 0,my.private_safeDarken=function(e,t,r){try{return Ty(e,t)}catch(t){return e}},my.private_safeEmphasize=function(e,t,r){try{return qy(e,t)}catch(t){return e}},my.private_safeLighten=function(e,t,r){try{return _y(e,t)}catch(t){return e}},my.recomposeColor=Ay,my.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=My(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 wy=yy(by),Ry=yy(vy);function Iy(e,t=0,r=1){return(0,Ry.default)(e,t,r)}function Ly(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 My(e){if(e.type)return e;if("#"===e.charAt(0))return My(Ly(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,wy.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,wy.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Dy=e=>{const t=My(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};my.colorChannel=Dy;function Ay(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 Py(e){e=My(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])),Ay({type:l,values:s})}function ky(e){let t="hsl"===(e=My(e)).type||"hsla"===e.type?My(Py(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 Oy(e,t){return e=My(e),t=Iy(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ay(e)}function Ty(e,t){if(e=My(e),t=Iy(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 Ay(e)}function _y(e,t){if(e=My(e),t=Iy(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 Ay(e)}function qy(e,t=.15){return ky(e)>.5?Ty(e,t):_y(e,t)}my.private_safeColorChannel=(e,t)=>{try{return Dy(e)}catch(t){return e}};const Ny={black:"#000",white:"#fff"},Fy={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"},jy="#f3e5f5",zy="#ce93d8",Gy="#ba68c8",By="#ab47bc",$y="#9c27b0",Wy="#7b1fa2",Hy="#e57373",Vy="#ef5350",Uy="#f44336",Yy="#d32f2f",Ky="#c62828",Xy="#ffb74d",Jy="#ffa726",Zy="#ff9800",Qy="#f57c00",ex="#e65100",tx="#e3f2fd",rx="#90caf9",nx="#42a5f5",ox="#1976d2",ix="#1565c0",ax="#4fc3f7",lx="#29b6f6",sx="#03a9f4",ux="#0288d1",cx="#01579b",dx="#81c784",px="#66bb6a",fx="#4caf50",mx="#388e3c",hx="#2e7d32",gx="#1b5e20",bx=["mode","contrastThreshold","tonalOffset"],vx={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:Ny.white,default:Ny.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}},yx={text:{primary:Ny.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:Ny.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 xx(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=Cy(e.main,o):"dark"===t&&(e.dark=Sy(e.main,i)))}function Sx(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Er(e,bx),i=e.primary||function(e="light"){return"dark"===e?{main:rx,light:tx,dark:nx}:{main:ox,light:nx,dark:ix}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:zy,light:jy,dark:By}:{main:$y,light:Gy,dark:Wy}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Uy,light:Hy,dark:Yy}:{main:Yy,light:Vy,dark:Ky}}(t),s=e.info||function(e="light"){return"dark"===e?{main:lx,light:ax,dark:ux}:{main:ux,light:sx,dark:cx}}(t),u=e.success||function(e="light"){return"dark"===e?{main:px,light:dx,dark:mx}:{main:hx,light:fx,dark:gx}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Jy,light:Xy,dark:Qy}:{main:"#ed6c02",light:Zy,dark:ex}}(t);function d(e){return Ey(e,yx.text.primary)>=r?yx.text.primary:vx.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=hr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Ug(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Ug(12,t?` (${t})`:"",JSON.stringify(e.main)));return xx(e,"light",o,n),xx(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:yx,light:vx};return Zg(hr({common:hr({},Ny),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:Fy,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Ex=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Cx={textTransform:"uppercase"},wx='"Roboto", "Helvetica", "Arial", sans-serif';function Rx(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=wx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Er(r,Ex),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return hr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===wx?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Cx),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Cx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zg(hr({htmlFontSize:u,pxToRem:m,fontFamily:n,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(",")}const Lx=["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)],Mx=["duration","easing","delay"],Dx={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)"},Ax={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Px(e){return`${Math.round(e)}ms`}function kx(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ox(e){const t=hr({},Dx,e.easing),r=hr({},Ax,e.duration);return hr({getAutoHeightDuration:kx,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Er(n,Mx),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Px(o)} ${i} ${"string"==typeof a?a:Px(a)}`)).join(",")}},e,{easing:t,duration:r})}const Tx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},_x=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function qx(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Er(e,_x);if(e.vars)throw new Error(Ug(18));const l=Sx(n),s=nv(e);let u=Zg(s,{mixins:(c=s.breakpoints,d=r,hr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Lx.slice(),typography:Rx(l,i),transitions:Ox(o),zIndex:hr({},Tx)});var c,d;return u=Zg(u,a),u=t.reduce(((e,t)=>Zg(e,t)),u),u.unstable_sxConfig=hr({},Zb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ev({sx:e,theme:this})},u}const Nx=qx();function Fx(){const e=lv(Nx);return e[Kg]||e}var jx,zx={},Gx={exports:{}};var Bx,$x={exports:{}};var Wx=$(Ta),Hx=$(Qg),Vx=$(sb),Ux=$(Sv),Yx=$(ov),Kx=$(cv),Xx=gy;Object.defineProperty(zx,"__esModule",{value:!0});var Jx=zx.default=function(e={}){const{themeId:t,defaultTheme:r=uS,rootShouldForwardProp:n=sS,slotShouldForwardProp:o=sS}=e,i=e=>(0,nS.default)((0,Zx.default)({},e,{theme:dS((0,Zx.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,eS.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=pS(cS(s))}=a,p=(0,Qx.default)(a,aS),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=sS;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,eS.default)(e,(0,Zx.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,tS.isPlainObject)(e)?n=>fS(e,(0,Zx.default)({},n,{theme:dS({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=dS((0,Zx.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]=fS(r,(0,Zx.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=dS((0,Zx.default)({},e,{defaultTheme:r,themeId:t}));return fS({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,Zx.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};zx.shouldForwardProp=sS,zx.systemDefaultTheme=void 0;var Zx=Xx((jx||(jx=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Gx)),Gx.exports)),Qx=Xx((Bx||(Bx=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}($x)),$x.exports)),eS=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=lS(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}(Wx),tS=Hx;Xx(Vx),Xx(Ux);var rS=Xx(Yx),nS=Xx(Kx);const oS=["ownerState"],iS=["variants"],aS=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function lS(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(lS=function(e){return e?r:t})(e)}function sS(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const uS=zx.systemDefaultTheme=(0,rS.default)(),cS=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function dS({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function pS(e){return e?(t,r)=>r[e]:null}function fS(e,t){let{ownerState:r}=t,n=(0,Qx.default)(t,oS);const o="function"==typeof e?e((0,Zx.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>fS(e,(0,Zx.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Qx.default)(o,iS);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Zx.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,Zx.default)({ownerState:r},n,r)):e.style))})),t}return o}const mS=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,hS=Jx({themeId:Kg,defaultTheme:Nx,rootShouldForwardProp:mS}),gS=["theme"];function bS(e){let{theme:t}=e,r=Er(e,gS);const n=t[Kg];return Yr.jsx(fy,hr({},r,{themeId:n?Kg:void 0,theme:n||t}))}const vS=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},yS={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},xS={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},SS=qu("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...yS},"&::-moz-range-track":{...yS},"&::-ms-track":{...yS},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...xS},"&::-moz-range-thumb":{...xS},"&::-ms-thumb":{...xS},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),ES=({columnWidth:e,keyValue:r,isLastColumn:n,isPivot:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:d,accessibilityRelatedArgs:p,direction:f="ltr"})=>{const m=Vg({translator:p.translator}),h=c({initWidth:e,columnWidth:e,initX:0}),g=n?0:1,b=o&&!d,v={left:"rtl"===f?"0px":b?h.current.columnWidth-g:"100%",right:"rtl"===f?"100%":"0px"},y=t=>{h.current={initWidth:e,columnWidth:e,initX:null!=t?t:h.current.initX}};Wg((()=>{b&&y()}),[e]);const x=e=>{const t=Math.max(e,Bt.PixelsMin);h.current.columnWidth=t,a(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:$t.Pixels,pixels:h.current.columnWidth};l(e)}else null==u||u(!1)},E=e=>{const t="rtl"===f?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;x(t)},C=e=>{Yh(e),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",C),S()},w=e=>{const t="rtl"===f?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;x(t)},R=e=>{Yh(e),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",R),S()},I=!o&&s?e=>{if(e.key===zt.Left||e.key===zt.Right){Yh(e);const t=5,r=e.key===zt.Left?t:-5,n="rtl"===f?r:-r;x(h.current.columnWidth+n)}else e.key===zt.Space||e.key===zt.Enter?(Yh(e),s(e),S()):e.key===zt.Esc&&(Yh(e),s(e),x(h.current.initWidth))}:void 0,L=m.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(p.columnLabel)]);return t.createElement(SS,{style:v,key:r,hoverColor:i,isLastColumn:n,className:Gt,"data-testid":Gt,onMouseDown:e=>{Yh(e),document.addEventListener("mousemove",E),document.addEventListener("mouseup",C),null==u||u(!0),y(e.clientX)},onDoubleClick:()=>{l({type:$t.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Yh(e),document.addEventListener("touchmove",w),document.addEventListener("touchend",R),null==u||u(!0),y(e.touches[0].clientX))},onKeyDown:I,onBlur:s,onFocus:()=>{y()},type:"range",tabIndex:-1,max:Bt.PixelsMax,"aria-label":L,"aria-valuemin":Bt.PixelsMin,"aria-valuemax":Bt.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:f})};function CS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wS=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){CS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),RS=d(wS);function IS(){return IS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IS.apply(null,arguments)}const LS=qu(Xd,{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"}))),MS=qu(RS,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),DS=qu(Sf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),AS=qu(bp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),PS=qu(If)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),kS=qu(If,{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=qu("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),TS=qu("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),_S=qu(td)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),qS=qu(Up,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})));function NS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const FS=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){NS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),jS=d(FS);let zS={};const GS=({autoFocus:e,id:r,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:l,isSubMenu:s,isActive:d,handleHeadCellMenuKeyDown:f,direction:m,isPagination:h})=>{const[g,b]=u(!1),v=c(null),y=p((e=>{e.stopPropagation(),b(!1)}),[b]);return t.createElement(t.Fragment,null,t.createElement(kS,{ref:l?v:null,key:r,"data-testid":`menu-item-${r}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),zS={}),null!=l&&l.length&&(b(!0),zS[o]=b))},disabled:!a,autoFocus:e,isSubMenu:!!s,isActive:!!d,onKeyDown:f},d?t.createElement(OS,{direction:m,isPagination:h}):null,t.createElement(TS,null,t.createElement(qS,{direction:m,isPagination:h},t.createElement(i,null)),t.createElement(_S,{variant:"body2"},o)),null!=l&&l.length?t.createElement(jS,null):null),null!=l&&l.length?t.createElement(WS,{isSubMenu:!0,open:g,anchorEl:v.current,onClose:y,menuGroups:(x=l,S=zS,x.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(S).forEach((([,e])=>{e(!1)})),await e(t)}}:{}})))})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:f,direction:m,isPagination:h}):null);var x,S},BS=({menuGroup:e,isSubMenu:r,handleHeadCellMenuKeyDown:n,direction:o,isPagination:i})=>e.map((e=>[[e.groupHeading&&t.createElement(PS,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>t.createElement(GS,IS({key:e.id},e,{isSubMenu:r,handleHeadCellMenuKeyDown:n,direction:o,isPagination:i}))))].filter(Boolean)])),$S={appear:0,enter:0,exit:0},WS=({anchorEl:e,open:r,onClose:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s,direction:u,isPagination:c})=>o.length?t.createElement(DS,IS({className:"nebula-table-utils-head-menu",open:r,anchorEl:e,onClose:n,transitionDuration:$S,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{},{dir:u}),(({itemGroups:e,isSubMenu:r,handleHeadCellMenuKeyDown:n,direction:o,isPagination:i})=>e.map(((a,l)=>[BS({menuGroup:a,isSubMenu:r,handleHeadCellMenuKeyDown:n,direction:o,isPagination:i}),l<e.length-1?t.createElement(AS,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s,direction:u,isPagination:c})):null,HS=(e,t)=>e.some((e=>t[e]>0)),VS={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},US=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=u(null),[a,l]=u(VS);return Wg((()=>{e||(l(VS),i(null))}),[e]),f((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{var e,u,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),p=await n.createSessionObject(d),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo)&&void 0!==e?e:{};o=null===(c=f.qInfo)||void 0===c?void 0:c.qId,a?s():(i(p),m&&l((e=>({canSelectAll:HS(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:HS(["qSelected"],e),canSelectPossible:HS(["qOption"],e),canSelectAlternative:HS(["qAlternative"],e),canSelectExcluded:HS(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function YS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KS=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){YS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),XS=d(KS);function JS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ZS=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){JS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),QS=d(ZS);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=(e,r)=>t.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:r},e),t.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"})),rE=d(tE);function nE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){nE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),iE=d(oE);function aE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){aE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.createElement("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})),sE=d(lE);function uE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const cE=(e,r)=>t.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){uE(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:r},e),t.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"})),dE=d(cE);function pE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){pE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),mE=d(fE);function hE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const gE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.createElement("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})),bE=d(gE);function vE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yE=(e,r)=>t.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){vE(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:r},e),t.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"})),xE=d(yE);function SE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const EE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){SE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),CE=d(EE);function wE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const RE=(e,r)=>t.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){wE(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:r},e),t.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"})),IE=d(RE);function LE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ME=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){LE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),DE=d(ME);function AE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const PE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){AE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),kE=d(PE);function OE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const TE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){OE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),_E=d(TE);let qE=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const NE="/qListObjectDef",FE=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[qE.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:XS,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:iE,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:bE,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:sE,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[qE.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:xE,enabled:!0}]}]),r[qE.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:_E,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(NE))},icon:CE,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(NE))},icon:kE,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(NE))},icon:IE,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectExcluded(NE))},icon:DE,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clearSelections(NE))},icon:QS,enabled:s.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:mE,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:dE,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[qE.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:rE,enabled:!0}]}]),f},jE=({open:e,setOpen:r,anchorRef:n,headerData:o,translator:i,interactions:a,handleHeadCellMenuKeyDown:l,menuAvailabilityFlags:s,shouldShowMenuIcon:u=!0,sortRelatedArgs:c,searchRelatedArgs:d,selectionRelatedArgs:f,adjustHeaderSizeRelatedArgs:m,expandOrCollapseArgs:h,env:g,model:b,direction:v="ltr",isPagination:y})=>{var x;const S=Vg({translator:i}),{qLibraryId:E,fieldId:C,headTextAlign:w}=o,R=null==f?void 0:f.app,{fieldInstance:I,selectionActionsEnabledStatus:L}=US({open:e,headerData:o,app:R,qStateName:null==f?void 0:f.qStateName});let M=null;if(g.flags.isEnabled("CLIENT_IM_7107_TABLE_MENU_CYCLIC_DIM")&&b&&"setActiveField"in b&&void 0!==o.dimensionInfoIndex){const e=o.dimensionInfoIndex;M=async t=>{try{await b.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const D=p((()=>{const e=E?{qLibraryId:E,type:"dimension"}:C;if(null!=d&&d.embed){const{embed:t,listboxRef:r}=d;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===v?"right":"left"},sortCriteria:d.sortCriteria,stateName:null==f?void 0:f.qStateName,direction:v})}}),[E,C,d,null==f?void 0:f.qStateName,v]),A=p((e=>{e.stopPropagation(),r(!1)}),[r]);return a.active?t.createElement(LS,{rightAligned:"right"===w,shouldShowMenuIcon:u,className:"nebula-table-utils-head-menu-wrapper"},u?t.createElement(MS,{height:Nt,className:Ft,"data-testid":Ft,isInteractionsActive:null!==(x=a.active)&&void 0!==x&&x},t.createElement(RS,null)):null,t.createElement(WS,{open:e,anchorEl:n.current,onClose:A,menuGroups:FE({headerData:o,translator:S,menuAvailabilityFlags:s,setOpen:r,...c,embedListbox:D,interactions:a,fieldInstance:I,selectionActionsEnabledStatus:L,anchorRef:n,setFocusOnColumnAdjuster:null==m?void 0:m.setFocusOnColumnAdjuster,setActiveFieldCallback:M,expandOrCollapseArgs:h}),handleHeadCellMenuKeyDown:l,direction:v,isPagination:y})):null},zE=e=>e.isDark?{background:e.color,borderColor:fm.DARK_MODE_BORDER,color:fm.DARK_MODE_TEXT,disabledColor:fm.DARK_MODE_DISABLED,iconColor:fm.DARK_MODE_TEXT}:{background:e.color,borderColor:fm.BORDER_MEDIUM,color:fm.TEXT,disabledColor:fm.DISABLED},GE=qu(Xd,{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}`}))),BE=qu(am,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),$E=qu(ap,{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)}))),WE=qu(td)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),HE=({children:e,footerContainer:r,interactions:n,theme:o,paginationNeeded:i=!0})=>{const a=s((()=>zE(o.background)),[o]);if(!n.active)return null;const l=i?t.createElement(GE,{footerStyle:a},e):null;return r?F.createPortal(e,r):l},VE=m({}),UE=()=>n(VE),YE=({children:e,direction:r,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:f,theme:m,interactions:h,rect:g,layout:b})=>{const v=(e=>!e.enabled||e.active)(p)?0:-1,y=s((()=>zE(m.background)),[m]),x=i?i.getBoundingClientRect().width:g.width,S=Vg({translator:f}),E=s((()=>({direction:r,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:S,theme:m,interactions:h,rect:g,layout:b,footerStyle:y,tabIndex:v,width:x})),[r,n,o,i,a,l,u,c,d,p,S,m,h,g,b,y,v,x]);return t.createElement(VE.Provider,{value:E},e)};let KE=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),XE=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 JE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ZE=(e,r)=>t.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){JE(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:r},e),t.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),QE=d(ZE);function eC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tC=(e,r)=>t.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){eC(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:r},e),t.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),rC=d(tC);function nC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oC=(e,r)=>t.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){nC(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:r},e),t.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),iC=d(oC),aC={FirstPage:rC,PreviousPage:QE,NextPage:jS,LastPage:iC,FirstPageRTL:iC,PreviousPageRTL:jS,NextPageRTL:QE,LastPageRTL:rC},lC=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=UE(),u=r.concat("rtl"===n?"RTL":""),c=aC[u];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?void 0:()=>{i(t)}},IconComponent:c}},sC=()=>{const{pageInfo:e,width:r}=UE(),n=0===e.page,{IconComponent:o,styledProps:i}=lC({type:KE.FirstPage,disabledCondition:n,pageNumber:0});return r<=XE.FirstPage?null:t.createElement($E,i,t.createElement(o,{height:Nt}))},uC=(e,t,r=!1)=>{r&&e.key===zt.Tab&&!e.shiftKey&&(Yh(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))},cC=()=>{const{pageInfo:e,keyboard:r,totalPages:n,isSelectionMode:o,width:i}=UE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=lC({type:KE.LastPage,disabledCondition:a,pageNumber:n-1}),u=r.enabled?e=>{uC(e,r,o)}:void 0;return i<=XE.LastPage?null:t.createElement($E,IS({},s,{onKeyDown:u}),t.createElement(l,{height:Nt}))},dC=()=>{const{pageInfo:e,keyboard:r,totalPages:n,isSelectionMode:o,width:i}=UE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=lC({type:KE.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>XE.FirstPage&&i>XE.LastPage)&&r.enabled?e=>{uC(e,r,o)}:void 0;return t.createElement($E,IS({},s,{onKeyDown:u}),t.createElement(l,{height:Nt}))},pC=()=>{const{pageInfo:e}=UE(),r=0===e.page,{IconComponent:n,styledProps:o}=lC({type:KE.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return t.createElement($E,o,t.createElement(n,{height:Nt}))},fC=()=>{const{translator:e,width:r,pageInfo:n,totalRowCount:o}=UE(),{page:i,rowsPerPage:a}=n;if(r<=XE.DisplayedRowsLabel)return null;const l=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,o)}`,o.toString()]);return t.createElement(WE,{variant:"caption"},l)},mC=({name:e,value:r,options:n,handleChange:o})=>{const{layout:i,footerStyle:a,translator:l,tabIndex:s}=UE(),u=i.qInfo.qId,c=l.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return t.createElement(t.Fragment,null,t.createElement(WE,{variant:"caption",id:p},c,":"),t.createElement(BE,{footerStyle:a,size:"small",native:!0,value:r,onChange:o,inputProps:f},n))},hC=()=>{var e;const{pageInfo:r,isSelectionMode:n,totalColumnCount:o,width:i,handleChangeRowsPerPage:a}=UE();if(!(!(null===(e=r.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&i>XE.RowsPerPage&&o<=100)||void 0===r.rowsPerPageOptions)return null;const l=t.createElement(t.Fragment,null,r.rowsPerPageOptions.map((e=>t.createElement("option",{key:e,value:e},e))));return t.createElement(mC,{name:"RowsPerPage",value:r.rowsPerPage,options:l,handleChange:e=>{null==a||a(+e.target.value)}})},gC=1e3,bC="…",vC=({totalPages:e,page:r})=>{const n=Math.min(e,gC),o=n<e&&r>500,i=o?Math.min(500+r,e):n,a=o?Math.max(0,i-gC):0,l=Array.from(Array(n).keys()).map((e=>{const r=e+a;return t.createElement("option",{key:r,value:r},r+1)}));return a>0&&l.unshift(t.createElement("option",{key:"startMoreOptions",value:bC,disabled:!0},bC)),i<e-1&&l.push(t.createElement("option",{key:"endMoreOptions",value:bC,disabled:!0},bC)),t.createElement(t.Fragment,null,l)},yC=()=>{const{pageInfo:e,width:r,totalPages:n,handleChangePage:o}=UE(),{page:i}=e;if(r<=XE.SelectPage)return null;const a=t.createElement(vC,{totalPages:n,page:i});return t.createElement(mC,{name:"SelectPage",value:i,options:a,handleChange:e=>{o(+e.target.value)}})};var xC=h((e=>t.createElement(YE,e,t.createElement(hC,null),t.createElement(yC,null),t.createElement(fC,null),t.createElement(sC,null),t.createElement(pC,null),t.createElement(dC,null),t.createElement(cC,null))));const SC=e=>t.createElement(HE,e,t.createElement(xC,e)),EC=m({}),CC=()=>n(EC),wC=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,children:o})=>{const i=s((()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n})),[e,t,r,n]);return Yr.jsx(EC.Provider,{value:i,children:o})},RC=m({}),IC=()=>n(RC),LC=({app:e,model:t,theme:r,embed:n,keyboard:o,translator:i,interactions:a,env:l,children:u})=>{const c=s((()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:o,env:l,translator:i})),[e,a,t,n,r,o,l,i]);return Yr.jsx(RC.Provider,{value:c,children:u})},MC=m({}),DC=()=>n(MC),AC=({children:e,...t})=>Yr.jsx(MC.Provider,{value:t,children:e}),PC=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:r}=IC(),{layoutService:n}=DC(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:og;return n.hasData?n.hasLimitedData?{text:r.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:r.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:Yr.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:Yr.jsx("span",{style:{...fg,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},kC="/qHyperCubeDef",OC=-1,TC="PSEUDO-DIM",_C=[];for(let e=0;e<256;++e)_C.push((e+256).toString(16).slice(1));let qC;const NC=new Uint8Array(16);function FC(){if(!qC){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");qC=crypto.getRandomValues.bind(crypto)}return qC(NC)}var jC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function zC(e,t,r){if(jC.randomUUID&&!e)return jC.randomUUID();const n=(e=e||{}).random||(e.rng||FC)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(_C[e[t+0]]+_C[e[t+1]]+_C[e[t+2]]+_C[e[t+3]]+"-"+_C[e[t+4]]+_C[e[t+5]]+"-"+_C[e[t+6]]+_C[e[t+7]]+"-"+_C[e[t+8]]+_C[e[t+9]]+"-"+_C[e[t+10]]+_C[e[t+11]]+_C[e[t+12]]+_C[e[t+13]]+_C[e[t+14]]+_C[e[t+15]]).toLowerCase()}(n)}const GC=()=>{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:zC()},BC=e=>e===OC?TC:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:GC()})(e),$C=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===OC?r.columnWidthLocation=rr.Measures:r.isLeftDimension?r.columnWidthLocation=rr.Dimension:t.at(-1)===OC?r.columnWidthLocation=rr.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=rr.Pivot))},WC=(e,t,r,n)=>{var o;const i=BC(r),a=e.getDimensionInfoIndex(r),l=e.isLeftDimension(a);return r===OC?{id:i,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:a,canBeResized:!1,isLeftDimension:l,isLastDimension:n,columnWidthLocation:rr.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:i,colIdx:0,label:r.qFallbackTitle,qReverseSort:r.qReverseSort,sortDirection:r.qSortIndicator&&"N"!==r.qSortIndicator?r.qSortIndicator:"A",qLibraryId:r.qLibraryId,fieldId:r.qGroupFieldDefs[r.qGroupPos],isLocked:null!==(o=r.qLocked)&&void 0!==o&&o,columnWidth:r.columnWidth,qApprMaxGlyphCount:r.qApprMaxGlyphCount,isDim:!0,isCyclic:r.qGrouping===Vt.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:a,canBeResized:!1,isLeftDimension:l,isLastDimension:n,columnWidthLocation:rr.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},HC=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let o=n;var i;r.length>0&&(o=(i=n).at(-1)===OC?i.slice(0,-1):i);const a=o.length+(r.length?1:0),l=Math.max(1,r.length),s=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,l);return r.forEach(((r,n,o)=>{const i=n===o.length-1;s[a-1][n]=WC(e,t,r,i)})),o.forEach(((r,n,o)=>{const i=n===o.length-1;s[n][l-1]=WC(e,t,r,i)})),s},VC=(e,t,r,n)=>{var o,i;const a=((e,t,r,n)=>{let o;var i;return o=0===r.length||r.includes(OC)?HC({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(HC({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&(null===(i=o.at(-1))||void 0===i||i.forEach(((t,r)=>{Array.isArray(t)?t.forEach(((t,r)=>{$C({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})):$C({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),o})(e,t,r,n);return{data:a,size:{x:null!==(o=null===(i=a[0])||void 0===i?void 0:i.length)&&void 0!==o?o:0,y:a.length}}};function UC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function YC(e,t,r){return t=ZC(t),function(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)}(e,ew()?Reflect.construct(t,r||[],ZC(e).constructor):t.apply(e,r))}function KC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XC(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,nw(n.key),n)}}function JC(e,t,r){return t&&XC(e.prototype,t),r&&XC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZC(e){return ZC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZC(e)}function QC(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&&tw(e,t)}function ew(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ew=function(){return!!e})()}function tw(e,t){return tw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tw(e,t)}function rw(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);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){if("string"==typeof e)return UC(e,t);var r={}.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)?UC(e,t):void 0}}(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 nw(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function ow(e){return ow="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},ow(e)}var iw={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:aw(e),value:aw(t),useEqualSign:r}}(r,o,i))}})),t}};function aw(e){try{return decodeURIComponent(e)}catch(t){return e}}function lw(e){if(!(this instanceof lw))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 iw.fromSearchString(t.search)}}})}function sw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2B/gi,"+").replace(/%2C/gi,",").replace(/%3B/gi,";")}lw.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},lw.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=sw((t=e[n]).key),t.value?r+="=".concat(sw(t.value)):r+=t.useEqualSign?"=":"";return r};var uw,cw=function(){return JC((function e(t){KC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{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}}])}(),dw=function(){return JC((function e(){KC(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new cw(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),pw=function(e){return e>=0&&e<=1114111},fw=function(e){return e.match(/[\s]/)},mw=function(e){function t(){return KC(this,t),YC(this,t,arguments)}return QC(t,e),JC(t,[{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())&&!fw(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return pw(a)?String.fromCharCode(a):"�"}}])}(dw),hw=function(){function e(t,r){KC(this,e),this._key=t,this._value=r}return JC(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}}])}(),gw=function(){function e(){KC(this,e)}return JC(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 hw.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return hw.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||hw.newInstanceIfNeeded(e,t,this._value)}}])}(),bw=function(){return JC((function e(){KC(this,e),this.clear()}),[{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 gw);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),vw=function(){var e,t,r,n=[],o=[],i=new bw;for(e in n["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["¬in"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),yw=function(e){function t(){return KC(this,t),YC(this,t,arguments)}return QC(t,e),JC(t,[{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,vw.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=vw.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)&&pw(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)&&pw(n)?String.fromCharCode(n):null}}])}(dw),xw=function(e){function t(){return KC(this,t),YC(this,t,arguments)}return QC(t,e),JC(t,[{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),pw(o))?String.fromCharCode(o):(e.reset(),null)}}])}(dw),Sw=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(uw=document.createElement("div"));var Ew=Array.prototype.indexOf,Cw=[",",".","_"," "],ww=[",",".","-","_"," "],Rw={width:["%"],height:["%"]},Iw={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Lw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Iw.image,"background-color":Iw.color,"border-color":Iw.color,"border-image":Iw.image,color:Iw.color,icon:Iw.image,"list-style-image":Iw.image,"outline-color":Iw.color},Mw={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Dw(e,t,r){var n;if(t){if(Ew)return Ew.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 Aw(e){if(null==e)return"";var t,r=document.createTextNode(e);return uw.appendChild(r),t=uw.innerHTML,uw.removeChild(r),t}function Pw(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=Ow(e).toLowerCase(),t=Ow(t),Dw(e,Mw.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<Mw.attr_val;i++)if(t.toLowerCase().match(Mw.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=Rw[e])||(n=ww),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]/)&&Dw(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function kw(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=Ow(e).toLowerCase(),t=Ow(t),Dw(e,Mw.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<Mw.css_val.length;n++)if(t.toLowerCase().indexOf(Mw.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Lw[e])||(o=Iw.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]/)&&Dw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Ow(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new yw,new xw,new mw];!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 Tw=[],_w=0;_w<255;_w++)Tw[_w]=_w>=48&&_w<=57||_w>=65&&_w<=90||_w>=97&&_w<=122?null:_w.toString(16);var qw=function(e){return Aw(e.unsafe)},Nw=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]=kw(t,r[t],!0),i+=kw(t,r[t],!0),o[t]=n[t]);return e.map?o:i},Fw=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]=Pw(i,t[i],!0),o+=Pw(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function jw(e,t){throw new Error(t)}var zw={canonicalize:Ow,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===ow(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?qw(e):"css"===e.context?(null!=e.map&&"object"!==ow(e.map)&&jw(this,"Invalid parameter type"),Nw(e)):"attr"===e.context?(null!=e.map&&"object"!==ow(e.map)&&jw(this,"Invalid parameter type"),Fw(e)):void jw(this,"Invalid parameter type")},encodeForAttr:Pw,encodeForAttr2:function(e){return Pw("nonsens",e,!0)},encodeForCSS:kw,encodeForHref:function(e){Ow(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new lw(e),r=lw.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+lw.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=Cw),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Dw(o,t)>=0||null==Tw[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:Aw,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=Ow(t).toLowerCase():jw(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=rw(null!==(t=Sw.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},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const Gw=(e,t)=>{var r;return null===(r=t.qAttrExps)||void 0===r||null===(r=r.qValues)||void 0===r?void 0:r[e]},Bw=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"}}},$w=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i})=>n&&t&&!t.toLowerCase().includes("javascript:")&&zw.isSafeDataURL(t)?{type:Ut.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Bw(n),labelStructure:o,imageBox:i}:{type:Ut.Text,url:void 0,text:e,labelStructure:o},Ww=(e,t,r,n)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:Ut.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),l=i?r.qYMin:e.qMiniChart.qMin,s=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(l),Math.abs(s));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,l),maxY:Math.max(0,s)}:{minY:l,maxY:s}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:Ut.MiniChart,text:n,miniChart:a}},Hw=(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)===Yt.Attribute||null==r?void 0:r.urlLabel},Vw=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Ut.Link,url:zw.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:Ut.Text,url:void 0,text:t,labelStructure:e}}},Uw=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:l=e=>e.qText})=>{var s,u,c,d,p,f;const m=Kt(t),h=l(e);return m!==Ut.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(s=n.anything.sense)&&void 0!==s&&null!==(u=s.isUnsupportedFeature)&&void 0!==u&&u.call(s,"tableImages")?m===Ut.Link?((e,t,r,n,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===Yt.Attribute){var a;const i=Hw(null!==(a=r.url)&&void 0!==a?a:-1,e,t);return Vw({labelStructure:n,text:o||i||"",url:i})}if(i===Yt.Dimension){var l,s;const i=Hw(null!==(l=r.urlLabel)&&void 0!==l?l:-1,e,t)||o;return n&&(n.maskedValue=i),Vw({text:i,labelStructure:n,url:null!==(s=null==n?void 0:n.originalValue)&&void 0!==s?s:o})}return{type:Ut.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,h):m!==Ut.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(c=n.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"tableIndicators")?m!==Ut.MiniChart||!n.flags.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")||null!==(p=n.anything.sense)&&void 0!==p&&null!==(f=p.isUnsupportedFeature)&&void 0!==f&&f.call(p,"qMiniChartDef")?{type:Ut.Text,url:void 0,text:h,labelStructure:a}:Ww(e,t,i,h):((e,t,r)=>{const{indicator:n}=null!=e?e:{};return{type:Ut.Indicator,url:void 0,text:r,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:t}})(t,o,h):((e,t,r,n,o)=>{const{imageSize:i,imagePosition:a,imageSetting:l,imageLabel:s,imageBox:u}=null!=t?t:{};if("url"===l){var c,d;const t=null===(c=Gw(null!==(d=r.imageUrl)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText;return o&&(o.maskedValue=null!=t?t:""),$w({text:n,url:t,imageSize:i,imagePosition:a,labelStructure:o,imageBox:u})}if("label"===l){var p,f,m;const t=o?o.originalValue:n;if(-1===r.imageLabel)return $w({text:s||t||"",url:t,imageSize:i,imagePosition:a,labelStructure:o,imageBox:u});const l=null!==(p=null===(f=Gw(null!==(m=r.imageLabel)&&void 0!==m?m:-1,e))||void 0===f?void 0:f.qText)&&void 0!==p?p:n;return $w({text:l,url:t,imageSize:i,imagePosition:a,labelStructure:o,imageBox:u})}return{type:Ut.Text,url:void 0,labelStructure:o,text:n}})(e,t,r,h,a)},Yw=(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?Uh(s):null,c=l?Uh(l):null,d=((e,t)=>e||!t?null:$h(t))(c,u);return{color:null!=d?d:c,background:u}},Kw=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:Kw(e,t)),e),Xw=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:ag-n;let l=e.qUp+e.qDown;if(o&&0===r){const r=(t+e.qUp)%i.rowsPerPage;l=e.qDown+r}return Math.min(a,Kw(l,e))},Jw=(e,t,r)=>{if(e!==OC){if(t){const t=Kt(e.representation);return null!=r&&r.isLinksSupported&&t===Ut.Link||null!=r&&r.isImagesSupported&&t===Ut.Image?e.representation:{type:Ut.Text}}return e.representation}},Zw=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentModeFeatures:d,indentLevel:p,labelStructure:f,env:m,pageInfo:h})=>{const g=(!c||!u)&&"P"===e.qType;let b=e.qText;if(u&&c&&f){const{originalValue:e,delimeter:t,suffix:r}=f;b=`${e} ${!r||!e&&r?"":t} ${r}`.trim()}const v={id:GC(),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:Xw(e,o,i,n,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:"T"===e.qType||!(null==t||!t.isTotal),isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:g,expressionColor:Yw(s,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:g?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:Uw({cell:{...e,qText:b},representationProperties:Jw(l,c,d),attrExprInfoIndex:s,env:m,labelStructure:f}),...void 0!==p&&{indentLevel:p}};return t&&(t.children[v.mainAxisPageCoord-t.mainAxisPageCoord]=v),v},Qw=(e,t,r,n,o,i,a,l)=>{const{isIndentModeEnabled:s,indentModeFeatures:u}=o;if(!t.length)return e;let c=0;return function t(d,p,f,m=0,h=-1){e[m]||(e[m]={}),s&&h++;const g=o.leftDimensionInfoIndexes.indexOf(OC);f.forEach(((f,b)=>{var v,y;const x={originalValue:null!==(v=f.qText)&&void 0!==v?v:"",maskedValue:"",delimeter:"-",suffix:""};c+=0===b?0:1;const S=r.qTop-n.page*n.rowsPerPage,E=Math.max(0,S+c-f.qUp),C=r.qTop+c-f.qUp;if(s){var w,R;if(o.hasPseudoDimOnLeft&&h<=g)if(x.originalValue=null!==(w=f.qText)&&void 0!==w?w:"",x.maskedValue=null!==(R=f.qText)&&void 0!==R?R:"","N"===f.qType||"U"===f.qType||"T"===f.qType)"U"===f.qType&&(x.originalValue=o.getNullValueText()),h<g&&(x.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===f.qType){var I,L,M,D,A,P,k,O;x.originalValue=null!==(I=null===(L=p||d)||void 0===L||null===(L=L.representation.labelStructure)||void 0===L?void 0:L.originalValue)&&void 0!==I?I:"",x.maskedValue=null!==(M=null===(D=p||d)||void 0===D||null===(D=D.representation.labelStructure)||void 0===D?void 0:D.originalValue)&&void 0!==M?M:"",x.suffix=null!==(A=f.qText)&&void 0!==A?A:"";const e=f.qSubNodes;f={...null===(P=p||d)||void 0===P?void 0:P.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},h=null!==(k=null===(O=p||d)||void 0===O?void 0:O.indentLevel)&&void 0!==k?k:0}"U"===f.qType&&(x.originalValue=o.getNullValueText())}let T=m;s&&(T=g>=1&&h>=g?h+1:h,0===h&&0===g&&0===f.qSubNodes.length&&(T=0));const _=null===(y=e.at(m))||void 0===y?void 0:y[E],q=s&&void 0===(null==_?void 0:_.ref.qText)||!_?Zw({node:f,parent:p,root:d,x:T,y:C,pageY:E,layoutService:o,dimensionInfo:i[T],attrExprInfoIndex:a[T],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentModeFeatures:u,indentLevel:h},env:l,pageInfo:n,labelStructure:x}):e[m][E];if(e[m][E]=q,f.qSubNodes.length){const e=s?0:m+1;t(d||q,q,f.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},eR=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n.at(r+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},tR=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=null!=t&&t.isIndentModeEnabled&&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},rR=({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=Qw(e.grid,l,s,r,n,o,i,a);eR(u,r.rowsOnCurrentPage);const c=tR(u,n);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},nR=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u="U"===t.qType;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:GC(),ref:t,isNull:u}}))})),o},oR=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return null!=n&&n.length?nR({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},iR=(e,t,r,n,o,i,a,l,s)=>{const{isIndentModeEnabled:u,indentModeFeatures:c}=n;if(!t.length)return e;let d=0;!function t(a,p,f,m=0){e[m]||(e[m]={}),f.forEach(((f,h)=>{var g;d+=0===h?0:1;const b=r.qLeft+d-f.qUp,v=null!==(g=e[m][b])&&void 0!==g?g:Zw({node:f,parent:p,root:a,x:b,y:m,pageY:m,layoutService:n,dimensionInfo:o[m],attrExprInfoIndex:i[m],isLeftColumn:!1,...u&&{isIndentModeEnabled:u,indentModeFeatures:c},env:l,pageInfo:s});e[m][b]=v,f.qSubNodes.length&&t(a||v,v,f.qSubNodes,m+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},aR=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=iR(e.grid,s,u,r,n,o,i,a,l);eR(c,r.size.x);const d=tR(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},lR=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),sR=(e,t)=>{const{env:r}=IC(),{layoutService:n,effectivePropertiesService:o}=DC(),{qPivotDataPages:i,pageInfo:a}=CC(),[l,c]=u(null),d=((e,t,r)=>s((()=>({left:e.map(lR),top:t.map(lR),measures:r.map(lR)})),[r,e,t]))(e,t,n.visibleMeasureInfo),f=s((()=>VC(n,o,t,e)),[n,o,t,e]),m=p((()=>i.slice(1).reduce(((e,t)=>oR({prevData:e,dataPage:t,pageInfo:a})),((e,t)=>{const{qData:r,qArea:n}=e;return nR({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(i[0],a))),[i,a]),h=p((()=>i.slice(1).reduce(((e,o)=>aR({prevData:e,nextDataPage:o,layoutService:n,visibleTopDimensionInfo:t,attrExprInfoIndexes:d.top,headerRows:f.size.y,env:r,pageInfo:a})),((e,t,r,n,o,i,a)=>{const{qArea:l,qTop:s}=e,u=iR([],s,l,t,r,n,o,i,a);eR(u,t.size.x);const c=tR(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(i[0],n,t,d.top,f.size.y,r,a))),[i,n,t,d.top,f.size.y,r,a]),g=p((()=>i.slice(1).reduce(((t,o)=>rR({prevData:t,nextDataPage:o,pageInfo:a,layoutService:n,visibleLeftDimensionInfo:e,attrExprInfoIndexes:d.left,env:r})),((e,t,r,n,o,i)=>{const{qArea:a,qLeft:l}=e,s=Qw([],l,a,r,t,n,o,i);eR(s,r.rowsOnCurrentPage);const u=tR(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(i[0],n,a,e,d.left,r))),[i,n,a,e,d,r]),[b,v]=u((()=>m())),[y,x]=u((()=>h())),[S,E]=u((()=>g()));Wg((()=>{v(m())}),[m]),Wg((()=>{x(h())}),[h]),Wg((()=>{E(g())}),[g]),Wg((()=>{l&&l.forEach((o=>{v((e=>oR({prevData:e,dataPage:o,pageInfo:a}))),x((e=>aR({prevData:e,nextDataPage:o,layoutService:n,visibleTopDimensionInfo:t,attrExprInfoIndexes:d.top,headerRows:f.size.y,env:r,pageInfo:a}))),E((t=>rR({prevData:t,nextDataPage:o,pageInfo:a,layoutService:n,visibleLeftDimensionInfo:e,attrExprInfoIndexes:d.left,env:r})))}))}),[l]);const C=p((e=>{c(e)}),[]);return{headersData:f,measureData:b,topDimensionData:y,leftDimensionData:S,attrExprInfoIndexes:d,nextPageHandler:C}},uR=Math.sqrt(1e4),cR=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/Bt.PixelsMin)}),dR=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/uR),n=Math.ceil(e.qHeight/uR);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*uR,qTop:e.qTop+r*uR,qWidth:Math.min(uR,e.qWidth-o*uR),qHeight:Math.min(uR,e.qHeight-r*uR)});return t};function pR({nextPageHandler:e}){const{model:t}=IC(),{pageInfo:r}=CC(),{layoutService:n}=DC(),o=(e=>{const t=c(e);return t.current=e,t})(r.page),i=t,a=p((async(e,t)=>{await(null==i?void 0:i.collapseLeft(kC,e,t,!1))}),[i]),l=p((async(e,t)=>{await(null==i?void 0:i.collapseTop(kC,e,t,!1))}),[i]),u=p((async(e,t)=>{await(null==i?void 0:i.expandLeft(kC,e,t,!1))}),[i]),d=p((async(e,t)=>{await(null==i?void 0:i.expandTop(kC,e,t,!1))}),[i]),f=p((async t=>{if(null!=i&&i.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(kC,t.reduce(((e,t)=>[...e,...dR(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),m=p(((e,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case rr.Dimension:c=[{qPath:`${kC}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case rr.Measures:if(o)c=l.map(((e,t)=>({qPath:`${kC}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${kC}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case rr.Pivot:c=[{qPath:`${kC}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}}));null==t||t.applyPatches(d,!0)}),[t,n]),h=p((async e=>{await(null==i?void 0:i.applyPatches([{qPath:`${kC}/indentModeColumnWidth`,qOp:n.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))}),[i,n]);return s((()=>({collapseLeft:a,collapseTop:l,expandLeft:u,expandTop:d,applyColumnWidth:m,applyIndentModeColumnWidth:h,fetchPages:f})),[a,l,u,d,m,h,f])}const fR=(e,t,r)=>(n,o)=>{if("P"===n)return OC;const i=t[r+o];return e[i]},mR=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},hR=m({}),gR=()=>n(hR),bR=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=DC(),{qPivotDataPages:n}=CC();return s((()=>{var o,i,a,l;const s=mR(null!==(o=null===(i=n[0])||void 0===i?void 0:i.qLeft)&&void 0!==o?o:[]),u=mR(null!==(a=null===(l=n[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(fR(r,t,0)),visibleTopDimensionInfo:u.map(fR(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:l,nextPageHandler:u}=sR(t,r),c=pR({nextPageHandler:u}),d=s((()=>({gridSectionsData:{headersData:n,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:l,dataModel:c})),[t,r,n,o,i,a,l,c]);return Yr.jsx(hR.Provider,{value:d,children:e})},vR=18,yR=.75,xR=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===Ut.Image},SR=({isLeftColumn:e,layoutService:t,representation:r})=>e&&t.isIndentModeEnabled&&t.indentModeFeatures.isImagesSupported&&r.type===Ut.Image,ER=e=>void 0===e?ig:e,CR=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,wR=e=>CR(e,Bt.PixelsDefault),RR=(e,t)=>CR(e,Bt.PercentageDefault)*t/100,IR=(e,t,r)=>{switch(null==t?void 0:t.type){case $t.Pixels:return wR(t.pixels);case $t.Percentage:return RR(t.percentage,e);case $t.FitToContent:case $t.Auto:default:return r}},LR=({headers:e,layoutService:t,effectivePropertiesService:r,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,l,s)=>{var u;const{layout:{qHyperCube:{qNoOfLeftDims:c,qDimensionInfo:d}}}=t,{id:p,colIdx:f,qApprMaxGlyphCount:m,isLeftDimension:h}=l,g=d.find((e=>e.cId===p)),b={width:24,...null==g||null===(u=g.representation)||void 0===u?void 0:u.imageBox};if(!h)return e+0;if(p===TC)return e+0;const v=SR({isLeftColumn:h,layoutService:t,representation:(null==g?void 0:g.representation)||{type:Ut.Text}})?b.width+8+4:n(m),y=!r.qAlwaysFullyExpanded&&f<c-1?21:0;let x=0;if(o&&i&&a){x=i("- ")+a}return Math.max(e,24*s+vR+y+v+x)}),0),MR=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*vR;return Math.max(e,o+t(n.qFallbackTitle))}),0),DR=(e,t,r,n)=>{const o=100*e/t,i=n*yR*(o/100),a=r*(o/100);return Math.min(a,i)},AR=(e,t,r,n)=>n*(r/100)*(100*e/t/100),PR=(e,t)=>e.some((e=>e>=t*yR)),kR=({layoutService:e,effectivePropertiesService:t,headersData:r,columnWidths:n,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:u})=>{let c=[];const d=o*yR,p=r.data[r.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,n.at(-1)),m=Math.min(d,LR({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l})),h=Math.min(d,MR(e.visibleMeasureInfo,a));let g=0;const b=p.findIndex((e=>e.id===TC)),v=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===$t.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+vR+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:r});if(e.hasPseudoDimOnLeft)if(0===b){const e=Math.max(f,m,h);c=[Math.max(v,e-f),f]}else{const r=Math.min(d,MR(e.visibleMeasureInfo,s,!0));g=Math.min(d,LR({headers:p.slice(0,b),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:r}));const n=Math.max(f,m,g);c=[Math.max(v,n-f),f]}else c=[Math.max(v,m-f),f];const y=Math.min(d,c.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:x}=e;i&&i<=d&&(x.type=$t.Pixels,x.pixels=i);return[$t.Pixels,$t.Percentage].includes(x.type)||PR(c,o)?((e,t,r,n)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=PR(e,r);s===$t.Auto&&d&&(o>i?o-=i:i-=o),s===$t.Pixels&&u&&(o=DR(e[0],l,u,r),i=DR(e[1],l,u,r)),s===$t.Percentage&&c&&(o=AR(e[0],l,c,r),i=AR(e[1],l,c,r));let p=0;i<=n&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-n,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(c,x,o,f):{leftGridWidth:y,leftGridColumnWidths:c,leftGridFullWidth:y}};function OR({tableWidth:e}){const t=e*yR,{styleService:r,layoutService:n,effectivePropertiesService:o}=DC(),{translator:i}=IC(),{gridSectionsData:{headersData:a}}=gR(),{measureText:l}=zg(r.header),{estimateWidth:s,measureText:c}=zg({...r.dimensionValues,fontWeight:ER(r.dimensionValues.fontWeight)}),{measureText:d}=zg({...r.dimensionValues,...r.measureLabels}),f=p(((r,u)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:m,isIndentModeEnabled:h,hasPseudoDimOnLeft:g}=n,b=(t=0)=>m.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=d(n)+vR,a=Math.max(i,t);return Math.max(r,h?a:IR(e,o,a))}),0),v=e=>a.data.reduce(((t,r)=>{const n=r.at(e);if(!n||Array.isArray(n))return t;if(n.id===TC)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?20:0;return vR+l(t)+20+n})(n);return Math.max(o,t)}),0);let y=0,x=a.data.at(-1);h&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((i,l)=>{let c=vR;if(h&&1!==a.size.x||!r||void 0===u||u!==i.colIdx){let t;i.columnWidthLocation===rr.Pivot?t=h?void 0:f:i.columnWidthLocation===rr.Dimension&&({columnWidth:t}=i);let r=0;if(i.isLeftDimension)if(i.id===TC)r=b();else{const e=v(l),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:i,dimensionInfoIndex:a}=e,l=n.getDimensionInfo(a);if(xR(l))return Bt.PixelsDefault;const u=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return vR+s(r)+u})(i,l);r=Math.max(e,t),h&&!g&&l+1===p&&i.columnWidthLocation===rr.Dimension&&a.size.x>1&&(r=e)}else r=v(l),i.columnWidthLocation===rr.Measures&&(r=b(r));h&&1===a.size.x&&(t=n.indentModeColumnWidth),c=h&&!g&&a.size.x>1?r:IR(e,t,r)}else c=h?Math.min(t,r):r;return y+=c,c}));return h&&a.size.x>1?kR({layoutService:n,effectivePropertiesService:o,headersData:a,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:l,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:c,translator:i}):{leftGridWidth:Math.min(t,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[e,a,n,t,l,d,s,c,i,o]),[m,h]=u(f);Wg((()=>{h(f())}),[f]);const g=p(((e,t)=>{h(f(e,t))}),[f]);return{...m,overrideLeftGridWidth:g}}function TR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=DC(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=gR(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:l}},size:u,visibleMeasureInfo:c}=o,{estimateWidth:d,measureText:f}=zg(n.measureValues),{estimateWidth:m}=zg({...n.dimensionValues,fontWeight:ER(n.dimensionValues.fontWeight)}),h=e-r-1,g=i.at(-1),b=g===OC,v=l.length-a>i.length?21:0,y=s((()=>{const e=b?c:[g],t=u.x/e.length,r=[],n=[];let o=h;const i=(e,n)=>{r[e]=Math.min(Bt.PixelsMax,Math.max(Bt.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:s}=e;switch(r){case $t.Pixels:i(t,wR(o));break;case $t.Percentage:i(t,RR(a,h));break;case $t.FitToContent:i(t,((e,t,r)=>r?Bt.PixelsDefault:vR+(b?Math.max(d(e),f(t)):Math.max(Math.max(...c.map((e=>d(e.qApprMaxGlyphCount)))),m(e)+v)))(l,s,xR(e)));break;case $t.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(Bt.AutoMinPivot,i)}))}return r}),[b,c,g,u.x,h,d,f,m,v]),x=s((()=>{if(b){return c.reduce(((e,t,r)=>e+y[r]),0)/c.length}return y[0]}),[b,y,c]),S=parseFloat((t/o.size.x).toFixed(12)),E=p((e=>(b&&void 0!==e?y[o.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S),[b,y,o,x,S]),C=u.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,h),getRightGridColumnWidth:E}}const _R=`scrollable-container--${or.TopGrid}`,qR=`scrollable-container--${or.LeftGrid}`,NR=`scrollable-container--${or.DataGrid}`,FR=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},jR=(e,t)=>e>t?ir.Forward:e<t?ir.Backward:ir.None,zR=()=>{const{interactions:e}=IC(),t=c(null),r=c(null),n=c(null),o=c(null),i=c([]),a=c([]),l=c(null),{scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:d},resetHorizontalScrollbarHeight:m}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=u(0),[i,a]=u(0);return g((()=>{(e.current||r.current)&&o(Math.max(FR(e.current).width,FR(r.current).width))})),g((()=>{(t.current||r.current)&&a(Math.max(FR(t.current).height,FR(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>{a(0)}}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:l}=CC(),{downloadService:s,viewService:u,layoutService:c}=DC(),d=p((()=>{var o,i,a,l;const s={left:0,top:0};null===(o=e.current)||void 0===o||o.scrollTo(s),null===(i=t.current)||void 0===i||i.scrollTo(s),null===(a=r.current)||void 0===a||a.scrollTo(s),null===(l=n.current)||void 0===l||l.scrollTo(s)}),[e,t,r,n]);g((()=>{d()}),[l.page,d]),g((()=>{c.triggerdByExpandOrCollapse||d()}),[c,d]),g((()=>{if(c.triggerdByExpandOrCollapse){var e,t,r,l,s,u,d;const c=null!==(e=null===(t=n.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0,p=null!==(r=null===(l=n.current)||void 0===l?void 0:l.scrollTop)&&void 0!==r?r:0;null===(s=i.current)||void 0===s||s.forEach((e=>{null==e||e.scrollTo(p)})),null===(u=o.current)||void 0===u||u.forEach((e=>{null==e||e.scrollTo(c)})),null===(d=a.current)||void 0===d||d.scrollTo({scrollTop:p,scrollLeft:c})}}),[c,n,a,i,o]),g((()=>{(s.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,s,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l}});const{trackScrollDirection:h,scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v}}=(()=>{const e=c(ir.None),t=c(ir.None),r=c({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:p((n=>{if(n instanceof WheelEvent&&(e.current=jR(n.deltaY,0),t.current=jR(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=jR(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=jR(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=DC();return p((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===qR&&(e.leftGridScrollLeft=n.scrollLeft),o===NR&&(e.scrollLeft=n.scrollLeft),o===_R&&(e.topGridScrollTop=n.scrollTop),o!==qR&&o!==NR||(e.scrollTop=n.scrollTop)}),[e])})(),x={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},getWrapperElements:p((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:o.current})),[t,r,n,o]),updateViewService:y,trackScrollDirection:h,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{f((()=>{const{headerGridWrapperElement:o,topGridWrapperElement:l,leftGridWrapperElement:s,dataGridWrapperElement:u}=n(),c=e=>{o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,s.scrollLeft=o.scrollLeft,l.scrollTop=o.scrollTop,i(e)},d=e=>{var n,a;s.scrollTop+=e.deltaY,null===(n=t.current)||void 0===n||n.forEach((e=>{null==e||e.scrollTo(s.scrollTop)})),o.scrollLeft+=e.deltaX,s.scrollLeft=o.scrollLeft,u.scrollTop=s.scrollTop,null===(a=r.current)||void 0===a||a.scrollTo({scrollTop:s.scrollTop}),i(e)},p=t=>{var n,a;l.scrollLeft+=t.deltaX,null===(n=e.current)||void 0===n||n.forEach((e=>{null==e||e.scrollTo(l.scrollLeft)})),o.scrollTop+=t.deltaY,l.scrollTop=o.scrollTop,u.scrollLeft=l.scrollLeft,null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:l.scrollLeft}),i(t)},f=n=>{var o,a,c;u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,null===(o=r.current)||void 0===o||o.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),l.scrollLeft=u.scrollLeft,null===(a=e.current)||void 0===a||a.forEach((e=>{null==e||e.scrollTo(u.scrollLeft)})),s.scrollTop=u.scrollTop,null===(c=t.current)||void 0===c||c.forEach((e=>{null==e||e.scrollTo(u.scrollTop)})),i(n)};return o.addEventListener("wheel",c),s.addEventListener("wheel",d),l.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout((()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[i,o,a,e,t,r,n])})(x),(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{f((()=>{const{headerGridWrapperElement:l,topGridWrapperElement:s,leftGridWrapperElement:u,dataGridWrapperElement:c}=n(),d=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,i(e),null==o||o(e)},p=e=>{const t=e.target;l.scrollTop=t.scrollTop,i(e),null==o||o(e)},f=n=>{var a,l,d;const p=n.target;null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:p.scrollLeft,scrollTop:p.scrollTop}),s.scrollLeft=c.scrollLeft,null===(l=e.current)||void 0===l||l.forEach((e=>{null==e||e.scrollTo(p.scrollLeft)})),u.scrollTop=c.scrollTop,null===(d=t.current)||void 0===d||d.forEach((e=>{null==e||e.scrollTo(p.scrollTop)})),i(n),null==o||o(n)};return u.addEventListener("scroll",d),s.addEventListener("scroll",p),c.addEventListener("scroll",f),a.scroll||setTimeout((()=>{u.removeEventListener("scroll",d),s.removeEventListener("scroll",p),c.removeEventListener("scroll",f)}),0),()=>{u.removeEventListener("scroll",d),s.removeEventListener("scroll",p),c.removeEventListener("scroll",f)}}),[i,o,a,e,t,r,n])})(x),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:d,resetHorizontalScrollbarHeight:m}}},GR=()=>{const{layoutService:e}=DC(),{rect:t,pageInfo:r}=CC();return s((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},BR=({children:e,style:t})=>Yr.jsx("div",{"data-testid":"fullSize",style:t,children:e}),$R=({children:e,style:t})=>Yr.jsx("div",{"data-section-id":"GRID",style:{display:"grid",...t},children:e}),WR=e=>e&&`scrollable-container--${e}`,HR=({children:e,style:t,origin:r},n)=>{const{interactions:o}=IC(),i=o.scroll?t:{overflow:"hidden"};return Yr.jsx("div",{"data-testid":"scrollable","data-key":WR(r),style:i,ref:n,children:e})};var VR=t.forwardRef(HR);const UR=({children:e,style:t})=>Yr.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,left:0,...t},children:e});var YR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function KR(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||YR(n)&&YR(o)))return!1;var n,o;return!0}function XR(e,t){var r;void 0===t&&(t=KR);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var JR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function ZR(e){cancelAnimationFrame(e.id)}function QR(e,t){var r=JR();var n={id:requestAnimationFrame((function o(){JR()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var eI=-1;function tI(e){if(void 0===e&&(e=!1),-1===eI||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),eI=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return eI}var rI=null;function nI(e){if(void 0===e&&(e=!1),null===rI||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?rI="positive-descending":(t.scrollLeft=1,rI=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),rI}return rI}var oI=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function iI(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,l=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,Rr(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Rr(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=XR((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=XR((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,i=n.props,l=i.columnWidth,s=i.direction,u=i.rowHeight,c=n._getItemStyleCache(g&&l,g&&s,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))o=c[f];else{var m=r(n.props,t,n._instanceProps),h="rtl"===s;c[f]=o={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:a(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=XR((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(nI()){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&&ZR(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=QR(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}wr(t,e),t.getDerivedStateFromProps=function(e,t){return aI(e,t),v(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=tI();void 0!==n&&(n=Math.max(0,Math.min(n,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=l(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?u(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(nI()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ZR(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,i=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,m=void 0===f?oI:f,h=e.outerElementType,g=e.outerTagName,b=e.rowCount,v=e.style,y=e.useIsScrolling,x=e.width,S=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],R=this._getVerticalRangeToRender(),I=R[0],L=R[1],M=[];if(n>0&&b)for(var D=I;D<=L;D++)for(var A=C;A<=w;A++)M.push(o(t,{columnIndex:A,data:p,isScrolling:y?S:void 0,key:m({columnIndex:A,data:p,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,A)}));var P=l(this.props,this._instanceProps),k=s(this.props,this._instanceProps);return o(h||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:hr({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},o(c||d||"div",{children:M,ref:u,style:{height:P,pointerEvents:S?"none":void 0,width:k}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||o||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=i(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=m(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var aI=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},lI=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},sI=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},uI=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]},cI=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?dI(e,t,r,i,0,n):pI(e,t,r,Math.max(0,i),n)},dI=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=uI(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},pI=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&uI(e,t,n,r).offset<o;)n+=a,a*=2;return dI(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},fI=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=uI(e,t,r,i),u="column"===e?sI(t,i):lI(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}},mI=iI({getColumnOffset:function(e,t,r){return uI("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return cI("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=uI("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=uI("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:lI,getEstimatedTotalWidth:sI,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return fI("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return fI("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return uI("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return cI("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=uI("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=uI("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}}),hI=function(e,t){return e};function gI(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,Rr(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Rr(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=XR((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=XR((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,l=o.itemSize,s=o.layout,u=n._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;u[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=XR((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(nI()){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&&ZR(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=QR(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}wr(t,e),t.getDerivedStateFromProps=function(e,t){return bI(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?tI():0:s.scrollHeight>s.clientHeight?tI():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,l))},p.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(nI()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ZR(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,r=e.className,i=e.direction,a=e.height,l=e.innerRef,s=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?hI:p,m=e.layout,h=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===m,E=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],R=C[1],I=[];if(c>0)for(var L=w;L<=R;L++)I.push(o(t,{data:d,key:f(L,d),index:L,isScrolling:v?x:void 0,style:this._getItemStyle(L)}));var M=n(this.props,this._instanceProps);return o(h||g||"div",{className:r,onScroll:E,ref:this._outerRefSetter,style:hr({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},o(s||u||"div",{children:I,ref:l,style:{height:S?"100%":M,pointerEvents:x?"none":void 0,width:S?M:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var u=l(this.props,a,this._instanceProps),c=s(this.props,u,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var bI=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},vI=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]},yI=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=vI(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},xI=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&vI(e,r,t).offset<n;)r+=i,i*=2;return yI(e,t,Math.min(r,o-1),Math.floor(r/2),n)},SI=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},EI=gI({getItemOffset:function(e,t,r){return vI(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:SI,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=vI(e,t,o),p=SI(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?yI(e,t,o,0,r):xI(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=vI(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=vI(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 CI(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 wI=["style"],RI=["style"];function II(e,t){var r=e.style,n=Er(e,wI),o=t.style,i=Er(t,RI);return!CI(r,o)&&!CI(n,i)}const LI=10,MI=(e,t)=>e.current===ir.Backward?t:0,DI=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e.at(o);if(void 0===r||void 0===r.at(t))return!0}return!1},AI=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,PI=({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(DI(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&AI(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},kI=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===ir.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return PI({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},OI=({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=MI(r,LI),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+LI,l-u),pageTop:o,qHeight:a}})(n,o,r),u=PI({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...kI({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},TI=(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},_I=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,qI=({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(TI(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&_I(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},NI=({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=MI(r,LI),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+LI,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=qI({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===ir.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=qI({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},FI=async(e,t,r,n,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==ir.None&&(p=NI({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==ir.None&&(f=OI({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===ir.None&&a.current===ir.None&&(p=qI({measureData:r,pageInfo:n,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},jI=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))}}(FI,100),zI=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)}}(FI,75),GI=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),BI=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{styleService:{grid:{border:l,divider:s}}}=DC();return Yr.jsx("div",{style:{...e,...pg,...gg(r,n,l,o),...vg({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},$I=({children:e,verticalAlign:t,width:r,right:n,isLeftColumn:o})=>{const{layoutService:i}=DC(),a=o&&i.isIndentModeEnabled&&i.indentModeFeatures.isImagesSupported;return Yr.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,...a?{}:{alignItems:t,alignSelf:t}},children:e})},WI=e=>{const{type:t,imageSize:r}=e;return t!==Ut.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"};function HI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const VI=(e,r)=>t.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){HI(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:r},e),t.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"})),UI=d(VI);function YI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KI=(e,r)=>t.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){YI(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:r},e),t.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"})),XI=d(KI),JI=e=>{var t;return!(null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t||!t.includes(Gt))},ZI=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),o=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:n,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:o}=e,i=new Map(o);for(let e=r;e<=n;e++){const r=t(e);"N"===(null==r?void 0:r.ref.qType)&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}};const QI=m({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),eL=()=>n(QI),tL=({children:e,selections:t})=>{const r=function(e){var t,r,n;const{env:o}=IC(),{updatePageInfo:i}=CC(),a=e.isActive(),[l,u]=v(ZI,{engineSelectedCells:null,selectedField:null,activeSelection:null});f((()=>{const t=()=>{u({type:"clearSelections"})},r=()=>{t(),i({page:0})};return e.on("deactivated",t),e.on("canceled",t),e.on("confirmed",r),e.on("cleared",t),()=>{e.removeListener("deactivated",t),e.removeListener("canceled",t),e.removeListener("confirmed",r),e.removeListener("cleared",t)}}),[e,i]);const c=p((async()=>{var t,r,n;if(!l.activeSelection)return;1===l.activeSelection.clientSelectedCells.size&&(r=l.engineSelectedCells,(n=l.activeSelection).clientSelectedCells.forEach(((e,t)=>{null!=r&&r.has(t)&&(n.clientSelectedCells.delete(t),r.delete(t))})));const o=new Map([...null!==(t=l.engineSelectedCells)&&void 0!==t?t:new Map,...l.activeSelection.clientSelectedCells]);try{u({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[kC,Array.from(o,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),u({type:"mouseup",payload:{engineSelectedCells:l.engineSelectedCells}})}}),[l,e]);f((()=>{if(l.activeSelection)return document.addEventListener("mouseup",c),()=>{document.removeEventListener("mouseup",c)}}),[c,l.activeSelection]);const d=p(((e,t)=>r=>{const n=t(e);JI(r)||(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(r)||(e=>{var t;return"A"===(null===(t=e.target)||void 0===t?void 0:t.tagName)})(r)||!(e=>1===e.buttons)(r)||!n||u({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(n.ref.qElemNo,n)},selectedField:{selectionCellType:n.selectionCellType,index:"L"===n.selectionCellType?n.x:n.y}}})}),[]),m=p((t=>o.flags.isEnabled("CLIENT_IM_6223_PIVOT_RANGE_SELECTION")?async()=>{l.activeSelection&&(e.isActive()||await e.begin([kC]),u({type:"mouseover",payload:{index:t}}))}:void 0),[l.activeSelection,e,o]),h=p((e=>{var t,r;return!(!(null!==(t=l.engineSelectedCells)&&void 0!==t&&t.size||null!==(r=l.activeSelection)&&void 0!==r&&r.clientSelectedCells.size)||!l.selectedField||e.selectionCellType===l.selectedField.selectionCellType&&("L"===e.selectionCellType?l.selectedField.index===e.x:l.selectedField.index===e.y))}),[null===(t=l.activeSelection)||void 0===t?void 0:t.clientSelectedCells.size,null===(r=l.engineSelectedCells)||void 0===r?void 0:r.size,l.selectedField]),g=p((e=>{var t,r;return!h(e)&&((null===(t=l.engineSelectedCells)||void 0===t?void 0:t.has(e.ref.qElemNo))||!(null===(r=l.activeSelection)||void 0===r||!r.clientSelectedCells.has(e.ref.qElemNo)))}),[h,null===(n=l.activeSelection)||void 0===n?void 0:n.clientSelectedCells,l.engineSelectedCells]);return s((()=>({isSelected:g,isActive:a,isLocked:h,createMouseDownHandler:d,createMouseOverHandler:m})),[g,a,h,d,m])}(t);return Yr.jsx(QI.Provider,{value:r,children:e})},rL=e=>{const t=e.isLeftColumn?"flex-start":"center";var r;return e.representation.type!==Ut.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical};var nL;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(nL||(nL={}));const oL={brighter:.5,darker:.3,opacity:.03},iL=(e,{cell:t,styleService:r})=>{if(e===nL.Background||e===nL.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]},aL=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=iL(nL.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?iL(nL.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Hh(i=o,oL)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},lL=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:iL(nL.Color,{cell:e,styleService:t}),sL=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=iL(nL.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?ig:o},uL=({cell:e,styleService:t})=>iL(nL.FontStyle,{cell:e,styleService:t}),cL=({cell:e,styleService:t})=>iL(nL.TextDecoration,{cell:e,styleService:t}),dL=e=>e?"pointer":"default",pL=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},fL=(e,t)=>{if(!e.isLeftColumn||e.representation.type===Ut.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},mL=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n,layoutService:o}=DC(),{interactions:i}=IC(),{isActive:a}=eL(),{dataModel:l}=gR();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const s=!i.active||a||!l,u=lL({cell:e,styleService:n,isCellSelected:r}),c=a?.4:1,d=e.ref.qCanExpand?XI:UI;let p;p=e.ref.qCanExpand?t?l.expandLeft:l.expandTop:t?l.collapseLeft:l.collapseTop;const f=SR({isLeftColumn:t,layoutService:o,representation:e.representation});return Yr.jsx(d,{opacity:c,color:u,"data-prevent-selection":!s||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:s?"default":"pointer",...fL(e,n),...f&&{alignSelf:rL(e),position:"sticky",top:0}},onClick:s?void 0:pL({cell:e,expandOrCollapse:p})})},hL=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},gL=(e,t)=>{if("alwaysFit"===e&&t)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},bL=(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"}},vL=({representation:e,canExpandOrCollapse:t,leafCount:r,isLeftColumn:n,styleService:o,layoutService:i})=>{var a,l;const{isIndentModeEnabled:s,indentModeFeatures:{isImagesSupported:u}}=i,c=SR({isLeftColumn:n,layoutService:i,representation:e}),d=t?21:0,p=null!==(a=null===(l=e.imageBox)||void 0===l?void 0:l.width)&&void 0!==a?a:24,f=c?p:`calc(100% - ${d}px)`,m=n?o.contentCellHeight:o.headerCellHeight;let h=m;switch(!n||void 0===r||s&&u||(h=m*Math.max(r,1)),e.imageSize){case"originalSize":return{maxWidth:f,maxHeight:h,...c?{width:f}:{}};case"fitWidth":return{width:f,maxHeight:h};case"fitHeight":return{height:h,maxWidth:f,...c?{width:f}:{}};case"fill":return{height:h,width:f};default:return{width:f,height:m}}},yL=e=>{if("alwaysFit"===e)return"contain"},xL=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),SL=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:r})=>({width:gL(e,r),height:hL(e),objectFit:yL(e),objectPosition:bL(e,t),...r&&"alwaysFit"===e?{"max-width":"100%"}:{}}),EL=({representation:e,textStyle:t})=>{const{imageRef:r,onLoad:n}=(()=>{const{downloadService:e}=DC(),t=c(null),{promise:r,resolve:n}=s((()=>Mg()),[]);return f((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(r),null!==(o=t.current)&&void 0!==o&&o.complete&&n()),()=>{n()}}),[t,e,r,n]),{onLoad:p((()=>{n()}),[n]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:o,indentModeFeatures:{isImagesSupported:i}}}=DC(),{url:a,text:l,imageSize:u,resolvedImagePosition:d}=e,{overflow:m,...h}=t;return Yr.jsx("img",{src:a,alt:l,style:{...SL({imageSize:u,resolvedImagePosition:d,isImagesInIndentModeEnabled:o&&i}),...h},onLoad:n,ref:r})},CL=({representation:e,textStyle:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o,imageContainerHorizontalAlignment:i})=>{var a;const{styleService:l,layoutService:s}=DC(),{resolvedImagePosition:u}=e,c=!(null!==(a=e.labelStructure)&&void 0!==a&&a.suffix)&&SR({isLeftColumn:o,layoutService:s,representation:e});return Yr.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:null==u?void 0:u.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...vL({representation:e,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o,styleService:l,layoutService:s}),...c?{alignItems:i}:{}},children:Yr.jsx(EL,{representation:e,textStyle:t})})},wL=(e,t)=>{if(null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},RL={display:"flex",flexDirection:"row",alignItems:"center"},IL={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},LL=(e,t,r,n)=>t?{...IL,...e.nullValues}:r?{...RL,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...RL,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},ML=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...fg,...!r&&mg(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?ig:s,fontStyle:u,textDecoration:c}},DL=(e,t,r,n)=>{const{textAlign:o}=t,i=n?"flex-end":"center";var a,l;return e.isNull||r.type!==Ut.Image?wL(o,i):null!==(a=null===(l=r.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:"center"},AL=({cell:e,representation:t,color:r,isNumeric:n,isTotalValueCell:o})=>{const{layoutService:i,styleService:a}=DC(),l=e.isNull?i.getNullValueText():t.text,s=ML(a,r,n,o,e.isNull);return t.type!==Ut.Image||e.isNull?Yr.jsx("span",{style:{padding:4,...s},children:l}):Yr.jsx(CL,{representation:t,textStyle:s,isLeftColumn:!0})},PL=(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},kL="flex-start",OL=(e,t)=>{return e.isNull?kL:t.type===Ut.Image&&"fill"!==t.imageSize?null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.vertical:kL;var r},TL=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const{env:i}=IC(),{pageInfo:a}=CC(),{styleService:l,layoutService:s}=DC(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:f},visibleDimensionsInfo:{visibleLeftDimensionInfo:m,visibleTopDimensionInfo:h}}=gR(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=DC(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=gR(),i=n.length,a=o.length;return p(((n,o)=>{var l,s;return!!(null!==(l=r.grid.at(a-1))&&void 0!==l&&null!==(l=l[n])&&void 0!==l&&l.isTotal||null!==(s=t.grid.at(e?0:i-1))&&void 0!==s&&null!==(s=s[o])&&void 0!==s&&s.isTotal)}),[r,t,i,a,e])})(),b=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=gR(),r=t.length;return p((t=>{var n;const o=null===(n=e.grid.at(r-1))||void 0===n?void 0:n[t];return GI(o,e.totalDividerIndex)}),[e,r])})(),v=(()=>{const{layoutService:{isIndentModeEnabled:e}}=DC(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=gR(),n=r.length;return p((r=>{var o;const i=e?0:n-1,a=null===(o=t.grid.at(i))||void 0===o?void 0:o[r];return GI(a,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:y}=n,x=f.grid.at(h.length-1),S=d.grid.at(m.length-1),{background:E}=l.measureValues,C=null===(o=c[t])||void 0===o?void 0:o[e],w=t===a.rowsOnCurrentPage-1,R=e===s.size.x-1;if(!C)return Yr.jsx(BI,{style:{...r,background:E},isLastRow:w,isLastColumn:R,showLastBorder:y,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const I=s.hasPseudoDimOnLeft?PL(S,t):PL(x,e),L=s.visibleMeasureInfo[I],M=Uw({cell:C.ref,representationProperties:s.isIndentModeEnabled?{type:Ut.Text}:L.representation,attrExprInfoIndex:u.measures[I],env:i}),D=!C.isNull&&g(e,t),A=C.isNull?s.getNullValueText():M.text,P=!C.isNull||!Number.isNaN(+A),k=Yw(u.measures[I],C.ref),O={...LL(l,C.isNull,D,k.background),...gg(w,R,l.grid.border,y),...vg({bottomDivider:v(t),rightDivider:b(e),borderColor:l.grid.divider}),...pg,padding:"0px 4px",display:"flex",justifyContent:DL(C,L,M,P)};return Yr.jsx("div",{className:jt,title:A,style:{...O,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Yr.jsx($I,{width:WI(M),verticalAlign:OL(C,M),children:Yr.jsx(AL,{cell:C,representation:M,isNumeric:P,isTotalValueCell:D,color:k.color})})})};var _L=t.memo(TL,II);const qL=(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()},NL=({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}`},FL={...dg,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},jL=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:l})=>{const{pageInfo:s}=CC(),{layoutService:u,styleService:{grid:{divider:c},contentCellHeight:d}}=DC(),{dataModel:f,gridSectionsData:{measureData:m}}=gR(),h={...FL,borderColor:c,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},b=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=CC(),{downloadService:n,viewService:o,layoutService:i}=DC(),{dataModel:a,gridSectionsData:{leftDimensionData:l,topDimensionData:s,measureData:u}}=gR(),c=l.columnCount,d=s.rowCount;return p((async({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=l,o.gridRowStartIndex=p,o.gridWidth=s-l+1,o.gridHeight=f-p+1;const m=o.gridWidth+c+(t.current===ir.None?0:LI),h=o.gridHeight+d+(e.current===ir.None?0:LI);let g=jI;h*m>1500&&(g=zI),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:l});return Wg((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,f,m]),g((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,d]),0===u.size.x?null:Yr.jsx(mI,{"data-section-id":"DATA_GRID",ref:e,style:h,columnCount:u.size.x,columnWidth:i,height:t,rowCount:s.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:o,grid:m},onItemsRendered:b,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:NL,children:_L})};var zL=h(jL);function GL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const BL=(e,r)=>t.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){GL(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:r},e),t.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"}),t.createElement("use",{fillRule:"evenodd"})),$L=d(BL),WL=e=>{const[t,r]=u(!1);return Wg((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},HL=()=>{const[e,t]=u(!1),{dataModel:r}=gR(),{interactions:n}=IC(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=WL([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||JI(e)||o||t(!0)},setIsAdjustingWidth:i}};function VL(e,t){var r,n;const o=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,i=t.isLeftColumn?e.header.background:o,a=i===sg.Transparent?fm.WHITE:i,l=ye(e.grid.border),s=ye(a);return s.isInvalid()||l.isInvalid()||1===l.a?e.grid.border:function(e,t,r){return ye(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(s,l,l.a).getRGB()}const UL=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{var l;const{interactions:s,translator:c}=IC(),{isActive:d}=eL(),{dataModel:p}=gR(),{styleService:f}=DC(),[,m]=u({});if(!(e.canBeResized&&!!s.active&&!d))return null;const h=VL(f,e);return Yr.jsx(ES,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{m({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{var r;i?p.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=a?a:0)*yR,null!==(r=t.pixels)&&void 0!==r?r:0)}):p.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:c,columnLabel:null!==(l=e.label)&&void 0!==l?l:""},direction:"ltr"})};function YL(e){return cy(e)}const KL=e=>e.scrollTop;function XL(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 JL(e){return hv("MuiPaper",e)}gv("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const ZL=["className","component","elevation","square","variant"],QL=hS("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 hr({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&&hr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${xy("#fff",vS(t.elevation))}, ${xy("#fff",vS(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),eM=r.forwardRef((function(e,t){const r=YL({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Er(r,ZL),u=hr({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Yv({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},JL,o)})(u);return Yr.jsx(QL,hr({as:o,ownerState:u,className:fl(c.root,n),ref:t},s))}));const tM=gv("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),rM=["center","classes","className"];let nM,oM,iM,aM,lM=e=>e;const sM=Ma(nM||(nM=lM`
|
|
101
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},Oh({exports:{}});const $h=(e,t=fm.TEXT,r=fm.WHITE)=>{const n=Dm(e),o=Dm(t),i=Dm(r);return n.isInvalid()?t:function(e,t,r){return Am(e,t)>Am(e,r)?t:r}(n,i,o).getRGB()},Wh=e=>{const t=e.getStyle("","","dataColors.selected")||fm.SELECTED,r=function(e,t){var r=Dm("#FFFFFF"),n=Dm(e),o=Dm(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=Am(r,n),a=Am(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(t,fm.TEXT);return{background:t,color:r}},Hh=(e,t)=>{const r=Dm(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Vh=e=>!!e&&0===Dm(e).a,Uh=e=>{const t=Dm(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Yh=e=>{e.stopPropagation(),e.preventDefault()},Kh=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=r(l,a);return{color:"transparent"===s?"none":s}}}),Xh=(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},Jh=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Xh(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},..._m(n).filter((e=>!s.includes(e))).map((e=>Xh(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Zh=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Qh=({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=>Xh(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Zh.filter((e=>!a.includes(e))).map((e=>Xh(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),eg=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Jh({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Qh({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:Kh(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Kh(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?fm.WHITE:fm.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),tg=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Kh(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Kh(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),rg=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),ng="12px",og="Source Sans Pro, sans-serif",ig="600",ag=15e3,lg=4/3;var sg,ug;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(sg||(sg={})),function(e){e.Solid="solid",e.None="none"}(ug||(ug={}));const cg={display:"flex",justifyContent:"center",alignItems:"center"},dg={borderStyle:"solid"},pg={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},fg={lineHeight:lg,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},mg=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),hg=(e,t)=>e>0?`${e}px ${ug.Solid} ${t}`:ug.None,gg=(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:hg(o,r),borderBottom:hg(i,r),borderLeft:ug.None,borderTop:ug.None}},bg=(e,t,r,n,o,i)=>{const a=gg(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=hg(2,o)),r||(a.borderLeft=hg(1,o))),a},vg=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=hg(1,r)),t&&(n.borderRight=hg(1,r)),n},yg=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:rg("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?rg("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:Kh("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:sg.DividerLight})),divider:Kh("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:sg.DividerDark})),background:Kh("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:sg.Transparent}))}}}}),xg=(e,t,r)=>{var n,o,i,a,l,s;switch(t){case"header":return 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===(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===(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===(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===(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===(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}},Sg=(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:eg({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:xg}),dimensionValueSection:eg({section:"dimensionValues",translator:e,flags:t,getThemeValue:xg}),measureValueSection:eg({section:"measureValues",translator:e,flags:t,getThemeValue:xg}),measureLabelSection:tg({section:"measureLabels",getThemeValue:xg}),totalValuesSection:tg({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:xg}),nullValuesSection:tg({section:"nullValues",fallbackBackground:sg.NullValueBackground,getThemeValue:xg}),gridSection:yg(t)}}]}),Eg=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:$t.Auto,translation:"Common.Auto"},{value:$t.Pixels,translation:"Object.Table.Column.Pixels"},{value:$t.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:$t.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Bt.PixelsDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===$t.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(Bt.PixelsMin,Math.min(Bt.PixelsMax,r.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Bt.PercentageDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===$t.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(Bt.PercentageMin,Math.min(Bt.PercentageMaxInIndentMode,r.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){const{qIndentMode:r}=t.qHyperCubeDef;return(!r||!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&!!t.qHyperCubeDef.qDimensions.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)}}}}),Cg=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Sg(e,t),Eg(t)]}}}),wg="auto",Rg={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=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:wg,translation:"Object.Table.SortingInSearch",options:[{value:wg,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Ig(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:mr(e),sorting:Rg,addons:qt,settings:Cg(t,r)}}}function Lg(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Ig(e),importProperties:Tt(e),exportProperties:_t}}const Mg=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Dg(e,t){return y((()=>e),t)}const Ag={},Pg=e=>{const t=y((()=>({current:Ag})),[]);return t.current=t.current===Ag?e:t.current,t},Og=()=>{const{viewState:e}=x(),t=Pg(new Set),r=void 0!==e,{promise:n,resolve:o}=y((()=>Mg()),[]),i=Dg((e=>{r&&t.current.add(e)}),[t]),a=Dg(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return S((async()=>{r&&await n}),[n,r]),y((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])},kg="#grid",Tg=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},_g=(e,t,r,n,o)=>{const i=Tg(".qv-object .qv-inner-object",r),a=Tg(".qv-panel-sheet",r),l=Tg(kg,r),s=null!=l?l:a,u=(e=>{var t,r,n,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(r=l.bgColor)||void 0===r?void 0:r.colorExpression,u=null==l||null===(n=l.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return Uh(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Dm(u);return c.setAlpha(null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=Vh(p),m=!Vh(h=f?s:p)&&$h(h,fm.TEXT,fm.DARK_MODE_TEXT)===wm(fm.DARK_MODE_TEXT);var h;const g=((e,t,r,n=fm.WHITE)=>e&&!Vh(e)?e:Vh(t)?r&&!Vh(r)?r:n:t)(u,p,s);return{color:p,headerColor:g,isDark:m}},qg=(e,t,r,n)=>{const o=w(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=E([]);return C((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{var e;null===(e=r)||void 0===e||e.disconnect()}}),[e,t]),r})(t.closest(kg),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return y((()=>({...o,background:_g(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function Ng(e,t){const r=y((()=>({isLoading:!0})),t),[n,o]=S((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const Fg=3;function jg(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 zg({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Fg}={},{estimateWidth:a,measureText:l,estimateLineCount:u}=s((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=_h(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=_h((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=jg(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:u}}var Gg,Bg=F;Gg=Bg.createRoot,Bg.hydrateRoot;const $g="Source Sans Pro, sans-serif";function Wg(e,t){const[r,n]=u(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Hg={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","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_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","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 Vg=({translator:e})=>(s((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Hg).forEach((t=>{e.add(Hg[t])}))}}(e)}),[e]),e);function Ug(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 Yg=Object.freeze({__proto__:null,default:Ug}),Kg="$$material";function Xg(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 Jg(e){if(r.isValidElement(e)||!Xg(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Jg(e[r])})),t}function Zg(e,t,n={clone:!0}){const o=n.clone?hr({},e):e;return Xg(e)&&Xg(t)&&Object.keys(t).forEach((i=>{r.isValidElement(t[i])?o[i]=t[i]:Xg(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Xg(e[i])?o[i]=Zg(e[i],t[i],n):n.clone?o[i]=Xg(t[i])?Jg(t[i]):t[i]:o[i]=t[i]})),o}var Qg=Object.freeze({__proto__:null,default:Zg,isPlainObject:Xg});const eb=["values","unit","step"];function tb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Er(e,eb),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>hr({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return hr({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)}const rb={borderRadius:4};function nb(e,t){return t?Zg(e,t,{clone:!1}):e}const ob={xs:0,sm:600,md:900,lg:1200,xl:1536},ib={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ob[e]}px)`};function ab(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ib;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||ib;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||ob).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function lb(e){if("string"!=typeof e)throw new Error(Ug(7));return e.charAt(0).toUpperCase()+e.slice(1)}var sb=Object.freeze({__proto__:null,default:lb});function ub(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 cb(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:ub(e,r)||n,t&&(o=t(o,n,e)),o}function db(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=ub(e.theme,n)||{};return ab(e,i,(e=>{let n=cb(a,o,e);return e===n&&"string"==typeof e&&(n=cb(a,o,`${t}${"default"===e?"":lb(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const pb={m:"margin",p:"padding"},fb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},mb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hb=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!mb[e])return[e];e=mb[e]}const[t,r]=e.split(""),n=pb[t],o=fb[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),gb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function vb(e,t,r,n){var o;const i=null!=(o=ub(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 yb(e){return vb(e,"spacing",8)}function xb(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 Sb(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=xb(t,r),e)),{})}(hb(r),n);return ab(e,e[r],o)}function Eb(e,t){const r=yb(e.theme);return Object.keys(e).map((n=>Sb(e,t,n,r))).reduce(nb,{})}function Cb(e){return Eb(e,gb)}function wb(e){return Eb(e,bb)}function Rb(...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]?nb(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Ib(e){return"number"!=typeof e?e:`${e}px solid`}function Lb(e,t){return db({prop:e,themeKey:"borders",transform:t})}Cb.propTypes={},Cb.filterProps=gb,wb.propTypes={},wb.filterProps=bb;const Mb=Lb("border",Ib),Db=Lb("borderTop",Ib),Ab=Lb("borderRight",Ib),Pb=Lb("borderBottom",Ib),Ob=Lb("borderLeft",Ib),kb=Lb("borderColor"),Tb=Lb("borderTopColor"),_b=Lb("borderRightColor"),qb=Lb("borderBottomColor"),Nb=Lb("borderLeftColor"),Fb=Lb("outline",Ib),jb=Lb("outlineColor"),zb=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=vb(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:xb(t,e)});return ab(e,e.borderRadius,r)}return null};zb.propTypes={},zb.filterProps=["borderRadius"],Rb(Mb,Db,Ab,Pb,Ob,kb,Tb,_b,qb,Nb,zb,Fb,jb);const Gb=e=>{if(void 0!==e.gap&&null!==e.gap){const t=vb(e.theme,"spacing",8),r=e=>({gap:xb(t,e)});return ab(e,e.gap,r)}return null};Gb.propTypes={},Gb.filterProps=["gap"];const Bb=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=vb(e.theme,"spacing",8),r=e=>({columnGap:xb(t,e)});return ab(e,e.columnGap,r)}return null};Bb.propTypes={},Bb.filterProps=["columnGap"];const $b=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=vb(e.theme,"spacing",8),r=e=>({rowGap:xb(t,e)});return ab(e,e.rowGap,r)}return null};$b.propTypes={},$b.filterProps=["rowGap"];function Wb(e,t){return"grey"===t?t:e}Rb(Gb,Bb,$b,db({prop:"gridColumn"}),db({prop:"gridRow"}),db({prop:"gridAutoFlow"}),db({prop:"gridAutoColumns"}),db({prop:"gridAutoRows"}),db({prop:"gridTemplateColumns"}),db({prop:"gridTemplateRows"}),db({prop:"gridTemplateAreas"}),db({prop:"gridArea"}));function Hb(e){return e<=1&&0!==e?100*e+"%":e}Rb(db({prop:"color",themeKey:"palette",transform:Wb}),db({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wb}),db({prop:"backgroundColor",themeKey:"palette",transform:Wb}));const Vb=db({prop:"width",transform:Hb}),Ub=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])||ob[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:Hb(t)}};return ab(e,e.maxWidth,t)}return null};Ub.filterProps=["maxWidth"];const Yb=db({prop:"minWidth",transform:Hb}),Kb=db({prop:"height",transform:Hb}),Xb=db({prop:"maxHeight",transform:Hb}),Jb=db({prop:"minHeight",transform:Hb});db({prop:"size",cssProperty:"width",transform:Hb}),db({prop:"size",cssProperty:"height",transform:Hb});Rb(Vb,Ub,Yb,Kb,Xb,Jb,db({prop:"boxSizing"}));const Zb={border:{themeKey:"borders",transform:Ib},borderTop:{themeKey:"borders",transform:Ib},borderRight:{themeKey:"borders",transform:Ib},borderBottom:{themeKey:"borders",transform:Ib},borderLeft:{themeKey:"borders",transform:Ib},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ib},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zb},color:{themeKey:"palette",transform:Wb},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wb},backgroundColor:{themeKey:"palette",transform:Wb},p:{style:wb},pt:{style:wb},pr:{style:wb},pb:{style:wb},pl:{style:wb},px:{style:wb},py:{style:wb},padding:{style:wb},paddingTop:{style:wb},paddingRight:{style:wb},paddingBottom:{style:wb},paddingLeft:{style:wb},paddingX:{style:wb},paddingY:{style:wb},paddingInline:{style:wb},paddingInlineStart:{style:wb},paddingInlineEnd:{style:wb},paddingBlock:{style:wb},paddingBlockStart:{style:wb},paddingBlockEnd:{style:wb},m:{style:Cb},mt:{style:Cb},mr:{style:Cb},mb:{style:Cb},ml:{style:Cb},mx:{style:Cb},my:{style:Cb},margin:{style:Cb},marginTop:{style:Cb},marginRight:{style:Cb},marginBottom:{style:Cb},marginLeft:{style:Cb},marginX:{style:Cb},marginY:{style:Cb},marginInline:{style:Cb},marginInlineStart:{style:Cb},marginInlineEnd:{style:Cb},marginBlock:{style:Cb},marginBlockStart:{style:Cb},marginBlockEnd:{style:Cb},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:Gb},rowGap:{style:$b},columnGap:{style:Bb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Hb},maxWidth:{style:Ub},minWidth:{transform:Hb},height:{transform:Hb},maxHeight:{transform:Hb},minHeight:{transform:Hb},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Qb(){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=ub(r,l)||{};if(u)return u(o);return ab(o,t,(t=>{let r=cb(c,s,t);return t===r&&"string"==typeof t&&(r=cb(c,s,`${e}${"default"===t?"":lb(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:Zb;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=nb(s,e(r,o,i,a));else{const e=ab({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=nb(s,e):s[r]=t({sx:o,theme:i})}else s=nb(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 ev=Qb();function tv(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}ev.filterProps=["sx"];const rv=["breakpoints","palette","spacing","shape"];function nv(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Er(e,rv),l=tb(r),s=function(e=8){if(e.mui)return e;const t=yb({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=Zg({breakpoints:l,direction:"ltr",components:{},palette:hr({mode:"light"},n),spacing:s,shape:hr({},rb,i)},a);return u.applyStyles=tv,u=t.reduce(((e,t)=>Zg(e,t)),u),u.unstable_sxConfig=hr({},Zb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ev({sx:e,theme:this})},u}var ov=Object.freeze({__proto__:null,default:nv,private_createBreakpoints:tb,unstable_applyStyles:tv});function iv(e=null){const t=r.useContext(va);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const av=nv();function lv(e=av){return iv(e)}const sv=["sx"];function uv(e){const{sx:t}=e,r=Er(e,sv),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Zb;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Xg(r)?hr({},n,r):n}:hr({},n,t),hr({},o,{sx:i})}var cv=Object.freeze({__proto__:null,default:ev,extendSxProp:uv,unstable_createStyleFunctionSx:Qb,unstable_defaultSxConfig:Zb});const dv=e=>e,pv=(()=>{let e=dv;return{configure(t){e=t},generate:t=>e(t),reset(){e=dv}}})(),fv=["className","component"];const mv={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 hv(e,t,r="Mui"){const n=mv[t];return n?`${r}-${n}`:`${pv.generate(e)}-${t}`}function gv(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=hv(e,t,r)})),n}const bv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function vv(e){const t=`${e}`.match(bv);return t&&t[1]||""}function yv(e,t=""){return e.displayName||e.name||vv(e)||t}function xv(e,t,r){const n=yv(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Sv=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return yv(e,"Component");if("object"==typeof e)switch(e.$$typeof){case tl.ForwardRef:return xv(e,e.render,"ForwardRef");case tl.Memo:return xv(e,e.type,"memo");default:return}}},getFunctionName:vv});function Ev(e,t){const r=hr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=hr({},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]=hr({},i),Object.keys(o).forEach((e=>{r[n][e]=Ev(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Cv="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function wv(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Rv=Object.freeze({__proto__:null,default:wv});function Iv(e){if(e.type)return e;if("#"===e.charAt(0))return Iv(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(Ug(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(Ug(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Lv(e,t){return e=Iv(e),t=function(e,t=0,r=1){return wv(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 Mv(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Dv(e){return e&&e.ownerDocument||document}function Av(e){return Dv(e).defaultView||window}function Pv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ov(e){const t=r.useRef(e);return Cv((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}function kv(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Pv(e,t)}))}),e)}const Tv={};const _v=[];class qv{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new qv}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Nv(){const e=function(e,t){const n=r.useRef(Tv);return n.current===Tv&&(n.current=e(t)),n}(qv.create).current;return function(e){r.useEffect(e,_v)}(e.disposeEffect),e}let Fv=!0,jv=!1;const zv=new qv,Gv={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 Bv(e){e.metaKey||e.altKey||e.ctrlKey||(Fv=!0)}function $v(){Fv=!1}function Wv(){"hidden"===this.visibilityState&&jv&&(Fv=!0)}function Hv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Fv||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Gv[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Vv(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Bv,!0),t.addEventListener("mousedown",$v,!0),t.addEventListener("pointerdown",$v,!0),t.addEventListener("touchstart",$v,!0),t.addEventListener("visibilitychange",Wv,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Hv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(jv=!0,zv.start(100,(()=>{jv=!1})),t.current=!1,!0)},ref:e}}function Uv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Yv(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}function Kv(e){return"string"==typeof e}function Xv(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 Jv(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 Zv=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Qv(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Er(e,Zv),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=fl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=hr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=hr({},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=Xv(hr({},o,n)),l=Jv(n),s=Jv(o),u=t(a),c=fl(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=hr({},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=hr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(hr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Kv(e)?t:hr({},t,{ownerState:hr({},t.ownerState,r)})}(r,hr({},s,{ref:kv(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function ey(e){var t;return parseInt(r.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const ty=r.createContext(null);function ry(){return r.useContext(ty)}var ny="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function oy(e){const{children:t,theme:n}=e,o=ry(),i=r.useMemo((()=>{const e=null===o?n:function(e,t){if("function"==typeof t)return t(e);return hr({},e,t)}(o,n);return null!=e&&(e[ny]=null!==o),e}),[n,o]);return Yr.jsx(ty.Provider,{value:i,children:t})}const iy=["value"],ay=r.createContext();function ly(e){let{value:t}=e,r=Er(e,iy);return Yr.jsx(ay.Provider,hr({value:null==t||t},r))}const sy=r.createContext(void 0);function uy({value:e,children:t}){return Yr.jsx(sy.Provider,{value:e,children:t})}function cy({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ev(o.defaultProps,n):o.styleOverrides||o.variants?n:Ev(o,n)}({props:e,name:t,theme:{components:r.useContext(sy)}})}const dy={};function py(e,t,n,o=!1){return r.useMemo((()=>{const r=e&&t[e]||t;if("function"==typeof n){const i=n(r),a=e?hr({},t,{[e]:i}):i;return o?()=>a:a}return hr({},t,e?{[e]:n}:n)}),[e,t,n,o])}function fy(e){const{children:t,theme:r,themeId:n}=e,o=iv(dy),i=ry()||dy,a=py(n,o,r),l=py(n,i,r,!0),s="rtl"===a.direction;return Yr.jsx(oy,{theme:l,children:Yr.jsx(va.Provider,{value:a,children:Yr.jsx(ly,{value:s,children:Yr.jsx(uy,{value:null==a?void 0:a.components,children:t})})})})}var my={},hy={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(hy);var gy=hy.exports,by=$(Yg),vy=$(Rv),yy=gy;Object.defineProperty(my,"__esModule",{value:!0});var xy=my.alpha=ky;my.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=My(e),a=My(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Ay({type:"rgb",values:l})},my.colorChannel=void 0;var Sy=my.darken=Ty;my.decomposeColor=My,my.emphasize=qy;var Ey=my.getContrastRatio=function(e,t){const r=Oy(e),n=Oy(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};my.getLuminance=Oy,my.hexToRgb=Ly,my.hslToRgb=Py;var Cy=my.lighten=_y;my.private_safeAlpha=function(e,t,r){try{return ky(e,t)}catch(t){return e}},my.private_safeColorChannel=void 0,my.private_safeDarken=function(e,t,r){try{return Ty(e,t)}catch(t){return e}},my.private_safeEmphasize=function(e,t,r){try{return qy(e,t)}catch(t){return e}},my.private_safeLighten=function(e,t,r){try{return _y(e,t)}catch(t){return e}},my.recomposeColor=Ay,my.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=My(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 wy=yy(by),Ry=yy(vy);function Iy(e,t=0,r=1){return(0,Ry.default)(e,t,r)}function Ly(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 My(e){if(e.type)return e;if("#"===e.charAt(0))return My(Ly(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,wy.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,wy.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Dy=e=>{const t=My(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};my.colorChannel=Dy;function Ay(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 Py(e){e=My(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])),Ay({type:l,values:s})}function Oy(e){let t="hsl"===(e=My(e)).type||"hsla"===e.type?My(Py(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 ky(e,t){return e=My(e),t=Iy(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ay(e)}function Ty(e,t){if(e=My(e),t=Iy(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 Ay(e)}function _y(e,t){if(e=My(e),t=Iy(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 Ay(e)}function qy(e,t=.15){return Oy(e)>.5?Ty(e,t):_y(e,t)}my.private_safeColorChannel=(e,t)=>{try{return Dy(e)}catch(t){return e}};const Ny={black:"#000",white:"#fff"},Fy={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"},jy="#f3e5f5",zy="#ce93d8",Gy="#ba68c8",By="#ab47bc",$y="#9c27b0",Wy="#7b1fa2",Hy="#e57373",Vy="#ef5350",Uy="#f44336",Yy="#d32f2f",Ky="#c62828",Xy="#ffb74d",Jy="#ffa726",Zy="#ff9800",Qy="#f57c00",ex="#e65100",tx="#e3f2fd",rx="#90caf9",nx="#42a5f5",ox="#1976d2",ix="#1565c0",ax="#4fc3f7",lx="#29b6f6",sx="#03a9f4",ux="#0288d1",cx="#01579b",dx="#81c784",px="#66bb6a",fx="#4caf50",mx="#388e3c",hx="#2e7d32",gx="#1b5e20",bx=["mode","contrastThreshold","tonalOffset"],vx={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:Ny.white,default:Ny.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}},yx={text:{primary:Ny.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:Ny.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 xx(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=Cy(e.main,o):"dark"===t&&(e.dark=Sy(e.main,i)))}function Sx(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Er(e,bx),i=e.primary||function(e="light"){return"dark"===e?{main:rx,light:tx,dark:nx}:{main:ox,light:nx,dark:ix}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:zy,light:jy,dark:By}:{main:$y,light:Gy,dark:Wy}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Uy,light:Hy,dark:Yy}:{main:Yy,light:Vy,dark:Ky}}(t),s=e.info||function(e="light"){return"dark"===e?{main:lx,light:ax,dark:ux}:{main:ux,light:sx,dark:cx}}(t),u=e.success||function(e="light"){return"dark"===e?{main:px,light:dx,dark:mx}:{main:hx,light:fx,dark:gx}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Jy,light:Xy,dark:Qy}:{main:"#ed6c02",light:Zy,dark:ex}}(t);function d(e){return Ey(e,yx.text.primary)>=r?yx.text.primary:vx.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=hr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Ug(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Ug(12,t?` (${t})`:"",JSON.stringify(e.main)));return xx(e,"light",o,n),xx(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:yx,light:vx};return Zg(hr({common:hr({},Ny),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:Fy,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Ex=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Cx={textTransform:"uppercase"},wx='"Roboto", "Helvetica", "Arial", sans-serif';function Rx(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=wx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Er(r,Ex),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return hr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===wx?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Cx),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Cx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zg(hr({htmlFontSize:u,pxToRem:m,fontFamily:n,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(",")}const Lx=["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)],Mx=["duration","easing","delay"],Dx={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)"},Ax={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Px(e){return`${Math.round(e)}ms`}function Ox(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function kx(e){const t=hr({},Dx,e.easing),r=hr({},Ax,e.duration);return hr({getAutoHeightDuration:Ox,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Er(n,Mx),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Px(o)} ${i} ${"string"==typeof a?a:Px(a)}`)).join(",")}},e,{easing:t,duration:r})}const Tx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},_x=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function qx(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Er(e,_x);if(e.vars)throw new Error(Ug(18));const l=Sx(n),s=nv(e);let u=Zg(s,{mixins:(c=s.breakpoints,d=r,hr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Lx.slice(),typography:Rx(l,i),transitions:kx(o),zIndex:hr({},Tx)});var c,d;return u=Zg(u,a),u=t.reduce(((e,t)=>Zg(e,t)),u),u.unstable_sxConfig=hr({},Zb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ev({sx:e,theme:this})},u}const Nx=qx();function Fx(){const e=lv(Nx);return e[Kg]||e}var jx,zx={},Gx={exports:{}};var Bx,$x={exports:{}};var Wx=$(Ta),Hx=$(Qg),Vx=$(sb),Ux=$(Sv),Yx=$(ov),Kx=$(cv),Xx=gy;Object.defineProperty(zx,"__esModule",{value:!0});var Jx=zx.default=function(e={}){const{themeId:t,defaultTheme:r=uS,rootShouldForwardProp:n=sS,slotShouldForwardProp:o=sS}=e,i=e=>(0,nS.default)((0,Zx.default)({},e,{theme:dS((0,Zx.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,eS.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=pS(cS(s))}=a,p=(0,Qx.default)(a,aS),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=sS;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,eS.default)(e,(0,Zx.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,tS.isPlainObject)(e)?n=>fS(e,(0,Zx.default)({},n,{theme:dS({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=dS((0,Zx.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]=fS(r,(0,Zx.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=dS((0,Zx.default)({},e,{defaultTheme:r,themeId:t}));return fS({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,Zx.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};zx.shouldForwardProp=sS,zx.systemDefaultTheme=void 0;var Zx=Xx((jx||(jx=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Gx)),Gx.exports)),Qx=Xx((Bx||(Bx=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}($x)),$x.exports)),eS=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=lS(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}(Wx),tS=Hx;Xx(Vx),Xx(Ux);var rS=Xx(Yx),nS=Xx(Kx);const oS=["ownerState"],iS=["variants"],aS=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function lS(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(lS=function(e){return e?r:t})(e)}function sS(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const uS=zx.systemDefaultTheme=(0,rS.default)(),cS=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function dS({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function pS(e){return e?(t,r)=>r[e]:null}function fS(e,t){let{ownerState:r}=t,n=(0,Qx.default)(t,oS);const o="function"==typeof e?e((0,Zx.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>fS(e,(0,Zx.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Qx.default)(o,iS);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Zx.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,Zx.default)({ownerState:r},n,r)):e.style))})),t}return o}const mS=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,hS=Jx({themeId:Kg,defaultTheme:Nx,rootShouldForwardProp:mS}),gS=["theme"];function bS(e){let{theme:t}=e,r=Er(e,gS);const n=t[Kg];return Yr.jsx(fy,hr({},r,{themeId:n?Kg:void 0,theme:n||t}))}const vS=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},yS={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},xS={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},SS=qu("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...yS},"&::-moz-range-track":{...yS},"&::-ms-track":{...yS},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...xS},"&::-moz-range-thumb":{...xS},"&::-ms-thumb":{...xS},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),ES=({columnWidth:e,keyValue:r,isLastColumn:n,isPivot:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:d,accessibilityRelatedArgs:p,direction:f="ltr"})=>{const m=Vg({translator:p.translator}),h=c({initWidth:e,columnWidth:e,initX:0}),g=n?0:1,b=o&&!d,v={left:"rtl"===f?"0px":b?h.current.columnWidth-g:"100%",right:"rtl"===f?"100%":"0px"},y=t=>{h.current={initWidth:e,columnWidth:e,initX:null!=t?t:h.current.initX}};Wg((()=>{b&&y()}),[e]);const x=e=>{const t=Math.max(e,Bt.PixelsMin);h.current.columnWidth=t,a(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:$t.Pixels,pixels:h.current.columnWidth};l(e)}else null==u||u(!1)},E=e=>{const t="rtl"===f?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;x(t)},C=e=>{Yh(e),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",C),S()},w=e=>{const t="rtl"===f?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;x(t)},R=e=>{Yh(e),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",R),S()},I=!o&&s?e=>{if(e.key===zt.Left||e.key===zt.Right){Yh(e);const t=5,r=e.key===zt.Left?t:-5,n="rtl"===f?r:-r;x(h.current.columnWidth+n)}else e.key===zt.Space||e.key===zt.Enter?(Yh(e),s(e),S()):e.key===zt.Esc&&(Yh(e),s(e),x(h.current.initWidth))}:void 0,L=m.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(p.columnLabel)]);return t.createElement(SS,{style:v,key:r,hoverColor:i,isLastColumn:n,className:Gt,"data-testid":Gt,onMouseDown:e=>{Yh(e),document.addEventListener("mousemove",E),document.addEventListener("mouseup",C),null==u||u(!0),y(e.clientX)},onDoubleClick:()=>{l({type:$t.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Yh(e),document.addEventListener("touchmove",w),document.addEventListener("touchend",R),null==u||u(!0),y(e.touches[0].clientX))},onKeyDown:I,onBlur:s,onFocus:()=>{y()},type:"range",tabIndex:-1,max:Bt.PixelsMax,"aria-label":L,"aria-valuemin":Bt.PixelsMin,"aria-valuemax":Bt.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:f})};function CS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wS=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){CS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),RS=d(wS);function IS(){return IS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IS.apply(null,arguments)}const LS=qu(Xd,{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"}))),MS=qu(RS,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),DS=qu(Sf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),AS=qu(bp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),PS=qu(If)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),OS=qu(If,{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"}))),kS=qu("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),TS=qu("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),_S=qu(td)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),qS=qu(Up,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})));function NS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const FS=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){NS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),jS=d(FS);let zS={};const GS=({autoFocus:e,id:r,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:l,isSubMenu:s,isActive:d,handleHeadCellMenuKeyDown:f,direction:m,isPagination:h})=>{const[g,b]=u(!1),v=c(null),y=p((e=>{e.stopPropagation(),b(!1)}),[b]);return t.createElement(t.Fragment,null,t.createElement(OS,{ref:l?v:null,key:r,"data-testid":`menu-item-${r}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),zS={}),null!=l&&l.length&&(b(!0),zS[o]=b))},disabled:!a,autoFocus:e,isSubMenu:!!s,isActive:!!d,onKeyDown:f},d?t.createElement(kS,{direction:m,isPagination:h}):null,t.createElement(TS,null,t.createElement(qS,{direction:m,isPagination:h},t.createElement(i,null)),t.createElement(_S,{variant:"body2"},o)),null!=l&&l.length?t.createElement(jS,null):null),null!=l&&l.length?t.createElement(WS,{isSubMenu:!0,open:g,anchorEl:v.current,onClose:y,menuGroups:(x=l,S=zS,x.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(S).forEach((([,e])=>{e(!1)})),await e(t)}}:{}})))})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:f,direction:m,isPagination:h}):null);var x,S},BS=({menuGroup:e,isSubMenu:r,handleHeadCellMenuKeyDown:n,direction:o,isPagination:i})=>e.map((e=>[[e.groupHeading&&t.createElement(PS,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>t.createElement(GS,IS({key:e.id},e,{isSubMenu:r,handleHeadCellMenuKeyDown:n,direction:o,isPagination:i}))))].filter(Boolean)])),$S={appear:0,enter:0,exit:0},WS=({anchorEl:e,open:r,onClose:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s,direction:u,isPagination:c})=>o.length?t.createElement(DS,IS({className:"nebula-table-utils-head-menu",open:r,anchorEl:e,onClose:n,transitionDuration:$S,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{},{dir:u}),(({itemGroups:e,isSubMenu:r,handleHeadCellMenuKeyDown:n,direction:o,isPagination:i})=>e.map(((a,l)=>[BS({menuGroup:a,isSubMenu:r,handleHeadCellMenuKeyDown:n,direction:o,isPagination:i}),l<e.length-1?t.createElement(AS,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s,direction:u,isPagination:c})):null,HS=(e,t)=>e.some((e=>t[e]>0)),VS={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},US=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=u(null),[a,l]=u(VS);return Wg((()=>{e||(l(VS),i(null))}),[e]),f((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{var e,u,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),p=await n.createSessionObject(d),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo)&&void 0!==e?e:{};o=null===(c=f.qInfo)||void 0===c?void 0:c.qId,a?s():(i(p),m&&l((e=>({canSelectAll:HS(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:HS(["qSelected"],e),canSelectPossible:HS(["qOption"],e),canSelectAlternative:HS(["qAlternative"],e),canSelectExcluded:HS(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function YS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KS=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){YS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),XS=d(KS);function JS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ZS=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){JS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),QS=d(ZS);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=(e,r)=>t.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:r},e),t.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"})),rE=d(tE);function nE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){nE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),iE=d(oE);function aE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){aE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.createElement("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})),sE=d(lE);function uE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const cE=(e,r)=>t.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){uE(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:r},e),t.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"})),dE=d(cE);function pE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){pE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),mE=d(fE);function hE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const gE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.createElement("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})),bE=d(gE);function vE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yE=(e,r)=>t.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){vE(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:r},e),t.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"})),xE=d(yE);function SE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const EE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){SE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),CE=d(EE);function wE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const RE=(e,r)=>t.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){wE(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:r},e),t.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"})),IE=d(RE);function LE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ME=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){LE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),DE=d(ME);function AE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const PE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){AE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),OE=d(PE);function kE(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=(e,r)=>t.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){kE(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:r},e),t.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"})),_E=d(TE);let qE=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const NE="/qListObjectDef",FE=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[qE.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:XS,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:iE,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:bE,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:sE,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[qE.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:xE,enabled:!0}]}]),r[qE.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:_E,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(NE))},icon:CE,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(NE))},icon:OE,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(NE))},icon:IE,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectExcluded(NE))},icon:DE,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clearSelections(NE))},icon:QS,enabled:s.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:mE,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:dE,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[qE.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:rE,enabled:!0}]}]),f},jE=({open:e,setOpen:r,anchorRef:n,headerData:o,translator:i,interactions:a,handleHeadCellMenuKeyDown:l,menuAvailabilityFlags:s,shouldShowMenuIcon:u=!0,sortRelatedArgs:c,searchRelatedArgs:d,selectionRelatedArgs:f,adjustHeaderSizeRelatedArgs:m,expandOrCollapseArgs:h,model:g,direction:b="ltr",isPagination:v})=>{var y;const x=Vg({translator:i}),{qLibraryId:S,fieldId:E,headTextAlign:C}=o,w=null==f?void 0:f.app,{fieldInstance:R,selectionActionsEnabledStatus:I}=US({open:e,headerData:o,app:w,qStateName:null==f?void 0:f.qStateName});let L=null;if(g&&"setActiveField"in g&&void 0!==o.dimensionInfoIndex){const e=o.dimensionInfoIndex;L=async t=>{try{await g.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const M=p((()=>{const e=S?{qLibraryId:S,type:"dimension"}:E;if(null!=d&&d.embed){const{embed:t,listboxRef:r}=d;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===b?"right":"left"},sortCriteria:d.sortCriteria,stateName:null==f?void 0:f.qStateName,direction:b})}}),[S,E,d,null==f?void 0:f.qStateName,b]),D=p((e=>{e.stopPropagation(),r(!1)}),[r]);return a.active?t.createElement(LS,{rightAligned:"right"===C,shouldShowMenuIcon:u,className:"nebula-table-utils-head-menu-wrapper"},u?t.createElement(MS,{height:Nt,className:Ft,"data-testid":Ft,isInteractionsActive:null!==(y=a.active)&&void 0!==y&&y},t.createElement(RS,null)):null,t.createElement(WS,{open:e,anchorEl:n.current,onClose:D,menuGroups:FE({headerData:o,translator:x,menuAvailabilityFlags:s,setOpen:r,...c,embedListbox:M,interactions:a,fieldInstance:R,selectionActionsEnabledStatus:I,anchorRef:n,setFocusOnColumnAdjuster:null==m?void 0:m.setFocusOnColumnAdjuster,setActiveFieldCallback:L,expandOrCollapseArgs:h}),handleHeadCellMenuKeyDown:l,direction:b,isPagination:v})):null},zE=e=>e.isDark?{background:e.color,borderColor:fm.DARK_MODE_BORDER,color:fm.DARK_MODE_TEXT,disabledColor:fm.DARK_MODE_DISABLED,iconColor:fm.DARK_MODE_TEXT}:{background:e.color,borderColor:fm.BORDER_MEDIUM,color:fm.TEXT,disabledColor:fm.DISABLED},GE=qu(Xd,{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}`}))),BE=qu(am,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),$E=qu(ap,{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)}))),WE=qu(td)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),HE=({children:e,footerContainer:r,interactions:n,theme:o,paginationNeeded:i=!0})=>{const a=s((()=>zE(o.background)),[o]);if(!n.active)return null;const l=i?t.createElement(GE,{footerStyle:a},e):null;return r?F.createPortal(e,r):l},VE=m({}),UE=()=>n(VE),YE=({children:e,direction:r,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:f,theme:m,interactions:h,rect:g,layout:b})=>{const v=(e=>!e.enabled||e.active)(p)?0:-1,y=s((()=>zE(m.background)),[m]),x=i?i.getBoundingClientRect().width:g.width,S=Vg({translator:f}),E=s((()=>({direction:r,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:S,theme:m,interactions:h,rect:g,layout:b,footerStyle:y,tabIndex:v,width:x})),[r,n,o,i,a,l,u,c,d,p,S,m,h,g,b,y,v,x]);return t.createElement(VE.Provider,{value:E},e)};let KE=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),XE=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 JE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ZE=(e,r)=>t.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){JE(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:r},e),t.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),QE=d(ZE);function eC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tC=(e,r)=>t.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){eC(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:r},e),t.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),rC=d(tC);function nC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oC=(e,r)=>t.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){nC(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:r},e),t.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),iC=d(oC),aC={FirstPage:rC,PreviousPage:QE,NextPage:jS,LastPage:iC,FirstPageRTL:iC,PreviousPageRTL:jS,NextPageRTL:QE,LastPageRTL:rC},lC=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=UE(),u=r.concat("rtl"===n?"RTL":""),c=aC[u];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?void 0:()=>{i(t)}},IconComponent:c}},sC=()=>{const{pageInfo:e,width:r}=UE(),n=0===e.page,{IconComponent:o,styledProps:i}=lC({type:KE.FirstPage,disabledCondition:n,pageNumber:0});return r<=XE.FirstPage?null:t.createElement($E,i,t.createElement(o,{height:Nt}))},uC=(e,t,r=!1)=>{r&&e.key===zt.Tab&&!e.shiftKey&&(Yh(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))},cC=()=>{const{pageInfo:e,keyboard:r,totalPages:n,isSelectionMode:o,width:i}=UE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=lC({type:KE.LastPage,disabledCondition:a,pageNumber:n-1}),u=r.enabled?e=>{uC(e,r,o)}:void 0;return i<=XE.LastPage?null:t.createElement($E,IS({},s,{onKeyDown:u}),t.createElement(l,{height:Nt}))},dC=()=>{const{pageInfo:e,keyboard:r,totalPages:n,isSelectionMode:o,width:i}=UE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=lC({type:KE.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>XE.FirstPage&&i>XE.LastPage)&&r.enabled?e=>{uC(e,r,o)}:void 0;return t.createElement($E,IS({},s,{onKeyDown:u}),t.createElement(l,{height:Nt}))},pC=()=>{const{pageInfo:e}=UE(),r=0===e.page,{IconComponent:n,styledProps:o}=lC({type:KE.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return t.createElement($E,o,t.createElement(n,{height:Nt}))},fC=()=>{const{translator:e,width:r,pageInfo:n,totalRowCount:o}=UE(),{page:i,rowsPerPage:a}=n;if(r<=XE.DisplayedRowsLabel)return null;const l=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,o)}`,o.toString()]);return t.createElement(WE,{variant:"caption"},l)},mC=({name:e,value:r,options:n,handleChange:o})=>{const{layout:i,footerStyle:a,translator:l,tabIndex:s}=UE(),u=i.qInfo.qId,c=l.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return t.createElement(t.Fragment,null,t.createElement(WE,{variant:"caption",id:p},c,":"),t.createElement(BE,{footerStyle:a,size:"small",native:!0,value:r,onChange:o,inputProps:f},n))},hC=()=>{var e;const{pageInfo:r,isSelectionMode:n,totalColumnCount:o,width:i,handleChangeRowsPerPage:a}=UE();if(!(!(null===(e=r.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&i>XE.RowsPerPage&&o<=100)||void 0===r.rowsPerPageOptions)return null;const l=t.createElement(t.Fragment,null,r.rowsPerPageOptions.map((e=>t.createElement("option",{key:e,value:e},e))));return t.createElement(mC,{name:"RowsPerPage",value:r.rowsPerPage,options:l,handleChange:e=>{null==a||a(+e.target.value)}})},gC=1e3,bC="…",vC=({totalPages:e,page:r})=>{const n=Math.min(e,gC),o=n<e&&r>500,i=o?Math.min(500+r,e):n,a=o?Math.max(0,i-gC):0,l=Array.from(Array(n).keys()).map((e=>{const r=e+a;return t.createElement("option",{key:r,value:r},r+1)}));return a>0&&l.unshift(t.createElement("option",{key:"startMoreOptions",value:bC,disabled:!0},bC)),i<e-1&&l.push(t.createElement("option",{key:"endMoreOptions",value:bC,disabled:!0},bC)),t.createElement(t.Fragment,null,l)},yC=()=>{const{pageInfo:e,width:r,totalPages:n,handleChangePage:o}=UE(),{page:i}=e;if(r<=XE.SelectPage)return null;const a=t.createElement(vC,{totalPages:n,page:i});return t.createElement(mC,{name:"SelectPage",value:i,options:a,handleChange:e=>{o(+e.target.value)}})};var xC=h((e=>t.createElement(YE,e,t.createElement(hC,null),t.createElement(yC,null),t.createElement(fC,null),t.createElement(sC,null),t.createElement(pC,null),t.createElement(dC,null),t.createElement(cC,null))));const SC=e=>t.createElement(HE,e,t.createElement(xC,e)),EC=m({}),CC=()=>n(EC),wC=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,children:o})=>{const i=s((()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n})),[e,t,r,n]);return Yr.jsx(EC.Provider,{value:i,children:o})},RC=m({}),IC=()=>n(RC),LC=({app:e,model:t,theme:r,embed:n,keyboard:o,translator:i,interactions:a,env:l,children:u})=>{const c=s((()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:o,env:l,translator:i})),[e,a,t,n,r,o,l,i]);return Yr.jsx(RC.Provider,{value:c,children:u})},MC=m({}),DC=()=>n(MC),AC=({children:e,...t})=>Yr.jsx(MC.Provider,{value:t,children:e}),PC=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:r}=IC(),{layoutService:n}=DC(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:og;return n.hasData?n.hasLimitedData?{text:r.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:r.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:Yr.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:Yr.jsx("span",{style:{...fg,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},OC="/qHyperCubeDef",kC=-1,TC="PSEUDO-DIM",_C=[];for(let e=0;e<256;++e)_C.push((e+256).toString(16).slice(1));let qC;const NC=new Uint8Array(16);function FC(){if(!qC){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");qC=crypto.getRandomValues.bind(crypto)}return qC(NC)}var jC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function zC(e,t,r){if(jC.randomUUID&&!e)return jC.randomUUID();const n=(e=e||{}).random||(e.rng||FC)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(_C[e[t+0]]+_C[e[t+1]]+_C[e[t+2]]+_C[e[t+3]]+"-"+_C[e[t+4]]+_C[e[t+5]]+"-"+_C[e[t+6]]+_C[e[t+7]]+"-"+_C[e[t+8]]+_C[e[t+9]]+"-"+_C[e[t+10]]+_C[e[t+11]]+_C[e[t+12]]+_C[e[t+13]]+_C[e[t+14]]+_C[e[t+15]]).toLowerCase()}(n)}const GC=()=>{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:zC()},BC=e=>e===kC?TC:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:GC()})(e),$C=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===kC?r.columnWidthLocation=rr.Measures:r.isLeftDimension?r.columnWidthLocation=rr.Dimension:t.at(-1)===kC?r.columnWidthLocation=rr.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=rr.Pivot))},WC=(e,t,r,n)=>{var o;const i=BC(r),a=e.getDimensionInfoIndex(r),l=e.isLeftDimension(a);return r===kC?{id:i,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:a,canBeResized:!1,isLeftDimension:l,isLastDimension:n,columnWidthLocation:rr.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:i,colIdx:0,label:r.qFallbackTitle,qReverseSort:r.qReverseSort,sortDirection:r.qSortIndicator&&"N"!==r.qSortIndicator?r.qSortIndicator:"A",qLibraryId:r.qLibraryId,fieldId:r.qGroupFieldDefs[r.qGroupPos],isLocked:null!==(o=r.qLocked)&&void 0!==o&&o,columnWidth:r.columnWidth,qApprMaxGlyphCount:r.qApprMaxGlyphCount,isDim:!0,isCyclic:r.qGrouping===Vt.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:a,canBeResized:!1,isLeftDimension:l,isLastDimension:n,columnWidthLocation:rr.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},HC=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let o=n;var i;r.length>0&&(o=(i=n).at(-1)===kC?i.slice(0,-1):i);const a=o.length+(r.length?1:0),l=Math.max(1,r.length),s=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,l);return r.forEach(((r,n,o)=>{const i=n===o.length-1;s[a-1][n]=WC(e,t,r,i)})),o.forEach(((r,n,o)=>{const i=n===o.length-1;s[n][l-1]=WC(e,t,r,i)})),s},VC=(e,t,r,n)=>{var o,i;const a=((e,t,r,n)=>{let o;var i;return o=0===r.length||r.includes(kC)?HC({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(HC({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&(null===(i=o.at(-1))||void 0===i||i.forEach(((t,r)=>{Array.isArray(t)?t.forEach(((t,r)=>{$C({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})):$C({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),o})(e,t,r,n);return{data:a,size:{x:null!==(o=null===(i=a[0])||void 0===i?void 0:i.length)&&void 0!==o?o:0,y:a.length}}};function UC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function YC(e,t,r){return t=ZC(t),function(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)}(e,ew()?Reflect.construct(t,r||[],ZC(e).constructor):t.apply(e,r))}function KC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XC(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,nw(n.key),n)}}function JC(e,t,r){return t&&XC(e.prototype,t),r&&XC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZC(e){return ZC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZC(e)}function QC(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&&tw(e,t)}function ew(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ew=function(){return!!e})()}function tw(e,t){return tw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tw(e,t)}function rw(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);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){if("string"==typeof e)return UC(e,t);var r={}.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)?UC(e,t):void 0}}(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 nw(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function ow(e){return ow="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},ow(e)}var iw={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:aw(e),value:aw(t),useEqualSign:r}}(r,o,i))}})),t}};function aw(e){try{return decodeURIComponent(e)}catch(t){return e}}function lw(e){if(!(this instanceof lw))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 iw.fromSearchString(t.search)}}})}function sw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}lw.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},lw.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=sw((t=e[n]).key),t.value?r+="=".concat(sw(t.value)):r+=t.useEqualSign?"=":"";return r};var uw,cw=function(){return JC((function e(t){KC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{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}}])}(),dw=function(){return JC((function e(){KC(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new cw(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),pw=function(e){return e>=0&&e<=1114111},fw=function(e){return e.match(/[\s]/)},mw=function(e){function t(){return KC(this,t),YC(this,t,arguments)}return QC(t,e),JC(t,[{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())&&!fw(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return pw(a)?String.fromCharCode(a):"�"}}])}(dw),hw=function(){function e(t,r){KC(this,e),this._key=t,this._value=r}return JC(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}}])}(),gw=function(){function e(){KC(this,e)}return JC(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 hw.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return hw.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||hw.newInstanceIfNeeded(e,t,this._value)}}])}(),bw=function(){return JC((function e(){KC(this,e),this.clear()}),[{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 gw);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),vw=function(){var e,t,r,n=[],o=[],i=new bw;for(e in n["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["¬in"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),yw=function(e){function t(){return KC(this,t),YC(this,t,arguments)}return QC(t,e),JC(t,[{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,vw.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=vw.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)&&pw(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)&&pw(n)?String.fromCharCode(n):null}}])}(dw),xw=function(e){function t(){return KC(this,t),YC(this,t,arguments)}return QC(t,e),JC(t,[{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),pw(o))?String.fromCharCode(o):(e.reset(),null)}}])}(dw),Sw=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(uw=document.createElement("div"));var Ew=Array.prototype.indexOf,Cw=[",",".","_"," "],ww=[",",".","-","_"," "],Rw={width:["%"],height:["%"]},Iw={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Lw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Iw.image,"background-color":Iw.color,"border-color":Iw.color,"border-image":Iw.image,color:Iw.color,icon:Iw.image,"list-style-image":Iw.image,"outline-color":Iw.color},Mw={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Dw(e,t,r){var n;if(t){if(Ew)return Ew.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 Aw(e){if(null==e)return"";var t,r=document.createTextNode(e);return uw.appendChild(r),t=uw.innerHTML,uw.removeChild(r),t}function Pw(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=kw(e).toLowerCase(),t=kw(t),Dw(e,Mw.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<Mw.attr_val;i++)if(t.toLowerCase().match(Mw.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=Rw[e])||(n=ww),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]/)&&Dw(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Ow(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=kw(e).toLowerCase(),t=kw(t),Dw(e,Mw.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<Mw.css_val.length;n++)if(t.toLowerCase().indexOf(Mw.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Lw[e])||(o=Iw.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]/)&&Dw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function kw(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new yw,new xw,new mw];!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 Tw=[],_w=0;_w<255;_w++)Tw[_w]=_w>=48&&_w<=57||_w>=65&&_w<=90||_w>=97&&_w<=122?null:_w.toString(16);var qw=function(e){return Aw(e.unsafe)},Nw=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]=Ow(t,r[t],!0),i+=Ow(t,r[t],!0),o[t]=n[t]);return e.map?o:i},Fw=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]=Pw(i,t[i],!0),o+=Pw(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function jw(e,t){throw new Error(t)}var zw={canonicalize:kw,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===ow(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?qw(e):"css"===e.context?(null!=e.map&&"object"!==ow(e.map)&&jw(this,"Invalid parameter type"),Nw(e)):"attr"===e.context?(null!=e.map&&"object"!==ow(e.map)&&jw(this,"Invalid parameter type"),Fw(e)):void jw(this,"Invalid parameter type")},encodeForAttr:Pw,encodeForAttr2:function(e){return Pw("nonsens",e,!0)},encodeForCSS:Ow,encodeForHref:function(e){kw(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new lw(e),r=lw.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+lw.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=Cw),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Dw(o,t)>=0||null==Tw[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:Aw,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=kw(t).toLowerCase():jw(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=rw(null!==(t=Sw.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},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const Gw=(e,t)=>{var r;return null===(r=t.qAttrExps)||void 0===r||null===(r=r.qValues)||void 0===r?void 0:r[e]},Bw=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"}}},$w=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i})=>n&&t&&!t.toLowerCase().includes("javascript:")&&zw.isSafeDataURL(t)?{type:Ut.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Bw(n),labelStructure:o,imageBox:i}:{type:Ut.Text,url:void 0,text:e,labelStructure:o},Ww=(e,t,r,n)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:Ut.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),l=i?r.qYMin:e.qMiniChart.qMin,s=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(l),Math.abs(s));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,l),maxY:Math.max(0,s)}:{minY:l,maxY:s}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:Ut.MiniChart,text:n,miniChart:a}},Hw=(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)===Yt.Attribute||null==r?void 0:r.urlLabel},Vw=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Ut.Link,url:zw.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:Ut.Text,url:void 0,text:t,labelStructure:e}}},Uw=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:l=e=>e.qText})=>{var s,u,c,d,p,f;const m=Kt(t),h=l(e);return m!==Ut.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(s=n.anything.sense)&&void 0!==s&&null!==(u=s.isUnsupportedFeature)&&void 0!==u&&u.call(s,"tableImages")?m===Ut.Link?((e,t,r,n,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===Yt.Attribute){var a;const i=Hw(null!==(a=r.url)&&void 0!==a?a:-1,e,t);return Vw({labelStructure:n,text:o||i||"",url:i})}if(i===Yt.Dimension){var l,s;const i=Hw(null!==(l=r.urlLabel)&&void 0!==l?l:-1,e,t)||o;return n&&(n.maskedValue=i),Vw({text:i,labelStructure:n,url:null!==(s=null==n?void 0:n.originalValue)&&void 0!==s?s:o})}return{type:Ut.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,h):m!==Ut.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(c=n.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"tableIndicators")?m!==Ut.MiniChart||!n.flags.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")||null!==(p=n.anything.sense)&&void 0!==p&&null!==(f=p.isUnsupportedFeature)&&void 0!==f&&f.call(p,"qMiniChartDef")?{type:Ut.Text,url:void 0,text:h,labelStructure:a}:Ww(e,t,i,h):((e,t,r)=>{const{indicator:n}=null!=e?e:{};return{type:Ut.Indicator,url:void 0,text:r,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:t}})(t,o,h):((e,t,r,n,o)=>{const{imageSize:i,imagePosition:a,imageSetting:l,imageLabel:s,imageBox:u}=null!=t?t:{};if("url"===l){var c,d;const t=null===(c=Gw(null!==(d=r.imageUrl)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText;return o&&(o.maskedValue=null!=t?t:""),$w({text:n,url:t,imageSize:i,imagePosition:a,labelStructure:o,imageBox:u})}if("label"===l){var p,f,m;const t=o?o.originalValue:n;if(-1===r.imageLabel)return $w({text:s||t||"",url:t,imageSize:i,imagePosition:a,labelStructure:o,imageBox:u});const l=null!==(p=null===(f=Gw(null!==(m=r.imageLabel)&&void 0!==m?m:-1,e))||void 0===f?void 0:f.qText)&&void 0!==p?p:n;return $w({text:l,url:t,imageSize:i,imagePosition:a,labelStructure:o,imageBox:u})}return{type:Ut.Text,url:void 0,labelStructure:o,text:n}})(e,t,r,h,a)},Yw=(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?Uh(s):null,c=l?Uh(l):null,d=((e,t)=>e||!t?null:$h(t))(c,u);return{color:null!=d?d:c,background:u}},Kw=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:Kw(e,t)),e),Xw=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:ag-n;let l=e.qUp+e.qDown;if(o&&0===r){const r=(t+e.qUp)%i.rowsPerPage;l=e.qDown+r}return Math.min(a,Kw(l,e))},Jw=(e,t,r)=>{if(e!==kC){if(t){const t=Kt(e.representation);return null!=r&&r.isLinksSupported&&t===Ut.Link||null!=r&&r.isImagesSupported&&t===Ut.Image?e.representation:{type:Ut.Text}}return e.representation}},Zw=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentModeFeatures:d,indentLevel:p,labelStructure:f,env:m,pageInfo:h})=>{const g=(!c||!u)&&"P"===e.qType;let b=e.qText;if(u&&c&&f){const{originalValue:e,delimeter:t,suffix:r}=f;b=`${e} ${!r||!e&&r?"":t} ${r}`.trim()}const v={id:GC(),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:Xw(e,o,i,n,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:"T"===e.qType||!(null==t||!t.isTotal),isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:g,expressionColor:Yw(s,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:g?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:Uw({cell:{...e,qText:b},representationProperties:Jw(l,c,d),attrExprInfoIndex:s,env:m,labelStructure:f}),...void 0!==p&&{indentLevel:p}};return t&&(t.children[v.mainAxisPageCoord-t.mainAxisPageCoord]=v),v},Qw=(e,t,r,n,o,i,a,l)=>{const{isIndentModeEnabled:s,indentModeFeatures:u}=o;if(!t.length)return e;let c=0;return function t(d,p,f,m=0,h=-1){e[m]||(e[m]={}),s&&h++;const g=o.leftDimensionInfoIndexes.indexOf(kC);f.forEach(((f,b)=>{var v,y;const x={originalValue:null!==(v=f.qText)&&void 0!==v?v:"",maskedValue:"",delimeter:"-",suffix:""};c+=0===b?0:1;const S=r.qTop-n.page*n.rowsPerPage,E=Math.max(0,S+c-f.qUp),C=r.qTop+c-f.qUp;if(s){var w,R;if(o.hasPseudoDimOnLeft&&h<=g)if(x.originalValue=null!==(w=f.qText)&&void 0!==w?w:"",x.maskedValue=null!==(R=f.qText)&&void 0!==R?R:"","N"===f.qType||"U"===f.qType||"T"===f.qType)"U"===f.qType&&(x.originalValue=o.getNullValueText()),h<g&&(x.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===f.qType){var I,L,M,D,A,P,O,k;x.originalValue=null!==(I=null===(L=p||d)||void 0===L||null===(L=L.representation.labelStructure)||void 0===L?void 0:L.originalValue)&&void 0!==I?I:"",x.maskedValue=null!==(M=null===(D=p||d)||void 0===D||null===(D=D.representation.labelStructure)||void 0===D?void 0:D.originalValue)&&void 0!==M?M:"",x.suffix=null!==(A=f.qText)&&void 0!==A?A:"";const e=f.qSubNodes;f={...null===(P=p||d)||void 0===P?void 0:P.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},h=null!==(O=null===(k=p||d)||void 0===k?void 0:k.indentLevel)&&void 0!==O?O:0}"U"===f.qType&&(x.originalValue=o.getNullValueText())}let T=m;s&&(T=g>=1&&h>=g?h+1:h,0===h&&0===g&&0===f.qSubNodes.length&&(T=0));const _=null===(y=e.at(m))||void 0===y?void 0:y[E],q=s&&void 0===(null==_?void 0:_.ref.qText)||!_?Zw({node:f,parent:p,root:d,x:T,y:C,pageY:E,layoutService:o,dimensionInfo:i[T],attrExprInfoIndex:a[T],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentModeFeatures:u,indentLevel:h},env:l,pageInfo:n,labelStructure:x}):e[m][E];if(e[m][E]=q,f.qSubNodes.length){const e=s?0:m+1;t(d||q,q,f.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},eR=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n.at(r+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},tR=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=null!=t&&t.isIndentModeEnabled&&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},rR=({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=Qw(e.grid,l,s,r,n,o,i,a);eR(u,r.rowsOnCurrentPage);const c=tR(u,n);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},nR=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u="U"===t.qType;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:GC(),ref:t,isNull:u}}))})),o},oR=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return null!=n&&n.length?nR({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},iR=(e,t,r,n,o,i,a,l,s)=>{const{isIndentModeEnabled:u,indentModeFeatures:c}=n;if(!t.length)return e;let d=0;!function t(a,p,f,m=0){e[m]||(e[m]={}),f.forEach(((f,h)=>{var g;d+=0===h?0:1;const b=r.qLeft+d-f.qUp,v=null!==(g=e[m][b])&&void 0!==g?g:Zw({node:f,parent:p,root:a,x:b,y:m,pageY:m,layoutService:n,dimensionInfo:o[m],attrExprInfoIndex:i[m],isLeftColumn:!1,...u&&{isIndentModeEnabled:u,indentModeFeatures:c},env:l,pageInfo:s});e[m][b]=v,f.qSubNodes.length&&t(a||v,v,f.qSubNodes,m+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},aR=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=iR(e.grid,s,u,r,n,o,i,a,l);eR(c,r.size.x);const d=tR(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},lR=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),sR=(e,t)=>{const{env:r}=IC(),{layoutService:n,effectivePropertiesService:o}=DC(),{qPivotDataPages:i,pageInfo:a}=CC(),[l,c]=u(null),d=((e,t,r)=>s((()=>({left:e.map(lR),top:t.map(lR),measures:r.map(lR)})),[r,e,t]))(e,t,n.visibleMeasureInfo),f=s((()=>VC(n,o,t,e)),[n,o,t,e]),m=p((()=>i.slice(1).reduce(((e,t)=>oR({prevData:e,dataPage:t,pageInfo:a})),((e,t)=>{const{qData:r,qArea:n}=e;return nR({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(i[0],a))),[i,a]),h=p((()=>i.slice(1).reduce(((e,o)=>aR({prevData:e,nextDataPage:o,layoutService:n,visibleTopDimensionInfo:t,attrExprInfoIndexes:d.top,headerRows:f.size.y,env:r,pageInfo:a})),((e,t,r,n,o,i,a)=>{const{qArea:l,qTop:s}=e,u=iR([],s,l,t,r,n,o,i,a);eR(u,t.size.x);const c=tR(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(i[0],n,t,d.top,f.size.y,r,a))),[i,n,t,d.top,f.size.y,r,a]),g=p((()=>i.slice(1).reduce(((t,o)=>rR({prevData:t,nextDataPage:o,pageInfo:a,layoutService:n,visibleLeftDimensionInfo:e,attrExprInfoIndexes:d.left,env:r})),((e,t,r,n,o,i)=>{const{qArea:a,qLeft:l}=e,s=Qw([],l,a,r,t,n,o,i);eR(s,r.rowsOnCurrentPage);const u=tR(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(i[0],n,a,e,d.left,r))),[i,n,a,e,d,r]),[b,v]=u((()=>m())),[y,x]=u((()=>h())),[S,E]=u((()=>g()));Wg((()=>{v(m())}),[m]),Wg((()=>{x(h())}),[h]),Wg((()=>{E(g())}),[g]),Wg((()=>{l&&l.forEach((o=>{v((e=>oR({prevData:e,dataPage:o,pageInfo:a}))),x((e=>aR({prevData:e,nextDataPage:o,layoutService:n,visibleTopDimensionInfo:t,attrExprInfoIndexes:d.top,headerRows:f.size.y,env:r,pageInfo:a}))),E((t=>rR({prevData:t,nextDataPage:o,pageInfo:a,layoutService:n,visibleLeftDimensionInfo:e,attrExprInfoIndexes:d.left,env:r})))}))}),[l]);const C=p((e=>{c(e)}),[]);return{headersData:f,measureData:b,topDimensionData:y,leftDimensionData:S,attrExprInfoIndexes:d,nextPageHandler:C}},uR=Math.sqrt(1e4),cR=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/Bt.PixelsMin)}),dR=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/uR),n=Math.ceil(e.qHeight/uR);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*uR,qTop:e.qTop+r*uR,qWidth:Math.min(uR,e.qWidth-o*uR),qHeight:Math.min(uR,e.qHeight-r*uR)});return t};function pR({nextPageHandler:e}){const{model:t}=IC(),{pageInfo:r}=CC(),{layoutService:n}=DC(),o=(e=>{const t=c(e);return t.current=e,t})(r.page),i=t,a=p((async(e,t)=>{await(null==i?void 0:i.collapseLeft(OC,e,t,!1))}),[i]),l=p((async(e,t)=>{await(null==i?void 0:i.collapseTop(OC,e,t,!1))}),[i]),u=p((async(e,t)=>{await(null==i?void 0:i.expandLeft(OC,e,t,!1))}),[i]),d=p((async(e,t)=>{await(null==i?void 0:i.expandTop(OC,e,t,!1))}),[i]),f=p((async t=>{if(null!=i&&i.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(OC,t.reduce(((e,t)=>[...e,...dR(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),m=p(((e,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case rr.Dimension:c=[{qPath:`${OC}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case rr.Measures:if(o)c=l.map(((e,t)=>({qPath:`${OC}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${OC}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case rr.Pivot:c=[{qPath:`${OC}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}}));null==t||t.applyPatches(d,!0)}),[t,n]),h=p((async e=>{await(null==i?void 0:i.applyPatches([{qPath:`${OC}/indentModeColumnWidth`,qOp:n.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))}),[i,n]);return s((()=>({collapseLeft:a,collapseTop:l,expandLeft:u,expandTop:d,applyColumnWidth:m,applyIndentModeColumnWidth:h,fetchPages:f})),[a,l,u,d,m,h,f])}const fR=(e,t,r)=>(n,o)=>{if("P"===n)return kC;const i=t[r+o];return e[i]},mR=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},hR=m({}),gR=()=>n(hR),bR=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=DC(),{qPivotDataPages:n}=CC();return s((()=>{var o,i,a,l;const s=mR(null!==(o=null===(i=n[0])||void 0===i?void 0:i.qLeft)&&void 0!==o?o:[]),u=mR(null!==(a=null===(l=n[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(fR(r,t,0)),visibleTopDimensionInfo:u.map(fR(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:l,nextPageHandler:u}=sR(t,r),c=pR({nextPageHandler:u}),d=s((()=>({gridSectionsData:{headersData:n,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:l,dataModel:c})),[t,r,n,o,i,a,l,c]);return Yr.jsx(hR.Provider,{value:d,children:e})},vR=18,yR=.75,xR=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===Ut.Image},SR=({isLeftColumn:e,layoutService:t,representation:r})=>e&&t.isIndentModeEnabled&&t.indentModeFeatures.isImagesSupported&&r.type===Ut.Image,ER=e=>void 0===e?ig:e,CR=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,wR=e=>CR(e,Bt.PixelsDefault),RR=(e,t)=>CR(e,Bt.PercentageDefault)*t/100,IR=(e,t,r)=>{switch(null==t?void 0:t.type){case $t.Pixels:return wR(t.pixels);case $t.Percentage:return RR(t.percentage,e);case $t.FitToContent:case $t.Auto:default:return r}},LR=({headers:e,layoutService:t,effectivePropertiesService:r,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,l,s)=>{var u;const{layout:{qHyperCube:{qNoOfLeftDims:c,qDimensionInfo:d}}}=t,{id:p,colIdx:f,qApprMaxGlyphCount:m,isLeftDimension:h}=l,g=d.find((e=>e.cId===p)),b={width:24,...null==g||null===(u=g.representation)||void 0===u?void 0:u.imageBox};if(!h)return e+0;if(p===TC)return e+0;const v=SR({isLeftColumn:h,layoutService:t,representation:(null==g?void 0:g.representation)||{type:Ut.Text}})?b.width+8+4:n(m),y=!r.qAlwaysFullyExpanded&&f<c-1?21:0;let x=0;if(o&&i&&a){x=i("- ")+a}return Math.max(e,24*s+vR+y+v+x)}),0),MR=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*vR;return Math.max(e,o+t(n.qFallbackTitle))}),0),DR=(e,t,r,n)=>{const o=100*e/t,i=n*yR*(o/100),a=r*(o/100);return Math.min(a,i)},AR=(e,t,r,n)=>n*(r/100)*(100*e/t/100),PR=(e,t)=>e.some((e=>e>=t*yR)),OR=({layoutService:e,effectivePropertiesService:t,headersData:r,columnWidths:n,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:u})=>{let c=[];const d=o*yR,p=r.data[r.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,n.at(-1)),m=Math.min(d,LR({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l})),h=Math.min(d,MR(e.visibleMeasureInfo,a));let g=0;const b=p.findIndex((e=>e.id===TC)),v=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===$t.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+vR+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:r});if(e.hasPseudoDimOnLeft)if(0===b){const e=Math.max(f,m,h);c=[Math.max(v,e-f),f]}else{const r=Math.min(d,MR(e.visibleMeasureInfo,s,!0));g=Math.min(d,LR({headers:p.slice(0,b),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:r}));const n=Math.max(f,m,g);c=[Math.max(v,n-f),f]}else c=[Math.max(v,m-f),f];const y=Math.min(d,c.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:x}=e;i&&i<=d&&(x.type=$t.Pixels,x.pixels=i);return[$t.Pixels,$t.Percentage].includes(x.type)||PR(c,o)?((e,t,r,n)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=PR(e,r);s===$t.Auto&&d&&(o>i?o-=i:i-=o),s===$t.Pixels&&u&&(o=DR(e[0],l,u,r),i=DR(e[1],l,u,r)),s===$t.Percentage&&c&&(o=AR(e[0],l,c,r),i=AR(e[1],l,c,r));let p=0;i<=n&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-n,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(c,x,o,f):{leftGridWidth:y,leftGridColumnWidths:c,leftGridFullWidth:y}};function kR({tableWidth:e}){const t=e*yR,{styleService:r,layoutService:n,effectivePropertiesService:o}=DC(),{translator:i}=IC(),{gridSectionsData:{headersData:a}}=gR(),{measureText:l}=zg(r.header),{estimateWidth:s,measureText:c}=zg({...r.dimensionValues,fontWeight:ER(r.dimensionValues.fontWeight)}),{measureText:d}=zg({...r.dimensionValues,...r.measureLabels}),f=p(((r,u)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:m,isIndentModeEnabled:h,hasPseudoDimOnLeft:g}=n,b=(t=0)=>m.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=d(n)+vR,a=Math.max(i,t);return Math.max(r,h?a:IR(e,o,a))}),0),v=e=>a.data.reduce(((t,r)=>{const n=r.at(e);if(!n||Array.isArray(n))return t;if(n.id===TC)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?20:0;return vR+l(t)+20+n})(n);return Math.max(o,t)}),0);let y=0,x=a.data.at(-1);h&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((i,l)=>{let c=vR;if(h&&1!==a.size.x||!r||void 0===u||u!==i.colIdx){let t;i.columnWidthLocation===rr.Pivot?t=h?void 0:f:i.columnWidthLocation===rr.Dimension&&({columnWidth:t}=i);let r=0;if(i.isLeftDimension)if(i.id===TC)r=b();else{const e=v(l),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:i,dimensionInfoIndex:a}=e,l=n.getDimensionInfo(a);if(xR(l))return Bt.PixelsDefault;const u=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return vR+s(r)+u})(i,l);r=Math.max(e,t),h&&!g&&l+1===p&&i.columnWidthLocation===rr.Dimension&&a.size.x>1&&(r=e)}else r=v(l),i.columnWidthLocation===rr.Measures&&(r=b(r));h&&1===a.size.x&&(t=n.indentModeColumnWidth),c=h&&!g&&a.size.x>1?r:IR(e,t,r)}else c=h?Math.min(t,r):r;return y+=c,c}));return h&&a.size.x>1?OR({layoutService:n,effectivePropertiesService:o,headersData:a,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:l,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:c,translator:i}):{leftGridWidth:Math.min(t,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[e,a,n,t,l,d,s,c,i,o]),[m,h]=u(f);Wg((()=>{h(f())}),[f]);const g=p(((e,t)=>{h(f(e,t))}),[f]);return{...m,overrideLeftGridWidth:g}}function TR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=DC(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=gR(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:l}},size:u,visibleMeasureInfo:c}=o,{estimateWidth:d,measureText:f}=zg(n.measureValues),{estimateWidth:m}=zg({...n.dimensionValues,fontWeight:ER(n.dimensionValues.fontWeight)}),h=e-r-1,g=i.at(-1),b=g===kC,v=l.length-a>i.length?21:0,y=s((()=>{const e=b?c:[g],t=u.x/e.length,r=[],n=[];let o=h;const i=(e,n)=>{r[e]=Math.min(Bt.PixelsMax,Math.max(Bt.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:s}=e;switch(r){case $t.Pixels:i(t,wR(o));break;case $t.Percentage:i(t,RR(a,h));break;case $t.FitToContent:i(t,((e,t,r)=>r?Bt.PixelsDefault:vR+(b?Math.max(d(e),f(t)):Math.max(Math.max(...c.map((e=>d(e.qApprMaxGlyphCount)))),m(e)+v)))(l,s,xR(e)));break;case $t.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(Bt.AutoMinPivot,i)}))}return r}),[b,c,g,u.x,h,d,f,m,v]),x=s((()=>{if(b){return c.reduce(((e,t,r)=>e+y[r]),0)/c.length}return y[0]}),[b,y,c]),S=parseFloat((t/o.size.x).toFixed(12)),E=p((e=>(b&&void 0!==e?y[o.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S),[b,y,o,x,S]),C=u.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,h),getRightGridColumnWidth:E}}const _R=`scrollable-container--${or.TopGrid}`,qR=`scrollable-container--${or.LeftGrid}`,NR=`scrollable-container--${or.DataGrid}`,FR=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},jR=(e,t)=>e>t?ir.Forward:e<t?ir.Backward:ir.None,zR=()=>{const{interactions:e}=IC(),t=c(null),r=c(null),n=c(null),o=c(null),i=c([]),a=c([]),l=c(null),{scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:d},resetHorizontalScrollbarHeight:m}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=u(0),[i,a]=u(0);return g((()=>{(e.current||r.current)&&o(Math.max(FR(e.current).width,FR(r.current).width))})),g((()=>{(t.current||r.current)&&a(Math.max(FR(t.current).height,FR(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>{a(0)}}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:l}=CC(),{downloadService:s,viewService:u,layoutService:c}=DC(),d=p((()=>{var o,i,a,l;const s={left:0,top:0};null===(o=e.current)||void 0===o||o.scrollTo(s),null===(i=t.current)||void 0===i||i.scrollTo(s),null===(a=r.current)||void 0===a||a.scrollTo(s),null===(l=n.current)||void 0===l||l.scrollTo(s)}),[e,t,r,n]);g((()=>{d()}),[l.page,d]),g((()=>{c.triggerdByExpandOrCollapse||d()}),[c,d]),g((()=>{if(c.triggerdByExpandOrCollapse){var e,t,r,l,s,u,d;const c=null!==(e=null===(t=n.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0,p=null!==(r=null===(l=n.current)||void 0===l?void 0:l.scrollTop)&&void 0!==r?r:0;null===(s=i.current)||void 0===s||s.forEach((e=>{null==e||e.scrollTo(p)})),null===(u=o.current)||void 0===u||u.forEach((e=>{null==e||e.scrollTo(c)})),null===(d=a.current)||void 0===d||d.scrollTo({scrollTop:p,scrollLeft:c})}}),[c,n,a,i,o]),g((()=>{(s.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,s,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l}});const{trackScrollDirection:h,scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v}}=(()=>{const e=c(ir.None),t=c(ir.None),r=c({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:p((n=>{if(n instanceof WheelEvent&&(e.current=jR(n.deltaY,0),t.current=jR(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=jR(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=jR(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=DC();return p((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===qR&&(e.leftGridScrollLeft=n.scrollLeft),o===NR&&(e.scrollLeft=n.scrollLeft),o===_R&&(e.topGridScrollTop=n.scrollTop),o!==qR&&o!==NR||(e.scrollTop=n.scrollTop)}),[e])})(),x={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},getWrapperElements:p((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:o.current})),[t,r,n,o]),updateViewService:y,trackScrollDirection:h,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{f((()=>{const{headerGridWrapperElement:o,topGridWrapperElement:l,leftGridWrapperElement:s,dataGridWrapperElement:u}=n(),c=e=>{o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,s.scrollLeft=o.scrollLeft,l.scrollTop=o.scrollTop,i(e)},d=e=>{var n,a;s.scrollTop+=e.deltaY,null===(n=t.current)||void 0===n||n.forEach((e=>{null==e||e.scrollTo(s.scrollTop)})),o.scrollLeft+=e.deltaX,s.scrollLeft=o.scrollLeft,u.scrollTop=s.scrollTop,null===(a=r.current)||void 0===a||a.scrollTo({scrollTop:s.scrollTop}),i(e)},p=t=>{var n,a;l.scrollLeft+=t.deltaX,null===(n=e.current)||void 0===n||n.forEach((e=>{null==e||e.scrollTo(l.scrollLeft)})),o.scrollTop+=t.deltaY,l.scrollTop=o.scrollTop,u.scrollLeft=l.scrollLeft,null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:l.scrollLeft}),i(t)},f=n=>{var o,a,c;u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,null===(o=r.current)||void 0===o||o.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),l.scrollLeft=u.scrollLeft,null===(a=e.current)||void 0===a||a.forEach((e=>{null==e||e.scrollTo(u.scrollLeft)})),s.scrollTop=u.scrollTop,null===(c=t.current)||void 0===c||c.forEach((e=>{null==e||e.scrollTo(u.scrollTop)})),i(n)};return o.addEventListener("wheel",c),s.addEventListener("wheel",d),l.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout((()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[i,o,a,e,t,r,n])})(x),(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{f((()=>{const{headerGridWrapperElement:l,topGridWrapperElement:s,leftGridWrapperElement:u,dataGridWrapperElement:c}=n(),d=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,i(e),null==o||o(e)},p=e=>{const t=e.target;l.scrollTop=t.scrollTop,i(e),null==o||o(e)},f=n=>{var a,l,d;const p=n.target;null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:p.scrollLeft,scrollTop:p.scrollTop}),s.scrollLeft=c.scrollLeft,null===(l=e.current)||void 0===l||l.forEach((e=>{null==e||e.scrollTo(p.scrollLeft)})),u.scrollTop=c.scrollTop,null===(d=t.current)||void 0===d||d.forEach((e=>{null==e||e.scrollTo(p.scrollTop)})),i(n),null==o||o(n)};return u.addEventListener("scroll",d),s.addEventListener("scroll",p),c.addEventListener("scroll",f),a.scroll||setTimeout((()=>{u.removeEventListener("scroll",d),s.removeEventListener("scroll",p),c.removeEventListener("scroll",f)}),0),()=>{u.removeEventListener("scroll",d),s.removeEventListener("scroll",p),c.removeEventListener("scroll",f)}}),[i,o,a,e,t,r,n])})(x),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:d,resetHorizontalScrollbarHeight:m}}},GR=()=>{const{layoutService:e}=DC(),{rect:t,pageInfo:r}=CC();return s((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},BR=({children:e,style:t})=>Yr.jsx("div",{"data-testid":"fullSize",style:t,children:e}),$R=({children:e,style:t})=>Yr.jsx("div",{"data-section-id":"GRID",style:{display:"grid",...t},children:e}),WR=e=>e&&`scrollable-container--${e}`,HR=({children:e,style:t,origin:r},n)=>{const{interactions:o}=IC(),i=o.scroll?t:{overflow:"hidden"};return Yr.jsx("div",{"data-testid":"scrollable","data-key":WR(r),style:i,ref:n,children:e})};var VR=t.forwardRef(HR);const UR=({children:e,style:t})=>Yr.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,left:0,...t},children:e});var YR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function KR(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||YR(n)&&YR(o)))return!1;var n,o;return!0}function XR(e,t){var r;void 0===t&&(t=KR);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var JR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function ZR(e){cancelAnimationFrame(e.id)}function QR(e,t){var r=JR();var n={id:requestAnimationFrame((function o(){JR()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var eI=-1;function tI(e){if(void 0===e&&(e=!1),-1===eI||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),eI=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return eI}var rI=null;function nI(e){if(void 0===e&&(e=!1),null===rI||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?rI="positive-descending":(t.scrollLeft=1,rI=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),rI}return rI}var oI=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function iI(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,l=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,Rr(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Rr(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=XR((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=XR((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,i=n.props,l=i.columnWidth,s=i.direction,u=i.rowHeight,c=n._getItemStyleCache(g&&l,g&&s,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))o=c[f];else{var m=r(n.props,t,n._instanceProps),h="rtl"===s;c[f]=o={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:a(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=XR((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(nI()){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&&ZR(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=QR(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}wr(t,e),t.getDerivedStateFromProps=function(e,t){return aI(e,t),v(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=tI();void 0!==n&&(n=Math.max(0,Math.min(n,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=l(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?u(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(nI()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ZR(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,i=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,m=void 0===f?oI:f,h=e.outerElementType,g=e.outerTagName,b=e.rowCount,v=e.style,y=e.useIsScrolling,x=e.width,S=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],R=this._getVerticalRangeToRender(),I=R[0],L=R[1],M=[];if(n>0&&b)for(var D=I;D<=L;D++)for(var A=C;A<=w;A++)M.push(o(t,{columnIndex:A,data:p,isScrolling:y?S:void 0,key:m({columnIndex:A,data:p,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,A)}));var P=l(this.props,this._instanceProps),O=s(this.props,this._instanceProps);return o(h||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:hr({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},o(c||d||"div",{children:M,ref:u,style:{height:P,pointerEvents:S?"none":void 0,width:O}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||o||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=i(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=m(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var aI=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},lI=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},sI=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},uI=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]},cI=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?dI(e,t,r,i,0,n):pI(e,t,r,Math.max(0,i),n)},dI=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=uI(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},pI=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&uI(e,t,n,r).offset<o;)n+=a,a*=2;return dI(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},fI=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=uI(e,t,r,i),u="column"===e?sI(t,i):lI(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}},mI=iI({getColumnOffset:function(e,t,r){return uI("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return cI("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=uI("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=uI("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:lI,getEstimatedTotalWidth:sI,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return fI("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return fI("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return uI("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return cI("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=uI("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=uI("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}}),hI=function(e,t){return e};function gI(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,Rr(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Rr(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=XR((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=XR((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,l=o.itemSize,s=o.layout,u=n._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;u[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=XR((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(nI()){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&&ZR(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=QR(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}wr(t,e),t.getDerivedStateFromProps=function(e,t){return bI(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?tI():0:s.scrollHeight>s.clientHeight?tI():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,l))},p.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(nI()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ZR(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,r=e.className,i=e.direction,a=e.height,l=e.innerRef,s=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?hI:p,m=e.layout,h=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===m,E=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],R=C[1],I=[];if(c>0)for(var L=w;L<=R;L++)I.push(o(t,{data:d,key:f(L,d),index:L,isScrolling:v?x:void 0,style:this._getItemStyle(L)}));var M=n(this.props,this._instanceProps);return o(h||g||"div",{className:r,onScroll:E,ref:this._outerRefSetter,style:hr({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},o(s||u||"div",{children:I,ref:l,style:{height:S?"100%":M,pointerEvents:x?"none":void 0,width:S?M:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var u=l(this.props,a,this._instanceProps),c=s(this.props,u,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var bI=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},vI=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]},yI=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=vI(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},xI=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&vI(e,r,t).offset<n;)r+=i,i*=2;return yI(e,t,Math.min(r,o-1),Math.floor(r/2),n)},SI=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},EI=gI({getItemOffset:function(e,t,r){return vI(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:SI,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=vI(e,t,o),p=SI(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?yI(e,t,o,0,r):xI(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=vI(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=vI(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 CI(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 wI=["style"],RI=["style"];function II(e,t){var r=e.style,n=Er(e,wI),o=t.style,i=Er(t,RI);return!CI(r,o)&&!CI(n,i)}const LI=10,MI=(e,t)=>e.current===ir.Backward?t:0,DI=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e.at(o);if(void 0===r||void 0===r.at(t))return!0}return!1},AI=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,PI=({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(DI(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&AI(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},OI=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===ir.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return PI({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},kI=({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=MI(r,LI),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+LI,l-u),pageTop:o,qHeight:a}})(n,o,r),u=PI({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...OI({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},TI=(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},_I=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,qI=({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(TI(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&_I(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},NI=({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=MI(r,LI),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+LI,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=qI({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===ir.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=qI({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},FI=async(e,t,r,n,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==ir.None&&(p=NI({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==ir.None&&(f=kI({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===ir.None&&a.current===ir.None&&(p=qI({measureData:r,pageInfo:n,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},jI=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))}}(FI,100),zI=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)}}(FI,75),GI=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),BI=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{styleService:{grid:{border:l,divider:s}}}=DC();return Yr.jsx("div",{style:{...e,...pg,...gg(r,n,l,o),...vg({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},$I=({children:e,verticalAlign:t,width:r,right:n,isLeftColumn:o})=>{const{layoutService:i}=DC(),a=o&&i.isIndentModeEnabled&&i.indentModeFeatures.isImagesSupported;return Yr.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,...a?{}:{alignItems:t,alignSelf:t}},children:e})},WI=e=>{const{type:t,imageSize:r}=e;return t!==Ut.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"};function HI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VI(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const UI=(e,t)=>Yr.jsx("svg",VI(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){HI(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),{children:Yr.jsx("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"})})),YI=d(UI);function KI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XI(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const JI=(e,t)=>Yr.jsx("svg",XI(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){KI(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),{children:Yr.jsx("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"})})),ZI=d(JI),QI=e=>{var t;return!(null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t||!t.includes(Gt))},eL=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),o=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:n,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:o}=e,i=new Map(o);for(let e=r;e<=n;e++){const r=t(e);"N"===(null==r?void 0:r.ref.qType)&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}};const tL=m({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),rL=()=>n(tL),nL=({children:e,selections:t})=>{const r=function(e){var t,r,n;const{env:o}=IC(),{updatePageInfo:i}=CC(),a=e.isActive(),[l,u]=v(eL,{engineSelectedCells:null,selectedField:null,activeSelection:null});f((()=>{const t=()=>{u({type:"clearSelections"})},r=()=>{t(),i({page:0})};return e.on("deactivated",t),e.on("canceled",t),e.on("confirmed",r),e.on("cleared",t),()=>{e.removeListener("deactivated",t),e.removeListener("canceled",t),e.removeListener("confirmed",r),e.removeListener("cleared",t)}}),[e,i]);const c=p((async()=>{var t,r,n;if(!l.activeSelection)return;1===l.activeSelection.clientSelectedCells.size&&(r=l.engineSelectedCells,(n=l.activeSelection).clientSelectedCells.forEach(((e,t)=>{null!=r&&r.has(t)&&(n.clientSelectedCells.delete(t),r.delete(t))})));const o=new Map([...null!==(t=l.engineSelectedCells)&&void 0!==t?t:new Map,...l.activeSelection.clientSelectedCells]);try{u({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[OC,Array.from(o,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),u({type:"mouseup",payload:{engineSelectedCells:l.engineSelectedCells}})}}),[l,e]);f((()=>{if(l.activeSelection)return document.addEventListener("mouseup",c),()=>{document.removeEventListener("mouseup",c)}}),[c,l.activeSelection]);const d=p(((e,t)=>r=>{const n=t(e);QI(r)||(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(r)||(e=>{var t;return"A"===(null===(t=e.target)||void 0===t?void 0:t.tagName)})(r)||!(e=>1===e.buttons)(r)||!n||u({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(n.ref.qElemNo,n)},selectedField:{selectionCellType:n.selectionCellType,index:"L"===n.selectionCellType?n.x:n.y}}})}),[]),m=p((t=>o.flags.isEnabled("CLIENT_IM_6223_PIVOT_RANGE_SELECTION")?async()=>{l.activeSelection&&(e.isActive()||await e.begin([OC]),u({type:"mouseover",payload:{index:t}}))}:void 0),[l.activeSelection,e,o]),h=p((e=>{var t,r;return!(!(null!==(t=l.engineSelectedCells)&&void 0!==t&&t.size||null!==(r=l.activeSelection)&&void 0!==r&&r.clientSelectedCells.size)||!l.selectedField||e.selectionCellType===l.selectedField.selectionCellType&&("L"===e.selectionCellType?l.selectedField.index===e.x:l.selectedField.index===e.y))}),[null===(t=l.activeSelection)||void 0===t?void 0:t.clientSelectedCells.size,null===(r=l.engineSelectedCells)||void 0===r?void 0:r.size,l.selectedField]),g=p((e=>{var t,r;return!h(e)&&((null===(t=l.engineSelectedCells)||void 0===t?void 0:t.has(e.ref.qElemNo))||!(null===(r=l.activeSelection)||void 0===r||!r.clientSelectedCells.has(e.ref.qElemNo)))}),[h,null===(n=l.activeSelection)||void 0===n?void 0:n.clientSelectedCells,l.engineSelectedCells]);return s((()=>({isSelected:g,isActive:a,isLocked:h,createMouseDownHandler:d,createMouseOverHandler:m})),[g,a,h,d,m])}(t);return Yr.jsx(tL.Provider,{value:r,children:e})},oL=e=>{const t=e.isLeftColumn?"flex-start":"center";var r;return e.representation.type!==Ut.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical};var iL;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(iL||(iL={}));const aL={brighter:.5,darker:.3,opacity:.03},lL=(e,{cell:t,styleService:r})=>{if(e===iL.Background||e===iL.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]},sL=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=lL(iL.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?lL(iL.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Hh(i=o,aL)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},uL=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:lL(iL.Color,{cell:e,styleService:t}),cL=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=lL(iL.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?ig:o},dL=({cell:e,styleService:t})=>lL(iL.FontStyle,{cell:e,styleService:t}),pL=({cell:e,styleService:t})=>lL(iL.TextDecoration,{cell:e,styleService:t}),fL=e=>e?"pointer":"default",mL=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},hL=(e,t)=>{if(!e.isLeftColumn||e.representation.type===Ut.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},gL=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n,layoutService:o}=DC(),{interactions:i}=IC(),{isActive:a}=rL(),{dataModel:l}=gR();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const s=!i.active||a||!l,u=uL({cell:e,styleService:n,isCellSelected:r}),c=a?.4:1,d=e.ref.qCanExpand?ZI:YI;let p;p=e.ref.qCanExpand?t?l.expandLeft:l.expandTop:t?l.collapseLeft:l.collapseTop;const f=SR({isLeftColumn:t,layoutService:o,representation:e.representation});return Yr.jsx(d,{opacity:c,color:u,"data-prevent-selection":!s||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:s?"default":"pointer",...hL(e,n),...f&&{alignSelf:oL(e),position:"sticky",top:0}},onClick:s?void 0:mL({cell:e,expandOrCollapse:p})})},bL=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},vL=(e,t)=>{if("alwaysFit"===e&&t)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},yL=(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"}},xL=({representation:e,canExpandOrCollapse:t,leafCount:r,isLeftColumn:n,styleService:o,layoutService:i})=>{var a,l;const{isIndentModeEnabled:s,indentModeFeatures:{isImagesSupported:u}}=i,c=SR({isLeftColumn:n,layoutService:i,representation:e}),d=t?21:0,p=null!==(a=null===(l=e.imageBox)||void 0===l?void 0:l.width)&&void 0!==a?a:24,f=c?p:`calc(100% - ${d}px)`,m=n?o.contentCellHeight:o.headerCellHeight;let h=m;switch(!n||void 0===r||s&&u||(h=m*Math.max(r,1)),e.imageSize){case"originalSize":return{maxWidth:f,maxHeight:h,...c?{width:f}:{}};case"fitWidth":return{width:f,maxHeight:h};case"fitHeight":return{height:h,maxWidth:f,...c?{width:f}:{}};case"fill":return{height:h,width:f};default:return{width:f,height:m}}},SL=e=>{if("alwaysFit"===e)return"contain"},EL=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),CL=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:r})=>({width:vL(e,r),height:bL(e),objectFit:SL(e),objectPosition:yL(e,t),...r&&"alwaysFit"===e?{"max-width":"100%"}:{}}),wL=({representation:e,textStyle:t})=>{const{imageRef:r,onLoad:n}=(()=>{const{downloadService:e}=DC(),t=c(null),{promise:r,resolve:n}=s((()=>Mg()),[]);return f((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(r),null!==(o=t.current)&&void 0!==o&&o.complete&&n()),()=>{n()}}),[t,e,r,n]),{onLoad:p((()=>{n()}),[n]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:o,indentModeFeatures:{isImagesSupported:i}}}=DC(),{url:a,text:l,imageSize:u,resolvedImagePosition:d}=e,{overflow:m,...h}=t;return Yr.jsx("img",{src:a,alt:l,style:{...CL({imageSize:u,resolvedImagePosition:d,isImagesInIndentModeEnabled:o&&i}),...h},onLoad:n,ref:r})},RL=({representation:e,textStyle:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o,imageContainerHorizontalAlignment:i})=>{var a;const{styleService:l,layoutService:s}=DC(),{resolvedImagePosition:u}=e,c=!(null!==(a=e.labelStructure)&&void 0!==a&&a.suffix)&&SR({isLeftColumn:o,layoutService:s,representation:e});return Yr.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:null==u?void 0:u.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...xL({representation:e,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o,styleService:l,layoutService:s}),...c?{alignItems:i}:{}},children:Yr.jsx(wL,{representation:e,textStyle:t})})},IL=(e,t)=>{if(null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},LL={display:"flex",flexDirection:"row",alignItems:"center"},ML={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},DL=(e,t,r,n)=>t?{...ML,...e.nullValues}:r?{...LL,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...LL,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},AL=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...fg,...!r&&mg(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?ig:s,fontStyle:u,textDecoration:c}},PL=(e,t,r,n)=>{const{textAlign:o}=t,i=n?"flex-end":"center";var a,l;return e.isNull||r.type!==Ut.Image?IL(o,i):null!==(a=null===(l=r.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:"center"},OL=({cell:e,representation:t,color:r,isNumeric:n,isTotalValueCell:o})=>{const{layoutService:i,styleService:a}=DC(),l=e.isNull?i.getNullValueText():t.text,s=AL(a,r,n,o,e.isNull);return t.type!==Ut.Image||e.isNull?Yr.jsx("span",{style:{padding:4,...s},children:l}):Yr.jsx(RL,{representation:t,textStyle:s,isLeftColumn:!0})},kL=(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},TL="flex-start",_L=(e,t)=>{return e.isNull?TL:t.type===Ut.Image&&"fill"!==t.imageSize?null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.vertical:TL;var r},qL=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const{env:i}=IC(),{pageInfo:a}=CC(),{styleService:l,layoutService:s}=DC(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:f},visibleDimensionsInfo:{visibleLeftDimensionInfo:m,visibleTopDimensionInfo:h}}=gR(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=DC(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=gR(),i=n.length,a=o.length;return p(((n,o)=>{var l,s;return!!(null!==(l=r.grid.at(a-1))&&void 0!==l&&null!==(l=l[n])&&void 0!==l&&l.isTotal||null!==(s=t.grid.at(e?0:i-1))&&void 0!==s&&null!==(s=s[o])&&void 0!==s&&s.isTotal)}),[r,t,i,a,e])})(),b=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=gR(),r=t.length;return p((t=>{var n;const o=null===(n=e.grid.at(r-1))||void 0===n?void 0:n[t];return GI(o,e.totalDividerIndex)}),[e,r])})(),v=(()=>{const{layoutService:{isIndentModeEnabled:e}}=DC(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=gR(),n=r.length;return p((r=>{var o;const i=e?0:n-1,a=null===(o=t.grid.at(i))||void 0===o?void 0:o[r];return GI(a,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:y}=n,x=f.grid.at(h.length-1),S=d.grid.at(m.length-1),{background:E}=l.measureValues,C=null===(o=c[t])||void 0===o?void 0:o[e],w=t===a.rowsOnCurrentPage-1,R=e===s.size.x-1;if(!C)return Yr.jsx(BI,{style:{...r,background:E},isLastRow:w,isLastColumn:R,showLastBorder:y,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const I=s.hasPseudoDimOnLeft?kL(S,t):kL(x,e),L=s.visibleMeasureInfo[I],M=Uw({cell:C.ref,representationProperties:s.isIndentModeEnabled?{type:Ut.Text}:L.representation,attrExprInfoIndex:u.measures[I],env:i}),D=!C.isNull&&g(e,t),A=C.isNull?s.getNullValueText():M.text,P=!C.isNull||!Number.isNaN(+A),O=Yw(u.measures[I],C.ref),k={...DL(l,C.isNull,D,O.background),...gg(w,R,l.grid.border,y),...vg({bottomDivider:v(t),rightDivider:b(e),borderColor:l.grid.divider}),...pg,padding:"0px 4px",display:"flex",justifyContent:PL(C,L,M,P)};return Yr.jsx("div",{className:jt,title:A,style:{...k,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Yr.jsx($I,{width:WI(M),verticalAlign:_L(C,M),children:Yr.jsx(OL,{cell:C,representation:M,isNumeric:P,isTotalValueCell:D,color:O.color})})})};var NL=t.memo(qL,II);const FL=(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()},jL=({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}`},zL={...dg,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},GL=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:l})=>{const{pageInfo:s}=CC(),{layoutService:u,styleService:{grid:{divider:c},contentCellHeight:d}}=DC(),{dataModel:f,gridSectionsData:{measureData:m}}=gR(),h={...zL,borderColor:c,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},b=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=CC(),{downloadService:n,viewService:o,layoutService:i}=DC(),{dataModel:a,gridSectionsData:{leftDimensionData:l,topDimensionData:s,measureData:u}}=gR(),c=l.columnCount,d=s.rowCount;return p((async({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=l,o.gridRowStartIndex=p,o.gridWidth=s-l+1,o.gridHeight=f-p+1;const m=o.gridWidth+c+(t.current===ir.None?0:LI),h=o.gridHeight+d+(e.current===ir.None?0:LI);let g=jI;h*m>1500&&(g=zI),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:l});return Wg((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,f,m]),g((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,d]),0===u.size.x?null:Yr.jsx(mI,{"data-section-id":"DATA_GRID",ref:e,style:h,columnCount:u.size.x,columnWidth:i,height:t,rowCount:s.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:o,grid:m},onItemsRendered:b,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:jL,children:NL})};var BL=h(GL);function $L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WL(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const HL=(e,t)=>Yr.jsxs("svg",WL(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){$L(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),{children:[Yr.jsx("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"}),Yr.jsx("use",{fillRule:"evenodd"})]})),VL=d(HL),UL=e=>{const[t,r]=u(!1);return Wg((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},YL=()=>{const[e,t]=u(!1),{dataModel:r}=gR(),{interactions:n}=IC(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=UL([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||QI(e)||o||t(!0)},setIsAdjustingWidth:i}};function KL(e,t){var r,n;const o=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,i=t.isLeftColumn?e.header.background:o,a=i===sg.Transparent?fm.WHITE:i,l=ye(e.grid.border),s=ye(a);return s.isInvalid()||l.isInvalid()||1===l.a?e.grid.border:function(e,t,r){return ye(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(s,l,l.a).getRGB()}const XL=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{var l;const{interactions:s,translator:c}=IC(),{isActive:d}=rL(),{dataModel:p}=gR(),{styleService:f}=DC(),[,m]=u({});if(!(e.canBeResized&&!!s.active&&!d))return null;const h=KL(f,e);return Yr.jsx(ES,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{m({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{var r;i?p.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=a?a:0)*yR,null!==(r=t.pixels)&&void 0!==r?r:0)}):p.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:c,columnLabel:null!==(l=e.label)&&void 0!==l?l:""},direction:"ltr"})};function JL(e){return cy(e)}const ZL=e=>e.scrollTop;function QL(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 eM(e){return hv("MuiPaper",e)}gv("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const tM=["className","component","elevation","square","variant"],rM=hS("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 hr({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&&hr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${xy("#fff",vS(t.elevation))}, ${xy("#fff",vS(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),nM=r.forwardRef((function(e,t){const r=JL({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Er(r,tM),u=hr({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Yv({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},eM,o)})(u);return Yr.jsx(rM,hr({as:o,ownerState:u,className:fl(c.root,n),ref:t},s))}));const oM=gv("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),iM=["center","classes","className"];let aM,lM,sM,uM,cM=e=>e;const dM=Ma(aM||(aM=cM`
|
|
102
102
|
0% {
|
|
103
103
|
transform: scale(0);
|
|
104
104
|
opacity: 0.1;
|
|
@@ -108,7 +108,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
|
|
|
108
108
|
transform: scale(1);
|
|
109
109
|
opacity: 0.3;
|
|
110
110
|
}
|
|
111
|
-
`)),
|
|
111
|
+
`)),pM=Ma(lM||(lM=cM`
|
|
112
112
|
0% {
|
|
113
113
|
opacity: 1;
|
|
114
114
|
}
|
|
@@ -116,7 +116,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
|
|
|
116
116
|
100% {
|
|
117
117
|
opacity: 0;
|
|
118
118
|
}
|
|
119
|
-
`)),
|
|
119
|
+
`)),fM=Ma(sM||(sM=cM`
|
|
120
120
|
0% {
|
|
121
121
|
transform: scale(1);
|
|
122
122
|
}
|
|
@@ -128,7 +128,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
|
|
|
128
128
|
100% {
|
|
129
129
|
transform: scale(1);
|
|
130
130
|
}
|
|
131
|
-
`)),
|
|
131
|
+
`)),mM=hS("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),hM=hS((function(e){const{className:t,classes:n,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:u,timeout:c}=e,[d,p]=r.useState(!1),f=fl(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+i},h=fl(n.child,d&&n.childLeaving,o&&n.childPulsate);return s||d||p(!0),r.useEffect((()=>{if(!s&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,s,c]),Yr.jsx("span",{className:f,style:m,children:Yr.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(uM||(uM=cM`
|
|
132
132
|
opacity: 0;
|
|
133
133
|
position: absolute;
|
|
134
134
|
|
|
@@ -171,4 +171,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
|
|
|
171
171
|
animation-iteration-count: infinite;
|
|
172
172
|
animation-delay: 200ms;
|
|
173
173
|
}
|
|
174
|
-
`),tM.rippleVisible,sM,550,(({theme:e})=>e.transitions.easing.easeInOut),tM.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),tM.child,tM.childLeaving,uM,550,(({theme:e})=>e.transitions.easing.easeInOut),tM.childPulsate,cM,(({theme:e})=>e.transitions.easing.easeInOut)),fM=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Er(n,rM),[s,u]=r.useState([]),c=r.useRef(0),d=r.useRef(null);r.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=r.useRef(!1),f=Nv(),m=r.useRef(null),h=r.useRef(null),g=r.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,Yr.jsx(pM,{classes:{ripple:fl(i.ripple,tM.ripple),rippleVisible:fl(i.rippleVisible,tM.rippleVisible),ripplePulsate:fl(i.ripplePulsate,tM.ripplePulsate),child:fl(i.child,tM.child),childLeaving:fl(i.childLeaving,tM.childLeaving),childPulsate:fl(i.childPulsate,tM.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=r.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g,f]),v=r.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=r.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{y(e,t)}));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return r.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Yr.jsx(dM,hr({className:fl(tM.root,i.root,a),ref:h},l,{children:Yr.jsx(xc,{component:null,exit:!0,children:s})}))}));function mM(e){return hv("MuiButtonBase",e)}const hM=gv("MuiButtonBase",["root","disabled","focusVisible"]),gM=["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"],bM=hS("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"},[`&.${hM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vM=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:I,onTouchStart:L,tabIndex:M=0,TouchRippleProps:D,touchRippleRef:A,type:P}=n,k=Er(n,gM),O=r.useRef(null),T=r.useRef(null),_=Ov(T,A),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Vv(),[z,G]=r.useState(!1);u&&z&&G(!1),r.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),O.current.focus()}})),[]);const[B,$]=r.useState(!1);r.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!u;function H(e,t,r=d){return kv((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}r.useEffect((()=>{z&&p&&!c&&B&&T.current.pulsate()}),[c,p,z,B]);const V=H("start",E),U=H("stop",g),Y=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",L),Z=H("stop",R),Q=H("stop",I),ee=H("stop",(e=>{F(e),!1===q.current&&G(!1),m&&m(e)}),!1),te=kv((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=r.useRef(!1),oe=kv((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=kv((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(k.href||k.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(k.href||k.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=Ov(t,j,O),ue=hr({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Yv({root:["root",t&&"disabled",r&&"focusVisible"]},mM,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Yr.jsxs(bM,hr({as:ae,className:fl(ce.root,l),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:M,type:P},le,k,{children:[a,W?Yr.jsx(fM,hr({ref:_,center:i},D)):null]}))}));function yM(e){return hv("MuiTypography",e)}gv("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const xM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],SM=hS("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${lb(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>hr({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}))),EM={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},CM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},wM=r.forwardRef((function(e,t){const r=YL({props:e,name:"MuiTypography"}),n=(e=>CM[e]||e)(r.color),o=uv(hr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=EM}=o,f=Er(o,xM),m=hr({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||EM[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Yv({root:["root",i,"inherit"!==e.align&&`align${lb(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},yM,a)})(m);return Yr.jsx(SM,hr({as:h,ref:t,ownerState:m,className:fl(g.root,a)},f))}));const RM=r.forwardRef((function(e,t){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=r.useState(null),s=Ov(r.isValidElement(n)?ey(n):null,t);if(Cv((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),Cv((()=>{if(a&&!i)return Pv(t,a),()=>{Pv(t,null)}}),[t,a,i]),i){if(r.isValidElement(n)){const e={ref:s};return r.cloneElement(n,e)}return Yr.jsx(r.Fragment,{children:n})}return Yr.jsx(r.Fragment,{children:a?j.createPortal(n,a):a})})),IM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],LM={entering:{opacity:1},entered:{opacity:1}},MM=r.forwardRef((function(e,t){const n=Fx(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=mc}=e,y=Er(e,IM),x=r.useRef(null),S=Ov(x,ey(l),t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{KL(e);const r=XL({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),I=E(h),L=E((e=>{const t=XL({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),M=E(m);return Yr.jsx(v,hr({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:L,onExited:M,onExiting:I,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,t)=>r.cloneElement(l,hr({style:hr({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},LM[e],g,l.props.style),ref:S},t))}))}));function DM(e){return hv("MuiBackdrop",e)}gv("MuiBackdrop",["root","invisible"]);const AM=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],PM=hS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>hr({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"}))),kM=r.forwardRef((function(e,t){var r,n,o;const i=YL({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=MM,transitionDuration:g}=i,b=Er(i,AM),v=hr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Yv({root:["root",r&&"invisible"]},DM,t)})(v),x=null!=(r=f.root)?r:c.root;return Yr.jsx(h,hr({in:p,timeout:g},b,{children:Yr.jsx(PM,hr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:fl(y.root,l,null==x?void 0:x.className),ownerState:hr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),OM=gv("MuiBox",["root"]),TM=qx(),_M=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Pa("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ev);return r.forwardRef((function(e,r){const l=lv(n),s=uv(e),{className:u,component:c="div"}=s,d=Er(s,fv);return Yr.jsx(a,hr({as:c,ref:r,className:fl(u,i?i(o):o),theme:t&&l[t]||l},d))}))}({themeId:Kg,defaultTheme:TM,defaultClassName:OM.root,generateClassName:pv.generate});function qM(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function NM(e){return parseInt(Av(e).getComputedStyle(e).paddingRight,10)||0}function FM(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&&qM(e,o)}))}function jM(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function zM(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Dv(e);return t.body===e?Av(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Uv(Dv(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${NM(n)+e}px`;const t=Dv(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${NM(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Dv(n).body;else{const t=n.parentElement,r=Av(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 GM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function BM(e){const t=[],r=[];return Array.from(e.querySelectorAll(GM)).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 $M(){return!0}function WM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=BM,isEnabled:l=$M,open:s}=e,u=r.useRef(!1),c=r.useRef(null),d=r.useRef(null),p=r.useRef(null),f=r.useRef(null),m=r.useRef(!1),h=r.useRef(null),g=Ov(ey(t),h),b=r.useRef(null);r.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),r.useEffect((()=>{if(!s||!h.current)return;const e=Dv(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),r.useEffect((()=>{if(!s||!h.current)return;const e=Dv(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return Yr.jsxs(r.Fragment,{children:[Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const HM=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&&qM(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);FM(t,e.mount,e.modalRef,n,!0);const o=jM(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=jM(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=zM(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=jM(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&&qM(e.modalRef,t),FM(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&&qM(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function VM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=HM,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=r.useRef({}),m=r.useRef(null),h=r.useRef(null),g=Ov(h,p),[b,v]=r.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},C=kv((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Dv(m.current).body;i.add(S(),e),h.current&&E()})),w=r.useCallback((()=>i.isTopModal(S())),[i]),R=kv((e=>{m.current=e,e&&(d&&w()?E():h.current&&qM(h.current,x))})),I=r.useCallback((()=>{i.remove(S(),x)}),[x,i]);r.useEffect((()=>()=>{I()}),[I]),r.useEffect((()=>{d?C():y&&a||I()}),[d,I,y,a,C]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Xv(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=hr({},r,t);return hr({role:"presentation"},n,{onKeyDown:L(n),ref:g})},getBackdropProps:(e={})=>hr({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:Mv((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Mv((()=>{v(!0),s&&s(),a&&I()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function UM(e){return hv("MuiModal",e)}gv("MuiModal",["root","hidden","backdrop"]);const YM=["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"],KM=hS("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})=>hr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),XM=hS(kM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),JM=r.forwardRef((function(e,t){var n,o,i,a,l,s;const u=YL({name:"MuiModal",props:e}),{BackdropComponent:c=XM,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:I=!1,onBackdropClick:L,open:M,slotProps:D,slots:A}=u,P=Er(u,YM),k=hr({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:I}),{getRootProps:O,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=VM(hr({},k,{rootRef:t})),z=hr({},k,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return Yv({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},UM,n)})(z),B={};if(void 0===m.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(o=null==A?void 0:A.root)?o:b.Root)?n:KM,W=null!=(i=null!=(a=null==A?void 0:A.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==D?void 0:D.root)?l:v.root,V=null!=(s=null==D?void 0:D.backdrop)?s:v.backdrop,U=Qv({elementType:$,externalSlotProps:H,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:g},ownerState:z,className:fl(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),Y=Qv({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(hr({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:fl(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return I||M||j&&!F?Yr.jsx(RM,{ref:q,container:h,disablePortal:E,children:Yr.jsxs($,hr({},U,{children:[!R&&c?Yr.jsx(W,hr({},Y)):null,Yr.jsx(WM,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:M,children:r.cloneElement(m,B)})]}))}):null})),ZM=gv("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),QM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function eD(e){return`scale(${e}, ${e**2})`}const tD={entering:{opacity:1,transform:eD(1)},entered:{opacity:1,transform:"none"}},rD="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),nD=r.forwardRef((function(e,t){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=mc}=e,b=Er(e,QM),v=Nv(),y=r.useRef(),x=Fx(),S=r.useRef(null),E=Ov(S,ey(i),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{KL(e);const{duration:r,delay:n,easing:o}=XL({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:rD?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),I=C(u),L=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=XL({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:rD?o:.666*o,delay:rD?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=eD(.75),d&&d(e)})),D=C(p);return Yr.jsx(g,hr({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:I,onEntering:w,onExit:M,onExited:D,onExiting:L,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,t)=>r.cloneElement(i,hr({style:hr({opacity:0,transform:eD(.75),visibility:"exited"!==e||l?void 0:"hidden"},tD[e],m,i.props.style),ref:E},t))}))}));function oD(e){return hv("MuiLink",e)}nD.muiSupportAuto=!0;const iD=gv("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),aD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},lD=({theme:e,ownerState:t})=>{const r=(e=>aD[e]||e)(t.color),n=ub(e,`palette.${r}`,!1)||t.color,o=ub(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:xy(n,.4)},sD=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],uD=hS(wM,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${lb(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>hr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&hr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:lD({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"},[`&.${iD.focusVisible}`]:{outline:"auto"}}))),cD=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Er(n,sD),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=Vv(),[v,y]=r.useState(!1),x=Ov(t,b),S=hr({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Yv({root:["root",`underline${lb(o)}`,"button"===r&&"button",n&&"focusVisible"]},oD,t)})(S);return Yr.jsx(uD,hr({color:i,className:fl(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(aD).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),dD=r.createContext({});function pD(e){return hv("MuiList",e)}gv("MuiList",["root","padding","dense","subheader"]);const fD=["children","className","component","dense","disablePadding","subheader"],mD=hS("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})=>hr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),hD=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Er(n,fD),d=r.useMemo((()=>({dense:l})),[l]),p=hr({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Yv({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},pD,t)})(p);return Yr.jsx(dD.Provider,{value:d,children:Yr.jsxs(mD,hr({as:a,className:fl(f.root,i),ref:t,ownerState:p},c,{children:[u,o]}))})})),gD=gv("MuiListItemIcon",["root","alignItemsFlexStart"]),bD=gv("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),vD=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function yD(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function xD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function SD(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 ED(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")&&SD(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const CD=r.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Er(e,vD),f=r.useRef(null),m=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Cv((()=>{o&&f.current.focus()}),[o]),r.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${Uv(Dv(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=Ov(f,t);let g=-1;r.Children.forEach(a,((e,t)=>{r.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const b=r.Children.map(a,((e,t)=>{if(t===g){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),r.cloneElement(e,t)}return e}));return Yr.jsx(hD,hr({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Dv(t).activeElement;if("ArrowDown"===r)e.preventDefault(),ED(t,n,u,s,yD);else if("ArrowUp"===r)e.preventDefault(),ED(t,n,u,s,xD);else if("Home"===r)e.preventDefault(),ED(t,null,u,s,yD);else if("End"===r)e.preventDefault(),ED(t,null,u,s,xD);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&SD(n,o);o.previousKeyMatched&&(l||ED(t,n,!1,s,yD,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function wD(e){return hv("MuiPopover",e)}gv("MuiPopover",["root","paper"]);const RD=["onEntering"],ID=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],LD=["slotProps"];function MD(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function DD(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function AD(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function PD(e){return"function"==typeof e?e():e}const kD=hS(JM,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),OD=hS(eM,{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}),TD=r.forwardRef((function(e,t){var n,o,i;const a=YL({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=nD,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,I=Er(a.TransitionProps,RD),L=Er(a,ID),M=null!=(n=null==x?void 0:x.paper)?n:v,D=r.useRef(),A=Ov(D,M.ref),P=hr({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:I}),k=(e=>{const{classes:t}=e;return Yv({root:["root"],paper:["paper"]},wD,t)})(P),O=r.useCallback((()=>{if("anchorPosition"===d)return c;const e=PD(s),t=(e&&1===e.nodeType?e:Dv(D.current).body).getBoundingClientRect();return{top:t.top+MD(t,u.vertical),left:t.left+DD(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=r.useCallback((e=>({vertical:MD(e,S.vertical),horizontal:DD(e,S.horizontal)})),[S.horizontal,S.vertical]),_=r.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:AD(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Av(PD(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:AD(r)}}),[s,d,O,T,g]),[q,N]=r.useState(b),F=r.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);r.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);r.useEffect((()=>{b&&F()})),r.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),r.useEffect((()=>{if(!b)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Av(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=m||(s?Dv(PD(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:kD,B=null!=(i=null==y?void 0:y.paper)?i:OD,$=Qv({elementType:B,externalSlotProps:hr({},M,{style:q?M.style:hr({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:P,className:fl(k.paper,null==M?void 0:M.className)}),W=Qv({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:fl(k.root,f)}),{slotProps:H}=W,V=Er(W,LD);return Yr.jsx(G,hr({},V,!Kv(G)&&{slotProps:H,disableScrollLock:R},{children:Yr.jsx(E,hr({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},I,{children:Yr.jsx(B,hr({},$,{children:p}))}))}))}));function _D(e){return hv("MuiMenu",e)}gv("MuiMenu",["root","paper","list"]);const qD=["onEntering"],ND=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],FD={vertical:"top",horizontal:"right"},jD={vertical:"top",horizontal:"left"},zD=hS(TD,{shouldForwardProp:e=>mS(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),GD=hS(OD,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),BD=hS(CD,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),$D=r.forwardRef((function(e,t){var n,o;const i=YL({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Er(i.TransitionProps,qD),S=Er(i,ND),E=(()=>{const e=r.useContext(ay);return null!=e&&e})(),C=hr({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Yv({root:["root"],paper:["paper"],list:["list"]},_D,t)})(C),R=a&&!u&&p,I=r.useRef(null);let L=-1;r.Children.map(l,((e,t)=>{r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===L)&&(L=t))}));const M=null!=(n=v.paper)?n:GD,D=null!=(o=y.paper)?o:f,A=Qv({elementType:v.root,externalSlotProps:y.root,ownerState:C,className:[w.root,s]}),P=Qv({elementType:M,externalSlotProps:D,ownerState:C,className:w.paper});return Yr.jsx(zD,hr({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?FD:jD,slots:{paper:M,root:v.root},slotProps:{root:A,paper:P},open:p,ref:t,transitionDuration:h,TransitionProps:hr({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:m,children:Yr.jsx(BD,hr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:I,autoFocus:a&&(-1===L||u),autoFocusItem:R,variant:b},c,{className:fl(w.list,c.className),children:l}))}))}));function WD(e){return hv("MuiMenuItem",e)}const HD=gv("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),VD=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],UD=hS(vM,{shouldForwardProp:e=>mS(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})=>hr({},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"}},[`&.${HD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${HD.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${HD.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xy(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})`:xy(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${HD.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${HD.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ZM.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ZM.inset}`]:{marginLeft:52},[`& .${bD.root}`]:{marginTop:0,marginBottom:0},[`& .${bD.inset}`]:{paddingLeft:36},[`& .${gD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&hr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${gD.root} svg`]:{fontSize:"1.25rem"}})))),YD=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=Er(n,VD),m=r.useContext(dD),h=r.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=r.useRef(null);Cv((()=>{o&&g.current&&g.current.focus()}),[o]);const b=hr({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return hr({},a,Yv({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},WD,a))})(n),y=Ov(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),Yr.jsx(dD.Provider,{value:h,children:Yr.jsx(UD,hr({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:fl(v.focusVisible,u),className:fl(v.root,p)},f,{ownerState:b,classes:v}))})})),KD=hS(_M,{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}}))),XD=hS("div")({position:"absolute",left:0,bottom:0}),JD=hS("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...cg,justifyContent:null!=e?e:cg.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),ZD=hS("div")((()=>({...cg}))),QD=hS("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}))),eA=hS($D)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),tA=hS(YD,{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}}}))),rA=hS("span")({textOverflow:"ellipsis",overflow:"hidden"}),nA=hS("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})));var oA;!function(e){e.Expand="Expand",e.Collapse="Collapse"}(oA||(oA={}));const iA=(e,t)=>({qExcludeList:t===oA.Expand,qPos:{qDimName:e,qElemNo:[]}}),aA=`${kC}/qExpansionState`,lA=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=null==t?void 0:t.findIndex((t=>{var r;return(null===(r=t.qPos)||void 0===r?void 0:r.qDimName)===e}));return{expansionData:iA(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:o}=t;try{let t,r=aA,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${aA}/-`,t=JSON.stringify(o)):(r=`${aA}/${n}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:r,qOp:i,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${n} dimension`})},sA=({model:e,effectivePropertiesService:t,cell:r,env:n})=>{if(!n.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM")||void 0===r.qEffectiveDimensionName)return;const o={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:lA({...o,action:oA.Expand}),collapseCallback:lA({...o,action:oA.Collapse})}},uA={[qE.Sorting]:!0,[qE.Selections]:!0,[qE.Searching]:!0},cA=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:l,overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:u,tableWidth:d})=>{var p;const f=c(null),{styleService:m,layoutService:h,effectivePropertiesService:g}=DC(),{app:b,interactions:v,embed:y,translator:x,env:S,model:E}=IC(),{fontSize:C,fontFamily:w,fontStyle:R,fontWeight:I,textDecoration:L,color:M,background:D,hoverBackground:A,activeBackground:P}=m.header,k=c(null),{shouldShowLockIcon:O,shouldShowMenuIcon:T}=a,{open:_,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=HL(),j={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},z={embed:y,listboxRef:f,sortCriteria:h.searchSortFromDimension&&e.isDim?g.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},G={app:b,qStateName:h.layout.qStateName},{labelTextAlign:B}=null!==(p=h.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==p?p:{},$=wL(B,"flex-start");return Yr.jsxs(KD,{className:jt,title:e.label,interactions:v,background:_?P:D,hoverBackground:A,shouldShowMenuIcon:T,isDimension:e.isDim,style:{...t,...pg,...bg(e,o,r,n,m.grid.border),color:M},"data-testid":"title-cell",onClick:N,children:[Yr.jsxs(JD,{children:[O?Yr.jsx(ZD,{children:Yr.jsx($L,{height:12})}):null,Yr.jsx(QD,{fontFamily:w,fontSize:C,fontStyle:R,fontWeight:I,textDecoration:L,justifyContent:$,children:Yr.jsx("span",{style:fg,children:e.label})})]}),e.isDim?Yr.jsxs(Yr.Fragment,{children:[Yr.jsx(jE,{headerData:e,translator:x,anchorRef:k,open:_,setOpen:q,interactions:v,menuAvailabilityFlags:uA,sortRelatedArgs:j,searchRelatedArgs:z,selectionRelatedArgs:G,expandOrCollapseArgs:sA({model:E,effectivePropertiesService:g,cell:e,env:S}),shouldShowMenuIcon:T,env:S,model:E&&"setActiveField"in E?E:void 0}),Yr.jsx(XD,{ref:f}),Yr.jsx(XD,{ref:k})]}):null,Yr.jsx(UL,{cellInfo:{...e,isLeftColumn:!0},columnWidth:l,isLastColumn:n,overrideLeftGridWidth:s,setIsAdjustingWidth:F,shouldApplyIndentModeColumnWidth:u,tableWidth:d})]})},dA=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=DC();return e>0&&t>0?Yr.jsx("div",{style:{...dg,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 pA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fA=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){pA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),mA=d(fA);function hA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const gA=(e,r)=>t.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){hA(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:r},e),t.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),t.createElement("use",{fillRule:"evenodd"})),bA=d(gA),vA=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{styleService:n}=DC(),{interactions:o,translator:i}=IC(),{isActive:a}=eL(),{dataModel:l}=gR(),{setIsAdjustingWidth:s}=WL([l]);if(!(!!o.active&&!a))return null;const u=VL(n,{isLeftColumn:!0});return Yr.jsx(ES,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:u,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*yR))},confirmWidthCallback:n=>{var o;if(n.type===$t.FitToContent)return void l.applyIndentModeColumnWidth({type:$t.Auto});const i=Math.min(null!==(o=n.pixels)&&void 0!==o?o:t,e*yR);r(i),l.applyIndentModeColumnWidth({type:$t.Pixels,pixels:i})},setIsAdjustingWidth:s,accessibilityRelatedArgs:{translator:i,columnLabel:i.get("SNPivotTable.IndentMode.Rows")},direction:"ltr"})};function yA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xA=(e,r)=>t.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){yA(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:r},e),t.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"})),SA=d(xA),EA=({cell:e,changeSortOrder:t})=>{const r=c(null),n=c(null),{app:o,interactions:i,embed:a,translator:l,env:s,model:u}=IC(),{layoutService:d,effectivePropertiesService:p}=DC(),{open:f,setOpen:m,handleOpenMenu:h}=HL();return Yr.jsxs(tA,{onClick:h,isActive:f,children:[Yr.jsx(rA,{children:e.label}),Yr.jsxs(nA,{className:"indent-mode-dropdown-more",visible:f,children:[Yr.jsx(SA,{}),e.isDim?Yr.jsxs(Yr.Fragment,{children:[Yr.jsx(jE,{headerData:e,translator:l,anchorRef:r,open:f,setOpen:m,interactions:i,menuAvailabilityFlags:uA,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:d.layout.qStateName},expandOrCollapseArgs:sA({model:u,effectivePropertiesService:p,cell:e,env:s}),shouldShowMenuIcon:!1,env:s,model:u&&"setActiveField"in u?u:void 0}),Yr.jsx(XD,{ref:n}),Yr.jsx(XD,{ref:r})]}):null]})]})},CA=({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)===TC,l=e+1<r.length&&(null===(i=r[e+1])||void 0===i?void 0:i.id)===TC;return!(n&&a&&l)&&((null==t?void 0:t.id)!==TC&&e<r.length-1)},wA=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=DC(),{interactions:a,translator:l}=IC(),{dataModel:s,gridSectionsData:{headersData:d}}=gR(),[p,f]=u(!1),m=c(null),{headerCellHeight:h}=i,{color:g,background:b,hoverBackground:v,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w}=i.header,{isAdjustingWidth:R}=WL([s]),I=e=>{e.stopPropagation()},L={height:h,gridColumn:`1 / span ${d.size.x}`,gridRow:d.size.y,zIndex:d.size.x-0};return Yr.jsxs(KD,{isDimension:!0,background:p?y:b,interactions:a,hoverBackground:v,style:{...L,...pg,color:g},onClick:e=>{!a.active||JI(e)||R||f(!p)},"data-testid":"indentModeHeaderCellWrapper",children:[Yr.jsxs(JD,{justifyContent:"flex-start",children:[Yr.jsx(QD,{fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w,justifyContent:"flex-start",children:Yr.jsx("span",{style:fg,children:l.get("SNPivotTable.IndentMode.Rows")})}),p?Yr.jsx(bA,{}):Yr.jsx(mA,{}),Yr.jsx(XD,{ref:m})]}),Yr.jsx(eA,{open:p,anchorEl:m.current,children:e.map(((r,n)=>[r&&r.id!==TC&&Yr.jsx("li",{role:"presentation",onClick:I,onKeyDown:I,children:Yr.jsx(EA,{cell:r,changeSortOrder:t})}),CA({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===d.size.y})&&Yr.jsx(AS,{"data-testid":"group-divider",variant:"middle"})]))}),Yr.jsx(vA,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},RA=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,IA={display:"grid",width:"fit-content"},LA=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:l})=>{const{layoutService:s}=DC(),{gridSectionsData:{headersData:u}}=gR();return Yr.jsxs("div",{"data-testid":"HEADER_GRID",style:{...IA,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&Yr.jsx(dA,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(RA({layoutService:s,headersData:u,topRowIndex:c})){const r=a.at(0);var p;if(Array.isArray(r))d.push(Yr.jsx(wA,{menuItems:r,changeSortOrder:o,overrideLeftGridWidth:l,leftGridWidth:t,tableWidth:e},null===(p=r.at(0))||void 0===p?void 0:p.id));return d}return d=a.reduce(((t,a,d)=>{if(a&&!Array.isArray(a)){const p=i(d,a.isLocked,a.label),f=s.isIndentModeEnabled&&1===u.size.x;t.push(Yr.jsx(cA,{style:{width:r[d],height:n,gridColumn:s.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var MA=h(LA);const DA=(e,t,r,n)=>{const{layoutService:o}=DC();g((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},AA=(e,t)=>{Wg((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},PA=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},kA=(e,t,r,n)=>{var o;if(n)return;const i=r?"flex-start":"center";var a,l;if(e.representation.type===Ut.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 wL(r,i)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return wL(u,i)},OA=()=>{},TA=({children:e,reactWindowStyle:t,cell:r,data:n,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:l,isCellSelected:s,isAdjustingWidth:u,index:c})=>{var d;const{styleService:p,layoutService:f}=DC(),{interactions:m}=IC(),{isLocked:h,createMouseDownHandler:g,createMouseOverHandler:b}=eL(),{showLastBorder:v}=n,y=h(r)||r.isLockedByDimension,x=!(y||!m.active||!m.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||u),S=x?g(c,(e=>PA(e,n))):void 0,E=x?b(c):void 0,C=SR({isLeftColumn:l,layoutService:f,representation:r.representation});return Yr.jsx("div",{className:jt,title:m.passive?r.representation.text:void 0,style:{...t,...gg(i,a,p.grid.border,v),...vg({bottomDivider:o&&l,rightDivider:o&&!l,borderColor:p.grid.divider}),...pg,padding:"0px 4px",cursor:dL(x),background:aL({styleService:p,isCellSelected:s,cell:r,isCellLocked:y}),zIndex:l?void 0:f.size.x-r.x,justifyContent:kA(r,f,l,C),display:"flex",...f.isIndentModeEnabled&&l&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onMouseDown:S,onMouseOver:E,onKeyUp:OA,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,"data-dimension-info-index":r.dimensionInfoIndex,children:e})},_A=e=>{e.stopPropagation()},qA=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:_A,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}),NA=({href:e,text:r,interactions:n,color:o})=>t.createElement(Np,qA({href:e,text:r,interactions:n,color:o}),r),FA=G();FA.use(z),FA.renderer.prio(["canvas"]);const jA=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{var o,i;const{imageBox:a}=t,{styleService:{grid:{lineClamp:l}}}=DC();return Yr.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${null!==(o=null==a?void 0:a.width)&&void 0!==o?o:24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",overflow:"hidden",boxSizing:"border-box"},children:[Yr.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:rL(e),alignItems:n,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:null!==(i=null==a?void 0:a.width)&&void 0!==i?i:24,height:"100%"},children:Yr.jsx(EL,{representation:t,textStyle:r})}),Yr.jsx("span",{style:{paddingRight:0,padding:4/(l<=2?2:1),alignSelf:rL(e)},children:!!t.labelStructure&&xL(t.labelStructure)})]})},zA=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,GA=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Yr.jsxs("span",{children:[Yr.jsx(cD,{...qA({href:e,text:t,interactions:n,color:o}),children:null!=r&&r.maskedValue?r.maskedValue:null==r?void 0:r.originalValue}),!!r&&zA(r)]}),BA=({children:e,textStyle:t})=>Yr.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),$A=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{isActive:n}=eL(),{layoutService:o,styleService:i}=DC(),{interactions:a}=IC();let l=r&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const s=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...fg,...mg(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:lL({cell:e,styleService:t,isCellSelected:r}),fontWeight:sL({cell:e,styleService:t}),fontStyle:uL({cell:e,styleService:t}),textDecoration:cL({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:i,isCellSelected:t,isLeftColumn:r});if(e.representation.type===Ut.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,n=r&&t&&t.suffix?jA:CL;return Yr.jsx(n,{cell:e,representation:e.representation,textStyle:s,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:kA(e,o,r)})}if(e.representation.type===Ut.Link&&!n&&!e.isTotal){const t=r&&e.representation.labelStructure?GA:NA;l=Yr.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:a,color:e.expressionColor.color})}return Yr.jsx(BA,{textStyle:{...s,...e.representation.type===Ut.Image&&e.isNull?{alignSelf:rL(e)}:{}},children:l})},WA=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=DC(),{isSelected:i}=eL(),{isLeftColumn:a=!1,showLastBorder:l,itemCount:s,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=WL([r]),f=PA(e,r),m=a?e===s-1:u,h=a?u:e===s-1,g=GI(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Yr.jsx(BI,{style:{...t,background:r},index:e,isLastRow:m,isLastColumn:h,showLastBorder:l,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return Yr.jsxs(TA,{reactWindowStyle:t,isLeftColumn:a,isLastRow:m,isLastColumn:h,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Yr.jsxs($I,{verticalAlign:rL(f),width:WI(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[Yr.jsx(mL,{isLeftColumn:a,isCellSelected:b,cell:f}),Yr.jsx($A,{isLeftColumn:a,isCellSelected:b,cell:f})]}),Yr.jsx(UL,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?rr.Measures:rr.Dimension},columnWidth:t.width,isLastColumn:h,setIsAdjustingWidth:p})]})};var HA=t.memo(WA,II);const VA=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t.at(o);return a&&0===o&&a.x>0?(a.leafCount+a.x+a.distanceToNextCell)*n():!r&&a?(a.leafCount+a.distanceToNextCell)*n():n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o)},UA=(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}},YA=(e,t)=>r=>{e.current&&(e.current[t]=r)},KA={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...dg},XA={overflow:"hidden",willChange:"auto",flexShrink:0},JA=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i}=CC(),{layoutService:a,styleService:{contentCellHeight:l,grid:{divider:s}}}=DC(),{qSize:u}=a.layout.qHyperCube,{gridSectionsData:{leftDimensionData:c},visibleDimensionsInfo:{visibleLeftDimensionInfo:d}}=gR();AA(e,c),DA(e,t,r,l);const p=i.rowsOnCurrentPage*l,f={...KA,borderColor:s,width:n.reduce(((e,t)=>e+t),0)};return Yr.jsx("div",{style:f,"data-section-id":"LEFT_GRID",children:c.grid.map(((t,s)=>{const f=s===c.columnCount-1,m=BC(d[s]),{itemCount:h,estimatedItemSize:g,listValues:b}=UA(t,p,i.rowsOnCurrentPage,f),v=a.isIndentModeEnabled?()=>l:((e,t,r,n,o)=>i=>{const a=n?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,b,l,f,u.qcy);return Yr.jsx(EI,{ref:YA(e,s),style:{...XA,flexGrow:f?1:0},height:r,width:n[s],itemCount:h,itemSize:v,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:f,itemCount:h,showLastBorder:o,listValues:b,totalDividerIndex:c.totalDividerIndex},itemKey:qL,estimatedItemSize:g,children:HA},m)}))})};var ZA=h(JA);const QA={overflow:"hidden",willChange:"auto"},eP={...dg,borderWidth:"0px 0px 0px 1px"},tP=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{layoutService:a,styleService:{grid:{divider:l},headerCellHeight:s}}=DC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=gR(),d={...eP,borderColor:l,height:n};AA(e,c),DA(e,r,n,s);const p=a.size.x*i();return 0===c.rowCount?Yr.jsx("div",{style:{width:r,height:n,...eP}}):Yr.jsx("div",{style:d,"data-section-id":"TOP_GRID",children:c.grid.map(((n,l)=>{const s=l===c.rowCount-1,{itemCount:d,estimatedItemSize:f,listValues:m}=UA(n,p,a.size.x,s),h=(({layoutService:e,headersData:t,topRowIndex:r})=>{const n=t.data.at(r);if(void 0===n)return;const o=t.size.x-1,i=RA({layoutService:e,headersData:t,topRowIndex:r})?0:o,a=n.at(i),l=Array.isArray(a)?a.at(o):a;return l?e.getDimensionInfo(l.dimensionInfoIndex):void 0})({layoutService:a,headersData:u,topRowIndex:l}),g=h?BC(h):`empty ${l}`;return Yr.jsx(EI,{ref:YA(e,l),style:QA,height:t(),width:r,itemCount:d,itemSize:VA({list:n,listValues:m,isLastRow:s,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:s,itemCount:d,showLastBorder:o,listValues:m,totalDividerIndex:c.totalDividerIndex},itemKey:qL,estimatedItemSize:f,children:HA},g)}))})};var rP=h(tP);const nP=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=DC(),r=GR(),n=(()=>{const{model:e}=IC(),t=p((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:l},gridRefs:{topGridRef:s,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:m},scrollbarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=zR(),{leftGridWidth:v,leftGridFullWidth:y,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:E,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:w,overrideLeftGridWidth:R}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=DC(),{gridSectionsData:{headersData:i}}=gR(),{measureText:a}=zg(o.header),l=OR({tableWidth:e}),s=TR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:l.leftGridWidth}),u=l.leftGridWidth+s.rightGridFullWidth+1<e,c=p(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const s=l.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+vR;return t&&d+20<=s&&(c=!0,d+=20),d+20<=s&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[l.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return f((()=>{const e=l.leftGridWidth===l.leftGridFullWidth,t=s.rightGridWidth===s.rightGridFullWidth;e&&t&&r()}),[r,l.leftGridWidth,l.leftGridFullWidth,s.rightGridWidth,s.rightGridFullWidth]),{...l,...s,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:h,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:I,headerGridDims:L,topGridDims:M,leftGridDims:D,dataGridDims:A,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:k}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const l=GR(),{pageInfo:s}=CC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=gR(),d=Math.min(l.height*yR,Math.max(l.height*yR-25,l.height-t-a)),p=l.width*yR,f=s.rowsOnCurrentPage*t,m=Math.max(u.size.y,c.rowCount,1),h=e*m,g=e*m,b=Math.min(p,r),v=l.width-p,y=Math.max(v,l.width-b),x=Math.min(d,h,g),{availableHeight:S,everyThingFitsInTableRectHeight:E,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=l.width,o=e+1+f+a,s=o-l.height<a||o<=l.height;return{availableHeight:s?o:l.height,everyThingFitsInTableRectHeight:s,everyThingFitsInTableRectWidth:n}})(x,b,y),w=S-d,R=Math.max(w,S-x),I=Math.min(R,f),L=Math.min(R,f),M=h+1+f,{visibilityStatus:D,metadata:{hasLeftGridOverflowX:A,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:l,bottomSectionFullHeight:s}}}=e,u=l>n,c=i>t,d=a>r,p=s>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:R}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:M-g}}});return{gridScaffoldDimensions:{width:l.width,height:l.height,gridTemplateColumns:`${b}px ${y}px`,gridTemplateRows:`${x}px ${R}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:y-1-i,height:-1},self:{width:Math.min(o,y)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:M-g+(!A&&P?a:0)},stickyWrapper:{width:b,height:R-1-a},self:{width:b,height:Math.max(t,I-(E?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:M-g+(!P&&A?a:0)},stickyWrapper:{width:y-1-i,height:R-1-a},self:{width:Math.min(o,y)-(C?1:0)-i,height:Math.max(t,L-(E?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:E,scrollbarsVisibilityStatus:D}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:v,leftGridOriginalWidth:y,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g}}),O=p((()=>e),[e]),T=p((()=>t),[t]);return(()=>{const{downloadService:e}=DC();f((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Yr.jsxs($R,{style:I,children:[Yr.jsx("div",{style:{overflow:"hidden"},ref:o,children:Yr.jsx(MA,{tableWidth:r.width,leftGridWidth:v,columnWidths:x,getHeaderCellsIconsVisibilityStatus:w,rowHight:e,height:L.height,changeSortOrder:n,overrideLeftGridWidth:R})}),Yr.jsx(VR,{style:k.topGrid,origin:or.TopGrid,ref:i,children:Yr.jsx(BR,{style:M.fullSizeWrapper,children:Yr.jsx(UR,{style:M.stickyWrapper,children:Yr.jsx(rP,{topGridRef:s,rowHightCallback:O,...M.self,showLastBorder:{right:E,bottom:!1},getRightGridColumnWidth:C})})})}),Yr.jsx(VR,{style:k.leftGrid,origin:or.LeftGrid,ref:a,children:Yr.jsx(BR,{style:D.fullSizeWrapper,children:Yr.jsx(UR,{style:D.stickyWrapper,children:Yr.jsx(ZA,{leftGridRef:u,...D.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),Yr.jsx(VR,{style:k.dataGrid,origin:or.DataGrid,ref:l,children:Yr.jsx(BR,{style:A.fullSizeWrapper,children:Yr.jsx(UR,{style:A.stickyWrapper,children:Yr.jsx(zL,{dataGridRef:c,rowHightCallback:T,...A.self,showLastBorder:{right:E,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:m})})})})]})},oP=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=IC(),{pageInfo:o,updatePageInfo:i,rect:a}=CC(),{layoutService:l}=DC(),{layout:s,hasData:u}=l;return Yr.jsxs(Yr.Fragment,{children:[u?Yr.jsx(nP,{}):null,Yr.jsx(PC,{}),Yr.jsx(SC,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:s})]})},iP={WHITE:"#FFFFFF",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_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_100_15:"rgba(255, 255, 255, 0.15)",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)"},aP=12,lP=14,sP=16,uP=24,cP=3,dP=300,pP=400,fP=600,mP=700,hP={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Sr(iP.GREYSCALE_0,.05),Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5),Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5),Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5);var gP;function bP(){return bP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bP.apply(null,arguments)}Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5),Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5);var vP,yP=function(e){return r.createElement("svg",bP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),gP||(gP=r.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function xP(){return xP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xP.apply(null,arguments)}var SP=function(e){return r.createElement("svg",xP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),vP||(vP=r.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 EP({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Yr.jsx("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,children:t})}function CP(e={}){return Yr.jsx(EP,{...e,children:Yr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yr.jsx("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"})]})})}function wP(e={}){return Yr.jsx(EP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function RP(e={}){return Yr.jsx(EP,{fontSize:"medium",...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function IP(e={}){return Yr.jsx(EP,{fontSize:"medium",...e,children:Yr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yr.jsx("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"})]})})}function LP({className:e}){return Yr.jsx(EP,{fontSize:"small",className:e,children:Yr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yr.jsx("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"}),Yr.jsx("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"})]})})})})})}function MP(e={}){return Yr.jsx(EP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("rect",{stroke:iP.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Yr.jsx(SP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(yP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(RP,{}),Yr.jsx(IP,{}),Yr.jsx((function(e={}){return Yr.jsx(EP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Yr.jsx(CP,{}),Yr.jsx(wP,{}),Yr.jsx(yP,{style:{color:iP.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const DP={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:cP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},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:[]}};var AP=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:iP.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:iP.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yr.jsx(yP,{"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 ${iP.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`,borderRadius:cP,backgroundColor:iP.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 ${iP.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:iP.WHITE,color:iP.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:cP},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${iP.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:iP.GREYSCALE_0_15,backgroundColor:iP.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${iP.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:iP.GREEN_PALE},"&:active":{backgroundColor:iP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:iP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:iP.BLUE_PALE},"&:active":{backgroundColor:iP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:iP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.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:cP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:iP.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${iP.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:iP.GREYSCALE_0_15,backgroundColor:iP.GREYSCALE_100_60,"&:active":{backgroundColor:iP.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${iP.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:iP.PURPLE,"&.Mui-focusVisible":{borderColor:iP.PURPLE,boxShadow:`0 0 0 3px ${Lv(iP.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:iP.GREEN,"&.Mui-focusVisible":{borderColor:iP.GREEN,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:iP.BLUE,"&.Mui-focusVisible":{borderColor:iP.BLUE,boxShadow:`0 0 0 3px ${Lv(iP.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:iP.ORANGE,"&.Mui-focusVisible":{borderColor:iP.ORANGE,boxShadow:`0 0 0 3px ${Lv(iP.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:iP.RED,"&.Mui-focusVisible":{borderColor:iP.RED,boxShadow:`0 0 0 3px ${Lv(iP.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:iP.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:iP.PURPLE_PALE},"&:active":{backgroundColor:iP.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:iP.PURPLE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:iP.GREEN_PALE},"&:active":{backgroundColor:iP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:iP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:iP.BLUE_PALE},"&:active":{backgroundColor:iP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:iP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:iP.ORANGE_PALE},"&:active":{backgroundColor:iP.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:iP.ORANGE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:iP.RED_PALE},"&:active":{backgroundColor:iP.RED_DARK},"&.Mui-focusVisible":{borderColor:iP.RED_PALE,boxShadow:`0 0 0 3px ${Lv(iP.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:iP.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:iP.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:cP,boxShadow:`inset 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yr.jsx(SP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:aP,borderRadius:cP,color:iP.TEXT_PRIMARY,backgroundColor:iP.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:iP.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:iP.GREYSCALE_0_05,color:iP.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:iP.GREEN,borderColor:iP.GREEN},"&.MuiChip-outlinedInfo":{color:iP.BLUE,borderColor:iP.BLUE},"&.MuiChip-outlinedWarning":{color:iP.ORANGE,borderColor:iP.ORANGE},"&.MuiChip-outlinedError":{color:iP.RED,borderColor:iP.RED}},outlined:{border:`solid 1px ${iP.GREYSCALE_0_15}`,backgroundColor:iP.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:cP,boxShadow:"none",backgroundColor:iP.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:iP.GREEN,borderColor:iP.GREEN},outlinedSecondary:{color:iP.BLUE,borderColor:iP.BLUE},label:{fontFamily:hP.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yr.jsx(SP,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yr.jsx(yP,{"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:cP},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:cP,fontSize:lP,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:iP.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${iP.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:iP.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:iP.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:iP.GREYSCALE_0_05}}},popupIndicator:{borderRadius:cP,border:`solid 1px ${iP.GREYSCALE_0_15}`,color:iP.GREYSCALE_0_60,marginRight:0,width:uP,height:uP},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${iP.GREYSCALE_0_15}`},clearIndicator:{borderRadius:cP,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:iP.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:lP}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:aP,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:iP.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:iP.GREYSCALE_25,fontSize:aP,fontFamily:hP.FONT_FAMILY,fontWeight:fP,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:iP.TEXT_PRIMARY},"&.Mui-error":{color:iP.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:iP.TEXT_SECONDARY,content:"'(optional)'",fontWeight:pP,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:iP.TEXT_SECONDARY,content:"'(required)'",fontWeight:pP,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:lP,lineHeight:"16px",backgroundColor:iP.WHITE,borderRadius:cP,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iP.GREYSCALE_0_05}`,borderColor:iP.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iP.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${iP.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${iP.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iP.RED}`,boxShadow:`0px 0px 0px 1px ${iP.RED}, inset 0 2px 0 0 ${iP.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iP.GREYSCALE_0_10}`,borderColor:iP.GREYSCALE_0_10,backgroundColor:iP.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:iP.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:iP.GREYSCALE_0_15,borderRadius:cP,boxShadow:`inset 0 2px 0 0 ${iP.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yr.jsx(yP,{...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:iP.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:iP.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:iP.GREYSCALE_0_03},"&:active":{backgroundColor:iP.GREYSCALE_0_10},"&:focus":{backgroundColor:iP.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${iP.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:iP.GREYSCALE_0_30,"&:hover":{backgroundColor:iP.GREYSCALE_0_0,borderColor:iP.GREYSCALE_0_15},"& ~svg":{color:iP.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${iP.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:cP}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${iP.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:iP.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:lP,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:aP,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:aP,fontWeight:fP,color:iP.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:fP}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${iP.GREYSCALE_0_15}, 0px 0px 0px 1px ${iP.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yr.jsx(RP,{}),checkedIcon:Yr.jsx(IP,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:iP.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:iP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:iP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:iP.GREYSCALE_0_20}},"&.Mui-disabled":{fill:iP.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yr.jsx(MP,{}),checkedIcon:Yr.jsx(CP,{}),indeterminateIcon:Yr.jsx(wP,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:cP,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:iP.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:iP.GREYSCALE_0_55,color:iP.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:iP.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:iP.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:iP.GREYSCALE_0_55,"&:hover":{color:iP.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:iP.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:iP.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:lP,color:iP.TEXT_PRIMARY,lineHeight:"16px",fontWeight:fP},secondary:{fontSize:aP,color:iP.GREYSCALE_45,fontWeight:pP,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:lP,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:lP,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:iP.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:aP,borderBottom:`solid 1px ${iP.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:lP,color:iP.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:iP.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:iP.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:iP.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:iP.RED}}},"&.Mui-focusVisible":{backgroundColor:iP.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:iP.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:iP.GREEN,height:"24px","&.Mui-disabled":{color:iP.GREYSCALE_0_15}},rail:{backgroundColor:iP.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${iP.GREYSCALE_0_05}`,borderRadius:cP,boxShadow:`inset 0px 0px 0px 1px ${iP.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${iP.GREYSCALE_0_05}`,borderRadius:cP},thumb:{height:"16px",width:"16px",borderRadius:cP,backgroundColor:iP.WHITE,boxShadow:`0px 1px 2px 0px ${iP.GREYSCALE_0_15}, 0px 0px 0px 1px ${iP.GREYSCALE_0_05}`,"&:hover":{borderRadius:cP,boxShadow:`0 2px 4px 0 ${iP.GREYSCALE_0_30}, 0 0 0 1px ${iP.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${iP.GREYSCALE_0_15}, 0 0 0 1px ${iP.GREYSCALE_0_06}, 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${iP.GREYSCALE_0_15}, 0 0 0 1px ${iP.GREYSCALE_0_06}, 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:iP.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:iP.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:iP.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:iP.GREYSCALE_0_15},markLabel:{color:iP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:iP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:iP.WHITE,color:iP.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:iP.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:iP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:iP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:iP.GREYSCALE_0_15,borderRadius:cP},thumb:{height:"16px",width:"16px",borderRadius:cP,backgroundColor:iP.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:lP,fontWeight:fP,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${iP.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`,backgroundColor:iP.GREYSCALE_0_03,borderRadius:cP},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:iP.GREYSCALE_25,"&.Mui-selected":{color:iP.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:lP,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:cP,"&:hover":{backgroundColor:iP.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${iP.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${iP.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:cP,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:iP.GREYSCALE_0_05},"&:hover":{backgroundColor:iP.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${iP.GREYSCALE_85}`,borderRight:`1px solid ${iP.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:fP,backgroundColor:iP.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:iP.GREYSCALE_98,borderBottom:`1px solid ${iP.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${iP.GREYSCALE_85}`,borderTop:`1px solid ${iP.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:iP.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:iP.GREYSCALE_0_05,"&:hover":{backgroundColor:iP.GREYSCALE_0_03}},"&&:hover":{backgroundColor:iP.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yr.jsx(LP,{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 ${iP.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:lP,borderRadius:cP,padding:"7px 16px",border:`1px solid ${iP.GREYSCALE_0_15}`,backgroundColor:iP.GREYSCALE_100_60,color:iP.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:iP.GREYSCALE_0_10,border:`1px solid ${iP.GREYSCALE_0_30}`},"&:hover":{backgroundColor:iP.GREYSCALE_0_03,border:`1px solid ${iP.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:iP.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${iP.MISC_FOCUS_BORDER}`,border:`1px solid ${iP.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:iP.GREYSCALE_25,backgroundColor:iP.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:iP.GREYSCALE_0_10,border:`1px solid ${iP.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:aP,height:24,width:24,padding:7},sizeLarge:{fontSize:sP,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:lP,borderRadius:cP}}},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:iP.GREYSCALE_20},tooltip:{backgroundColor:iP.GREYSCALE_20,fontSize:aP,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...DP}:{}}))(t);const PP=e=>({mode:"light",primary:{ultraLight:iP.GREEN_ULTRA_LIGHT,light:iP.GREEN_PALE,main:iP.GREEN,dark:iP.GREEN_DARK,extraDark:iP.GREEN_EXTRA_DARK,contrastText:iP.WHITE},secondary:{ultraLight:iP.BLUE_ULTRA_LIGHT,light:iP.BLUE_PALE,main:iP.BLUE,dark:iP.BLUE_DARK,extraDark:iP.BLUE_EXTRA_DARK,contrastText:iP.WHITE},error:{ultraLight:iP.RED_ULTRA_LIGHT,light:iP.RED_PALE,main:iP.RED,dark:iP.RED_DARK,extraDark:iP.RED_EXTRA_DARK,contrastText:iP.WHITE},warning:{ultraLight:iP.ORANGE_ULTRA_LIGHT,light:iP.ORANGE_PALE,main:iP.ORANGE,dark:iP.ORANGE_DARK,extraDark:iP.ORANGE_EXTRA_DARK,contrastText:iP.WHITE},success:{ultraLight:iP.GREEN_ULTRA_LIGHT,light:iP.GREEN_PALE,main:iP.GREEN,dark:iP.GREEN_DARK,extraDark:iP.GREEN_EXTRA_DARK,contrastText:iP.WHITE},info:{ultraLight:iP.BLUE_ULTRA_LIGHT,light:iP.BLUE_PALE,main:iP.BLUE,dark:iP.BLUE_DARK,extraDark:iP.BLUE_EXTRA_DARK,contrastText:iP.WHITE},text:{primary:iP.TEXT_PRIMARY,secondary:iP.TEXT_SECONDARY,disabled:iP.GREYSCALE_0_30},action:{hover:iP.GREYSCALE_0_03,hoverOpacity:.03,selected:iP.GREYSCALE_0_05,selectedOpacity:.05,focus:iP.MISC_FOCUS_BORDER},amethyst:{ultraLight:iP.WHITE,main:iP.PURPLE,light:iP.PURPLE_PALE,dark:iP.PURPLE_DARK,extraDark:iP.GREYSCALE_0_0,contrastText:iP.WHITE},background:{paper:iP.WHITE,default:iP.GREYSCALE_95},divider:iP.GREYSCALE_0_15}),kP=(e="light",t=!1)=>((e,t=!1)=>({components:AP(0,t),palette:PP(),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:lP,fontWeightLight:dP,fontWeightRegular:pP,fontWeightMedium:fP,fontWeightBold:mP,htmlFontSize:lP,fontFamily:hP.FONT_FAMILY,button:{fontWeight:fP,fontSize:lP,textTransform:"none"},body1:{fontSize:sP,lineHeight:"24px"},body2:{fontSize:lP,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:uP,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:sP,fontWeight:fP,lineHeight:"16px"},h6:{fontSize:lP,fontWeight:fP,lineHeight:"16px"},caption:{color:iP.TEXT_SECONDARY},subtitle1:{fontSize:lP,color:iP.TEXT_SECONDARY},subtitle2:{fontSize:aP,color:iP.TEXT_SECONDARY}},shape:{borderRadius:cP}}))(0,t);const OP=(e,{selections:r,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){var t;const r=kP();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),qx({...r,direction:e})}("ltr");e.render(Yr.jsx(t.StrictMode,{children:Yr.jsx(bS,{theme:a,children:Yr.jsx(LC,{...i,children:Yr.jsx(wC,{...n,children:Yr.jsx(tL,{selections:r,children:Yr.jsx(AC,{...o,children:Yr.jsx(bR,{children:Yr.jsx(oP,{})})})})})})})}))};var TP,_P,qP,NP;!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"}(TP||(TP={})),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"}(_P||(_P={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(qP||(qP={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(NP||(NP={}));const FP=e=>e?`${parseInt(e,10)}px`:void 0,jP=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?sg.Transparent:r}},zP=(e,t)=>+(parseInt(e,10)*lg*t+8).toFixed(2),GP=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ig:"normal",BP=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",$P=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",WP=document.createElement("textarea");function HP(e){WP.value=e,document.body.appendChild(WP),WP.select(),WP.setSelectionRange(0,WP.value.length),document.execCommand("copy"),document.body.removeChild(WP)}WP.style.position="absolute",WP.style.left="-9999px",WP.setAttribute("readonly","");function VP(e){null==I||I(((t,r)=>{const n=r.target,o=null==n?void 0:n.closest(`.${jt}`);null!=o&&o.title&&t.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((()=>{HP(r)})):HP(r))})(o)}}),null==e||e.forEach((e=>{e(t,r,o)}))}))}const UP=({model:e,env:t,layoutService:r,effectivePropertiesService:n,translator:o})=>Dg(((i,a,l)=>{if(!e||n.qAlwaysFullyExpanded||!t.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM"))return;const s=e,u=i.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group"}),{qEffectiveDimensionName:c,label:d}=((e,t)=>{const r=((e,t)=>{const r=null==e?void 0:e.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(l,r);u.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(kC,0,0,!0),await e.expandLeft(kC,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[null!=n?n:""]),tid:"expand-dimension",select:lA({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:oA.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o})),u.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(kC,0,0,!0),await e.collapseLeft(kC,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[null!=n?n:""]),tid:"collapse-dimension",select:lA({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:oA.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o}))}),[e,r,n]),YP=(e,t)=>y((()=>(({layout:e,flags:t})=>{var r,n,o,i;const{qHyperCube:a,nullValueRepresentation:l,snapshotData:s}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!s,m=null!==(r=null==s||null===(n=s.content)||void 0===n?void 0:n.rowsPerPage)&&void 0!==r?r:15e3,h={x:Math.min(e.qHyperCube.qSize.qcx,ag),y:Math.min(e.qHyperCube.qSize.qcy,m)},g=c.slice(0,u),b=e=>g.some((t=>t===e)),v=b(OC),y=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:OC,e]}))),x=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==l?void 0:l.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(v)return 0;const r=e%x.length;return t?r:d.findIndex((e=>e===x[r]))},getDimensionInfo:e=>e===OC?void 0:p.at(e),getDimensionInfoIndex:e=>{var t;return null!==(t=y.get(e))&&void 0!==t?t:-1},size:h,isSnapshot:f,hasLimitedData:!f&&h.x<e.qHyperCube.qSize.qcx,hasData:h.x>0&&h.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:v,leftDimensionInfoIndexes:g,isLeftDimension:b,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:x,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeFeatures:{isLinksSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),isImagesSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES")},indentModeColumnWidth:null!==(o=e.qHyperCube.indentModeColumnWidth)&&void 0!==o?o:{type:$t.Auto,pixels:Bt.PixelsDefault,percentage:Bt.PercentageDefault},searchSortFromDimension:"inherit"===(null===(i=e.search)||void 0===i?void 0:i.sorting)}})({layout:e,flags:t})),[e,t]),KP=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=Pg(e);return t.current=e,t})(cR(o));return Ng((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=s.current;var c,d;if(a)return null!==(c=null===(d=i.snapshotData)||void 0===d||null===(d=d.content)||void 0===d?void 0:d.qPivotDataPages)&&void 0!==c?c:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,o,u)||((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,o,u))){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(ag,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,o,u);return t?e.getHyperCubePivotData(kC,dR(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},XP=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),JP=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:XP({rowsPerPage:r,totalRowCount:e,page:t})}),ZP=15,QP=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{var i;return L((async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(n-ZP,0),u=Math.max(l+o-ZP,l,0),c=ag-s,d=l+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=cR(r);return{qLeft:s,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:s,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=dR(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(kC,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i})),M((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var ek={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},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 tk=()=>{const e=D(),t=e.language();return y((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(ek).forEach((t=>{e.add(ek[t])}))}(e)}),[e]),{translator:e,language:t}},rk=e=>{const{flags:t}=e,r=A(),n=(e=>{const t=y((()=>Gg(e)),[e]);return C((()=>()=>{t.unmount()}),[t]),t})(r),o=P(),i=k(),a=O(),l=T(),s=_(),u=kg(),c=((e,t)=>{const[r]=Ng((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]);return y((()=>{var e,t;const n=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),o=null!==(e=null==r?void 0:r.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias)))&&void 0!==e?e:[];return{qAlwaysFullyExpanded:null!==(t=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==t&&t,qExpansionState:null==r?void 0:r.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:n,getSortCriteriaForDimension:e=>o[e]}}),[r])})(i,o),d=YP(o,t),p=(e=>{const t=R();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(d.isSnapshot),f=q(),m=qg(o,r),{translator:h,language:g}=tk(),{pageInfo:b,updatePageInfo:v}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[a,l]=E((()=>{const a=((e,t)=>{var r,n,o,i;return t.isDownloadedAsPDForImage?null!==(r=null===(n=t.viewState)||void 0===n?void 0:n.renderPage)&&void 0!==r?r:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,...JP(n.qcy,a,i)}})),s=e.layout.qHyperCube.qSize.qcy;return C((()=>{l((t=>({...t,...JP(s,t.page,i),shouldShowPagination:s>e.size.y&&!o})))}),[s,e.size.y,l,o,i]),C((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=XP({...a,page:e});l({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{l({...a,...e,rowsOnCurrentPage:XP({...a,...e})})}}})(d,u),x=((e,t,r)=>y((()=>((e,t)=>{var r,n,o,i,a,l,s,u;if(e.isDownloadedAsPDForImage){var c,d,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(c=null==t?void 0:t.scrollTop)&&void 0!==c?c:0,scrollLeft:null!==(d=null==t?void 0:t.scrollLeft)&&void 0!==d?d:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.scrollTop)&&void 0!==r?r:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(s=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==s?s:0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(b,o,u),S=QP({rect:N(),layoutService:d,viewService:x,model:i,pageInfo:b}),[w,I]=KP({model:i,layoutService:d,viewService:x,pageInfo:b,rect:S}),L=y((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,I,L,M,D,A,P,k,O,T,_,q,N,F,j,z,G,B,$,W,H,V,U,Y,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[TP.LineClamp])&&void 0!==i?i:oe(_P.Grid,qP.Grid,NP.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==ne?void 0:ne[TP.ColumnLineClamp])&&void 0!==l?l:oe(_P.Grid,qP.Grid,NP.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=jP(e,null==J?void 0:J[TP.Background]))&&void 0!==u?u:oe(_P.Dimension,qP.LabelName,NP.BackgroundColor))&&void 0!==s?s:sg.Transparent,se={header:{fontSize:null!==(c=null!==(d=FP(null==J?void 0:J[TP.FontSize]))&&void 0!==d?d:oe(_P.Dimension,qP.LabelName,NP.FontSize))&&void 0!==c?c:ng,fontFamily:null!==(p=null!==(f=null==J?void 0:J[TP.FontFamily])&&void 0!==f?f:oe(_P.Dimension,qP.LabelName,NP.FontFamily))&&void 0!==p?p:og,fontWeight:GP(null==J?void 0:J[TP.FontStyle],ig),fontStyle:BP(null==J?void 0:J[TP.FontStyle]),textDecoration:$P(null==J?void 0:J[TP.FontStyle]),color:null!==(m=null!==(h=jP(e,null==J?void 0:J[TP.FontColor]))&&void 0!==h?h:oe(_P.Dimension,qP.LabelName,NP.FontColor))&&void 0!==m?m:fm.TEXT,background:le,hoverBackground:Hh(le,Wt),activeBackground:Hh(le,Ht)},dimensionValues:{fontSize:null!==(g=null!==(b=FP(null==Z?void 0:Z[TP.FontSize]))&&void 0!==b?b:oe(_P.Dimension,qP.LabelValue,NP.FontSize))&&void 0!==g?g:ng,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[TP.FontFamily])&&void 0!==y?y:oe(_P.Dimension,qP.LabelValue,NP.FontFamily))&&void 0!==v?v:og,fontWeight:GP(null==Z?void 0:Z[TP.FontStyle],void 0),fontStyle:BP(null==Z?void 0:Z[TP.FontStyle]),textDecoration:$P(null==Z?void 0:Z[TP.FontStyle]),color:null!==(x=null!==(S=jP(e,null==Z?void 0:Z[TP.FontColor]))&&void 0!==S?S:oe(_P.Dimension,qP.LabelValue,NP.FontColor))&&void 0!==x?x:fm.TEXT,background:null!==(E=null!==(C=jP(e,null==Z?void 0:Z[TP.Background]))&&void 0!==C?C:oe(_P.Dimension,qP.LabelValue,NP.BackgroundColor))&&void 0!==E?E:sg.Transparent},measureValues:{fontSize:null!==(w=null!==(R=FP(null==Q?void 0:Q[TP.FontSize]))&&void 0!==R?R:oe(_P.Measure,qP.LabelValue,NP.FontSize))&&void 0!==w?w:ng,fontFamily:null!==(I=null!==(L=null==Q?void 0:Q[TP.FontFamily])&&void 0!==L?L:oe(_P.Measure,qP.LabelValue,NP.FontFamily))&&void 0!==I?I:og,fontWeight:GP(null==Q?void 0:Q[TP.FontStyle],"normal"),fontStyle:BP(null==Q?void 0:Q[TP.FontStyle]),textDecoration:$P(null==Q?void 0:Q[TP.FontStyle]),color:null!==(M=null!==(D=jP(e,null==Q?void 0:Q[TP.FontColor]))&&void 0!==D?D:oe(_P.Measure,qP.LabelValue,NP.FontColor))&&void 0!==M?M:sg.FontSecondary,background:null!==(A=null!==(P=jP(e,null==Q?void 0:Q[TP.Background]))&&void 0!==P?P:oe(_P.Measure,qP.LabelValue,NP.BackgroundColor))&&void 0!==A?A:sg.Transparent},measureLabels:{fontWeight:GP(null==ee?void 0:ee[TP.FontStyle],"normal"),fontStyle:BP(null==ee?void 0:ee[TP.FontStyle]),textDecoration:$P(null==ee?void 0:ee[TP.FontStyle]),color:null!==(k=null!==(O=jP(e,null==ee?void 0:ee[TP.FontColor]))&&void 0!==O?O:oe(_P.Measure,qP.LabelName,NP.FontColor))&&void 0!==k?k:sg.FontSecondary,background:null!==(T=null!==(_=jP(e,null==ee?void 0:ee[TP.Background]))&&void 0!==_?_:oe(_P.Measure,qP.LabelName,NP.BackgroundColor))&&void 0!==T?T:sg.Transparent},totalValues:{fontWeight:GP(null==te?void 0:te[TP.FontStyle],ig),fontStyle:BP(null==te?void 0:te[TP.FontStyle]),textDecoration:$P(null==te?void 0:te[TP.FontStyle]),color:null!==(q=null!==(N=jP(e,null==te?void 0:te[TP.FontColor]))&&void 0!==N?N:oe(_P.Total,qP.LabelValue,NP.FontColor))&&void 0!==q?q:fm.TEXT,background:null!==(F=null!==(j=jP(e,null==te?void 0:te[TP.Background]))&&void 0!==j?j:oe(_P.Total,qP.LabelValue,NP.BackgroundColor))&&void 0!==F?F:sg.Transparent},nullValues:{fontWeight:GP(null==re?void 0:re[TP.FontStyle],"normal"),fontStyle:BP(null==re?void 0:re[TP.FontStyle]),textDecoration:$P(null==re?void 0:re[TP.FontStyle]),color:null!==(z=null!==(G=jP(e,null==re?void 0:re[TP.FontColor]))&&void 0!==G?G:oe(_P.Null,qP.LabelValue,NP.FontColor))&&void 0!==z?z:fm.TEXT,background:null!==(B=null!==($=jP(e,null==re?void 0:re[TP.Background]))&&void 0!==$?$:oe(_P.Null,qP.LabelValue,NP.BackgroundColor))&&void 0!==B?B:sg.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(H=jP(e,null==ne?void 0:ne[TP.Border]))&&void 0!==H?H:oe(_P.Grid,qP.Grid,NP.BorderColor))&&void 0!==W?W:sg.DividerLight,divider:null!==(V=null!==(U=jP(e,null==ne?void 0:ne[TP.Divider]))&&void 0!==U?U:oe(_P.Grid,qP.Divider,NP.BorderColor))&&void 0!==V?V:sg.DividerDark,background:null!==(Y=null!==(K=jP(e,null==ne?void 0:ne[TP.Background]))&&void 0!==K?K:oe(_P.Grid,qP.Grid,NP.BackgroundColor))&&void 0!==Y?Y:sg.Transparent},selectedColors:Wh(e)};return se.headerCellHeight=Math.max(zP(se.header.fontSize,ae),zP(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(zP(se.measureValues.fontSize,ie),zP(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=zP(se.dimensionValues.fontSize,1),se})(m,d,t)),[m,d,t]),M=((e,t,r)=>{const[,n,o]=Ng((async()=>{var t;const n=_m(r.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),l=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...n,...l,o,i,a,$g].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(m,o,e);VP([UP({model:i,env:e,layoutService:d,effectivePropertiesService:c,translator:h})]),C((()=>{!I&&i&&!!w&&M&&OP(n,{selections:f,baseObjects:{rect:S,pageInfo:b,qPivotDataPages:w,updatePageInfo:v},nebulaObjects:{env:e,app:a,model:i,embed:l,theme:m,keyboard:s,translator:h,interactions:p},coreServices:{styleService:L,viewService:x,layoutService:d,downloadService:u,effectivePropertiesService:c}})}),[i,a,S,p,f,x,d,u,I,w,L,n,M,h,g,b,v,c,l,s,m,e])},nk={version:"4.4.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:[]},ok=()=>({...nk,qHyperCubeDef:{...nk.qHyperCubeDef,qIndentMode:!1}})}}}));
|
|
174
|
+
`),oM.rippleVisible,dM,550,(({theme:e})=>e.transitions.easing.easeInOut),oM.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),oM.child,oM.childLeaving,pM,550,(({theme:e})=>e.transitions.easing.easeInOut),oM.childPulsate,fM,(({theme:e})=>e.transitions.easing.easeInOut)),gM=r.forwardRef((function(e,t){const n=JL({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Er(n,iM),[s,u]=r.useState([]),c=r.useRef(0),d=r.useRef(null);r.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=r.useRef(!1),f=Nv(),m=r.useRef(null),h=r.useRef(null),g=r.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,Yr.jsx(hM,{classes:{ripple:fl(i.ripple,oM.ripple),rippleVisible:fl(i.rippleVisible,oM.rippleVisible),ripplePulsate:fl(i.ripplePulsate,oM.ripplePulsate),child:fl(i.child,oM.child),childLeaving:fl(i.childLeaving,oM.childLeaving),childPulsate:fl(i.childPulsate,oM.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=r.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g,f]),v=r.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=r.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{y(e,t)}));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return r.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Yr.jsx(mM,hr({className:fl(oM.root,i.root,a),ref:h},l,{children:Yr.jsx(xc,{component:null,exit:!0,children:s})}))}));function bM(e){return hv("MuiButtonBase",e)}const vM=gv("MuiButtonBase",["root","disabled","focusVisible"]),yM=["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"],xM=hS("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"},[`&.${vM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),SM=r.forwardRef((function(e,t){const n=JL({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:I,onTouchStart:L,tabIndex:M=0,TouchRippleProps:D,touchRippleRef:A,type:P}=n,O=Er(n,yM),k=r.useRef(null),T=r.useRef(null),_=kv(T,A),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Vv(),[z,G]=r.useState(!1);u&&z&&G(!1),r.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),k.current.focus()}})),[]);const[B,$]=r.useState(!1);r.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!u;function H(e,t,r=d){return Ov((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}r.useEffect((()=>{z&&p&&!c&&B&&T.current.pulsate()}),[c,p,z,B]);const V=H("start",E),U=H("stop",g),Y=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",L),Z=H("stop",R),Q=H("stop",I),ee=H("stop",(e=>{F(e),!1===q.current&&G(!1),m&&m(e)}),!1),te=Ov((e=>{k.current||(k.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=k.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=r.useRef(!1),oe=Ov((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=Ov((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(O.href||O.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(O.href||O.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=kv(t,j,k),ue=hr({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Yv({root:["root",t&&"disabled",r&&"focusVisible"]},bM,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Yr.jsxs(xM,hr({as:ae,className:fl(ce.root,l),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:M,type:P},le,O,{children:[a,W?Yr.jsx(gM,hr({ref:_,center:i},D)):null]}))}));function EM(e){return hv("MuiTypography",e)}gv("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const CM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],wM=hS("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${lb(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>hr({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}))),RM={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},IM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},LM=r.forwardRef((function(e,t){const r=JL({props:e,name:"MuiTypography"}),n=(e=>IM[e]||e)(r.color),o=uv(hr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=RM}=o,f=Er(o,CM),m=hr({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||RM[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Yv({root:["root",i,"inherit"!==e.align&&`align${lb(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},EM,a)})(m);return Yr.jsx(wM,hr({as:h,ref:t,ownerState:m,className:fl(g.root,a)},f))}));const MM=r.forwardRef((function(e,t){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=r.useState(null),s=kv(r.isValidElement(n)?ey(n):null,t);if(Cv((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),Cv((()=>{if(a&&!i)return Pv(t,a),()=>{Pv(t,null)}}),[t,a,i]),i){if(r.isValidElement(n)){const e={ref:s};return r.cloneElement(n,e)}return Yr.jsx(r.Fragment,{children:n})}return Yr.jsx(r.Fragment,{children:a?j.createPortal(n,a):a})})),DM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],AM={entering:{opacity:1},entered:{opacity:1}},PM=r.forwardRef((function(e,t){const n=Fx(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=mc}=e,y=Er(e,DM),x=r.useRef(null),S=kv(x,ey(l),t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{ZL(e);const r=QL({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),I=E(h),L=E((e=>{const t=QL({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),M=E(m);return Yr.jsx(v,hr({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:L,onExited:M,onExiting:I,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,t)=>r.cloneElement(l,hr({style:hr({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},AM[e],g,l.props.style),ref:S},t))}))}));function OM(e){return hv("MuiBackdrop",e)}gv("MuiBackdrop",["root","invisible"]);const kM=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],TM=hS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>hr({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"}))),_M=r.forwardRef((function(e,t){var r,n,o;const i=JL({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=PM,transitionDuration:g}=i,b=Er(i,kM),v=hr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Yv({root:["root",r&&"invisible"]},OM,t)})(v),x=null!=(r=f.root)?r:c.root;return Yr.jsx(h,hr({in:p,timeout:g},b,{children:Yr.jsx(TM,hr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:fl(y.root,l,null==x?void 0:x.className),ownerState:hr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),qM=gv("MuiBox",["root"]),NM=qx(),FM=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Pa("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ev);return r.forwardRef((function(e,r){const l=lv(n),s=uv(e),{className:u,component:c="div"}=s,d=Er(s,fv);return Yr.jsx(a,hr({as:c,ref:r,className:fl(u,i?i(o):o),theme:t&&l[t]||l},d))}))}({themeId:Kg,defaultTheme:NM,defaultClassName:qM.root,generateClassName:pv.generate});function jM(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function zM(e){return parseInt(Av(e).getComputedStyle(e).paddingRight,10)||0}function GM(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&&jM(e,o)}))}function BM(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function $M(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Dv(e);return t.body===e?Av(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Uv(Dv(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${zM(n)+e}px`;const t=Dv(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${zM(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Dv(n).body;else{const t=n.parentElement,r=Av(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 WM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function HM(e){const t=[],r=[];return Array.from(e.querySelectorAll(WM)).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 VM(){return!0}function UM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=HM,isEnabled:l=VM,open:s}=e,u=r.useRef(!1),c=r.useRef(null),d=r.useRef(null),p=r.useRef(null),f=r.useRef(null),m=r.useRef(!1),h=r.useRef(null),g=kv(ey(t),h),b=r.useRef(null);r.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),r.useEffect((()=>{if(!s||!h.current)return;const e=Dv(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),r.useEffect((()=>{if(!s||!h.current)return;const e=Dv(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return Yr.jsxs(r.Fragment,{children:[Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const YM=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&&jM(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);GM(t,e.mount,e.modalRef,n,!0);const o=BM(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=BM(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=$M(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=BM(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&&jM(e.modalRef,t),GM(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&&jM(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function KM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=YM,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=r.useRef({}),m=r.useRef(null),h=r.useRef(null),g=kv(h,p),[b,v]=r.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},C=Ov((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Dv(m.current).body;i.add(S(),e),h.current&&E()})),w=r.useCallback((()=>i.isTopModal(S())),[i]),R=Ov((e=>{m.current=e,e&&(d&&w()?E():h.current&&jM(h.current,x))})),I=r.useCallback((()=>{i.remove(S(),x)}),[x,i]);r.useEffect((()=>()=>{I()}),[I]),r.useEffect((()=>{d?C():y&&a||I()}),[d,I,y,a,C]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Xv(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=hr({},r,t);return hr({role:"presentation"},n,{onKeyDown:L(n),ref:g})},getBackdropProps:(e={})=>hr({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:Mv((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Mv((()=>{v(!0),s&&s(),a&&I()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function XM(e){return hv("MuiModal",e)}gv("MuiModal",["root","hidden","backdrop"]);const JM=["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"],ZM=hS("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})=>hr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),QM=hS(_M,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),eD=r.forwardRef((function(e,t){var n,o,i,a,l,s;const u=JL({name:"MuiModal",props:e}),{BackdropComponent:c=QM,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:I=!1,onBackdropClick:L,open:M,slotProps:D,slots:A}=u,P=Er(u,JM),O=hr({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:I}),{getRootProps:k,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=KM(hr({},O,{rootRef:t})),z=hr({},O,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return Yv({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},XM,n)})(z),B={};if(void 0===m.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(o=null==A?void 0:A.root)?o:b.Root)?n:ZM,W=null!=(i=null!=(a=null==A?void 0:A.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==D?void 0:D.root)?l:v.root,V=null!=(s=null==D?void 0:D.backdrop)?s:v.backdrop,U=Qv({elementType:$,externalSlotProps:H,externalForwardedProps:P,getSlotProps:k,additionalProps:{ref:t,as:g},ownerState:z,className:fl(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),Y=Qv({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(hr({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:fl(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return I||M||j&&!F?Yr.jsx(MM,{ref:q,container:h,disablePortal:E,children:Yr.jsxs($,hr({},U,{children:[!R&&c?Yr.jsx(W,hr({},Y)):null,Yr.jsx(UM,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:M,children:r.cloneElement(m,B)})]}))}):null})),tD=gv("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),rD=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nD(e){return`scale(${e}, ${e**2})`}const oD={entering:{opacity:1,transform:nD(1)},entered:{opacity:1,transform:"none"}},iD="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),aD=r.forwardRef((function(e,t){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=mc}=e,b=Er(e,rD),v=Nv(),y=r.useRef(),x=Fx(),S=r.useRef(null),E=kv(S,ey(i),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{ZL(e);const{duration:r,delay:n,easing:o}=QL({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:iD?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),I=C(u),L=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=QL({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:iD?o:.666*o,delay:iD?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=nD(.75),d&&d(e)})),D=C(p);return Yr.jsx(g,hr({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:I,onEntering:w,onExit:M,onExited:D,onExiting:L,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,t)=>r.cloneElement(i,hr({style:hr({opacity:0,transform:nD(.75),visibility:"exited"!==e||l?void 0:"hidden"},oD[e],m,i.props.style),ref:E},t))}))}));function lD(e){return hv("MuiLink",e)}aD.muiSupportAuto=!0;const sD=gv("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),uD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cD=({theme:e,ownerState:t})=>{const r=(e=>uD[e]||e)(t.color),n=ub(e,`palette.${r}`,!1)||t.color,o=ub(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:xy(n,.4)},dD=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],pD=hS(LM,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${lb(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>hr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&hr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:cD({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"},[`&.${sD.focusVisible}`]:{outline:"auto"}}))),fD=r.forwardRef((function(e,t){const n=JL({props:e,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Er(n,dD),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=Vv(),[v,y]=r.useState(!1),x=kv(t,b),S=hr({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Yv({root:["root",`underline${lb(o)}`,"button"===r&&"button",n&&"focusVisible"]},lD,t)})(S);return Yr.jsx(pD,hr({color:i,className:fl(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(uD).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),mD=r.createContext({});function hD(e){return hv("MuiList",e)}gv("MuiList",["root","padding","dense","subheader"]);const gD=["children","className","component","dense","disablePadding","subheader"],bD=hS("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})=>hr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),vD=r.forwardRef((function(e,t){const n=JL({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Er(n,gD),d=r.useMemo((()=>({dense:l})),[l]),p=hr({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Yv({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},hD,t)})(p);return Yr.jsx(mD.Provider,{value:d,children:Yr.jsxs(bD,hr({as:a,className:fl(f.root,i),ref:t,ownerState:p},c,{children:[u,o]}))})})),yD=gv("MuiListItemIcon",["root","alignItemsFlexStart"]),xD=gv("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),SD=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ED(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function CD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function wD(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 RD(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")&&wD(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const ID=r.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Er(e,SD),f=r.useRef(null),m=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Cv((()=>{o&&f.current.focus()}),[o]),r.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${Uv(Dv(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=kv(f,t);let g=-1;r.Children.forEach(a,((e,t)=>{r.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const b=r.Children.map(a,((e,t)=>{if(t===g){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),r.cloneElement(e,t)}return e}));return Yr.jsx(vD,hr({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Dv(t).activeElement;if("ArrowDown"===r)e.preventDefault(),RD(t,n,u,s,ED);else if("ArrowUp"===r)e.preventDefault(),RD(t,n,u,s,CD);else if("Home"===r)e.preventDefault(),RD(t,null,u,s,ED);else if("End"===r)e.preventDefault(),RD(t,null,u,s,CD);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&wD(n,o);o.previousKeyMatched&&(l||RD(t,n,!1,s,ED,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function LD(e){return hv("MuiPopover",e)}gv("MuiPopover",["root","paper"]);const MD=["onEntering"],DD=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],AD=["slotProps"];function PD(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function OD(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function kD(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function TD(e){return"function"==typeof e?e():e}const _D=hS(eD,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qD=hS(nM,{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}),ND=r.forwardRef((function(e,t){var n,o,i;const a=JL({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=aD,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,I=Er(a.TransitionProps,MD),L=Er(a,DD),M=null!=(n=null==x?void 0:x.paper)?n:v,D=r.useRef(),A=kv(D,M.ref),P=hr({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:I}),O=(e=>{const{classes:t}=e;return Yv({root:["root"],paper:["paper"]},LD,t)})(P),k=r.useCallback((()=>{if("anchorPosition"===d)return c;const e=TD(s),t=(e&&1===e.nodeType?e:Dv(D.current).body).getBoundingClientRect();return{top:t.top+PD(t,u.vertical),left:t.left+OD(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=r.useCallback((e=>({vertical:PD(e,S.vertical),horizontal:OD(e,S.horizontal)})),[S.horizontal,S.vertical]),_=r.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:kD(r)};const n=k();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Av(TD(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:kD(r)}}),[s,d,k,T,g]),[q,N]=r.useState(b),F=r.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);r.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);r.useEffect((()=>{b&&F()})),r.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),r.useEffect((()=>{if(!b)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Av(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=m||(s?Dv(TD(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:_D,B=null!=(i=null==y?void 0:y.paper)?i:qD,$=Qv({elementType:B,externalSlotProps:hr({},M,{style:q?M.style:hr({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:P,className:fl(O.paper,null==M?void 0:M.className)}),W=Qv({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:fl(O.root,f)}),{slotProps:H}=W,V=Er(W,AD);return Yr.jsx(G,hr({},V,!Kv(G)&&{slotProps:H,disableScrollLock:R},{children:Yr.jsx(E,hr({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},I,{children:Yr.jsx(B,hr({},$,{children:p}))}))}))}));function FD(e){return hv("MuiMenu",e)}gv("MuiMenu",["root","paper","list"]);const jD=["onEntering"],zD=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],GD={vertical:"top",horizontal:"right"},BD={vertical:"top",horizontal:"left"},$D=hS(ND,{shouldForwardProp:e=>mS(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),WD=hS(qD,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),HD=hS(ID,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),VD=r.forwardRef((function(e,t){var n,o;const i=JL({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Er(i.TransitionProps,jD),S=Er(i,zD),E=(()=>{const e=r.useContext(ay);return null!=e&&e})(),C=hr({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Yv({root:["root"],paper:["paper"],list:["list"]},FD,t)})(C),R=a&&!u&&p,I=r.useRef(null);let L=-1;r.Children.map(l,((e,t)=>{r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===L)&&(L=t))}));const M=null!=(n=v.paper)?n:WD,D=null!=(o=y.paper)?o:f,A=Qv({elementType:v.root,externalSlotProps:y.root,ownerState:C,className:[w.root,s]}),P=Qv({elementType:M,externalSlotProps:D,ownerState:C,className:w.paper});return Yr.jsx($D,hr({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?GD:BD,slots:{paper:M,root:v.root},slotProps:{root:A,paper:P},open:p,ref:t,transitionDuration:h,TransitionProps:hr({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:m,children:Yr.jsx(HD,hr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:I,autoFocus:a&&(-1===L||u),autoFocusItem:R,variant:b},c,{className:fl(w.list,c.className),children:l}))}))}));function UD(e){return hv("MuiMenuItem",e)}const YD=gv("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),KD=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],XD=hS(SM,{shouldForwardProp:e=>mS(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})=>hr({},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"}},[`&.${YD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${YD.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${YD.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xy(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})`:xy(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${YD.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${YD.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${tD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${tD.inset}`]:{marginLeft:52},[`& .${xD.root}`]:{marginTop:0,marginBottom:0},[`& .${xD.inset}`]:{paddingLeft:36},[`& .${yD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&hr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${yD.root} svg`]:{fontSize:"1.25rem"}})))),JD=r.forwardRef((function(e,t){const n=JL({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=Er(n,KD),m=r.useContext(mD),h=r.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=r.useRef(null);Cv((()=>{o&&g.current&&g.current.focus()}),[o]);const b=hr({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return hr({},a,Yv({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},UD,a))})(n),y=kv(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),Yr.jsx(mD.Provider,{value:h,children:Yr.jsx(XD,hr({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:fl(v.focusVisible,u),className:fl(v.root,p)},f,{ownerState:b,classes:v}))})})),ZD=hS(FM,{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}}))),QD=hS("div")({position:"absolute",left:0,bottom:0}),eA=hS("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...cg,justifyContent:null!=e?e:cg.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),tA=hS("div")((()=>({...cg}))),rA=hS("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}))),nA=hS(VD)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),oA=hS(JD,{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}}}))),iA=hS("span")({textOverflow:"ellipsis",overflow:"hidden"}),aA=hS("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})));var lA;!function(e){e.Expand="Expand",e.Collapse="Collapse"}(lA||(lA={}));const sA=(e,t)=>({qExcludeList:t===lA.Expand,qPos:{qDimName:e,qElemNo:[]}}),uA=`${OC}/qExpansionState`,cA=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=null==t?void 0:t.findIndex((t=>{var r;return(null===(r=t.qPos)||void 0===r?void 0:r.qDimName)===e}));return{expansionData:sA(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:o}=t;try{let t,r=uA,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${uA}/-`,t=JSON.stringify(o)):(r=`${uA}/${n}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:r,qOp:i,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${n} dimension`})},dA=({model:e,effectivePropertiesService:t,cell:r,env:n})=>{if(!n.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM")||void 0===r.qEffectiveDimensionName)return;const o={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:cA({...o,action:lA.Expand}),collapseCallback:cA({...o,action:lA.Collapse})}},pA={[qE.Sorting]:!0,[qE.Selections]:!0,[qE.Searching]:!0},fA=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:l,overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:u,tableWidth:d})=>{var p;const f=c(null),{styleService:m,layoutService:h,effectivePropertiesService:g}=DC(),{app:b,interactions:v,embed:y,translator:x,env:S,model:E}=IC(),{fontSize:C,fontFamily:w,fontStyle:R,fontWeight:I,textDecoration:L,color:M,background:D,hoverBackground:A,activeBackground:P}=m.header,O=c(null),{shouldShowLockIcon:k,shouldShowMenuIcon:T}=a,{open:_,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=YL(),j={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},z={embed:y,listboxRef:f,sortCriteria:h.searchSortFromDimension&&e.isDim?g.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},G={app:b,qStateName:h.layout.qStateName},{labelTextAlign:B}=null!==(p=h.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==p?p:{},$=IL(B,"flex-start");return Yr.jsxs(ZD,{className:jt,title:e.label,interactions:v,background:_?P:D,hoverBackground:A,shouldShowMenuIcon:T,isDimension:e.isDim,style:{...t,...pg,...bg(e,o,r,n,m.grid.border),color:M},"data-testid":"title-cell",onClick:N,children:[Yr.jsxs(eA,{children:[k?Yr.jsx(tA,{children:Yr.jsx(VL,{height:12})}):null,Yr.jsx(rA,{fontFamily:w,fontSize:C,fontStyle:R,fontWeight:I,textDecoration:L,justifyContent:$,children:Yr.jsx("span",{style:fg,children:e.label})})]}),e.isDim?Yr.jsxs(Yr.Fragment,{children:[Yr.jsx(jE,{headerData:e,translator:x,anchorRef:O,open:_,setOpen:q,interactions:v,menuAvailabilityFlags:pA,sortRelatedArgs:j,searchRelatedArgs:z,selectionRelatedArgs:G,expandOrCollapseArgs:dA({model:E,effectivePropertiesService:g,cell:e,env:S}),shouldShowMenuIcon:T,model:E&&"setActiveField"in E?E:void 0}),Yr.jsx(QD,{ref:f}),Yr.jsx(QD,{ref:O})]}):null,Yr.jsx(XL,{cellInfo:{...e,isLeftColumn:!0},columnWidth:l,isLastColumn:n,overrideLeftGridWidth:s,setIsAdjustingWidth:F,shouldApplyIndentModeColumnWidth:u,tableWidth:d})]})},mA=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=DC();return e>0&&t>0?Yr.jsx("div",{style:{...dg,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 hA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gA(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const bA=(e,t)=>Yr.jsx("svg",gA(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){hA(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),{children:Yr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})})),vA=d(bA);function yA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xA(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const SA=(e,t)=>Yr.jsxs("svg",xA(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){yA(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),{children:[Yr.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Yr.jsx("use",{fillRule:"evenodd"})]})),EA=d(SA),CA=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{styleService:n}=DC(),{interactions:o,translator:i}=IC(),{isActive:a}=rL(),{dataModel:l}=gR(),{setIsAdjustingWidth:s}=UL([l]);if(!(!!o.active&&!a))return null;const u=KL(n,{isLeftColumn:!0});return Yr.jsx(ES,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:u,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*yR))},confirmWidthCallback:n=>{var o;if(n.type===$t.FitToContent)return void l.applyIndentModeColumnWidth({type:$t.Auto});const i=Math.min(null!==(o=n.pixels)&&void 0!==o?o:t,e*yR);r(i),l.applyIndentModeColumnWidth({type:$t.Pixels,pixels:i})},setIsAdjustingWidth:s,accessibilityRelatedArgs:{translator:i,columnLabel:i.get("SNPivotTable.IndentMode.Rows")},direction:"ltr"})};function wA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RA(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const IA=(e,t)=>Yr.jsx("svg",RA(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){wA(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),{children:Yr.jsx("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"})})),LA=d(IA),MA=({cell:e,changeSortOrder:t})=>{const r=c(null),n=c(null),{app:o,interactions:i,embed:a,translator:l,env:s,model:u}=IC(),{layoutService:d,effectivePropertiesService:p}=DC(),{open:f,setOpen:m,handleOpenMenu:h}=YL();return Yr.jsxs(oA,{onClick:h,isActive:f,children:[Yr.jsx(iA,{children:e.label}),Yr.jsxs(aA,{className:"indent-mode-dropdown-more",visible:f,children:[Yr.jsx(LA,{}),e.isDim?Yr.jsxs(Yr.Fragment,{children:[Yr.jsx(jE,{headerData:e,translator:l,anchorRef:r,open:f,setOpen:m,interactions:i,menuAvailabilityFlags:pA,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:d.layout.qStateName},expandOrCollapseArgs:dA({model:u,effectivePropertiesService:p,cell:e,env:s}),shouldShowMenuIcon:!1,model:u&&"setActiveField"in u?u:void 0}),Yr.jsx(QD,{ref:n}),Yr.jsx(QD,{ref:r})]}):null]})]})},DA=({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)===TC,l=e+1<r.length&&(null===(i=r[e+1])||void 0===i?void 0:i.id)===TC;return!(n&&a&&l)&&((null==t?void 0:t.id)!==TC&&e<r.length-1)},AA=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=DC(),{interactions:a,translator:l}=IC(),{dataModel:s,gridSectionsData:{headersData:d}}=gR(),[p,f]=u(!1),m=c(null),{headerCellHeight:h}=i,{color:g,background:b,hoverBackground:v,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w}=i.header,{isAdjustingWidth:R}=UL([s]),I=e=>{e.stopPropagation()},L={height:h,gridColumn:`1 / span ${d.size.x}`,gridRow:d.size.y,zIndex:d.size.x-0};return Yr.jsxs(ZD,{isDimension:!0,background:p?y:b,interactions:a,hoverBackground:v,style:{...L,...pg,color:g},onClick:e=>{!a.active||QI(e)||R||f(!p)},"data-testid":"indentModeHeaderCellWrapper",children:[Yr.jsxs(eA,{justifyContent:"flex-start",children:[Yr.jsx(rA,{fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w,justifyContent:"flex-start",children:Yr.jsx("span",{style:fg,children:l.get("SNPivotTable.IndentMode.Rows")})}),p?Yr.jsx(EA,{}):Yr.jsx(vA,{}),Yr.jsx(QD,{ref:m})]}),Yr.jsx(nA,{open:p,anchorEl:m.current,children:e.map(((r,n)=>[r&&r.id!==TC&&Yr.jsx("li",{role:"presentation",onClick:I,onKeyDown:I,children:Yr.jsx(MA,{cell:r,changeSortOrder:t})}),DA({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===d.size.y})&&Yr.jsx(AS,{"data-testid":"group-divider",variant:"middle"})]))}),Yr.jsx(CA,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},PA=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,OA={display:"grid",width:"fit-content"},kA=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:l})=>{const{layoutService:s}=DC(),{gridSectionsData:{headersData:u}}=gR();return Yr.jsxs("div",{"data-testid":"HEADER_GRID",style:{...OA,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&Yr.jsx(mA,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(PA({layoutService:s,headersData:u,topRowIndex:c})){const r=a.at(0);var p;if(Array.isArray(r))d.push(Yr.jsx(AA,{menuItems:r,changeSortOrder:o,overrideLeftGridWidth:l,leftGridWidth:t,tableWidth:e},null===(p=r.at(0))||void 0===p?void 0:p.id));return d}return d=a.reduce(((t,a,d)=>{if(a&&!Array.isArray(a)){const p=i(d,a.isLocked,a.label),f=s.isIndentModeEnabled&&1===u.size.x;t.push(Yr.jsx(fA,{style:{width:r[d],height:n,gridColumn:s.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var TA=h(kA);const _A=(e,t,r,n)=>{const{layoutService:o}=DC();g((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},qA=(e,t)=>{Wg((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},NA=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},FA=(e,t,r,n)=>{var o;if(n)return;const i=r?"flex-start":"center";var a,l;if(e.representation.type===Ut.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 IL(r,i)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return IL(u,i)},jA=()=>{},zA=({children:e,reactWindowStyle:t,cell:r,data:n,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:l,isCellSelected:s,isAdjustingWidth:u,index:c})=>{var d;const{styleService:p,layoutService:f}=DC(),{interactions:m}=IC(),{isLocked:h,createMouseDownHandler:g,createMouseOverHandler:b}=rL(),{showLastBorder:v}=n,y=h(r)||r.isLockedByDimension,x=!(y||!m.active||!m.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||u),S=x?g(c,(e=>NA(e,n))):void 0,E=x?b(c):void 0,C=SR({isLeftColumn:l,layoutService:f,representation:r.representation});return Yr.jsx("div",{className:jt,title:m.passive?r.representation.text:void 0,style:{...t,...gg(i,a,p.grid.border,v),...vg({bottomDivider:o&&l,rightDivider:o&&!l,borderColor:p.grid.divider}),...pg,padding:"0px 4px",cursor:fL(x),background:sL({styleService:p,isCellSelected:s,cell:r,isCellLocked:y}),zIndex:l?void 0:f.size.x-r.x,justifyContent:FA(r,f,l,C),display:"flex",...f.isIndentModeEnabled&&l&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onMouseDown:S,onMouseOver:E,onKeyUp:jA,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,"data-dimension-info-index":r.dimensionInfoIndex,children:e})},GA=e=>{e.stopPropagation()},BA=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:GA,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}),$A=({href:e,text:r,interactions:n,color:o})=>t.createElement(Np,BA({href:e,text:r,interactions:n,color:o}),r),WA=G();WA.use(z),WA.renderer.prio(["canvas"]);const HA=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{var o,i;const{imageBox:a}=t,{styleService:{grid:{lineClamp:l}}}=DC();return Yr.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${null!==(o=null==a?void 0:a.width)&&void 0!==o?o:24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",overflow:"hidden",boxSizing:"border-box"},children:[Yr.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:oL(e),alignItems:n,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:null!==(i=null==a?void 0:a.width)&&void 0!==i?i:24,height:"100%"},children:Yr.jsx(wL,{representation:t,textStyle:r})}),Yr.jsx("span",{style:{paddingRight:0,padding:4/(l<=2?2:1),alignSelf:oL(e)},children:!!t.labelStructure&&EL(t.labelStructure)})]})},VA=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,UA=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Yr.jsxs("span",{children:[Yr.jsx(fD,{...BA({href:e,text:t,interactions:n,color:o}),children:null!=r&&r.maskedValue?r.maskedValue:null==r?void 0:r.originalValue}),!!r&&VA(r)]}),YA=({children:e,textStyle:t})=>Yr.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),KA=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{isActive:n}=rL(),{layoutService:o,styleService:i}=DC(),{interactions:a}=IC();let l=r&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const s=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...fg,...mg(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:uL({cell:e,styleService:t,isCellSelected:r}),fontWeight:cL({cell:e,styleService:t}),fontStyle:dL({cell:e,styleService:t}),textDecoration:pL({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:i,isCellSelected:t,isLeftColumn:r});if(e.representation.type===Ut.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,n=r&&t&&t.suffix?HA:RL;return Yr.jsx(n,{cell:e,representation:e.representation,textStyle:s,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:FA(e,o,r)})}if(e.representation.type===Ut.Link&&!n&&!e.isTotal){const t=r&&e.representation.labelStructure?UA:$A;l=Yr.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:a,color:e.expressionColor.color})}return Yr.jsx(YA,{textStyle:{...s,...e.representation.type===Ut.Image&&e.isNull?{alignSelf:oL(e)}:{}},children:l})},XA=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=DC(),{isSelected:i}=rL(),{isLeftColumn:a=!1,showLastBorder:l,itemCount:s,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=UL([r]),f=NA(e,r),m=a?e===s-1:u,h=a?u:e===s-1,g=GI(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Yr.jsx(BI,{style:{...t,background:r},index:e,isLastRow:m,isLastColumn:h,showLastBorder:l,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return Yr.jsxs(zA,{reactWindowStyle:t,isLeftColumn:a,isLastRow:m,isLastColumn:h,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Yr.jsxs($I,{verticalAlign:oL(f),width:WI(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[Yr.jsx(gL,{isLeftColumn:a,isCellSelected:b,cell:f}),Yr.jsx(KA,{isLeftColumn:a,isCellSelected:b,cell:f})]}),Yr.jsx(XL,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?rr.Measures:rr.Dimension},columnWidth:t.width,isLastColumn:h,setIsAdjustingWidth:p})]})};var JA=t.memo(XA,II);const ZA=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t.at(o);return a&&0===o&&a.x>0?(a.leafCount+a.x+a.distanceToNextCell)*n():!r&&a?(a.leafCount+a.distanceToNextCell)*n():n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o)},QA=(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}},eP=(e,t)=>r=>{e.current&&(e.current[t]=r)},tP={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...dg},rP={overflow:"hidden",willChange:"auto",flexShrink:0},nP=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i}=CC(),{layoutService:a,styleService:{contentCellHeight:l,grid:{divider:s}}}=DC(),{qSize:u}=a.layout.qHyperCube,{gridSectionsData:{leftDimensionData:c},visibleDimensionsInfo:{visibleLeftDimensionInfo:d}}=gR();qA(e,c),_A(e,t,r,l);const p=i.rowsOnCurrentPage*l,f={...tP,borderColor:s,width:n.reduce(((e,t)=>e+t),0)};return Yr.jsx("div",{style:f,"data-section-id":"LEFT_GRID",children:c.grid.map(((t,s)=>{const f=s===c.columnCount-1,m=BC(d[s]),{itemCount:h,estimatedItemSize:g,listValues:b}=QA(t,p,i.rowsOnCurrentPage,f),v=a.isIndentModeEnabled?()=>l:((e,t,r,n,o)=>i=>{const a=n?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,b,l,f,u.qcy);return Yr.jsx(EI,{ref:eP(e,s),style:{...rP,flexGrow:f?1:0},height:r,width:n[s],itemCount:h,itemSize:v,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:f,itemCount:h,showLastBorder:o,listValues:b,totalDividerIndex:c.totalDividerIndex},itemKey:FL,estimatedItemSize:g,children:JA},m)}))})};var oP=h(nP);const iP={overflow:"hidden",willChange:"auto"},aP={...dg,borderWidth:"0px 0px 0px 1px"},lP=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{layoutService:a,styleService:{grid:{divider:l},headerCellHeight:s}}=DC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=gR(),d={...aP,borderColor:l,height:n};qA(e,c),_A(e,r,n,s);const p=a.size.x*i();return 0===c.rowCount?Yr.jsx("div",{style:{width:r,height:n,...aP}}):Yr.jsx("div",{style:d,"data-section-id":"TOP_GRID",children:c.grid.map(((n,l)=>{const s=l===c.rowCount-1,{itemCount:d,estimatedItemSize:f,listValues:m}=QA(n,p,a.size.x,s),h=(({layoutService:e,headersData:t,topRowIndex:r})=>{const n=t.data.at(r);if(void 0===n)return;const o=t.size.x-1,i=PA({layoutService:e,headersData:t,topRowIndex:r})?0:o,a=n.at(i),l=Array.isArray(a)?a.at(o):a;return l?e.getDimensionInfo(l.dimensionInfoIndex):void 0})({layoutService:a,headersData:u,topRowIndex:l}),g=h?BC(h):`empty ${l}`;return Yr.jsx(EI,{ref:eP(e,l),style:iP,height:t(),width:r,itemCount:d,itemSize:ZA({list:n,listValues:m,isLastRow:s,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:s,itemCount:d,showLastBorder:o,listValues:m,totalDividerIndex:c.totalDividerIndex},itemKey:FL,estimatedItemSize:f,children:JA},g)}))})};var sP=h(lP);const uP=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=DC(),r=GR(),n=(()=>{const{model:e}=IC(),t=p((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:l},gridRefs:{topGridRef:s,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:m},scrollbarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=zR(),{leftGridWidth:v,leftGridFullWidth:y,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:E,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:w,overrideLeftGridWidth:R}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=DC(),{gridSectionsData:{headersData:i}}=gR(),{measureText:a}=zg(o.header),l=kR({tableWidth:e}),s=TR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:l.leftGridWidth}),u=l.leftGridWidth+s.rightGridFullWidth+1<e,c=p(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const s=l.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+vR;return t&&d+20<=s&&(c=!0,d+=20),d+20<=s&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[l.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return f((()=>{const e=l.leftGridWidth===l.leftGridFullWidth,t=s.rightGridWidth===s.rightGridFullWidth;e&&t&&r()}),[r,l.leftGridWidth,l.leftGridFullWidth,s.rightGridWidth,s.rightGridFullWidth]),{...l,...s,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:h,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:I,headerGridDims:L,topGridDims:M,leftGridDims:D,dataGridDims:A,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:O}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const l=GR(),{pageInfo:s}=CC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=gR(),d=Math.min(l.height*yR,Math.max(l.height*yR-25,l.height-t-a)),p=l.width*yR,f=s.rowsOnCurrentPage*t,m=Math.max(u.size.y,c.rowCount,1),h=e*m,g=e*m,b=Math.min(p,r),v=l.width-p,y=Math.max(v,l.width-b),x=Math.min(d,h,g),{availableHeight:S,everyThingFitsInTableRectHeight:E,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=l.width,o=e+1+f+a,s=o-l.height<a||o<=l.height;return{availableHeight:s?o:l.height,everyThingFitsInTableRectHeight:s,everyThingFitsInTableRectWidth:n}})(x,b,y),w=S-d,R=Math.max(w,S-x),I=Math.min(R,f),L=Math.min(R,f),M=h+1+f,{visibilityStatus:D,metadata:{hasLeftGridOverflowX:A,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:l,bottomSectionFullHeight:s}}}=e,u=l>n,c=i>t,d=a>r,p=s>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:R}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:M-g}}});return{gridScaffoldDimensions:{width:l.width,height:l.height,gridTemplateColumns:`${b}px ${y}px`,gridTemplateRows:`${x}px ${R}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:y-1-i,height:-1},self:{width:Math.min(o,y)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:M-g+(!A&&P?a:0)},stickyWrapper:{width:b,height:R-1-a},self:{width:b,height:Math.max(t,I-(E?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:M-g+(!P&&A?a:0)},stickyWrapper:{width:y-1-i,height:R-1-a},self:{width:Math.min(o,y)-(C?1:0)-i,height:Math.max(t,L-(E?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:E,scrollbarsVisibilityStatus:D}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:v,leftGridOriginalWidth:y,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g}}),k=p((()=>e),[e]),T=p((()=>t),[t]);return(()=>{const{downloadService:e}=DC();f((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Yr.jsxs($R,{style:I,children:[Yr.jsx("div",{style:{overflow:"hidden"},ref:o,children:Yr.jsx(TA,{tableWidth:r.width,leftGridWidth:v,columnWidths:x,getHeaderCellsIconsVisibilityStatus:w,rowHight:e,height:L.height,changeSortOrder:n,overrideLeftGridWidth:R})}),Yr.jsx(VR,{style:O.topGrid,origin:or.TopGrid,ref:i,children:Yr.jsx(BR,{style:M.fullSizeWrapper,children:Yr.jsx(UR,{style:M.stickyWrapper,children:Yr.jsx(sP,{topGridRef:s,rowHightCallback:k,...M.self,showLastBorder:{right:E,bottom:!1},getRightGridColumnWidth:C})})})}),Yr.jsx(VR,{style:O.leftGrid,origin:or.LeftGrid,ref:a,children:Yr.jsx(BR,{style:D.fullSizeWrapper,children:Yr.jsx(UR,{style:D.stickyWrapper,children:Yr.jsx(oP,{leftGridRef:u,...D.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),Yr.jsx(VR,{style:O.dataGrid,origin:or.DataGrid,ref:l,children:Yr.jsx(BR,{style:A.fullSizeWrapper,children:Yr.jsx(UR,{style:A.stickyWrapper,children:Yr.jsx(BL,{dataGridRef:c,rowHightCallback:T,...A.self,showLastBorder:{right:E,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:m})})})})]})},cP=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=IC(),{pageInfo:o,updatePageInfo:i,rect:a}=CC(),{layoutService:l}=DC(),{layout:s,hasData:u}=l;return Yr.jsxs(Yr.Fragment,{children:[u?Yr.jsx(uP,{}):null,Yr.jsx(PC,{}),Yr.jsx(SC,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:s})]})},dP={WHITE:"#FFFFFF",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_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_100_15:"rgba(255, 255, 255, 0.15)",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)"},pP=12,fP=14,mP=16,hP=24,gP=3,bP=300,vP=400,yP=600,xP=700,SP={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Sr(dP.GREYSCALE_0,.05),Sr(dP.GREEN_PALE,.5),Sr(dP.BLUE_PALE,.5),Sr(dP.GREEN_PALE,.5),Sr(dP.BLUE_PALE,.5),Sr(dP.GREEN_PALE,.5),Sr(dP.BLUE_PALE,.5);var EP;function CP(){return CP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CP.apply(null,arguments)}Sr(dP.GREEN_PALE,.5),Sr(dP.BLUE_PALE,.5),Sr(dP.GREEN_PALE,.5),Sr(dP.BLUE_PALE,.5);var wP,RP=function(e){return r.createElement("svg",CP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),EP||(EP=r.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function IP(){return IP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IP.apply(null,arguments)}var LP=function(e){return r.createElement("svg",IP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),wP||(wP=r.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 MP({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Yr.jsx("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,children:t})}function DP(e={}){return Yr.jsx(MP,{...e,children:Yr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yr.jsx("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"})]})})}function AP(e={}){return Yr.jsx(MP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function PP(e={}){return Yr.jsx(MP,{fontSize:"medium",...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function OP(e={}){return Yr.jsx(MP,{fontSize:"medium",...e,children:Yr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yr.jsx("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"})]})})}function kP({className:e}){return Yr.jsx(MP,{fontSize:"small",className:e,children:Yr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yr.jsx("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"}),Yr.jsx("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"})]})})})})})}function TP(e={}){return Yr.jsx(MP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("rect",{stroke:dP.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Yr.jsx(LP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(RP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(PP,{}),Yr.jsx(OP,{}),Yr.jsx((function(e={}){return Yr.jsx(MP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Yr.jsx(DP,{}),Yr.jsx(AP,{}),Yr.jsx(RP,{style:{color:dP.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const _P={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:gP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},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:[]}};var qP=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:dP.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:dP.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yr.jsx(RP,{"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 ${dP.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:dP.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${dP.MISC_FOCUS_BORDER}`,borderRadius:gP,backgroundColor:dP.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 ${dP.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:dP.WHITE,color:dP.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:gP},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${dP.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:dP.GREYSCALE_0_15,backgroundColor:dP.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:dP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${dP.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:dP.GREEN_PALE},"&:active":{backgroundColor:dP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:dP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(dP.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:dP.BLUE_PALE},"&:active":{backgroundColor:dP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:dP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(dP.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:gP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:dP.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${dP.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:dP.GREYSCALE_0_15,backgroundColor:dP.GREYSCALE_100_60,"&:active":{backgroundColor:dP.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:dP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${dP.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:dP.PURPLE,"&.Mui-focusVisible":{borderColor:dP.PURPLE,boxShadow:`0 0 0 3px ${Lv(dP.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:dP.GREEN,"&.Mui-focusVisible":{borderColor:dP.GREEN,boxShadow:`0 0 0 3px ${Lv(dP.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:dP.BLUE,"&.Mui-focusVisible":{borderColor:dP.BLUE,boxShadow:`0 0 0 3px ${Lv(dP.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:dP.ORANGE,"&.Mui-focusVisible":{borderColor:dP.ORANGE,boxShadow:`0 0 0 3px ${Lv(dP.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:dP.RED,"&.Mui-focusVisible":{borderColor:dP.RED,boxShadow:`0 0 0 3px ${Lv(dP.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:dP.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:dP.PURPLE_PALE},"&:active":{backgroundColor:dP.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:dP.PURPLE_PALE,boxShadow:`0 0 0 3px ${Lv(dP.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:dP.GREEN_PALE},"&:active":{backgroundColor:dP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:dP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(dP.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:dP.BLUE_PALE},"&:active":{backgroundColor:dP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:dP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(dP.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:dP.ORANGE_PALE},"&:active":{backgroundColor:dP.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:dP.ORANGE_PALE,boxShadow:`0 0 0 3px ${Lv(dP.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:dP.RED_PALE},"&:active":{backgroundColor:dP.RED_DARK},"&.Mui-focusVisible":{borderColor:dP.RED_PALE,boxShadow:`0 0 0 3px ${Lv(dP.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:dP.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:dP.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:gP,boxShadow:`inset 0 0 0 2px ${dP.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yr.jsx(LP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:pP,borderRadius:gP,color:dP.TEXT_PRIMARY,backgroundColor:dP.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:dP.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${dP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:dP.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:dP.GREYSCALE_0_05,color:dP.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:dP.GREEN,borderColor:dP.GREEN},"&.MuiChip-outlinedInfo":{color:dP.BLUE,borderColor:dP.BLUE},"&.MuiChip-outlinedWarning":{color:dP.ORANGE,borderColor:dP.ORANGE},"&.MuiChip-outlinedError":{color:dP.RED,borderColor:dP.RED}},outlined:{border:`solid 1px ${dP.GREYSCALE_0_15}`,backgroundColor:dP.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:gP,boxShadow:"none",backgroundColor:dP.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:dP.GREEN,borderColor:dP.GREEN},outlinedSecondary:{color:dP.BLUE,borderColor:dP.BLUE},label:{fontFamily:SP.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yr.jsx(LP,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yr.jsx(RP,{"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:gP},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:gP,fontSize:fP,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:dP.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${dP.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:dP.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:dP.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:dP.GREYSCALE_0_05}}},popupIndicator:{borderRadius:gP,border:`solid 1px ${dP.GREYSCALE_0_15}`,color:dP.GREYSCALE_0_60,marginRight:0,width:hP,height:hP},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${dP.GREYSCALE_0_15}`},clearIndicator:{borderRadius:gP,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:dP.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:fP}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:pP,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:dP.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:dP.GREYSCALE_25,fontSize:pP,fontFamily:SP.FONT_FAMILY,fontWeight:yP,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:dP.TEXT_PRIMARY},"&.Mui-error":{color:dP.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:dP.TEXT_SECONDARY,content:"'(optional)'",fontWeight:vP,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:dP.TEXT_SECONDARY,content:"'(required)'",fontWeight:vP,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:fP,lineHeight:"16px",backgroundColor:dP.WHITE,borderRadius:gP,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${dP.GREYSCALE_0_05}`,borderColor:dP.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${dP.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${dP.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${dP.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${dP.RED}`,boxShadow:`0px 0px 0px 1px ${dP.RED}, inset 0 2px 0 0 ${dP.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${dP.GREYSCALE_0_10}`,borderColor:dP.GREYSCALE_0_10,backgroundColor:dP.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:dP.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:dP.GREYSCALE_0_15,borderRadius:gP,boxShadow:`inset 0 2px 0 0 ${dP.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yr.jsx(RP,{...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:dP.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:dP.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:dP.GREYSCALE_0_03},"&:active":{backgroundColor:dP.GREYSCALE_0_10},"&:focus":{backgroundColor:dP.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${dP.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${dP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:dP.GREYSCALE_0_30,"&:hover":{backgroundColor:dP.GREYSCALE_0_0,borderColor:dP.GREYSCALE_0_15},"& ~svg":{color:dP.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${dP.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:gP}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:dP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${dP.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:dP.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:fP,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:pP,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:pP,fontWeight:yP,color:dP.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:yP}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${dP.GREYSCALE_0_15}, 0px 0px 0px 1px ${dP.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yr.jsx(PP,{}),checkedIcon:Yr.jsx(OP,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:dP.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${dP.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:dP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(dP.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:dP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(dP.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:dP.GREYSCALE_0_20}},"&.Mui-disabled":{fill:dP.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yr.jsx(TP,{}),checkedIcon:Yr.jsx(DP,{}),indeterminateIcon:Yr.jsx(AP,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:gP,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:dP.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:dP.GREYSCALE_0_55,color:dP.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:dP.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:dP.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:dP.GREYSCALE_0_55,"&:hover":{color:dP.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:dP.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:dP.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:fP,color:dP.TEXT_PRIMARY,lineHeight:"16px",fontWeight:yP},secondary:{fontSize:pP,color:dP.GREYSCALE_45,fontWeight:vP,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:fP,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:fP,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:dP.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:pP,borderBottom:`solid 1px ${dP.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:fP,color:dP.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:dP.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:dP.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:dP.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:dP.RED}}},"&.Mui-focusVisible":{backgroundColor:dP.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:dP.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:dP.GREEN,height:"24px","&.Mui-disabled":{color:dP.GREYSCALE_0_15}},rail:{backgroundColor:dP.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${dP.GREYSCALE_0_05}`,borderRadius:gP,boxShadow:`inset 0px 0px 0px 1px ${dP.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${dP.GREYSCALE_0_05}`,borderRadius:gP},thumb:{height:"16px",width:"16px",borderRadius:gP,backgroundColor:dP.WHITE,boxShadow:`0px 1px 2px 0px ${dP.GREYSCALE_0_15}, 0px 0px 0px 1px ${dP.GREYSCALE_0_05}`,"&:hover":{borderRadius:gP,boxShadow:`0 2px 4px 0 ${dP.GREYSCALE_0_30}, 0 0 0 1px ${dP.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${dP.GREYSCALE_0_15}, 0 0 0 1px ${dP.GREYSCALE_0_06}, 0 0 0 2px ${dP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${dP.GREYSCALE_0_15}, 0 0 0 1px ${dP.GREYSCALE_0_06}, 0 0 0 2px ${dP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:dP.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:dP.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:dP.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:dP.GREYSCALE_0_15},markLabel:{color:dP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:dP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:dP.WHITE,color:dP.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:dP.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:dP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(dP.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:dP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(dP.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:dP.GREYSCALE_0_15,borderRadius:gP},thumb:{height:"16px",width:"16px",borderRadius:gP,backgroundColor:dP.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:fP,fontWeight:yP,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${dP.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${dP.MISC_FOCUS_BORDER}`,backgroundColor:dP.GREYSCALE_0_03,borderRadius:gP},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:dP.GREYSCALE_25,"&.Mui-selected":{color:dP.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:fP,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:gP,"&:hover":{backgroundColor:dP.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${dP.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${dP.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:gP,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:dP.GREYSCALE_0_05},"&:hover":{backgroundColor:dP.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${dP.GREYSCALE_85}`,borderRight:`1px solid ${dP.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:yP,backgroundColor:dP.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:dP.GREYSCALE_98,borderBottom:`1px solid ${dP.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${dP.GREYSCALE_85}`,borderTop:`1px solid ${dP.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:dP.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:dP.GREYSCALE_0_05,"&:hover":{backgroundColor:dP.GREYSCALE_0_03}},"&&:hover":{backgroundColor:dP.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yr.jsx(kP,{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 ${dP.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:fP,borderRadius:gP,padding:"7px 16px",border:`1px solid ${dP.GREYSCALE_0_15}`,backgroundColor:dP.GREYSCALE_100_60,color:dP.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:dP.GREYSCALE_0_10,border:`1px solid ${dP.GREYSCALE_0_30}`},"&:hover":{backgroundColor:dP.GREYSCALE_0_03,border:`1px solid ${dP.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:dP.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${dP.MISC_FOCUS_BORDER}`,border:`1px solid ${dP.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:dP.GREYSCALE_25,backgroundColor:dP.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:dP.GREYSCALE_0_10,border:`1px solid ${dP.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:pP,height:24,width:24,padding:7},sizeLarge:{fontSize:mP,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:fP,borderRadius:gP}}},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:dP.GREYSCALE_20},tooltip:{backgroundColor:dP.GREYSCALE_20,fontSize:pP,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{..._P}:{}}))(t);const NP=e=>({mode:"light",primary:{ultraLight:dP.GREEN_ULTRA_LIGHT,light:dP.GREEN_PALE,main:dP.GREEN,dark:dP.GREEN_DARK,extraDark:dP.GREEN_EXTRA_DARK,contrastText:dP.WHITE},secondary:{ultraLight:dP.BLUE_ULTRA_LIGHT,light:dP.BLUE_PALE,main:dP.BLUE,dark:dP.BLUE_DARK,extraDark:dP.BLUE_EXTRA_DARK,contrastText:dP.WHITE},error:{ultraLight:dP.RED_ULTRA_LIGHT,light:dP.RED_PALE,main:dP.RED,dark:dP.RED_DARK,extraDark:dP.RED_EXTRA_DARK,contrastText:dP.WHITE},warning:{ultraLight:dP.ORANGE_ULTRA_LIGHT,light:dP.ORANGE_PALE,main:dP.ORANGE,dark:dP.ORANGE_DARK,extraDark:dP.ORANGE_EXTRA_DARK,contrastText:dP.WHITE},success:{ultraLight:dP.GREEN_ULTRA_LIGHT,light:dP.GREEN_PALE,main:dP.GREEN,dark:dP.GREEN_DARK,extraDark:dP.GREEN_EXTRA_DARK,contrastText:dP.WHITE},info:{ultraLight:dP.BLUE_ULTRA_LIGHT,light:dP.BLUE_PALE,main:dP.BLUE,dark:dP.BLUE_DARK,extraDark:dP.BLUE_EXTRA_DARK,contrastText:dP.WHITE},text:{primary:dP.TEXT_PRIMARY,secondary:dP.TEXT_SECONDARY,disabled:dP.GREYSCALE_0_30},action:{hover:dP.GREYSCALE_0_03,hoverOpacity:.03,selected:dP.GREYSCALE_0_05,selectedOpacity:.05,focus:dP.MISC_FOCUS_BORDER},amethyst:{ultraLight:dP.WHITE,main:dP.PURPLE,light:dP.PURPLE_PALE,dark:dP.PURPLE_DARK,extraDark:dP.GREYSCALE_0_0,contrastText:dP.WHITE},background:{paper:dP.WHITE,default:dP.GREYSCALE_95},divider:dP.GREYSCALE_0_15}),FP=(e="light",t=!1)=>((e,t=!1)=>({components:qP(0,t),palette:NP(),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:fP,fontWeightLight:bP,fontWeightRegular:vP,fontWeightMedium:yP,fontWeightBold:xP,htmlFontSize:fP,fontFamily:SP.FONT_FAMILY,button:{fontWeight:yP,fontSize:fP,textTransform:"none"},body1:{fontSize:mP,lineHeight:"24px"},body2:{fontSize:fP,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:hP,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:mP,fontWeight:yP,lineHeight:"16px"},h6:{fontSize:fP,fontWeight:yP,lineHeight:"16px"},caption:{color:dP.TEXT_SECONDARY},subtitle1:{fontSize:fP,color:dP.TEXT_SECONDARY},subtitle2:{fontSize:pP,color:dP.TEXT_SECONDARY}},shape:{borderRadius:gP}}))(0,t);const jP=(e,{selections:r,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){var t;const r=FP();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),qx({...r,direction:e})}("ltr");e.render(Yr.jsx(t.StrictMode,{children:Yr.jsx(bS,{theme:a,children:Yr.jsx(LC,{...i,children:Yr.jsx(wC,{...n,children:Yr.jsx(nL,{selections:r,children:Yr.jsx(AC,{...o,children:Yr.jsx(bR,{children:Yr.jsx(cP,{})})})})})})})}))};var zP,GP,BP,$P;!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"}(zP||(zP={})),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"}(GP||(GP={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(BP||(BP={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}($P||($P={}));const WP=e=>e?`${parseInt(e,10)}px`:void 0,HP=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?sg.Transparent:r}},VP=(e,t)=>+(parseInt(e,10)*lg*t+8).toFixed(2),UP=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ig:"normal",YP=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",KP=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",XP=document.createElement("textarea");function JP(e){XP.value=e,document.body.appendChild(XP),XP.select(),XP.setSelectionRange(0,XP.value.length),document.execCommand("copy"),document.body.removeChild(XP)}XP.style.position="absolute",XP.style.left="-9999px",XP.setAttribute("readonly","");function ZP(e){null==I||I(((t,r)=>{const n=r.target,o=null==n?void 0:n.closest(`.${jt}`);null!=o&&o.title&&t.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((()=>{JP(r)})):JP(r))})(o)}}),null==e||e.forEach((e=>{e(t,r,o)}))}))}const QP=({model:e,env:t,layoutService:r,effectivePropertiesService:n,translator:o})=>Dg(((i,a,l)=>{if(!e||n.qAlwaysFullyExpanded||!t.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM"))return;const s=e,u=i.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group"}),{qEffectiveDimensionName:c,label:d}=((e,t)=>{const r=((e,t)=>{const r=null==e?void 0:e.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(l,r);u.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(OC,0,0,!0),await e.expandLeft(OC,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[null!=n?n:""]),tid:"expand-dimension",select:cA({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:lA.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o})),u.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(OC,0,0,!0),await e.collapseLeft(OC,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[null!=n?n:""]),tid:"collapse-dimension",select:cA({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:lA.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o}))}),[e,r,n]),eO=(e,t)=>y((()=>(({layout:e,flags:t})=>{var r,n,o,i;const{qHyperCube:a,nullValueRepresentation:l,snapshotData:s}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!s,m=null!==(r=null==s||null===(n=s.content)||void 0===n?void 0:n.rowsPerPage)&&void 0!==r?r:15e3,h={x:Math.min(e.qHyperCube.qSize.qcx,ag),y:Math.min(e.qHyperCube.qSize.qcy,m)},g=c.slice(0,u),b=e=>g.some((t=>t===e)),v=b(kC),y=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:kC,e]}))),x=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==l?void 0:l.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(v)return 0;const r=e%x.length;return t?r:d.findIndex((e=>e===x[r]))},getDimensionInfo:e=>e===kC?void 0:p.at(e),getDimensionInfoIndex:e=>{var t;return null!==(t=y.get(e))&&void 0!==t?t:-1},size:h,isSnapshot:f,hasLimitedData:!f&&h.x<e.qHyperCube.qSize.qcx,hasData:h.x>0&&h.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:v,leftDimensionInfoIndexes:g,isLeftDimension:b,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:x,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeFeatures:{isLinksSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),isImagesSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES")},indentModeColumnWidth:null!==(o=e.qHyperCube.indentModeColumnWidth)&&void 0!==o?o:{type:$t.Auto,pixels:Bt.PixelsDefault,percentage:Bt.PercentageDefault},searchSortFromDimension:"inherit"===(null===(i=e.search)||void 0===i?void 0:i.sorting)}})({layout:e,flags:t})),[e,t]),tO=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=Pg(e);return t.current=e,t})(cR(o));return Ng((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=s.current;var c,d;if(a)return null!==(c=null===(d=i.snapshotData)||void 0===d||null===(d=d.content)||void 0===d?void 0:d.qPivotDataPages)&&void 0!==c?c:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,o,u)||((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,o,u))){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(ag,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,o,u);return t?e.getHyperCubePivotData(OC,dR(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},rO=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),nO=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:rO({rowsPerPage:r,totalRowCount:e,page:t})}),oO=15,iO=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{var i;return L((async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(n-oO,0),u=Math.max(l+o-oO,l,0),c=ag-s,d=l+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=cR(r);return{qLeft:s,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:s,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=dR(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(OC,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i})),M((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var aO={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},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 lO=()=>{const e=D(),t=e.language();return y((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(aO).forEach((t=>{e.add(aO[t])}))}(e)}),[e]),{translator:e,language:t}},sO=e=>{const{flags:t}=e,r=A(),n=(e=>{const t=y((()=>Gg(e)),[e]);return C((()=>()=>{t.unmount()}),[t]),t})(r),o=P(),i=O(),a=k(),l=T(),s=_(),u=Og(),c=((e,t)=>{const[r]=Ng((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]);return y((()=>{var e,t;const n=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),o=null!==(e=null==r?void 0:r.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias)))&&void 0!==e?e:[];return{qAlwaysFullyExpanded:null!==(t=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==t&&t,qExpansionState:null==r?void 0:r.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:n,getSortCriteriaForDimension:e=>o[e]}}),[r])})(i,o),d=eO(o,t),p=(e=>{const t=R();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(d.isSnapshot),f=q(),m=qg(o,r),{translator:h,language:g}=lO(),{pageInfo:b,updatePageInfo:v}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[a,l]=E((()=>{const a=((e,t)=>{var r,n,o,i;return t.isDownloadedAsPDForImage?null!==(r=null===(n=t.viewState)||void 0===n?void 0:n.renderPage)&&void 0!==r?r:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,...nO(n.qcy,a,i)}})),s=e.layout.qHyperCube.qSize.qcy;return C((()=>{l((t=>({...t,...nO(s,t.page,i),shouldShowPagination:s>e.size.y&&!o})))}),[s,e.size.y,l,o,i]),C((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=rO({...a,page:e});l({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{l({...a,...e,rowsOnCurrentPage:rO({...a,...e})})}}})(d,u),x=((e,t,r)=>y((()=>((e,t)=>{var r,n,o,i,a,l,s,u;if(e.isDownloadedAsPDForImage){var c,d,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(c=null==t?void 0:t.scrollTop)&&void 0!==c?c:0,scrollLeft:null!==(d=null==t?void 0:t.scrollLeft)&&void 0!==d?d:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.scrollTop)&&void 0!==r?r:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(s=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==s?s:0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(b,o,u),S=iO({rect:N(),layoutService:d,viewService:x,model:i,pageInfo:b}),[w,I]=tO({model:i,layoutService:d,viewService:x,pageInfo:b,rect:S}),L=y((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,I,L,M,D,A,P,O,k,T,_,q,N,F,j,z,G,B,$,W,H,V,U,Y,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[zP.LineClamp])&&void 0!==i?i:oe(GP.Grid,BP.Grid,$P.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==ne?void 0:ne[zP.ColumnLineClamp])&&void 0!==l?l:oe(GP.Grid,BP.Grid,$P.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=HP(e,null==J?void 0:J[zP.Background]))&&void 0!==u?u:oe(GP.Dimension,BP.LabelName,$P.BackgroundColor))&&void 0!==s?s:sg.Transparent,se={header:{fontSize:null!==(c=null!==(d=WP(null==J?void 0:J[zP.FontSize]))&&void 0!==d?d:oe(GP.Dimension,BP.LabelName,$P.FontSize))&&void 0!==c?c:ng,fontFamily:null!==(p=null!==(f=null==J?void 0:J[zP.FontFamily])&&void 0!==f?f:oe(GP.Dimension,BP.LabelName,$P.FontFamily))&&void 0!==p?p:og,fontWeight:UP(null==J?void 0:J[zP.FontStyle],ig),fontStyle:YP(null==J?void 0:J[zP.FontStyle]),textDecoration:KP(null==J?void 0:J[zP.FontStyle]),color:null!==(m=null!==(h=HP(e,null==J?void 0:J[zP.FontColor]))&&void 0!==h?h:oe(GP.Dimension,BP.LabelName,$P.FontColor))&&void 0!==m?m:fm.TEXT,background:le,hoverBackground:Hh(le,Wt),activeBackground:Hh(le,Ht)},dimensionValues:{fontSize:null!==(g=null!==(b=WP(null==Z?void 0:Z[zP.FontSize]))&&void 0!==b?b:oe(GP.Dimension,BP.LabelValue,$P.FontSize))&&void 0!==g?g:ng,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[zP.FontFamily])&&void 0!==y?y:oe(GP.Dimension,BP.LabelValue,$P.FontFamily))&&void 0!==v?v:og,fontWeight:UP(null==Z?void 0:Z[zP.FontStyle],void 0),fontStyle:YP(null==Z?void 0:Z[zP.FontStyle]),textDecoration:KP(null==Z?void 0:Z[zP.FontStyle]),color:null!==(x=null!==(S=HP(e,null==Z?void 0:Z[zP.FontColor]))&&void 0!==S?S:oe(GP.Dimension,BP.LabelValue,$P.FontColor))&&void 0!==x?x:fm.TEXT,background:null!==(E=null!==(C=HP(e,null==Z?void 0:Z[zP.Background]))&&void 0!==C?C:oe(GP.Dimension,BP.LabelValue,$P.BackgroundColor))&&void 0!==E?E:sg.Transparent},measureValues:{fontSize:null!==(w=null!==(R=WP(null==Q?void 0:Q[zP.FontSize]))&&void 0!==R?R:oe(GP.Measure,BP.LabelValue,$P.FontSize))&&void 0!==w?w:ng,fontFamily:null!==(I=null!==(L=null==Q?void 0:Q[zP.FontFamily])&&void 0!==L?L:oe(GP.Measure,BP.LabelValue,$P.FontFamily))&&void 0!==I?I:og,fontWeight:UP(null==Q?void 0:Q[zP.FontStyle],"normal"),fontStyle:YP(null==Q?void 0:Q[zP.FontStyle]),textDecoration:KP(null==Q?void 0:Q[zP.FontStyle]),color:null!==(M=null!==(D=HP(e,null==Q?void 0:Q[zP.FontColor]))&&void 0!==D?D:oe(GP.Measure,BP.LabelValue,$P.FontColor))&&void 0!==M?M:sg.FontSecondary,background:null!==(A=null!==(P=HP(e,null==Q?void 0:Q[zP.Background]))&&void 0!==P?P:oe(GP.Measure,BP.LabelValue,$P.BackgroundColor))&&void 0!==A?A:sg.Transparent},measureLabels:{fontWeight:UP(null==ee?void 0:ee[zP.FontStyle],"normal"),fontStyle:YP(null==ee?void 0:ee[zP.FontStyle]),textDecoration:KP(null==ee?void 0:ee[zP.FontStyle]),color:null!==(O=null!==(k=HP(e,null==ee?void 0:ee[zP.FontColor]))&&void 0!==k?k:oe(GP.Measure,BP.LabelName,$P.FontColor))&&void 0!==O?O:sg.FontSecondary,background:null!==(T=null!==(_=HP(e,null==ee?void 0:ee[zP.Background]))&&void 0!==_?_:oe(GP.Measure,BP.LabelName,$P.BackgroundColor))&&void 0!==T?T:sg.Transparent},totalValues:{fontWeight:UP(null==te?void 0:te[zP.FontStyle],ig),fontStyle:YP(null==te?void 0:te[zP.FontStyle]),textDecoration:KP(null==te?void 0:te[zP.FontStyle]),color:null!==(q=null!==(N=HP(e,null==te?void 0:te[zP.FontColor]))&&void 0!==N?N:oe(GP.Total,BP.LabelValue,$P.FontColor))&&void 0!==q?q:fm.TEXT,background:null!==(F=null!==(j=HP(e,null==te?void 0:te[zP.Background]))&&void 0!==j?j:oe(GP.Total,BP.LabelValue,$P.BackgroundColor))&&void 0!==F?F:sg.Transparent},nullValues:{fontWeight:UP(null==re?void 0:re[zP.FontStyle],"normal"),fontStyle:YP(null==re?void 0:re[zP.FontStyle]),textDecoration:KP(null==re?void 0:re[zP.FontStyle]),color:null!==(z=null!==(G=HP(e,null==re?void 0:re[zP.FontColor]))&&void 0!==G?G:oe(GP.Null,BP.LabelValue,$P.FontColor))&&void 0!==z?z:fm.TEXT,background:null!==(B=null!==($=HP(e,null==re?void 0:re[zP.Background]))&&void 0!==$?$:oe(GP.Null,BP.LabelValue,$P.BackgroundColor))&&void 0!==B?B:sg.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(H=HP(e,null==ne?void 0:ne[zP.Border]))&&void 0!==H?H:oe(GP.Grid,BP.Grid,$P.BorderColor))&&void 0!==W?W:sg.DividerLight,divider:null!==(V=null!==(U=HP(e,null==ne?void 0:ne[zP.Divider]))&&void 0!==U?U:oe(GP.Grid,BP.Divider,$P.BorderColor))&&void 0!==V?V:sg.DividerDark,background:null!==(Y=null!==(K=HP(e,null==ne?void 0:ne[zP.Background]))&&void 0!==K?K:oe(GP.Grid,BP.Grid,$P.BackgroundColor))&&void 0!==Y?Y:sg.Transparent},selectedColors:Wh(e)};return se.headerCellHeight=Math.max(VP(se.header.fontSize,ae),VP(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(VP(se.measureValues.fontSize,ie),VP(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=VP(se.dimensionValues.fontSize,1),se})(m,d,t)),[m,d,t]),M=((e,t,r)=>{const[,n,o]=Ng((async()=>{var t;const n=_m(r.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),l=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...n,...l,o,i,a,$g].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(m,o,e);ZP([QP({model:i,env:e,layoutService:d,effectivePropertiesService:c,translator:h})]),C((()=>{!I&&i&&!!w&&M&&jP(n,{selections:f,baseObjects:{rect:S,pageInfo:b,qPivotDataPages:w,updatePageInfo:v},nebulaObjects:{env:e,app:a,model:i,embed:l,theme:m,keyboard:s,translator:h,interactions:p},coreServices:{styleService:L,viewService:x,layoutService:d,downloadService:u,effectivePropertiesService:c}})}),[i,a,S,p,f,x,d,u,I,w,L,n,M,h,g,b,v,c,l,s,m,e])},uO={version:"4.4.2",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:[]},cO=()=>({...uO,qHyperCubeDef:{...uO.qHyperCubeDef,qIndentMode:!1}})}}}));
|